6aspec 2.0.0-dev.10

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.
Files changed (110) hide show
  1. package/.6aspec/rules/biz/api_rule.md +578 -0
  2. package/.6aspec/rules/biz/background_job_rule.md +719 -0
  3. package/.6aspec/rules/biz/c_user_system_rule.md +240 -0
  4. package/.6aspec/rules/biz/code.md +39 -0
  5. package/.6aspec/rules/biz/event_subscriber_rule.md +529 -0
  6. package/.6aspec/rules/biz/project-structure.md +90 -0
  7. package/.6aspec/rules/biz/scheduled_job_rule.md +850 -0
  8. package/.6aspec/rules/brown/brown_archive_sop.md +132 -0
  9. package/.6aspec/rules/brown/brown_constitution.md +20 -0
  10. package/.6aspec/rules/brown/brown_continue_sop.md +97 -0
  11. package/.6aspec/rules/brown/brown_design_sop.md +155 -0
  12. package/.6aspec/rules/brown/brown_ff_sop.md +194 -0
  13. package/.6aspec/rules/brown/brown_impact_sop.md +293 -0
  14. package/.6aspec/rules/brown/brown_implement_sop.md +133 -0
  15. package/.6aspec/rules/brown/brown_list_sop.md +69 -0
  16. package/.6aspec/rules/brown/brown_new_sop.md +257 -0
  17. package/.6aspec/rules/brown/brown_proposal_sop.md +160 -0
  18. package/.6aspec/rules/brown/brown_quick_sop.md +134 -0
  19. package/.6aspec/rules/brown/brown_review_sop.md +270 -0
  20. package/.6aspec/rules/brown/brown_rollback_sop.md +188 -0
  21. package/.6aspec/rules/brown/brown_specs_sop.md +228 -0
  22. package/.6aspec/rules/brown/brown_status_sop.md +135 -0
  23. package/.6aspec/rules/brown/brown_tasks_sop.md +202 -0
  24. package/.6aspec/rules/brown/brown_understand_sop.md +208 -0
  25. package/.6aspec/rules/brown/brown_verify_sop.md +360 -0
  26. package/.6aspec/rules/green/6A_archive_sop.md +301 -0
  27. package/.6aspec/rules/green/6A_clarify_sop.md +238 -0
  28. package/.6aspec/rules/green/6A_code_implementation_sop.md +110 -0
  29. package/.6aspec/rules/green/6A_constitution.md +52 -0
  30. package/.6aspec/rules/green/6A_continue_sop.md +186 -0
  31. package/.6aspec/rules/green/6A_design_sop.md +228 -0
  32. package/.6aspec/rules/green/6A_import_model_table_sop.md +120 -0
  33. package/.6aspec/rules/green/6A_init_event_list_sop.md +62 -0
  34. package/.6aspec/rules/green/6A_init_map_sop.md +79 -0
  35. package/.6aspec/rules/green/6A_model_sop.md +210 -0
  36. package/.6aspec/rules/green/6A_new_sop.md +319 -0
  37. package/.6aspec/rules/green/6A_rollback_sop.md +198 -0
  38. package/.6aspec/rules/green/6A_status_sop.md +275 -0
  39. package/.6aspec/rules/green/6A_tasks_sop.md +181 -0
  40. package/.6aspec/rules/green/6A_visual_logic_sop.md +121 -0
  41. package/.6aspec/rules/green/green_status_schema.md +293 -0
  42. package/.6aspec/script/create_entities_from_markdown.py +688 -0
  43. package/.claude/commands/6aspec/brown/archive.md +11 -0
  44. package/.claude/commands/6aspec/brown/continue.md +11 -0
  45. package/.claude/commands/6aspec/brown/design.md +11 -0
  46. package/.claude/commands/6aspec/brown/ff.md +11 -0
  47. package/.claude/commands/6aspec/brown/impact.md +11 -0
  48. package/.claude/commands/6aspec/brown/implement.md +11 -0
  49. package/.claude/commands/6aspec/brown/list.md +11 -0
  50. package/.claude/commands/6aspec/brown/new.md +11 -0
  51. package/.claude/commands/6aspec/brown/proposal.md +11 -0
  52. package/.claude/commands/6aspec/brown/quick.md +11 -0
  53. package/.claude/commands/6aspec/brown/review.md +11 -0
  54. package/.claude/commands/6aspec/brown/rollback.md +11 -0
  55. package/.claude/commands/6aspec/brown/specs.md +11 -0
  56. package/.claude/commands/6aspec/brown/status.md +11 -0
  57. package/.claude/commands/6aspec/brown/tasks.md +11 -0
  58. package/.claude/commands/6aspec/brown/understand.md +11 -0
  59. package/.claude/commands/6aspec/brown/verify.md +11 -0
  60. package/.claude/commands/6aspec/green/archive.md +8 -0
  61. package/.claude/commands/6aspec/green/clarify.md +13 -0
  62. package/.claude/commands/6aspec/green/continue.md +8 -0
  63. package/.claude/commands/6aspec/green/design.md +8 -0
  64. package/.claude/commands/6aspec/green/execute-task.md +20 -0
  65. package/.claude/commands/6aspec/green/import-model-table.md +8 -0
  66. package/.claude/commands/6aspec/green/init.md +14 -0
  67. package/.claude/commands/6aspec/green/model.md +12 -0
  68. package/.claude/commands/6aspec/green/new.md +13 -0
  69. package/.claude/commands/6aspec/green/rollback.md +8 -0
  70. package/.claude/commands/6aspec/green/status.md +8 -0
  71. package/.claude/commands/6aspec/green/tasks.md +8 -0
  72. package/.claude/commands/6aspec/green/visual-logic.md +9 -0
  73. package/.claude/settings.local.json +8 -0
  74. package/.cursor/commands/6aspec/brown/archive.md +9 -0
  75. package/.cursor/commands/6aspec/brown/continue.md +9 -0
  76. package/.cursor/commands/6aspec/brown/design.md +9 -0
  77. package/.cursor/commands/6aspec/brown/ff.md +9 -0
  78. package/.cursor/commands/6aspec/brown/impact.md +9 -0
  79. package/.cursor/commands/6aspec/brown/implement.md +9 -0
  80. package/.cursor/commands/6aspec/brown/list.md +9 -0
  81. package/.cursor/commands/6aspec/brown/new.md +9 -0
  82. package/.cursor/commands/6aspec/brown/proposal.md +9 -0
  83. package/.cursor/commands/6aspec/brown/quick.md +9 -0
  84. package/.cursor/commands/6aspec/brown/review.md +9 -0
  85. package/.cursor/commands/6aspec/brown/rollback.md +9 -0
  86. package/.cursor/commands/6aspec/brown/specs.md +9 -0
  87. package/.cursor/commands/6aspec/brown/status.md +9 -0
  88. package/.cursor/commands/6aspec/brown/tasks.md +9 -0
  89. package/.cursor/commands/6aspec/brown/understand.md +9 -0
  90. package/.cursor/commands/6aspec/brown/verify.md +9 -0
  91. package/.cursor/commands/6aspec/green/archive.md +9 -0
  92. package/.cursor/commands/6aspec/green/clarify.md +14 -0
  93. package/.cursor/commands/6aspec/green/continue.md +9 -0
  94. package/.cursor/commands/6aspec/green/design.md +9 -0
  95. package/.cursor/commands/6aspec/green/execute-task.md +21 -0
  96. package/.cursor/commands/6aspec/green/import-model-table.md +9 -0
  97. package/.cursor/commands/6aspec/green/init.md +15 -0
  98. package/.cursor/commands/6aspec/green/model.md +13 -0
  99. package/.cursor/commands/6aspec/green/new.md +14 -0
  100. package/.cursor/commands/6aspec/green/rollback.md +9 -0
  101. package/.cursor/commands/6aspec/green/status.md +9 -0
  102. package/.cursor/commands/6aspec/green/tasks.md +9 -0
  103. package/.cursor/commands/6aspec/green/visual-logic.md +10 -0
  104. package/README.en.md +36 -0
  105. package/README.md +146 -0
  106. package/bin/6a-spec-install +54 -0
  107. package/bin/6aspec +64 -0
  108. package/lib/cli.js +451 -0
  109. package/lib/installer.js +333 -0
  110. package/package.json +62 -0
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Continue"
3
+ description: 继续当前需求的下一个阶段
4
+ category: Workflow
5
+ tags: [workflow, requirement]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Continue** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_continue_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Design"
3
+ description: Phase 3 - 技术方案设计(含 ADR 和技术债务识别)
4
+ category: Workflow
5
+ tags: [workflow, requirement, design]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Design** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_design_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Fast Forward"
3
+ description: 快速完成分析阶段(根据流程深度)
4
+ category: Workflow
5
+ tags: [workflow, requirement]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Fast Forward** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_ff_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Impact"
3
+ description: Phase 2 - 影响面分析与非功能需求评估
4
+ category: Workflow
5
+ tags: [workflow, requirement, analysis]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Impact** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_impact_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Implement"
3
+ description: 执行任务实现
4
+ category: Workflow
5
+ tags: [workflow, requirement, implementation]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Implement** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_implement_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: List"
3
+ description: 列出所有需求及其状态
4
+ category: Workflow
5
+ tags: [workflow, requirement]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **List** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_list_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: New"
3
+ description: 开始新需求分析(选择流程深度)
4
+ category: Workflow
5
+ tags: [workflow, requirement, analysis]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **New** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_new_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Proposal"
3
+ description: 创建需求提案(轻量级流程)
4
+ category: Workflow
5
+ tags: [workflow, requirement, proposal, lightweight]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Proposal** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_proposal_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Quick"
3
+ description: P2 需求快速通道(简化流程)
4
+ category: Workflow
5
+ tags: [workflow, requirement, quick]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Quick** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_quick_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Review"
3
+ description: Phase 7 - 实施后评估
4
+ category: Workflow
5
+ tags: [workflow, requirement, review]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Review** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_review_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Rollback"
3
+ description: 回退到上一个阶段
4
+ category: Workflow
5
+ tags: [workflow, requirement, rollback]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Rollback** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_rollback_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Specs"
3
+ description: Phase 1.5 - 需求规格定义
4
+ category: Workflow
5
+ tags: [workflow, requirement, specs]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Specs** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_specs_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Status"
3
+ description: 查看需求的当前状态和进度
4
+ category: Workflow
5
+ tags: [workflow, requirement]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Status** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_status_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Tasks"
3
+ description: Phase 4 - 任务拆解与排期
4
+ category: Workflow
5
+ tags: [workflow, requirement, tasks]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Tasks** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_tasks_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Understand"
3
+ description: Phase 1 - 需求理解与现状分析
4
+ category: Workflow
5
+ tags: [workflow, requirement, analysis]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Understand** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_understand_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: "6aspec:brown: Verify"
3
+ description: 验证实现是否符合需求和设计(增强版,借鉴 OpenSpec)
4
+ category: Workflow
5
+ tags: [workflow, requirement, verification]
6
+ ---
7
+
8
+ 1. Immediate response upon activation: brown field requirement workflow - **Verify** has been activated
9
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
10
+ 3. Read file: `.6aspec/rules/brown/brown_verify_sop.md`
11
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: 归档已完成的绿地需求
3
+ ---
4
+
5
+ 1. Immediate response upon activation: archive workflow has been activated
6
+ 2. Read file: `.6aspec/rules/green/6A_archive_sop.md`
7
+ 3. Strictly follow the "Archive Workflow SOP" defined in that file
8
+ 4. Archive the completed requirement
@@ -0,0 +1,13 @@
1
+ ---
2
+ description: 深化需求澄清(对已有需求进行更细节的澄清和补充)
3
+ ---
4
+
5
+ 1. Immediate response upon activation: clarify workflow has been activated
6
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
7
+ 3. **Context Restriction**:
8
+ - Do NOT perform `codebase_search`.
9
+ - Do NOT read any files unless they are explicitly provided by the user (via '@') or explicitly listed in the SOP steps.
10
+ - Stop and ask the user if you think you need more information.
11
+ 4. Read file: `.6aspec/rules/green/6A_clarify_sop.md`
12
+ 5. Strictly follow the "Requirement Clarification SOP" defined in that file
13
+ 6. Update the requirement document with clarified details
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: 自动执行绿地需求的下一步工作流
3
+ ---
4
+
5
+ 1. Immediate response upon activation: continue workflow has been activated
6
+ 2. Read file: `.6aspec/rules/green/6A_continue_sop.md`
7
+ 3. Strictly follow the "Continue Workflow SOP" defined in that file
8
+ 4. Automatically execute the next step based on current status
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: design workflow
3
+ ---
4
+ 1. Immediate response upon activation: design workflow has been activated.
5
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
6
+ 3. Read file: `.6aspec/rules/green/6A_design_sop.md`
7
+ 4. Strictly follow the "New Feature Architecture SOP" defined in that file.
8
+ 5. Output the Technical Design Document (TDD).
@@ -0,0 +1,20 @@
1
+ ---
2
+ description: 执行开发任务 (Execute Task)
3
+ ---
4
+
5
+ # 执行开发任务指令
6
+
7
+ 该指令用于触发标准化的代码实现流程。
8
+
9
+ ## 触发动作
10
+ 当用户提供一个任务文件路径(如 `@task_01_api_xxx.md`)并要求“执行任务”时:
11
+
12
+ 1. **激活角色**:切换至 `Senior Developer` 角色。
13
+ 2. **调用 SOP**:严格遵循 `.6aspec/rules/green/6A_code_implementation_sop.md` 中的协议。
14
+ - **Step 0**: 上下文加载 (Task + TDD + Rules)
15
+ - **Step 1**: 自底向上编码 (DTO -> Repo -> Service -> API)
16
+ - **Step 2**: 质量检查 (Lint)
17
+ - **Step 3**: 状态更新 (Task File + README)
18
+
19
+ ## 快捷指令参数
20
+ 用户可以直接输入:`exec @task_file`
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: import-model-table workflow
3
+ ---
4
+ 1. Immediate response upon activation: import-model-table workflow has been activated
5
+ 2. Read file: `.6aspec/rules/green/6A_import_model_table_sop.md`
6
+ 3. Strictly follow the "Import Model Table SOP" defined in that file
7
+ 4. Execute the python script to import entities
8
+
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: Init Project Artifacts (Functional Map & Event List)
3
+ ---
4
+ Immediate response upon activation: Project Artifacts Initialization workflow has been activated.
5
+
6
+ Phase 1: Functional Capability Map
7
+ 1. Read file: `.6aspec/rules/green/6A_init_map_sop.md`
8
+ 2. Strictly follow the "Init Functional Capability Map SOP" defined in that file.
9
+ 3. Execute the codebase scan and update the artifact at `.6aspec/biz/functional-capability-Map.md`.
10
+
11
+ Phase 2: Event List
12
+ 1. Read file: `.6aspec/rules/green/6A_init_event_list_sop.md`
13
+ 2. Strictly follow the "Event List Generation SOP" defined in that file.
14
+ 3. Execute the codebase scan and update the artifact at `.6aspec/biz/event-list.md`.
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: model workflow
3
+ ---
4
+ 1. Immediate response upon activation: model workflow has been activated
5
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
6
+ 3. **Context Restriction**:
7
+ - Do NOT perform `codebase_search`.
8
+ - Do NOT read any files unless they are explicitly provided by the user (via '@') or explicitly listed in the SOP steps.
9
+ - Stop and ask the user if you think you need more information.
10
+ 4. Read file: `.6aspec/rules/green/6A_model_sop.md`
11
+ 5. Strictly follow the "Domain modeling and database design Architecture SOP" defined in that file
12
+ 6. Output the Domain model and table design
@@ -0,0 +1,13 @@
1
+ ---
2
+ description: 开始一个新的绿地需求(需求澄清与结构化)
3
+ ---
4
+
5
+ 1. Immediate response upon activation: new feature workflow has been activated
6
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
7
+ 3. **Context Restriction**:
8
+ - Do NOT perform `codebase_search`.
9
+ - Do NOT read any files unless they are explicitly provided by the user (via '@') or explicitly listed in the SOP steps.
10
+ - Stop and ask the user if you think you need more information.
11
+ 4. Read file: `.6aspec/rules/green/6A_new_sop.md`
12
+ 5. Strictly follow the "New Feature Requirement SOP" defined in that file
13
+ 6. Output the structured requirement document
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: 流程回退(单步回退并删除当前阶段工件,需用户明确确认)
3
+ ---
4
+
5
+ 1. Immediate response upon activation: rollback workflow has been activated
6
+ 2. Read file: `.6aspec/rules/green/6A_rollback_sop.md`
7
+ 3. Strictly follow the "Rollback SOP" defined in that file
8
+ 4. **Do not** perform any file deletion or status file update until the user has explicitly confirmed (e.g. "确认回退" or "执行回退")
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: 查看绿地需求的当前状态和进度
3
+ ---
4
+
5
+ 1. Immediate response upon activation: status workflow has been activated
6
+ 2. Read file: `.6aspec/rules/green/6A_status_sop.md`
7
+ 3. Strictly follow the "Status Query SOP" defined in that file
8
+ 4. Output the current status and progress
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: tasks workflow
3
+ ---
4
+ 1. Immediate response upon activation: tasks workflow has been activated
5
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
6
+ 3. Read file: `.6aspec/rules/green/6A_tasks_sop.md`
7
+ 4. Strictly follow the "Task Decomposition SOP" defined in that file
8
+ 5. Output the task list
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: visual-logic workflow
3
+ ---
4
+ 1. Immediate response upon activation: visual-logic workflow has been activated.
5
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
6
+ 3. Read file: `.6aspec/rules/green/6A_visual_logic_sop.md`.
7
+ 4. Strictly follow the "Visual Logic Diagrams SOP" defined in that file.
8
+ 5. Output Mermaid diagrams as specified in the SOP.
9
+
@@ -0,0 +1,8 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(ls -la .claude/commands/6aspec/green/*.md)",
5
+ "Bash(xargs -I {} basename {})"
6
+ ]
7
+ }
8
+ }
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 归档已完成的需求
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Archive** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_archive_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 继续当前需求的下一个阶段
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Continue** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_continue_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: Phase 3 - 技术方案设计(含 ADR 和技术债务识别)
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Design** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_design_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 快速完成分析阶段(根据流程深度)
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Fast Forward** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_ff_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: Phase 2 - 影响面分析与非功能需求评估
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Impact** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_impact_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 执行任务实现
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Implement** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_implement_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 列出所有需求及其状态
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **List** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_list_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 开始新需求分析(选择流程深度)
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **New** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_new_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 创建需求提案(轻量级流程)
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Proposal** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_proposal_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: P2 需求快速通道(简化流程)
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Quick** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_quick_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: Phase 7 - 实施后评估
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Review** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_review_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 回退到上一个阶段
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Rollback** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_rollback_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: Phase 1.5 - 需求规格定义
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Specs** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_specs_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 查看需求的当前状态和进度
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Status** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_status_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: Phase 4 - 任务拆解与排期
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Tasks** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_tasks_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: Phase 1 - 需求理解与现状分析
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Understand** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_understand_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 验证实现是否符合需求和设计(增强版,借鉴 OpenSpec)
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: brown field requirement workflow - **Verify** has been activated
7
+ 2. **Read and strictly follow the brown field constitution**: `.6aspec/rules/brown/brown_constitution.md`
8
+ 3. Read file: `.6aspec/rules/brown/brown_verify_sop.md`
9
+ 4. Strictly follow the SOP defined in that file
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 归档已完成的绿地需求
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: archive workflow has been activated
7
+ 2. Read file: `.6aspec/rules/green/6A_archive_sop.md`
8
+ 3. Strictly follow the "Archive Workflow SOP" defined in that file
9
+ 4. Archive the completed requirement
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: 深化需求澄清(对已有需求进行更细节的澄清和补充)
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: clarify workflow has been activated
7
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
8
+ 3. **Context Restriction**:
9
+ - Do NOT perform `codebase_search`.
10
+ - Do NOT read any files unless they are explicitly provided by the user (via '@') or explicitly listed in the SOP steps.
11
+ - Stop and ask the user if you think you need more information.
12
+ 4. Read file: `.6aspec/rules/green/6A_clarify_sop.md`
13
+ 5. Strictly follow the "Requirement Clarification SOP" defined in that file
14
+ 6. Update the requirement document with clarified details
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: 自动执行绿地需求的下一步工作流
3
+ alwaysApply: false
4
+ ---
5
+
6
+ 1. Immediate response upon activation: continue workflow has been activated
7
+ 2. Read file: `.6aspec/rules/green/6A_continue_sop.md`
8
+ 3. Strictly follow the "Continue Workflow SOP" defined in that file
9
+ 4. Automatically execute the next step based on current status
@@ -0,0 +1,9 @@
1
+ ---
2
+ description: design workflow
3
+ alwaysApply: false
4
+ ---
5
+ 1. Immediate response upon activation: design workflow has been activated.
6
+ 2. **You must first read and strictly abide by the principles in the constitutional documents**:`.6aspec/rules/green/6A_constitution.md`
7
+ 3. Read file: `.6aspec/rules/green/6A_design_sop.md`
8
+ 4. Strictly follow the "New Feature Architecture SOP" defined in that file.
9
+ 5. Output the Technical Design Document (TDD).
@@ -0,0 +1,21 @@
1
+ ---
2
+ description: 执行开发任务 (Execute Task)
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # 执行开发任务指令
7
+
8
+ 该指令用于触发标准化的代码实现流程。
9
+
10
+ ## 触发动作
11
+ 当用户提供一个任务文件路径(如 `@task_01_api_xxx.md`)并要求“执行任务”时:
12
+
13
+ 1. **激活角色**:切换至 `Senior Developer` 角色。
14
+ 2. **调用 SOP**:严格遵循 `.6aspec/rules/green/6A_code_implementation_sop.md` 中的协议。
15
+ - **Step 0**: 上下文加载 (Task + TDD + Rules)
16
+ - **Step 1**: 自底向上编码 (DTO -> Repo -> Service -> API)
17
+ - **Step 2**: 质量检查 (Lint)
18
+ - **Step 3**: 状态更新 (Task File + README)
19
+
20
+ ## 快捷指令参数
21
+ 用户可以直接输入:`exec @task_file`