@guanlin4924/devflow-pi 0.1.93 → 0.1.94

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 (156) hide show
  1. package/README.md +6 -6
  2. package/package.json +1 -1
  3. package/plugins/devflow-core/extensions/devflow-core.ts +87 -33
  4. package/plugins/devflow-core/runtime/hooks/context_sync_gate.py +3 -3
  5. package/plugins/devflow-core/runtime/hooks/hook_common.py +65 -11
  6. package/plugins/devflow-core/runtime/hooks/start.py +13 -13
  7. package/plugins/devflow-core/skills/wireframe-proposal/SKILL.md +2 -2
  8. package/plugins/devflow-core/skills/wireframe-validate/SKILL.md +4 -4
  9. package/plugins/devflow-core/skills/workflow-orchestrator/SKILL.md +19 -19
  10. package/plugins/devflow-core/skills/workflow-orchestrator/agents/openai.yaml +2 -2
  11. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/acceptance_test_runner.py +5 -5
  12. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/advance_state.rb +9 -9
  13. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/api_test_matrix.py +2 -2
  14. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/architecture_assessment.rb +1 -1
  15. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/architecture_brief.rb +1 -1
  16. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/architecture_feasibility.rb +1 -1
  17. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/business_invalidation.rb +5 -5
  18. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/business_model_commit.rb +4 -4
  19. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/business_model_validate.py +1 -1
  20. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/business_source_resolver.rb +4 -4
  21. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/checker_adapter.rb +7 -7
  22. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/control_io.rb +51 -7
  23. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/cross_track_consistency_check.rb +1 -1
  24. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/execution_contract.rb +6 -6
  25. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/gate_runtime.rb +3 -3
  26. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/init_state.rb +5 -5
  27. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/init_workflow.rb +5 -5
  28. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/inspect_state.rb +13 -13
  29. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/machine_evidence.rb +3 -3
  30. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/manage_lessons.rb +7 -7
  31. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/parallel_recover.rb +2 -2
  32. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/parallel_run.rb +3 -3
  33. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/phase_ownership.rb +6 -6
  34. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/repair_control_plane.rb +1 -1
  35. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/requirement_coverage.rb +1 -1
  36. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/requirement_graph.rb +3 -3
  37. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/review_preflight.py +3 -3
  38. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/review_run.py +18 -18
  39. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/runtime_context_collector.rb +3 -3
  40. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/session_rollover.rb +4 -4
  41. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/static_runtime_context_collector.rb +2 -2
  42. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/sync_artifacts.rb +5 -5
  43. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/tdd_evidence.py +3 -3
  44. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/test_command_policy.py +2 -2
  45. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/test_task_binding_check.py +3 -3
  46. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/update_triage_route.rb +3 -3
  47. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/validate_state.rb +6 -6
  48. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/wireframe_commit.rb +5 -5
  49. package/plugins/devflow-core/skills/workflow-orchestrator/scripts/wireframe_validate.py +1 -1
  50. package/plugins/devflow-core/skills/workflow-orchestrator/templates/acceptance-remediation.yaml +12 -12
  51. package/plugins/devflow-core/skills/workflow-orchestrator/templates/feature-development.yaml +205 -205
  52. package/plugins/devflow-core/skills/workflow-pipeline/SKILL.md +3 -3
  53. package/plugins/devflow-core/skills/workflow-pipeline/references/pipeline-flow.md +10 -10
  54. package/plugins/devflow-core/skills/workflow-project-context/SKILL.md +14 -14
  55. package/plugins/devflow-core/skills/workflow-project-context/assets/agents-md-template.md +7 -7
  56. package/plugins/devflow-core/skills/workflow-project-context/assets/codebase-backend-spec-template.md +4 -4
  57. package/plugins/devflow-core/skills/workflow-project-context/assets/codebase-frontend-spec-template.md +4 -4
  58. package/plugins/devflow-core/skills/workflow-project-context/assets/codebase-navigation-template.md +1 -1
  59. package/plugins/devflow-core/skills/workflow-project-context/assets/context-domain-index-template.md +4 -4
  60. package/plugins/devflow-core/skills/workflow-project-context/assets/context-spec-index-template.md +10 -10
  61. package/plugins/devflow-core/skills/workflow-project-context/assets/execution-contract-template.md +2 -2
  62. package/plugins/devflow-core/skills/workflow-project-context/assets/navigation-index-template.md +18 -18
  63. package/plugins/devflow-core/skills/workflow-project-context/assets/project-initialization-template.md +32 -32
  64. package/plugins/devflow-core/skills/workflow-project-context/assets/rules-index-template.md +30 -30
  65. package/plugins/devflow-core/skills/workflow-project-context/assets/state-template.md +7 -7
  66. package/plugins/devflow-core/skills/workflow-project-context/references/navigation-guide.md +37 -37
  67. package/plugins/devflow-core/skills/workflow-project-context/scripts/validate_initialization.py +16 -16
  68. package/plugins/devflow-design/skills/workflow-api-call-guide/SKILL.md +4 -4
  69. package/plugins/devflow-design/skills/workflow-api-contract/SKILL.md +8 -8
  70. package/plugins/devflow-design/skills/workflow-api-supplement/SKILL.md +5 -5
  71. package/plugins/devflow-design/skills/workflow-architecture-feasibility/SKILL.md +1 -1
  72. package/plugins/devflow-design/skills/workflow-backend-tech-spec/SKILL.md +39 -39
  73. package/plugins/devflow-design/skills/workflow-backend-tech-spec/assets/backend-spec-template.md +10 -10
  74. package/plugins/devflow-design/skills/workflow-backend-tech-spec/references/affected-module-exploration.md +2 -2
  75. package/plugins/devflow-design/skills/workflow-backend-tech-spec/references/code-explore-guide.md +1 -1
  76. package/plugins/devflow-design/skills/workflow-backend-tech-spec/references/project-rule-contract.md +20 -20
  77. package/plugins/devflow-design/skills/workflow-design-rule-pack/SKILL.md +8 -8
  78. package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/index.md +3 -3
  79. package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/accessibility.md +2 -2
  80. package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/component-library.md +2 -2
  81. package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/design-systems.md +1 -1
  82. package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/responsive-grid.md +2 -2
  83. package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/stack-guidelines.md +6 -6
  84. package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/recommendations/ux-patterns.md +2 -2
  85. package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tokens/project-tokens.md +1 -1
  86. package/plugins/devflow-design/skills/workflow-design-rule-pack/assets/design/tools/ui-ux-pro-max/SKILL.md +12 -12
  87. package/plugins/devflow-design/skills/workflow-design-rule-pack/scripts/install.py +2 -2
  88. package/plugins/devflow-design/skills/workflow-feature-breakdown/SKILL.md +30 -30
  89. package/plugins/devflow-design/skills/workflow-feature-breakdown/assets/output-template.md +2 -2
  90. package/plugins/devflow-design/skills/workflow-frontend-tech-spec/SKILL.md +41 -41
  91. package/plugins/devflow-design/skills/workflow-frontend-tech-spec/assets/frontend-spec-template.md +15 -15
  92. package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/affected-module-exploration.md +2 -2
  93. package/plugins/devflow-design/skills/workflow-frontend-tech-spec/references/project-rule-contract.md +25 -25
  94. package/plugins/devflow-design/skills/workflow-integration-verify/SKILL.md +13 -13
  95. package/plugins/devflow-design/skills/workflow-ui-spec/SKILL.md +23 -23
  96. package/plugins/devflow-design/skills/workflow-ui-spec/assets/ui-spec-template.md +3 -3
  97. package/plugins/devflow-implementation/agents/implementation-worker.md +2 -2
  98. package/plugins/devflow-implementation/skills/workflow-bug-fix/SKILL.md +9 -9
  99. package/plugins/devflow-implementation/skills/workflow-bug-fix/references/lesson-format.md +2 -2
  100. package/plugins/devflow-implementation/skills/workflow-bug-fix/references/root-cause-ladder.md +1 -1
  101. package/plugins/devflow-implementation/skills/workflow-change-plan/SKILL.md +17 -17
  102. package/plugins/devflow-implementation/skills/workflow-change-plan/references/code-conventions.md +1 -1
  103. package/plugins/devflow-implementation/skills/workflow-change-plan/references/output-template.md +3 -3
  104. package/plugins/devflow-implementation/skills/workflow-change-plan/references/project-rule-contract.md +16 -16
  105. package/plugins/devflow-implementation/skills/workflow-execute-phase/SKILL.md +38 -38
  106. package/plugins/devflow-implementation/skills/workflow-execute-phase/references/execute-phase.md +1 -1
  107. package/plugins/devflow-intel/agents/project-scout.md +1 -1
  108. package/plugins/devflow-intel/extensions/devflow-intel.ts +20 -19
  109. package/plugins/devflow-intel/skills/code-index-query/SKILL.md +6 -6
  110. package/plugins/devflow-intel/skills/workflow-code-index/SKILL.md +12 -12
  111. package/plugins/devflow-intel/skills/workflow-code-index/references/discovery.md +2 -2
  112. package/plugins/devflow-intel/skills/workflow-code-index/references/query-guide.md +1 -1
  113. package/plugins/devflow-intel/skills/workflow-code-index/scripts/code_index.py +8 -8
  114. package/plugins/devflow-intel/skills/workflow-code-index/scripts/core/discovery.py +2 -2
  115. package/plugins/devflow-intel/skills/workflow-code-index/scripts/core/scanner.py +4 -1
  116. package/plugins/devflow-intel/skills/workflow-code-index/scripts/validators/project_binding_check.py +4 -4
  117. package/plugins/devflow-intel/skills/workflow-context-sync/SKILL.md +14 -14
  118. package/plugins/devflow-intel/skills/workflow-context-sync/scripts/context_sync_cursor.py +2 -2
  119. package/plugins/devflow-intel/skills/workflow-update-navigation/SKILL.md +26 -26
  120. package/plugins/devflow-intel/skills/workflow-update-navigation/references/incremental-update-guide.md +2 -2
  121. package/plugins/devflow-quality/skills/code-review/SKILL.md +12 -12
  122. package/plugins/devflow-quality/skills/code-review/references/spec-checklist.md +1 -1
  123. package/plugins/devflow-quality/skills/workflow-acceptance-test-design/SKILL.md +8 -8
  124. package/plugins/devflow-quality/skills/workflow-gen-test-guide/SKILL.md +6 -6
  125. package/plugins/devflow-quality/skills/workflow-gen-test-guide/legacy/SKILL.md +14 -14
  126. package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/SKILL.md +23 -23
  127. package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/references/codebase-discovery.md +9 -9
  128. package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/references/project-dsl-contract.md +1 -1
  129. package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/scripts/compile_dsl.py +2 -2
  130. package/plugins/devflow-quality/skills/workflow-generate-mainflow-cases/scripts/discover_codebases.py +2 -2
  131. package/plugins/devflow-quality/skills/workflow-release-closeout/SKILL.md +15 -15
  132. package/plugins/devflow-quality/skills/workflow-run-acceptance-tests/SKILL.md +5 -5
  133. package/plugins/devflow-requirements/skills/requirement-feasibility-review/SKILL.md +1 -1
  134. package/plugins/devflow-requirements/skills/workflow-demand-clarify/SKILL.md +10 -10
  135. package/plugins/devflow-requirements/skills/workflow-domain-modeling/SKILL.md +25 -25
  136. package/plugins/devflow-requirements/skills/workflow-requirement-baseline/SKILL.md +49 -49
  137. package/plugins/devflow-requirements/skills/workflow-requirement-baseline/assets/baseline-template.md +22 -22
  138. package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/antipatterns.md +3 -3
  139. package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/challenge-review-guide.md +3 -3
  140. package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/project-context-guide.md +11 -11
  141. package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/questioning.md +1 -1
  142. package/plugins/devflow-requirements/skills/workflow-requirement-baseline/references/requirement-review-checklist.md +4 -4
  143. package/plugins/devflow-requirements/skills/workflow-requirement-triage/SKILL.md +16 -16
  144. package/plugins/devflow-requirements/skills/workflow-wayfinder/SKILL.md +6 -6
  145. package/src/cli.ts +15 -0
  146. package/src/constants.ts +1 -1
  147. package/src/initialization-store.ts +3 -2
  148. package/src/project-context.ts +36 -14
  149. package/src/project-documents.ts +61 -61
  150. package/src/project-initializer.ts +9 -8
  151. package/src/project-layout.ts +217 -0
  152. package/src/runtime.ts +3 -3
  153. package/templates/commands/start.md +4 -4
  154. package/templates/omp/AGENTS.md +1 -1
  155. package/templates/omp/hook-config.json +7 -7
  156. package/templates/omp/index-policy.json +8 -8
