@mison/ling 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/.shared/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agents/.shared/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agents/.shared/ui-ux-pro-max/data/icons.csv +101 -0
- package/.agents/.shared/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agents/.shared/ui-ux-pro-max/data/products.csv +97 -0
- package/.agents/.shared/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agents/.shared/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agents/.shared/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agents/.shared/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agents/.shared/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agents/.shared/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/.agents/.shared/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agents/.shared/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/.agents/.shared/ui-ux-pro-max/scripts/core.py +258 -0
- package/.agents/.shared/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/.agents/.shared/ui-ux-pro-max/scripts/search.py +106 -0
- package/.agents/ARCHITECTURE.md +285 -0
- package/.agents/agents/backend-specialist.md +268 -0
- package/.agents/agents/code-archaeologist.md +106 -0
- package/.agents/agents/database-architect.md +225 -0
- package/.agents/agents/debugger.md +225 -0
- package/.agents/agents/devops-engineer.md +242 -0
- package/.agents/agents/documentation-writer.md +104 -0
- package/.agents/agents/explorer-agent.md +73 -0
- package/.agents/agents/frontend-specialist.md +618 -0
- package/.agents/agents/game-developer.md +162 -0
- package/.agents/agents/mobile-developer.md +382 -0
- package/.agents/agents/orchestrator.md +436 -0
- package/.agents/agents/penetration-tester.md +188 -0
- package/.agents/agents/performance-optimizer.md +187 -0
- package/.agents/agents/product-manager.md +112 -0
- package/.agents/agents/product-owner.md +95 -0
- package/.agents/agents/project-planner.md +405 -0
- package/.agents/agents/qa-automation-engineer.md +103 -0
- package/.agents/agents/security-auditor.md +170 -0
- package/.agents/agents/seo-specialist.md +111 -0
- package/.agents/agents/test-engineer.md +158 -0
- package/.agents/mcp_config.json +22 -0
- package/.agents/rules/GEMINI.md +273 -0
- package/.agents/scripts/auto_preview.py +148 -0
- package/.agents/scripts/checklist.py +217 -0
- package/.agents/scripts/session_manager.py +120 -0
- package/.agents/scripts/verify_all.py +327 -0
- package/.agents/skills/api-patterns/SKILL.md +84 -0
- package/.agents/skills/api-patterns/api-style.md +42 -0
- package/.agents/skills/api-patterns/auth.md +24 -0
- package/.agents/skills/api-patterns/documentation.md +26 -0
- package/.agents/skills/api-patterns/graphql.md +41 -0
- package/.agents/skills/api-patterns/rate-limiting.md +31 -0
- package/.agents/skills/api-patterns/response.md +37 -0
- package/.agents/skills/api-patterns/rest.md +40 -0
- package/.agents/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.agents/skills/api-patterns/security-testing.md +122 -0
- package/.agents/skills/api-patterns/trpc.md +41 -0
- package/.agents/skills/api-patterns/versioning.md +22 -0
- package/.agents/skills/app-builder/SKILL.md +75 -0
- package/.agents/skills/app-builder/agent-coordination.md +74 -0
- package/.agents/skills/app-builder/feature-building.md +53 -0
- package/.agents/skills/app-builder/project-detection.md +34 -0
- package/.agents/skills/app-builder/scaffolding.md +118 -0
- package/.agents/skills/app-builder/tech-stack.md +40 -0
- package/.agents/skills/app-builder/templates/SKILL.md +39 -0
- package/.agents/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agents/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agents/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agents/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agents/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agents/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agents/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agents/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/.agents/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/.agents/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/.agents/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/.agents/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agents/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/.agents/skills/architecture/SKILL.md +57 -0
- package/.agents/skills/architecture/context-discovery.md +43 -0
- package/.agents/skills/architecture/examples.md +94 -0
- package/.agents/skills/architecture/pattern-selection.md +68 -0
- package/.agents/skills/architecture/patterns-reference.md +50 -0
- package/.agents/skills/architecture/trade-off-analysis.md +77 -0
- package/.agents/skills/bash-linux/SKILL.md +201 -0
- package/.agents/skills/behavioral-modes/SKILL.md +264 -0
- package/.agents/skills/brainstorming/SKILL.md +164 -0
- package/.agents/skills/brainstorming/dynamic-questioning.md +359 -0
- package/.agents/skills/clean-code/SKILL.md +200 -0
- package/.agents/skills/code-review-checklist/SKILL.md +125 -0
- package/.agents/skills/database-design/SKILL.md +54 -0
- package/.agents/skills/database-design/database-selection.md +43 -0
- package/.agents/skills/database-design/indexing.md +39 -0
- package/.agents/skills/database-design/migrations.md +50 -0
- package/.agents/skills/database-design/optimization.md +36 -0
- package/.agents/skills/database-design/orm-selection.md +30 -0
- package/.agents/skills/database-design/schema-design.md +56 -0
- package/.agents/skills/database-design/scripts/schema_validator.py +172 -0
- package/.agents/skills/deployment-procedures/SKILL.md +241 -0
- package/.agents/skills/doc.md +177 -0
- package/.agents/skills/documentation-templates/SKILL.md +194 -0
- package/.agents/skills/frontend-design/SKILL.md +418 -0
- package/.agents/skills/frontend-design/animation-guide.md +331 -0
- package/.agents/skills/frontend-design/color-system.md +307 -0
- package/.agents/skills/frontend-design/decision-trees.md +418 -0
- package/.agents/skills/frontend-design/motion-graphics.md +306 -0
- package/.agents/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.agents/skills/frontend-design/scripts/ux_audit.py +727 -0
- package/.agents/skills/frontend-design/typography-system.md +345 -0
- package/.agents/skills/frontend-design/ux-psychology.md +1118 -0
- package/.agents/skills/frontend-design/visual-effects.md +383 -0
- package/.agents/skills/game-development/2d-games/SKILL.md +119 -0
- package/.agents/skills/game-development/3d-games/SKILL.md +135 -0
- package/.agents/skills/game-development/SKILL.md +167 -0
- package/.agents/skills/game-development/game-art/SKILL.md +185 -0
- package/.agents/skills/game-development/game-audio/SKILL.md +190 -0
- package/.agents/skills/game-development/game-design/SKILL.md +129 -0
- package/.agents/skills/game-development/mobile-games/SKILL.md +108 -0
- package/.agents/skills/game-development/multiplayer/SKILL.md +132 -0
- package/.agents/skills/game-development/pc-games/SKILL.md +144 -0
- package/.agents/skills/game-development/vr-ar/SKILL.md +123 -0
- package/.agents/skills/game-development/web-games/SKILL.md +150 -0
- package/.agents/skills/geo-fundamentals/SKILL.md +155 -0
- package/.agents/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/.agents/skills/i18n-localization/SKILL.md +154 -0
- package/.agents/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.agents/skills/intelligent-routing/SKILL.md +335 -0
- package/.agents/skills/lint-and-validate/SKILL.md +44 -0
- package/.agents/skills/lint-and-validate/scripts/lint_runner.py +184 -0
- package/.agents/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/.agents/skills/mcp-builder/SKILL.md +176 -0
- package/.agents/skills/mobile-design/SKILL.md +394 -0
- package/.agents/skills/mobile-design/decision-trees.md +516 -0
- package/.agents/skills/mobile-design/mobile-backend.md +491 -0
- package/.agents/skills/mobile-design/mobile-color-system.md +420 -0
- package/.agents/skills/mobile-design/mobile-debugging.md +122 -0
- package/.agents/skills/mobile-design/mobile-design-thinking.md +355 -0
- package/.agents/skills/mobile-design/mobile-navigation.md +458 -0
- package/.agents/skills/mobile-design/mobile-performance.md +767 -0
- package/.agents/skills/mobile-design/mobile-testing.md +356 -0
- package/.agents/skills/mobile-design/mobile-typography.md +432 -0
- package/.agents/skills/mobile-design/platform-android.md +666 -0
- package/.agents/skills/mobile-design/platform-ios.md +561 -0
- package/.agents/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/.agents/skills/mobile-design/touch-psychology.md +537 -0
- package/.agents/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +311 -0
- package/.agents/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +241 -0
- package/.agents/skills/nextjs-react-expert/3-server-server-side-performance.md +489 -0
- package/.agents/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +263 -0
- package/.agents/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/.agents/skills/nextjs-react-expert/6-rendering-rendering-performance.md +431 -0
- package/.agents/skills/nextjs-react-expert/7-js-javascript-performance.md +683 -0
- package/.agents/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +149 -0
- package/.agents/skills/nextjs-react-expert/SKILL.md +286 -0
- package/.agents/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/.agents/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/.agents/skills/nodejs-best-practices/SKILL.md +333 -0
- package/.agents/skills/parallel-agents/SKILL.md +193 -0
- package/.agents/skills/performance-profiling/SKILL.md +149 -0
- package/.agents/skills/performance-profiling/scripts/lighthouse_audit.py +120 -0
- package/.agents/skills/plan-writing/SKILL.md +152 -0
- package/.agents/skills/powershell-windows/SKILL.md +166 -0
- package/.agents/skills/python-patterns/SKILL.md +441 -0
- package/.agents/skills/red-team-tactics/SKILL.md +203 -0
- package/.agents/skills/refactoring-patterns/SKILL.md +43 -0
- package/.agents/skills/rust-pro/SKILL.md +190 -0
- package/.agents/skills/seo-fundamentals/SKILL.md +135 -0
- package/.agents/skills/seo-fundamentals/scripts/seo_checker.py +215 -0
- package/.agents/skills/server-management/SKILL.md +161 -0
- package/.agents/skills/systematic-debugging/SKILL.md +114 -0
- package/.agents/skills/tailwind-patterns/SKILL.md +269 -0
- package/.agents/skills/tdd-workflow/SKILL.md +149 -0
- package/.agents/skills/testing-patterns/SKILL.md +178 -0
- package/.agents/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/.agents/skills/vulnerability-scanner/SKILL.md +276 -0
- package/.agents/skills/vulnerability-scanner/checklists.md +131 -0
- package/.agents/skills/vulnerability-scanner/scripts/__pycache__/security_scan.cpython-310.pyc +0 -0
- package/.agents/skills/vulnerability-scanner/scripts/security_scan.py +524 -0
- package/.agents/skills/web-design-guidelines/SKILL.md +57 -0
- package/.agents/skills/webapp-testing/SKILL.md +187 -0
- package/.agents/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/.agents/workflows/brainstorm.md +113 -0
- package/.agents/workflows/create.md +59 -0
- package/.agents/workflows/debug.md +103 -0
- package/.agents/workflows/deploy.md +176 -0
- package/.agents/workflows/enhance.md +63 -0
- package/.agents/workflows/orchestrate.md +242 -0
- package/.agents/workflows/plan.md +89 -0
- package/.agents/workflows/preview.md +80 -0
- package/.agents/workflows/restore-localize-compat.md +525 -0
- package/.agents/workflows/status.md +86 -0
- package/.agents/workflows/test.md +144 -0
- package/.agents/workflows/ui-ux-pro-max.md +295 -0
- package/.spec/profiles/codex/AGENTS.spec.md +7 -0
- package/.spec/profiles/codex/ling.spec.rules.md +4 -0
- package/.spec/profiles/gemini/GEMINI.spec.md +5 -0
- package/.spec/references/README.md +36 -0
- package/.spec/references/cse-quickstart.md +96 -0
- package/.spec/references/gda-framework.md +394 -0
- package/.spec/references/harness-engineering-digest.md +93 -0
- package/.spec/skills/cybernetic-systems-engineering/SKILL.md +792 -0
- package/.spec/skills/cybernetic-systems-engineering/agents/openai.yaml +5 -0
- package/.spec/skills/cybernetic-systems-engineering/assets/quickstart.md +96 -0
- package/.spec/skills/cybernetic-systems-engineering/references/README.md +36 -0
- package/.spec/skills/cybernetic-systems-engineering/references/gda-framework.md +394 -0
- package/.spec/skills/cybernetic-systems-engineering/scripts/issues.csv +20 -0
- package/.spec/skills/harness-engineering/SKILL.md +100 -0
- package/.spec/skills/harness-engineering/agents/openai.yaml +4 -0
- package/.spec/skills/harness-engineering/references/harness-engineering-digest.md +93 -0
- package/.spec/templates/driver-prompt.md +7 -0
- package/.spec/templates/handoff.md +9 -0
- package/.spec/templates/issues.template.csv +2 -0
- package/.spec/templates/phase-acceptance.md +9 -0
- package/.spec/templates/review-report.md +9 -0
- package/AGENT_FLOW.md +609 -0
- package/CHANGELOG.md +43 -0
- package/LICENSE +21 -0
- package/README.md +359 -0
- package/bin/adapters/base.js +63 -0
- package/bin/adapters/codex.js +421 -0
- package/bin/adapters/gemini.js +157 -0
- package/bin/ag-kit.js +2266 -0
- package/bin/core/builder.js +80 -0
- package/bin/core/generator.js +59 -0
- package/bin/core/resource-loader.js +64 -0
- package/bin/core/transformer.js +208 -0
- package/bin/interactive.js +65 -0
- package/bin/ling.js +3 -0
- package/bin/utils/atomic-writer.js +97 -0
- package/bin/utils/git-helper.js +68 -0
- package/bin/utils/managed-block.js +65 -0
- package/bin/utils/manifest.js +244 -0
- package/bin/utils.js +89 -0
- package/docs/PLAN.md +54 -0
- package/docs/TECH.md +191 -0
- package/package.json +56 -0
- package/scripts/ci-verify.js +110 -0
- package/scripts/clean.js +123 -0
- package/scripts/health-check.js +143 -0
- package/scripts/health-check.sh +6 -0
- package/scripts/postinstall-check.js +112 -0
- package/scripts/run-tests.js +49 -0
- package/tests/atomic-writer.test.js +47 -0
- package/tests/clean-script.test.js +77 -0
- package/tests/cli-smoke.test.js +479 -0
- package/tests/codex-adapter.test.js +132 -0
- package/tests/doctor.test.js +94 -0
- package/tests/gemini-adapter.test.js +30 -0
- package/tests/generator.test.js +48 -0
- package/tests/git-helper.test.js +53 -0
- package/tests/global-sync.test.js +133 -0
- package/tests/health-check-script.test.js +34 -0
- package/tests/managed-block.test.js +41 -0
- package/tests/manifest.test.js +97 -0
- package/tests/package-tarball.test.js +33 -0
- package/tests/phase-c.test.js +107 -0
- package/tests/spec-profile.test.js +86 -0
- package/tests/standards-compliance.test.js +303 -0
- package/tests/transformer.test.js +74 -0
- package/tests/versioning.test.js +51 -0
package/AGENT_FLOW.md
ADDED
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
# 智能体流程架构
|
|
2
|
+
|
|
3
|
+
> **灵轨(Ling)** - 完整的 AI 智能体工作流文档
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 全流程概览图
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
+-----------------------------------------------------------------+
|
|
11
|
+
| USER REQUEST |
|
|
12
|
+
---------------------------+------------------------------------+
|
|
13
|
+
|
|
|
14
|
+
v
|
|
15
|
+
+-----------------------------------------------------------------+
|
|
16
|
+
| REQUEST CLASSIFICATION |
|
|
17
|
+
| - Analyze intent (build, debug, test, deploy, etc.) |
|
|
18
|
+
| - Identify domain (frontend, backend, mobile, etc.) |
|
|
19
|
+
| - Detect complexity (simple, medium, complex) |
|
|
20
|
+
---------------------------+------------------------------------+
|
|
21
|
+
|
|
|
22
|
+
+------------+------------+
|
|
23
|
+
| |
|
|
24
|
+
v v
|
|
25
|
+
+-------------------+ +------------------+
|
|
26
|
+
| WORKFLOW COMMAND | | DIRECT AGENT |
|
|
27
|
+
| (Slash Command) | | ASSIGNMENT |
|
|
28
|
+
--------+---------+ -------+---------+
|
|
29
|
+
| |
|
|
30
|
+
v v
|
|
31
|
+
+-------------------+ +------------------+
|
|
32
|
+
| /brainstorm | | Agent Selection |
|
|
33
|
+
| /create | | Based on Domain |
|
|
34
|
+
| /debug | | |
|
|
35
|
+
| /deploy | | - frontend-* |
|
|
36
|
+
| /enhance | | - backend-* |
|
|
37
|
+
| /orchestrate | | - mobile-* |
|
|
38
|
+
| /plan | | - database-* |
|
|
39
|
+
| /preview | | - devops-* |
|
|
40
|
+
| /status | | - test-* |
|
|
41
|
+
| /test | | - security-* |
|
|
42
|
+
| /ui-ux-pro-max | | - game-* |
|
|
43
|
+
--------+---------+ -------+---------+
|
|
44
|
+
| |
|
|
45
|
+
-----------+------------+
|
|
46
|
+
|
|
|
47
|
+
v
|
|
48
|
+
+-------------------------------------+
|
|
49
|
+
| AGENT INITIALIZATION |
|
|
50
|
+
| - Load agent persona/role |
|
|
51
|
+
| - Load required skills |
|
|
52
|
+
| - Set behavioral mode |
|
|
53
|
+
-------------+----------------------+
|
|
54
|
+
|
|
|
55
|
+
v
|
|
56
|
+
+-------------------------------------+
|
|
57
|
+
| SKILL LOADING PROTOCOL |
|
|
58
|
+
| |
|
|
59
|
+
| 1. Read SKILL.md metadata |
|
|
60
|
+
| 2. Load references/ (if needed) |
|
|
61
|
+
| 3. Execute scripts/ (if needed) |
|
|
62
|
+
| 4. Apply rules and patterns |
|
|
63
|
+
-------------+----------------------+
|
|
64
|
+
|
|
|
65
|
+
v
|
|
66
|
+
+-------------------------------------+
|
|
67
|
+
| TASK EXECUTION |
|
|
68
|
+
| |
|
|
69
|
+
| - Analyze codebase |
|
|
70
|
+
| - Apply best practices |
|
|
71
|
+
| - Generate/modify code |
|
|
72
|
+
| - Run validations |
|
|
73
|
+
| - Execute tests |
|
|
74
|
+
-------------+----------------------+
|
|
75
|
+
|
|
|
76
|
+
v
|
|
77
|
+
+-------------------------------------+
|
|
78
|
+
| VALIDATION LAYER |
|
|
79
|
+
| |
|
|
80
|
+
| Quick Check (checklist.py): |
|
|
81
|
+
| - Security scan |
|
|
82
|
+
| - Code quality (lint/types) |
|
|
83
|
+
| - Schema validation |
|
|
84
|
+
| - Test suite |
|
|
85
|
+
| - UX audit |
|
|
86
|
+
| - SEO check |
|
|
87
|
+
| |
|
|
88
|
+
| Full Check (verify_all.py): |
|
|
89
|
+
| - All above + Lighthouse |
|
|
90
|
+
| - E2E tests (Playwright) |
|
|
91
|
+
| - Bundle analysis |
|
|
92
|
+
| - Mobile audit |
|
|
93
|
+
| - i18n check |
|
|
94
|
+
-------------+----------------------+
|
|
95
|
+
|
|
|
96
|
+
v
|
|
97
|
+
+-------------------------------------+
|
|
98
|
+
| RESULT DELIVERY |
|
|
99
|
+
| - Present changes to user |
|
|
100
|
+
| - Provide explanations |
|
|
101
|
+
| - Suggest next steps |
|
|
102
|
+
------------------------------------+
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 智能体详细流程
|
|
108
|
+
|
|
109
|
+
### 1. **请求入口类型**
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
User Input Types:
|
|
113
|
+
+-------------------------------------------------------------+
|
|
114
|
+
| A. Natural Language Request |
|
|
115
|
+
| "Build a React dashboard with charts" |
|
|
116
|
+
| |
|
|
117
|
+
| B. Slash Command |
|
|
118
|
+
| "/create feature: user authentication" |
|
|
119
|
+
| |
|
|
120
|
+
| C. Domain-Specific Request |
|
|
121
|
+
| "Optimize database queries" -> database-architect |
|
|
122
|
+
| "Fix security vulnerability" -> security-auditor |
|
|
123
|
+
| "Deploy to AWS" -> devops-engineer |
|
|
124
|
+
------------------------------------------------------------+
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
#### 苏格拉底门禁协议
|
|
128
|
+
|
|
129
|
+
在实现前先确认:
|
|
130
|
+
|
|
131
|
+
- **新功能** -> 至少提出 3 个战略性问题
|
|
132
|
+
- **Bug 修复** -> 确认理解 + 询问影响
|
|
133
|
+
- **模糊请求** -> 询问目的、用户、范围
|
|
134
|
+
|
|
135
|
+
### 2. **智能体选择矩阵**
|
|
136
|
+
|
|
137
|
+
#### 智能体路由检查清单(强制)
|
|
138
|
+
|
|
139
|
+
在任何代码/设计工作之前:
|
|
140
|
+
|
|
141
|
+
| 步骤 | 检查项 | 未满足时 |
|
|
142
|
+
| ---- | ---------------------------- | ---------------------------------------- |
|
|
143
|
+
| 1 | 识别正确智能体 | -> 分析请求领域 |
|
|
144
|
+
| 2 | 阅读智能体的 .md 文件 | -> 打开 `.agent/agents/{agent}.md` |
|
|
145
|
+
| 3 | 宣布智能体 | -> ` Applying knowledge of @[agent]...` |
|
|
146
|
+
| 4 | 从 frontmatter 加载 skills | -> 检查 `skills:` 字段 |
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
Request Domain -> Agent Mapping:
|
|
150
|
+
|
|
151
|
+
+----------------------+---------------------+--------------------------+
|
|
152
|
+
| Domain | Primary Agent | Skills Loaded |
|
|
153
|
+
---------------------+---------------------+--------------------------+
|
|
154
|
+
| UI/UX Design | frontend-specialist | nextjs-react-expert |
|
|
155
|
+
| | | frontend-design |
|
|
156
|
+
| | | tailwind-patterns |
|
|
157
|
+
| | | web-design-guidelines |
|
|
158
|
+
---------------------+---------------------+--------------------------+
|
|
159
|
+
| API Development | backend-specialist | api-patterns |
|
|
160
|
+
| | | nodejs-best-practices |
|
|
161
|
+
| | | rust-pro |
|
|
162
|
+
---------------------+---------------------+--------------------------+
|
|
163
|
+
| Database Design | database-architect | database-design |
|
|
164
|
+
---------------------+---------------------+--------------------------+
|
|
165
|
+
| Mobile App | mobile-developer | mobile-design |
|
|
166
|
+
---------------------+---------------------+--------------------------+
|
|
167
|
+
| Game Development | game-developer | game-development |
|
|
168
|
+
---------------------+---------------------+--------------------------+
|
|
169
|
+
| DevOps/Deployment | devops-engineer | docker-expert |
|
|
170
|
+
| | | deployment-procedures |
|
|
171
|
+
---------------------+---------------------+--------------------------+
|
|
172
|
+
| Security Audit | security-auditor | vulnerability-scanner |
|
|
173
|
+
---------------------+---------------------+--------------------------+
|
|
174
|
+
| Penetration Testing | penetration-tester | red-team-tactics |
|
|
175
|
+
---------------------+---------------------+--------------------------+
|
|
176
|
+
| Testing | test-engineer | testing-patterns |
|
|
177
|
+
| | | webapp-testing |
|
|
178
|
+
| | | tdd-workflow |
|
|
179
|
+
---------------------+---------------------+--------------------------+
|
|
180
|
+
| Debugging | debugger | systematic-debugging |
|
|
181
|
+
---------------------+---------------------+--------------------------+
|
|
182
|
+
| Performance | performance- | performance-profiling |
|
|
183
|
+
| | optimizer | |
|
|
184
|
+
---------------------+---------------------+--------------------------+
|
|
185
|
+
| SEO | seo-specialist | seo-fundamentals |
|
|
186
|
+
| | | geo-fundamentals |
|
|
187
|
+
---------------------+---------------------+--------------------------+
|
|
188
|
+
| Documentation | documentation- | documentation-templates |
|
|
189
|
+
| | writer | |
|
|
190
|
+
---------------------+---------------------+--------------------------+
|
|
191
|
+
| Planning/Discovery | project-planner | brainstorming |
|
|
192
|
+
| | | plan-writing |
|
|
193
|
+
| | | architecture |
|
|
194
|
+
---------------------+---------------------+--------------------------+
|
|
195
|
+
| Multi-Agent Tasks | orchestrator | parallel-agents |
|
|
196
|
+
| | | behavioral-modes |
|
|
197
|
+
---------------------+---------------------+--------------------------+
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### 3. **技能加载协议**
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
+-------------------------------------------------------------+
|
|
204
|
+
| SKILL LOADING FLOW |
|
|
205
|
+
------------------------------------------------------------+
|
|
206
|
+
|
|
207
|
+
Step 1: Match Request to Skill
|
|
208
|
+
+------------------------------------------+
|
|
209
|
+
| User: "Build a REST API" |
|
|
210
|
+
| v |
|
|
211
|
+
| Keyword Match: "API" -> api-patterns |
|
|
212
|
+
-----------------------------------------+
|
|
213
|
+
v
|
|
214
|
+
Step 2: Load Skill Metadata
|
|
215
|
+
+------------------------------------------+
|
|
216
|
+
| Read: .agent/skills/api-patterns/ |
|
|
217
|
+
| - SKILL.md (main instructions) |
|
|
218
|
+
-----------------------------------------+
|
|
219
|
+
v
|
|
220
|
+
Step 3: Load References (if needed)
|
|
221
|
+
+------------------------------------------+
|
|
222
|
+
| Read: api-patterns/rest.md |
|
|
223
|
+
| api-patterns/graphql.md |
|
|
224
|
+
| api-patterns/auth.md |
|
|
225
|
+
| api-patterns/documentation.md |
|
|
226
|
+
-----------------------------------------+
|
|
227
|
+
v
|
|
228
|
+
Step 4: Execute Scripts (if needed)
|
|
229
|
+
+------------------------------------------+
|
|
230
|
+
| Run: scripts/api_validator.py |
|
|
231
|
+
| (validates API design) |
|
|
232
|
+
-----------------------------------------+
|
|
233
|
+
v
|
|
234
|
+
Step 5: Apply Knowledge
|
|
235
|
+
+------------------------------------------+
|
|
236
|
+
| Agent now has: |
|
|
237
|
+
| - API design patterns |
|
|
238
|
+
| - Authentication strategies |
|
|
239
|
+
| - Documentation templates |
|
|
240
|
+
| - Validation scripts |
|
|
241
|
+
-----------------------------------------+
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### 相关技能模式
|
|
245
|
+
|
|
246
|
+
Skills(技能)相互联动:
|
|
247
|
+
- `frontend-design` -> `web-design-guidelines`(编码后)
|
|
248
|
+
- `web-design-guidelines` -> `frontend-design`(编码前)
|
|
249
|
+
|
|
250
|
+
> **注意**:Scripts(脚本)不会自动执行。AI 仅提出运行建议,需用户确认。
|
|
251
|
+
|
|
252
|
+
### 4. **工作流命令执行**
|
|
253
|
+
|
|
254
|
+
```
|
|
255
|
+
Slash Command Flow:
|
|
256
|
+
|
|
257
|
+
/brainstorm
|
|
258
|
+
v
|
|
259
|
+
1. Load: brainstorming skill
|
|
260
|
+
2. Apply: Socratic questioning
|
|
261
|
+
3. Output: Structured discovery document
|
|
262
|
+
|
|
263
|
+
/create
|
|
264
|
+
v
|
|
265
|
+
1. Detect: Project type (web/mobile/api/game)
|
|
266
|
+
2. Load: app-builder skill + domain-specific skills
|
|
267
|
+
3. Select: Template from app-builder/templates/
|
|
268
|
+
4. Scaffold: Generate project structure
|
|
269
|
+
5. Validate: Run checklist.py
|
|
270
|
+
|
|
271
|
+
/debug
|
|
272
|
+
v
|
|
273
|
+
1. Load: systematic-debugging skill
|
|
274
|
+
2. Analyze: Error logs, stack traces
|
|
275
|
+
3. Apply: Root cause analysis
|
|
276
|
+
4. Suggest: Fix with code examples
|
|
277
|
+
5. Test: Verify fix works
|
|
278
|
+
|
|
279
|
+
/deploy
|
|
280
|
+
v
|
|
281
|
+
1. Load: deployment-procedures skill
|
|
282
|
+
2. Detect: Platform (Vercel, AWS, Docker, etc.)
|
|
283
|
+
3. Prepare: Build artifacts
|
|
284
|
+
4. Execute: Deployment scripts
|
|
285
|
+
5. Verify: Health checks
|
|
286
|
+
6. Output: Deployment URL
|
|
287
|
+
|
|
288
|
+
/test
|
|
289
|
+
v
|
|
290
|
+
1. Load: testing-patterns + webapp-testing skills
|
|
291
|
+
2. Detect: Test framework (Jest, Vitest, Playwright)
|
|
292
|
+
3. Generate: Test cases
|
|
293
|
+
4. Execute: Run tests
|
|
294
|
+
5. Report: Coverage + results
|
|
295
|
+
|
|
296
|
+
/orchestrate
|
|
297
|
+
v
|
|
298
|
+
1. Load: parallel-agents skill
|
|
299
|
+
2. Decompose: Task into subtasks
|
|
300
|
+
3. Assign: Each subtask to specialist agent
|
|
301
|
+
4. Coordinate: Parallel execution
|
|
302
|
+
5. Merge: Combine results
|
|
303
|
+
6. Validate: Run full verification
|
|
304
|
+
|
|
305
|
+
/plan
|
|
306
|
+
v
|
|
307
|
+
1. Load: plan-writing + architecture skills
|
|
308
|
+
2. Analyze: Requirements
|
|
309
|
+
3. Break down: Tasks with estimates
|
|
310
|
+
4. Output: Structured plan with milestones
|
|
311
|
+
|
|
312
|
+
/restore-localize-compat
|
|
313
|
+
v
|
|
314
|
+
1. Load: i18n-localization + intelligent-routing skills
|
|
315
|
+
2. Compare: current doc vs reference baseline
|
|
316
|
+
3. Restore: mechanism structure first
|
|
317
|
+
4. Localize: semantic Chinese translation only
|
|
318
|
+
5. Verify: compatibility notes remain minimal
|
|
319
|
+
|
|
320
|
+
/ui-ux-pro-max
|
|
321
|
+
v
|
|
322
|
+
1. Load: ui-ux-pro-max skill
|
|
323
|
+
2. Access: 50 design styles
|
|
324
|
+
3. Access: 21 color palettes
|
|
325
|
+
4. Access: 50 font combinations
|
|
326
|
+
5. Generate: Professional UI with selected style
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
### 5. **多智能体编排**
|
|
330
|
+
|
|
331
|
+
```
|
|
332
|
+
Complex Task -> /orchestrate -> Multiple Specialist Personas
|
|
333
|
+
|
|
334
|
+
Example: "Build a full-stack e-commerce app"
|
|
335
|
+
|
|
336
|
+
+-------------------------------------------------------------+
|
|
337
|
+
| ORCHESTRATOR AGENT |
|
|
338
|
+
| Decomposes task into sequential workstreams |
|
|
339
|
+
------------------------------------------------------------+
|
|
340
|
+
|
|
|
341
|
+
+---------------------+---------------------+
|
|
342
|
+
| | |
|
|
343
|
+
v v v
|
|
344
|
+
+---------------+ +---------------+ +---------------+
|
|
345
|
+
| FRONTEND | | BACKEND | | DATABASE |
|
|
346
|
+
| SPECIALIST | | SPECIALIST | | ARCHITECT |
|
|
347
|
+
| | | | | |
|
|
348
|
+
| Skills: | | Skills: | | Skills: |
|
|
349
|
+
| - react-* | | - api-* | | - database-* |
|
|
350
|
+
| - nextjs-* | | - nodejs-* | | - prisma-* |
|
|
351
|
+
| - tailwind-* | | - nestjs-* | | |
|
|
352
|
+
| | | | | |
|
|
353
|
+
| Builds: | | Builds: | | Builds: |
|
|
354
|
+
| - UI/UX | | - REST API | | - Schema |
|
|
355
|
+
| - Components | | - Auth | | - Migrations |
|
|
356
|
+
| - Pages | | - Business | | - Indexes |
|
|
357
|
+
------+-------+ ------+-------+ ------+-------+
|
|
358
|
+
| | |
|
|
359
|
+
----------------+-+-------------------+
|
|
360
|
+
|
|
|
361
|
+
v
|
|
362
|
+
+-------------------------------------+
|
|
363
|
+
| CODE COHERENCE |
|
|
364
|
+
| - AI maintains consistency |
|
|
365
|
+
| - Sequential context switching |
|
|
366
|
+
| - Ensure API contracts match |
|
|
367
|
+
-------------+----------------------+
|
|
368
|
+
|
|
|
369
|
+
v
|
|
370
|
+
+-------------------------------------+
|
|
371
|
+
| VALIDATION (All Agents) |
|
|
372
|
+
| - test-engineer -> Tests |
|
|
373
|
+
| - security-auditor -> Security |
|
|
374
|
+
| - performance-optimizer -> Perf |
|
|
375
|
+
-------------+----------------------+
|
|
376
|
+
|
|
|
377
|
+
v
|
|
378
|
+
+-------------------------------------+
|
|
379
|
+
| DEPLOYMENT |
|
|
380
|
+
| - devops-engineer -> Deploy |
|
|
381
|
+
------------------------------------+
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
### 6. **验证与质量门禁**
|
|
385
|
+
|
|
386
|
+
```
|
|
387
|
+
+-------------------------------------------------------------+
|
|
388
|
+
| VALIDATION PIPELINE |
|
|
389
|
+
------------------------------------------------------------+
|
|
390
|
+
|
|
391
|
+
During Development (Quick Checks):
|
|
392
|
+
+------------------------------------------+
|
|
393
|
+
| python .agent/scripts/checklist.py . |
|
|
394
|
+
-----------------------------------------+
|
|
395
|
+
| OK Security Scan (vulnerabilities) |
|
|
396
|
+
| OK Code Quality (ESLint, TypeScript) |
|
|
397
|
+
| OK Schema Validation (Prisma/DB) |
|
|
398
|
+
| OK Test Suite (Unit tests) |
|
|
399
|
+
| OK UX Audit (Accessibility) |
|
|
400
|
+
| OK SEO Check (Meta tags, performance) |
|
|
401
|
+
-----------------------------------------+
|
|
402
|
+
Time: ~30 seconds
|
|
403
|
+
|
|
404
|
+
Pre-Deployment (Full Verification):
|
|
405
|
+
+------------------------------------------------------+
|
|
406
|
+
| python .agent/scripts/verify_all.py . |
|
|
407
|
+
| --url http://localhost:3000 |
|
|
408
|
+
-----------------------------------------------------+
|
|
409
|
+
| OK All Quick Checks |
|
|
410
|
+
| OK Lighthouse Audit (Core Web Vitals) |
|
|
411
|
+
| OK Playwright E2E Tests |
|
|
412
|
+
| OK Bundle Analysis (Size, tree-shaking) |
|
|
413
|
+
| OK Mobile Audit (Responsive, touch targets) |
|
|
414
|
+
| OK i18n Check (Translations, locale) |
|
|
415
|
+
-----------------------------------------------------+
|
|
416
|
+
Time: ~3-5 minutes
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
---
|
|
420
|
+
|
|
421
|
+
## 技能与脚本映射
|
|
422
|
+
|
|
423
|
+
```
|
|
424
|
+
Skills with Automated Scripts:
|
|
425
|
+
|
|
426
|
+
+-------------------------+----------------------------------+
|
|
427
|
+
| Skill | Script |
|
|
428
|
+
------------------------+----------------------------------+
|
|
429
|
+
| api-patterns | scripts/api_validator.py |
|
|
430
|
+
| database-design | scripts/schema_validator.py |
|
|
431
|
+
| frontend-design | scripts/accessibility_checker.py |
|
|
432
|
+
| | scripts/ux_audit.py |
|
|
433
|
+
| geo-fundamentals | scripts/geo_checker.py |
|
|
434
|
+
| i18n-localization | scripts/i18n_checker.py |
|
|
435
|
+
| lint-and-validate | scripts/lint_runner.py |
|
|
436
|
+
| | scripts/type_coverage.py |
|
|
437
|
+
| mobile-design | scripts/mobile_audit.py |
|
|
438
|
+
| nextjs-react-expert | scripts/react_performance_checker.py |
|
|
439
|
+
| performance-profiling | scripts/lighthouse_audit.py |
|
|
440
|
+
| seo-fundamentals | scripts/seo_checker.py |
|
|
441
|
+
| testing-patterns | scripts/test_runner.py |
|
|
442
|
+
| vulnerability-scanner | scripts/security_scan.py |
|
|
443
|
+
| webapp-testing | scripts/playwright_runner.py |
|
|
444
|
+
------------------------+----------------------------------+
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
---
|
|
448
|
+
|
|
449
|
+
## 完整请求生命周期示例
|
|
450
|
+
|
|
451
|
+
```
|
|
452
|
+
User Request: "Build a Next.js dashboard with authentication"
|
|
453
|
+
|
|
454
|
+
1. REQUEST CLASSIFICATION
|
|
455
|
+
- Type: Build new feature
|
|
456
|
+
- Domain: Frontend + Backend
|
|
457
|
+
- Complexity: Medium-High
|
|
458
|
+
- Suggested: /create or /orchestrate
|
|
459
|
+
|
|
460
|
+
2. WORKFLOW SELECTION
|
|
461
|
+
- User chooses: /orchestrate (multi-agent approach)
|
|
462
|
+
|
|
463
|
+
3. ORCHESTRATOR DECOMPOSITION
|
|
464
|
+
- Frontend: Dashboard UI (React components)
|
|
465
|
+
- Backend: Auth API (JWT, session management)
|
|
466
|
+
- Database: User schema (Prisma)
|
|
467
|
+
- Testing: E2E auth flow
|
|
468
|
+
|
|
469
|
+
4. AGENT ASSIGNMENT
|
|
470
|
+
- frontend-specialist
|
|
471
|
+
| - Skills: nextjs-react-expert, tailwind-patterns, frontend-design
|
|
472
|
+
- backend-specialist
|
|
473
|
+
| - Skills: api-patterns, nodejs-best-practices
|
|
474
|
+
- database-architect
|
|
475
|
+
| - Skills: database-design
|
|
476
|
+
- test-engineer
|
|
477
|
+
- Skills: testing-patterns, webapp-testing
|
|
478
|
+
|
|
479
|
+
5. SEQUENTIAL MULTI-DOMAIN EXECUTION
|
|
480
|
+
Note: AI processes each domain sequentially, switching context between specialist "personas."
|
|
481
|
+
This is NOT true parallel execution but simulated multi-agent behavior.
|
|
482
|
+
|
|
483
|
+
- Frontend builds:
|
|
484
|
+
| - app/dashboard/page.tsx (Server Component)
|
|
485
|
+
| - components/DashboardLayout.tsx
|
|
486
|
+
| - components/LoginForm.tsx
|
|
487
|
+
| - lib/auth-client.ts
|
|
488
|
+
- Backend builds:
|
|
489
|
+
| - app/api/auth/login/route.ts
|
|
490
|
+
| - app/api/auth/logout/route.ts
|
|
491
|
+
| - lib/jwt.ts
|
|
492
|
+
| - middleware.ts
|
|
493
|
+
- Database builds:
|
|
494
|
+
| - prisma/schema.prisma (User, Session models)
|
|
495
|
+
| - prisma/migrations/
|
|
496
|
+
- Testing builds:
|
|
497
|
+
- tests/auth.spec.ts (Playwright)
|
|
498
|
+
- tests/dashboard.spec.ts
|
|
499
|
+
|
|
500
|
+
6. CODE INTEGRATION
|
|
501
|
+
Reality Note: AI writes code as a continuous stream, maintaining consistency.
|
|
502
|
+
There is no "merge" step - it's all generated coherently from the start.
|
|
503
|
+
|
|
504
|
+
- AI maintains coherence across domains
|
|
505
|
+
- Resolves import paths
|
|
506
|
+
- Ensures type safety
|
|
507
|
+
- Connects API routes to UI
|
|
508
|
+
|
|
509
|
+
7. VALIDATION
|
|
510
|
+
- checklist.py
|
|
511
|
+
| OK Security: No leaked secrets
|
|
512
|
+
| OK Lint: No ESLint errors
|
|
513
|
+
| OK Types: TypeScript passes
|
|
514
|
+
| OK Tests: Auth flow passes
|
|
515
|
+
- verify_all.py
|
|
516
|
+
OK E2E: Login -> Dashboard -> Logout works
|
|
517
|
+
OK Accessibility: WCAG AA compliant
|
|
518
|
+
OK Performance: Lighthouse score > 90
|
|
519
|
+
|
|
520
|
+
8. RESULT DELIVERY
|
|
521
|
+
- User receives:
|
|
522
|
+
- Complete codebase
|
|
523
|
+
- Documentation (how to run)
|
|
524
|
+
- Test reports
|
|
525
|
+
- Deployment instructions
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
---
|
|
529
|
+
|
|
530
|
+
## 统计与指标
|
|
531
|
+
|
|
532
|
+
```
|
|
533
|
+
+----------------------------------------------------------+
|
|
534
|
+
| SYSTEM CAPABILITIES |
|
|
535
|
+
---------------------------------------------------------+
|
|
536
|
+
| Total Agents: 20 |
|
|
537
|
+
| Total Skills: 36 |
|
|
538
|
+
| Total Workflows: 11 |
|
|
539
|
+
| Master Scripts: 2 (checklist, verify_all) |
|
|
540
|
+
| Skill-Level Scripts: 18 |
|
|
541
|
+
| Coverage: ~90% web/mobile development |
|
|
542
|
+
| |
|
|
543
|
+
| Supported Frameworks: |
|
|
544
|
+
| - Frontend: React, Next.js, Vue, Nuxt, Astro |
|
|
545
|
+
| - Backend: Node.js, NestJS, FastAPI, Express |
|
|
546
|
+
| - Mobile: React Native, Flutter |
|
|
547
|
+
| - Database: Prisma, TypeORM, Sequelize |
|
|
548
|
+
| - Testing: Jest, Vitest, Playwright, Cypress |
|
|
549
|
+
| - DevOps: Docker, Vercel, AWS, GitHub Actions |
|
|
550
|
+
---------------------------------------------------------+
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
---
|
|
554
|
+
|
|
555
|
+
## 最佳实践
|
|
556
|
+
|
|
557
|
+
### 各工作流的适用场景
|
|
558
|
+
|
|
559
|
+
```
|
|
560
|
+
/brainstorm
|
|
561
|
+
OK Unclear requirements
|
|
562
|
+
OK Need to explore options
|
|
563
|
+
OK Complex problem needs breaking down
|
|
564
|
+
|
|
565
|
+
/create
|
|
566
|
+
OK New feature in existing project
|
|
567
|
+
OK Small-to-medium complexity
|
|
568
|
+
OK Single domain (frontend OR backend)
|
|
569
|
+
|
|
570
|
+
/orchestrate
|
|
571
|
+
OK Full-stack features
|
|
572
|
+
OK Complex multi-step tasks
|
|
573
|
+
OK Need multiple specialist agents
|
|
574
|
+
|
|
575
|
+
/debug
|
|
576
|
+
OK Bug reports
|
|
577
|
+
OK Unexpected behavior
|
|
578
|
+
OK Performance issues
|
|
579
|
+
|
|
580
|
+
/test
|
|
581
|
+
OK Need test coverage
|
|
582
|
+
OK Before deployment
|
|
583
|
+
OK After major changes
|
|
584
|
+
|
|
585
|
+
/deploy
|
|
586
|
+
OK Ready to ship
|
|
587
|
+
OK After all tests pass
|
|
588
|
+
OK Need production URL
|
|
589
|
+
|
|
590
|
+
/plan
|
|
591
|
+
OK Large projects
|
|
592
|
+
OK Need time estimates
|
|
593
|
+
OK Team coordination needed
|
|
594
|
+
```
|
|
595
|
+
|
|
596
|
+
---
|
|
597
|
+
|
|
598
|
+
## 快速索引
|
|
599
|
+
|
|
600
|
+
- **架构(Architecture)**: `.agent/ARCHITECTURE.md`
|
|
601
|
+
- **智能体(Agents)**: `.agent/agents/`
|
|
602
|
+
- **技能(Skills)**: `.agent/skills/`
|
|
603
|
+
- **工作流(Workflows)**: `.agent/workflows/`
|
|
604
|
+
- **脚本(Scripts)**: `.agent/scripts/`
|
|
605
|
+
|
|
606
|
+
---
|
|
607
|
+
|
|
608
|
+
**最后更新**:2026-01-26
|
|
609
|
+
**版本**:2.0.1
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# 更新日志
|
|
2
|
+
|
|
3
|
+
本文件记录灵轨(Ling)的重要变更。
|
|
4
|
+
|
|
5
|
+
格式基于 [Keep a Changelog](https://keepachangelog.com/en/2.0.0/),
|
|
6
|
+
本项目遵循 [Semantic Versioning](https://semver.org/spec/v2.0.0.html)。
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [ling-1.0.0] - 2026-03-13
|
|
11
|
+
|
|
12
|
+
### 版本与标签
|
|
13
|
+
|
|
14
|
+
- npm 包版本遵循 SemVer:`1.0.0`
|
|
15
|
+
- git tag 与 CLI 显示统一使用:`ling-1.0.0`
|
|
16
|
+
|
|
17
|
+
### 新增
|
|
18
|
+
|
|
19
|
+
- 品牌更名基础设施:
|
|
20
|
+
- 主命令切换为 `ling`
|
|
21
|
+
- `ag-kit` 保留兼容入口
|
|
22
|
+
- 目标目录结构:`gemini -> .agent/`,`codex -> .agents/`
|
|
23
|
+
- 控制目录、索引和备份默认迁移到 `~/.ling/`
|
|
24
|
+
- `antigravity.rules` 收敛为 `ling.rules`
|
|
25
|
+
- Spec Profile 全局层最小闭环:
|
|
26
|
+
- `ling spec status`
|
|
27
|
+
- `ling spec enable`
|
|
28
|
+
- `ling spec disable`
|
|
29
|
+
- 内置 `harness-engineering` 与 `cybernetic-systems-engineering`
|
|
30
|
+
- 内置 templates / references 资产与回退能力
|
|
31
|
+
|
|
32
|
+
### 修复
|
|
33
|
+
|
|
34
|
+
- 分发模板与脚本文本清理装饰性字符:避免在模板文本与脚本输出中使用 Emoji 或装饰性 Unicode,提升跨平台终端显示一致性。
|
|
35
|
+
- Web 文档站快捷键提示对齐跨平台:搜索入口提示使用 `Cmd + K`(macOS)或 `Ctrl + K`(其他平台)。
|
|
36
|
+
- 安全扫描器稳定性改进:减少自扫误报、提升依赖锁文件识别准确性,并验证 Web 基础安全响应头配置。
|
|
37
|
+
|
|
38
|
+
## Legacy
|
|
39
|
+
|
|
40
|
+
本项目在 Ling 重启前的 2.x/3.x 版本记录已冻结,不再维护。
|
|
41
|
+
|
|
42
|
+
[Unreleased]: https://github.com/MisonL/Ling/compare/ling-1.0.0...HEAD
|
|
43
|
+
[ling-1.0.0]: https://github.com/MisonL/Ling/releases/tag/ling-1.0.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 VUDOVN
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|