@@ -38,9 +38,9 @@
38
38
 
39
39
  | 来源 | 结论 | 对本方案的影响 |
40
40
  |------|------|----------------|
41
- | `.planning/milestones/...` | {{结论}} | {{影响}} |
42
- | `.planning/requirements/...` | {{结论}} | {{影响}} |
43
- | `.planning/lessons/...` | {{结论}} | {{影响}} |
41
+ | `.devflow/planning/milestones/...` | {{结论}} | {{影响}} |
42
+ | `.devflow/planning/requirements/...` | {{结论}} | {{影响}} |
43
+ | `.devflow/planning/lessons/...` | {{结论}} | {{影响}} |
44
44
 
45
45
  ## 四、现有功能说明
46
46
 
@@ -163,13 +163,13 @@ erDiagram
163
163
 
164
164
  | 规则来源 | 是否存在 | 影响说明 |
165
165
  |----------|----------|----------|
166
- | `.planning/rules/INDEX.md` | {{是/否}} | {{说明}} |
167
- | `.planning/execution-contract.md` | {{是/否}} | {{说明}} |
168
- | `.planning/toolchain.md` | {{是/否}} | {{说明}} |
169
- | `.planning/lessons/README.md` | {{是/否}} | {{说明}} |
170
- | `.context/spec/backend/index.md` | {{是/否}} | {{说明}} |
171
- | `.context/workflow/` | {{是/否}} | {{说明}} |
172
- | `.context/lessons/README.md` | {{是/否}} | {{说明}} |
166
+ | `.devflow/planning/rules/INDEX.md` | {{是/否}} | {{说明}} |
167
+ | `.devflow/planning/execution-contract.md` | {{是/否}} | {{说明}} |
168
+ | `.devflow/planning/toolchain.md` | {{是/否}} | {{说明}} |
169
+ | `.devflow/planning/lessons/README.md` | {{是/否}} | {{说明}} |
170
+ | `.devflow/context/spec/backend/index.md` | {{是/否}} | {{说明}} |
171
+ | `.devflow/context/workflow/` | {{是/否}} | {{说明}} |
172
+ | `.devflow/context/lessons/README.md` | {{是/否}} | {{说明}} |
173
173
  | `AGENTS.md` / `CLAUDE.md` | {{是/否}} | {{说明}} |
174
174
 
175
175
  ### 9.2 适用规范
@@ -14,7 +14,7 @@
14
14
 
15
15
  ### 步骤1:定位关键文件
16
16
 
17
- 优先使用 `.planning/code-index/` 定位候选 symbol、entrypoint、calls、reads/writes 和 tested_by 关系;然后回读 `evidence_path:evidence_line` 附近源码。code-index 不存在或过期时,再按下表的目录约定和 `rg` 兜底。
17
+ 优先使用 `.devflow/planning/code-index/` 定位候选 symbol、entrypoint、calls、reads/writes 和 tested_by 关系;然后回读 `evidence_path:evidence_line` 附近源码。code-index 不存在或过期时,再按下表的目录约定和 `rg` 兜底。
18
18
 
19
19
  | 层级 | 定位方式 | 最少读取 |
20
20
  |------|----------|----------|
@@ -54,6 +54,6 @@
54
54
  - [ ] 是否有现有字段/方法/枚举的结构化表格(不是从 PRD 复制)?
55
55
  - [ ] 是否明确了每个模块是"复用"、"扩展"还是"新增"?
56
56
  - [ ] 是否实际读取了代码文件(不是仅靠文件名推断)?
57
- - [ ] 若 `.planning/code-index/` 存在,是否记录了用于定位的 symbol/relation evidence?
57
+ - [ ] 若 `.devflow/planning/code-index/` 存在,是否记录了用于定位的 symbol/relation evidence?
58
58
 
59
59
  **此检查不通过,不得进入 Phase 3(生成文档)。**
@@ -4,7 +4,7 @@ Use this guide to explore the target backend without assuming outbound-call's Go
4
4
 
5
5
  ## Exploration Order
6
6
 
7
- 1. Read `.planning/navigation/INDEX.md` → filter backend/service-type codebases → load their `{name}.md` navigation files to identify root, framework, entry points, layers, persistence, jobs, integrations, config, and commands.
7
+ 1. Read `.devflow/planning/navigation/INDEX.md` → filter backend/service-type codebases → load their `{name}.md` navigation files to identify root, framework, entry points, layers, persistence, jobs, integrations, config, and commands.
8
8
  2. Read the project rule package via `references/project-rule-contract.md`.
9
9
  3. Start from baseline `FP-*`, `BR-*`, `BC-*`, and confirmed `CR-*` decisions.
10
10
  4. Search only the relevant modules first; expand outward only when the call chain or data flow requires it.
@@ -6,30 +6,30 @@ Use this contract when generating backend technical plans. A project rule packag
6
6
 
7
7
  Look for rule sources in the target project, in this order:
8
8
 
9
- 1. `.planning/rules/INDEX.md`
10
- 2. `.planning/execution-contract.md`
11
- 3. `.planning/toolchain.md`
12
- 4. `.planning/lessons/README.md`
13
- 5. `.planning/milestones/`
14
- 6. `.planning/requirements/`
15
- 7. `.context/spec/index.md`
16
- 8. matching `.context/spec/stacks/{stack_key}.md`
17
- 9. matching `.context/spec/backend/{codebase}.md`
18
- 10. `.context/spec/backend/index.md`
19
- 11. `.context/spec/backend/`
20
- 12. `.planning/code-index/` when source-level relation facts are needed
21
- 13. `.context/workflow/tdd.md`
22
- 14. `.context/workflow/verification.md`
23
- 15. `.context/workflow/checklist.md`
24
- 16. `.context/lessons/README.md`
9
+ 1. `.devflow/planning/rules/INDEX.md`
10
+ 2. `.devflow/planning/execution-contract.md`
11
+ 3. `.devflow/planning/toolchain.md`
12
+ 4. `.devflow/planning/lessons/README.md`
13
+ 5. `.devflow/planning/milestones/`
14
+ 6. `.devflow/planning/requirements/`
15
+ 7. `.devflow/context/spec/index.md`
16
+ 8. matching `.devflow/context/spec/stacks/{stack_key}.md`
17
+ 9. matching `.devflow/context/spec/backend/{codebase}.md`
18
+ 10. `.devflow/context/spec/backend/index.md`
19
+ 11. `.devflow/context/spec/backend/`
20
+ 12. `.devflow/planning/code-index/` when source-level relation facts are needed
21
+ 13. `.devflow/context/workflow/tdd.md`
22
+ 14. `.devflow/context/workflow/verification.md`
23
+ 15. `.devflow/context/workflow/checklist.md`
24
+ 16. `.devflow/context/lessons/README.md`
25
25
  17. root `AGENTS.md`, `CLAUDE.md`, or equivalent project instruction files
26
26
 
27
27
  If none exist, explicitly write `未发现项目规则包` and continue with code exploration and conservative assumptions.
28
28
 
29
29
  History rule:
30
30
 
31
- - Use `.planning/milestones/`, `.planning/requirements/`, `.planning/lessons/`, and phase `CONTEXT.md` files as the primary history model.
32
- - Treat `.context/lessons/` and `features/` as compatible legacy/project-rule evidence only when present in the target project.
31
+ - Use `.devflow/planning/milestones/`, `.devflow/planning/requirements/`, `.devflow/planning/lessons/`, and phase `CONTEXT.md` files as the primary history model.
32
+ - Treat `.devflow/context/lessons/` and `features/` as compatible legacy/project-rule evidence only when present in the target project.
33
33
  - Do not require outbound-call style history files.
34
34
 
35
35
  ## What To Extract
@@ -37,8 +37,8 @@ History rule:
37
37
  Extract only backend-relevant rules:
38
38
 
39
39
  - Technology stack and framework.
40
- - Matching stack spec and codebase spec from `.context/spec/index.md` when available.
41
- - Code-index symbols/relations for affected entrypoints, callers, callees, data/resource reads and writes, tests, and external integrations when `.planning/code-index/` exists.
40
+ - Matching stack spec and codebase spec from `.devflow/context/spec/index.md` when available.
41
+ - Code-index symbols/relations for affected entrypoints, callers, callees, data/resource reads and writes, tests, and external integrations when `.devflow/planning/code-index/` exists.
42
42
  - Layer model and dependency direction.
43
43
  - Naming, function signature, validation, error handling, logging, transaction, pagination, permission, and data access rules.
44
44
  - Required code generation, mock generation, dependency injection, migration, or build commands.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: workflow-design-rule-pack
3
- description: Use when workflow-ui-spec or workflow-frontend-tech-spec needs a reusable UI/UX design rule package, ui-ux-pro-max recommendations, or project installation of .context/spec/design across repositories.
3
+ description: Use when workflow-ui-spec or workflow-frontend-tech-spec needs a reusable UI/UX design rule package, ui-ux-pro-max recommendations, or project installation of .devflow/context/spec/design across repositories.
4
4
  ---
5
5
 
6
6
  # Workflow Design Rule Pack
@@ -11,12 +11,12 @@ This skill provides the reusable source for the project design rule package cons
11
11
 
12
12
  Use this skill when:
13
13
 
14
- - A project lacks `.context/spec/design/index.md`.
14
+ - A project lacks `.devflow/context/spec/design/index.md`.
15
15
  - UI workflow steps need the shared UI/UX recommendation pack.
16
16
  - `ui-ux-pro-max` should be available in a project without copying it by hand.
17
17
  - The same design rules need to be reused across repositories.
18
18
 
19
- `workflow-project-context` is the default lifecycle owner for frontend projects: it invokes this installer after the code index is ready, records the result in the initialization manifest, and owns `.context/spec/design/index.md`. Call this skill directly only to repair or deliberately refresh the shared recommendation assets.
19
+ `workflow-project-context` is the default lifecycle owner for frontend projects: it invokes this installer after the code index is ready, records the result in the initialization manifest, and owns `.devflow/context/spec/design/index.md`. Call this skill directly only to repair or deliberately refresh the shared recommendation assets.
20
20
 
21
21
  Do not use this skill as a replacement for `workflow-ui-spec` or `workflow-frontend-tech-spec`. It only installs and documents shared references; workflow skills still decide how to apply them.
22
22
 
@@ -30,7 +30,7 @@ devflow_design_rule(args=[])
30
30
 
31
31
  Default behavior:
32
32
 
33
- - Copies `assets/design/` into `.context/spec/design/`.
33
+ - Copies `assets/design/` into `.devflow/context/spec/design/`.
34
34
  - Creates missing directories.
35
35
  - Does not overwrite existing project files.
36
36
  - Keeps project-specific confirmed tokens in the target project.
@@ -64,7 +64,7 @@ for path in \
64
64
  recommendations/accessibility.md \
65
65
  recommendations/component-library.md \
66
66
  tools/ui-ux-pro-max/SKILL.md; do
67
- test -s ".context/spec/design/$path"
67
+ test -s ".devflow/context/spec/design/$path"
68
68
  done
69
69
  ```
70
70
 
@@ -75,7 +75,7 @@ Pass only when every expected file exists and is non-empty. A missing file, a ze
75
75
  ## Source of Truth
76
76
 
77
77
  - Skill source: `skill://workflow-design-rule-pack/assets/design/`
78
- - Project installed copy: `.context/spec/design/`
78
+ - Project installed copy: `.devflow/context/spec/design/`
79
79
 
80
80
  Workflow skills must read the installed project copy. The project copy is the place where local overrides and confirmed project tokens live.
81
81
 
@@ -85,7 +85,7 @@ Design conclusion priority remains:
85
85
 
86
86
  1. User decisions, design artifacts, confirmed requirement baseline
87
87
  2. Existing code, component library, current project tokens
88
- 3. `.context/spec/design/tokens/project-tokens.md`
89
- 4. `.context/spec/design/recommendations/` and `ui-ux-pro-max` query results
88
+ 3. `.devflow/context/spec/design/tokens/project-tokens.md`
89
+ 4. `.devflow/context/spec/design/recommendations/` and `ui-ux-pro-max` query results
90
90
 
91
91
  Recommendation sources are never authoritative project facts unless the user or project rules explicitly confirm them.
@@ -32,9 +32,9 @@
32
32
  工具位置:
33
33
 
34
34
  ```bash
35
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --design-system -p "<Project Name>"
36
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --domain ux
37
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --stack react
35
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --design-system -p "<Project Name>"
36
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --domain ux
37
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --stack react
38
38
  ```
39
39
 
40
40
  常用域:
@@ -26,6 +26,6 @@
26
26
  ## 查询辅助
27
27
 
28
28
  ```bash
29
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "accessibility aria focus keyboard form labels color contrast" --domain ux
30
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "aria focus keyboard semantic form" --domain web
29
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "accessibility aria focus keyboard form labels color contrast" --domain ux
30
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "aria focus keyboard semantic form" --domain web
31
31
  ```
@@ -26,6 +26,6 @@
26
26
  需要补充组件模式时,可查:
27
27
 
28
28
  ```bash
29
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "form button modal table accessibility" --domain ux
30
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "button form table" --stack shadcn
29
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "form button modal table accessibility" --domain ux
30
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "button form table" --stack shadcn
31
31
  ```
@@ -13,7 +13,7 @@
13
13
  优先用动态工具生成完整建议:
14
14
 
15
15
  ```bash
16
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<product type> <industry> <style keywords>" --design-system -p "<Feature or Project Name>" --format markdown
16
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<product type> <industry> <style keywords>" --design-system -p "<Feature or Project Name>" --format markdown
17
17
  ```
18
18
 
19
19
  输出只能进入 UI-SPEC 的“推荐方案(待拍板)”或“待确认事项”,不能直接进入“设计稿事实”。
@@ -24,6 +24,6 @@
24
24
  ## 查询辅助
25
25
 
26
26
  ```bash
27
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "responsive layout mobile horizontal scroll touch target" --domain ux
28
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "responsive layout" --stack html-tailwind
27
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "responsive layout mobile horizontal scroll touch target" --domain ux
28
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "responsive layout" --stack html-tailwind
29
29
  ```
@@ -1,17 +1,17 @@
1
1
  # Stack Guidelines Recommendations
2
2
 
3
- 本文件提供技术栈实现参考。项目 `.context/spec/stacks/`、前端代码约定和 workflow 内置 stack slots 优先。
3
+ 本文件提供技术栈实现参考。项目 `.devflow/context/spec/stacks/`、前端代码约定和 workflow 内置 stack slots 优先。
4
4
 
5
5
  ## 使用方式
6
6
 
7
7
  按项目实际栈调用动态工具补充:
8
8
 
9
9
  ```bash
10
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "layout form table accessibility performance" --stack react
11
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "image routing cache hydration" --stack nextjs
12
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "composition api form table state" --stack vue
13
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "responsive utility accessibility" --stack html-tailwind
14
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "components theme form" --stack shadcn
10
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "layout form table accessibility performance" --stack react
11
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "image routing cache hydration" --stack nextjs
12
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "composition api form table state" --stack vue
13
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "responsive utility accessibility" --stack html-tailwind
14
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "components theme form" --stack shadcn
15
15
  ```
16
16
 
17
17
  ## 前端技术方案使用边界
@@ -35,6 +35,6 @@
35
35
  ## 查询辅助
36
36
 
37
37
  ```bash
38
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "loading error feedback duplicate submit animation" --domain ux
39
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "form validation feedback" --domain web
38
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "loading error feedback duplicate submit animation" --domain ux
39
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "form validation feedback" --domain web
40
40
  ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## 状态
6
6
 
7
- 当前项目尚未沉淀全局设计 token。workflow-ui-spec 生成某个功能的 token 时,应先写入对应功能的 `.planning/features/{功能名}/UI-SPEC.md`。
7
+ 当前项目尚未沉淀全局设计 token。workflow-ui-spec 生成某个功能的 token 时,应先写入对应功能的 `.devflow/planning/features/{功能名}/UI-SPEC.md`。
8
8
 
9
9
  ## 允许写入本文件的条件
10
10
 
@@ -135,7 +135,7 @@ Extract key information from user request:
135
135
  **Always start with `--design-system`** to get comprehensive recommendations with reasoning:
136
136
 
137
137
  ```bash
138
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
138
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]
139
139
  ```
140
140
 
141
141
  This command:
@@ -146,7 +146,7 @@ This command:
146
146
 
147
147
  **Example:**
148
148
  ```bash
149
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
149
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "beauty spa wellness service" --design-system -p "Serenity Spa"
150
150
  ```
151
151
 
152
152
  ### Step 2b: Persist Design System (Master + Overrides Pattern)
@@ -154,7 +154,7 @@ python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "beauty spa w
154
154
  To save the design system for hierarchical retrieval across sessions, add `--persist`:
155
155
 
156
156
  ```bash
157
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name"
157
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name"
158
158
  ```
159
159
 
160
160
  This creates:
@@ -163,7 +163,7 @@ This creates:
163
163
 
164
164
  **With page-specific override:**
165
165
  ```bash
166
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"
166
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"
167
167
  ```
168
168
 
169
169
  This also creates:
@@ -179,7 +179,7 @@ This also creates:
179
179
  After getting the design system, use domain searches to get additional details:
180
180
 
181
181
  ```bash
182
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
182
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
183
183
  ```
184
184
 
185
185
  **When to use detailed searches:**
@@ -197,7 +197,7 @@ python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<keyword>" -
197
197
  Get implementation-specific best practices. If user doesn't specify a stack, **default to `html-tailwind`**.
198
198
 
199
199
  ```bash
200
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
200
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "<keyword>" --stack html-tailwind
201
201
  ```
202
202
 
203
203
  Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`, `react-native`, `flutter`, `shadcn`, `jetpack-compose`
@@ -251,7 +251,7 @@ Available stacks: `html-tailwind`, `react`, `nextjs`, `vue`, `svelte`, `swiftui`
251
251
  ### Step 2: Generate Design System (REQUIRED)
252
252
 
253
253
  ```bash
254
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
254
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "beauty spa wellness service elegant" --design-system -p "Serenity Spa"
255
255
  ```
256
256
 
257
257
  **Output:** Complete design system with pattern, style, colors, typography, effects, and anti-patterns.
@@ -260,16 +260,16 @@ python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "beauty spa w
260
260
 
261
261
  ```bash
262
262
  # Get UX guidelines for animation and accessibility
263
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
263
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "animation accessibility" --domain ux
264
264
 
265
265
  # Get alternative typography options if needed
266
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
266
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "elegant luxury serif" --domain typography
267
267
  ```
268
268
 
269
269
  ### Step 4: Stack Guidelines
270
270
 
271
271
  ```bash
272
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
272
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "layout responsive form" --stack html-tailwind
273
273
  ```
274
274
 
275
275
  **Then:** Synthesize design system + detailed searches and implement the design.
@@ -282,10 +282,10 @@ The `--design-system` flag supports two output formats:
282
282
 
283
283
  ```bash
284
284
  # ASCII box (default) - best for terminal display
285
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
285
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system
286
286
 
287
287
  # Markdown - best for documentation
288
- python3 .context/spec/design/tools/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
288
+ python3 .devflow/context/spec/design/tools/ui-ux-pro-max/scripts/search.py "fintech crypto" --design-system -f markdown
289
289
  ```
290
290
 
291
291
  ---
@@ -34,7 +34,7 @@ def copy_tree(src: Path, dst: Path, overwrite: bool, include_index: bool) -> tup
34
34
 
35
35
 
36
36
  def main() -> int:
37
- parser = argparse.ArgumentParser(description="Install .context/spec/design rule pack")
37
+ parser = argparse.ArgumentParser(description="Install .devflow/context/spec/design rule pack")
38
38
  parser.add_argument("--target", default=".", help="Target repository root, default current directory")
39
39
  parser.add_argument("--overwrite", action="store_true", help="Overwrite existing target files")
40
40
  parser.add_argument(
@@ -47,7 +47,7 @@ def main() -> int:
47
47
  skill_root = Path(__file__).resolve().parents[1]
48
48
  source = skill_root / "assets" / "design"
49
49
  target_root = Path(args.target).resolve()
50
- target = target_root / ".context" / "spec" / "design"
50
+ target = target_root / ".devflow/context" / "spec" / "design"
51
51
 
52
52
  if not source.exists():
53
53
  raise SystemExit(f"Source design rule pack not found: {source}")
@@ -12,15 +12,15 @@ argument-hint: <功能名> [--auto]
12
12
  user-invocable: true
13
13
  pattern: generator+reviewer
14
14
  inputs:
15
- - .planning/requirements/baseline.md
16
- - .planning/features/{功能名}/UI-SPEC.md
17
- - .planning/PROJECT.md
18
- - .planning/navigation/INDEX.md
19
- - .planning/navigation/*.md
20
- - .planning/milestones/
21
- - .planning/requirements/
22
- - .planning/lessons/README.md
23
- output: .planning/features/{功能名}/功能点梳理.md
15
+ - .devflow/planning/requirements/baseline.md
16
+ - .devflow/planning/features/{功能名}/UI-SPEC.md
17
+ - .devflow/planning/PROJECT.md
18
+ - .devflow/planning/navigation/INDEX.md
19
+ - .devflow/planning/navigation/*.md
20
+ - .devflow/planning/milestones/
21
+ - .devflow/planning/requirements/
22
+ - .devflow/planning/lessons/README.md
23
+ output: .devflow/planning/features/{功能名}/功能点梳理.md
24
24
  allowed-tools:
25
25
  - Read
26
26
  - Write
@@ -38,15 +38,15 @@ This skill consumes the requirement baseline and creates a test-readable feature
38
38
 
39
39
  Always create or update:
40
40
 
41
- - `.planning/features/{功能名}/功能点梳理.md`
42
- - `.planning/features/{功能名}/功能点梳理.meta.json` — structured metadata (fp_count, dimension_counts, page_count). Schema in `feature-development.yaml` under `steps[feature-breakdown].meta_output.fields`.
41
+ - `.devflow/planning/features/{功能名}/功能点梳理.md`
42
+ - `.devflow/planning/features/{功能名}/功能点梳理.meta.json` — structured metadata (fp_count, dimension_counts, page_count). Schema in `feature-development.yaml` under `steps[feature-breakdown].meta_output.fields`.
43
43
 
44
44
  Do not create by default:
45
45
 
46
- - `.planning/features/{功能名}/前端技术方案.md`
47
- - `.planning/features/{功能名}/后端技术方案.md`
48
- - `.planning/features/{功能名}/变更清单.md`
49
- - `.planning/requirements/baseline.md`
46
+ - `.devflow/planning/features/{功能名}/前端技术方案.md`
47
+ - `.devflow/planning/features/{功能名}/后端技术方案.md`
48
+ - `.devflow/planning/features/{功能名}/变更清单.md`
49
+ - `.devflow/planning/requirements/baseline.md`
50
50
 
51
51
  ## Argument Handling
52
52
 
@@ -58,11 +58,11 @@ Parse `$ARGUMENTS` before reading files:
58
58
  The canonical output directory must come from the baseline when available:
59
59
 
60
60
  ```text
61
- .planning/features/{功能名}/
61
+ .devflow/planning/features/{功能名}/
62
62
  ```
63
63
 
64
64
  Do not invent another directory name from the project name, PRD title, or module name.
65
- If an older baseline still points to `features/{功能名}/`, treat it as a legacy path and prefer `.planning/features/{功能名}/` for new output unless the user explicitly requests legacy compatibility.
65
+ If an older baseline still points to `features/{功能名}/`, treat it as a legacy path and prefer `.devflow/planning/features/{功能名}/` for new output unless the user explicitly requests legacy compatibility.
66
66
 
67
67
  ## Resource Loading
68
68
 
@@ -82,14 +82,14 @@ Load bundled resources only when needed:
82
82
 
83
83
  Read:
84
84
 
85
- 1. `.planning/requirements/baseline.md`
86
- 2. `.planning/PROJECT.md` if present
87
- 3. `.planning/navigation/INDEX.md` if present
88
- 4. `.planning/navigation/INDEX.md` — identify relevant codebases from the Codebase Registry, then load their navigation files (`{name}.md`)
89
- 5. `.planning/code-index/` when present and the feature breakdown needs existing route/component/API/data-flow relation facts
90
- 6. `.planning/milestones/` only when baseline historical impact references prior milestones
91
- 7. `.planning/requirements/` and `.planning/lessons/` only when baseline historical impact or challenge review references them
92
- 8. `.context/lessons/README.md` when present; load only lesson files whose title or summary matches current FP/BR/BC keywords
85
+ 1. `.devflow/planning/requirements/baseline.md`
86
+ 2. `.devflow/planning/PROJECT.md` if present
87
+ 3. `.devflow/planning/navigation/INDEX.md` if present
88
+ 4. `.devflow/planning/navigation/INDEX.md` — identify relevant codebases from the Codebase Registry, then load their navigation files (`{name}.md`)
89
+ 5. `.devflow/planning/code-index/` when present and the feature breakdown needs existing route/component/API/data-flow relation facts
90
+ 6. `.devflow/planning/milestones/` only when baseline historical impact references prior milestones
91
+ 7. `.devflow/planning/requirements/` and `.devflow/planning/lessons/` only when baseline historical impact or challenge review references them
92
+ 8. `.devflow/context/lessons/README.md` when present; load only lesson files whose title or summary matches current FP/BR/BC keywords
93
93
 
94
94
  The baseline is the source of truth. Use its:
95
95
 
@@ -126,9 +126,9 @@ Baseline section mapping:
126
126
 
127
127
  History model rule:
128
128
 
129
- - Use `.planning/milestones/`, `.planning/requirements/`, `.planning/lessons/`, and phase `CONTEXT.md` as primary history.
130
- - Treat `features/` or `.context/lessons/` as optional legacy/project-rule sources only when present and referenced by the baseline.
131
- - Treat matching `.context/lessons/` files as regression guards for review. They do not expand scope by themselves, but any current FP touching the same seam must carry the lesson as a constraint or explain why it is not applicable.
129
+ - Use `.devflow/planning/milestones/`, `.devflow/planning/requirements/`, `.devflow/planning/lessons/`, and phase `CONTEXT.md` as primary history.
130
+ - Treat `features/` or `.devflow/context/lessons/` as optional legacy/project-rule sources only when present and referenced by the baseline.
131
+ - Treat matching `.devflow/context/lessons/` files as regression guards for review. They do not expand scope by themselves, but any current FP touching the same seam must carry the lesson as a constraint or explain why it is not applicable.
132
132
 
133
133
  Current slice rule:
134
134
 
@@ -284,7 +284,7 @@ If stopping because a user answer changes baseline-level requirements, report:
284
284
 
285
285
  Read `assets/output-template.md`.
286
286
 
287
- Create `.planning/features/{功能名}/` if needed and write `.planning/features/{功能名}/功能点梳理.md`.
287
+ Create `.devflow/planning/features/{功能名}/` if needed and write `.devflow/planning/features/{功能名}/功能点梳理.md`.
288
288
 
289
289
  The document must include:
290
290
 
@@ -321,7 +321,7 @@ The document must include:
321
321
  | 重叠嗅探 | 梳理的功能是否会与某个已有功能形成"两套并存"? |
322
322
  | 历史嗅探 | `features/` 中是否有类似功能曾被做过? |
323
323
 
324
- 若 `.planning/code-index/` 存在,复用/冲突/重叠嗅探应优先查询 symbols/relations,再回读源码 evidence;缺失或过期时再用 navigation 和 `rg` 兜底。
324
+ 若 `.devflow/planning/code-index/` 存在,复用/冲突/重叠嗅探应优先查询 symbols/relations,再回读源码 evidence;缺失或过期时再用 navigation 和 `rg` 兜底。
325
325
 
326
326
  ### 7.2a 链路完整性审查(MANDATORY)
327
327
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  ## 一、来源信息
4
4
 
5
- - **需求基线**:`.planning/requirements/baseline.md`
5
+ - **需求基线**:`.devflow/planning/requirements/baseline.md`
6
6
  - **功能名称**:{{功能名称}}
7
7
  - **功能名**:{{功能名}}
8
- - **输出目录**:`.planning/features/{{功能名}}/`
8
+ - **输出目录**:`.devflow/planning/features/{{功能名}}/`
9
9
  - **生成时间**:{{日期}}
10
10
  - **当前执行切片**:{{SL-001}} — {{切片名称}}
11
11