cc-devflow 1.0.1
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/.claude/CLAUDE.md +83 -0
- package/.claude/agents/architecture-designer.md +443 -0
- package/.claude/agents/bug-analyzer.md +382 -0
- package/.claude/agents/checklist-agent.md +175 -0
- package/.claude/agents/clarify-analyst.md +50 -0
- package/.claude/agents/code-reviewer.md +71 -0
- package/.claude/agents/codex-analyzer.md +39 -0
- package/.claude/agents/compatibility-checker.md +580 -0
- package/.claude/agents/consistency-checker.md +532 -0
- package/.claude/agents/impact-analyzer.md +441 -0
- package/.claude/agents/planner.md +230 -0
- package/.claude/agents/prd-writer.md +320 -0
- package/.claude/agents/project-guidelines-generator.md +1329 -0
- package/.claude/agents/qa-tester.md +313 -0
- package/.claude/agents/release-manager.md +295 -0
- package/.claude/agents/security-reviewer.md +314 -0
- package/.claude/agents/style-guide-generator.md +458 -0
- package/.claude/agents/tech-architect.md +516 -0
- package/.claude/agents/ui-designer.md +485 -0
- package/.claude/commands/code-review-high.md +58 -0
- package/.claude/commands/core-architecture.md +429 -0
- package/.claude/commands/core-guidelines.md +486 -0
- package/.claude/commands/core-roadmap.md +439 -0
- package/.claude/commands/core-style.md +293 -0
- package/.claude/commands/flow-archive.md +245 -0
- package/.claude/commands/flow-checklist.md +260 -0
- package/.claude/commands/flow-clarify.md +136 -0
- package/.claude/commands/flow-constitution.md +82 -0
- package/.claude/commands/flow-dev.md +134 -0
- package/.claude/commands/flow-epic.md +150 -0
- package/.claude/commands/flow-fix.md +104 -0
- package/.claude/commands/flow-ideate.md +214 -0
- package/.claude/commands/flow-init.md +313 -0
- package/.claude/commands/flow-new.md +394 -0
- package/.claude/commands/flow-prd.md +131 -0
- package/.claude/commands/flow-qa.md +93 -0
- package/.claude/commands/flow-release.md +92 -0
- package/.claude/commands/flow-restart.md +98 -0
- package/.claude/commands/flow-status.md +64 -0
- package/.claude/commands/flow-tech.md +142 -0
- package/.claude/commands/flow-ui.md +189 -0
- package/.claude/commands/flow-update.md +111 -0
- package/.claude/commands/flow-upgrade.md +115 -0
- package/.claude/commands/flow-verify.md +96 -0
- package/.claude/commands/problem-analyzer.md +60 -0
- package/.claude/config/quality-rules.yml +161 -0
- package/.claude/docs/SPEC_KIT_CONSTITUTION_ANALYSIS.md +426 -0
- package/.claude/docs/design/consistency-conflict-detection-algorithms.md +658 -0
- package/.claude/docs/design/intent-driven-input-design.md +380 -0
- package/.claude/docs/design/prd-version-management-design.md +437 -0
- package/.claude/docs/guides/INIT_TROUBLESHOOTING.md +117 -0
- package/.claude/docs/guides/NEW_TROUBLESHOOTING.md +151 -0
- package/.claude/docs/guides/ROADMAP_TROUBLESHOOTING.md +188 -0
- package/.claude/docs/guides/TASK_COMPLETION_MARKING.md +338 -0
- package/.claude/docs/templates/ARCHITECTURE_TEMPLATE.md +633 -0
- package/.claude/docs/templates/BACKLOG_TEMPLATE.md +261 -0
- package/.claude/docs/templates/CHECKLIST_TEMPLATE.md +52 -0
- package/.claude/docs/templates/CLARIFICATION_REPORT_TEMPLATE.md +206 -0
- package/.claude/docs/templates/CODE_REVIEW_TEMPLATE.md +71 -0
- package/.claude/docs/templates/EPIC_TEMPLATE.md +805 -0
- package/.claude/docs/templates/INIT_FLOW_TEMPLATE.md +213 -0
- package/.claude/docs/templates/INTENT_CLARIFICATION_TEMPLATE.md +57 -0
- package/.claude/docs/templates/NEW_ORCHESTRATION_TEMPLATE.md +148 -0
- package/.claude/docs/templates/PRD_TEMPLATE.md +562 -0
- package/.claude/docs/templates/RESEARCH_TEMPLATE.md +276 -0
- package/.claude/docs/templates/REVIEW-HIGH.md +57 -0
- package/.claude/docs/templates/ROADMAP_DIALOGUE_TEMPLATE.md +198 -0
- package/.claude/docs/templates/ROADMAP_TEMPLATE.md +310 -0
- package/.claude/docs/templates/STYLE_TEMPLATE.md +1266 -0
- package/.claude/docs/templates/TASKS_TEMPLATE.md +523 -0
- package/.claude/docs/templates/TECH_DESIGN_TEMPLATE.md +1019 -0
- package/.claude/docs/templates/UI_PROTOTYPE_TEMPLATE.md +1436 -0
- package/.claude/guides/agent-guides/agent-coordination-guide.md +459 -0
- package/.claude/guides/project-guidelines-system.md +463 -0
- package/.claude/guides/technical-guides/datetime-handling-guide.md +563 -0
- package/.claude/guides/technical-guides/git-github-guide.md +642 -0
- package/.claude/guides/technical-guides/test-execution-guide.md +618 -0
- package/.claude/guides/workflow-guides/bug-fix-orchestrator.md +217 -0
- package/.claude/guides/workflow-guides/flow-orchestrator.md +282 -0
- package/.claude/hooks/checklist-gate.js +397 -0
- package/.claude/hooks/error-handling-reminder.sh +12 -0
- package/.claude/hooks/error-handling-reminder.ts +459 -0
- package/.claude/hooks/post-tool-use-tracker.sh +280 -0
- package/.claude/hooks/pre-tool-use-guardrail.sh +36 -0
- package/.claude/hooks/pre-tool-use-guardrail.ts +342 -0
- package/.claude/hooks/skill-activation-prompt.sh +36 -0
- package/.claude/hooks/skill-activation-prompt.ts +214 -0
- package/.claude/hooks/state/skills-used-test-guard.json +3 -0
- package/.claude/rules/devflow-conventions.md +305 -0
- package/.claude/rules/project-constitution.md +748 -0
- package/.claude/schemas/constitution.schema.json +43 -0
- package/.claude/scripts/analyze-upgrade-impact.sh +200 -0
- package/.claude/scripts/archive-requirement.sh +351 -0
- package/.claude/scripts/calculate-checklist-completion.sh +243 -0
- package/.claude/scripts/calculate-quarter.sh +206 -0
- package/.claude/scripts/check-dependencies.sh +409 -0
- package/.claude/scripts/check-prerequisites.sh +232 -0
- package/.claude/scripts/check-task-status.sh +264 -0
- package/.claude/scripts/checklist-errors.sh +131 -0
- package/.claude/scripts/common.sh +570 -0
- package/.claude/scripts/consolidate-research.sh +182 -0
- package/.claude/scripts/create-requirement.sh +426 -0
- package/.claude/scripts/export-contracts.sh +117 -0
- package/.claude/scripts/extract-data-model.sh +78 -0
- package/.claude/scripts/generate-clarification-questions.sh +377 -0
- package/.claude/scripts/generate-clarification-report.sh +463 -0
- package/.claude/scripts/generate-quickstart.sh +146 -0
- package/.claude/scripts/generate-research-tasks.sh +157 -0
- package/.claude/scripts/generate-status-report.sh +523 -0
- package/.claude/scripts/generate-tech-analysis.sh +46 -0
- package/.claude/scripts/locate-requirement-in-roadmap.sh +233 -0
- package/.claude/scripts/manage-constitution.sh +602 -0
- package/.claude/scripts/mark-task-complete.sh +198 -0
- package/.claude/scripts/populate-research-tasks.sh +259 -0
- package/.claude/scripts/recover-workflow.sh +460 -0
- package/.claude/scripts/run-clarify-scan.sh +601 -0
- package/.claude/scripts/run-high-review.sh +62 -0
- package/.claude/scripts/run-problem-analysis.sh +68 -0
- package/.claude/scripts/setup-epic.sh +173 -0
- package/.claude/scripts/sync-roadmap-progress.sh +300 -0
- package/.claude/scripts/sync-task-marks.sh +199 -0
- package/.claude/scripts/test-clarify-scan.sh +515 -0
- package/.claude/scripts/update-agent-context.sh +806 -0
- package/.claude/scripts/validate-constitution.sh +567 -0
- package/.claude/scripts/validate-hooks.sh +487 -0
- package/.claude/scripts/validate-research.sh +332 -0
- package/.claude/scripts/validate-scope-boundary.sh +493 -0
- package/.claude/scripts/verify-setup.sh +37 -0
- package/.claude/settings.json +76 -0
- package/.claude/skills/_reference-implementations/README.md +96 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/SKILL.md +302 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/architecture-overview.md +451 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/async-and-errors.md +307 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/complete-examples.md +638 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/configuration.md +275 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/database-patterns.md +224 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/middleware-guide.md +213 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/routing-and-controllers.md +756 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/sentry-and-monitoring.md +336 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/services-and-repositories.md +789 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/testing-guide.md +235 -0
- package/.claude/skills/_reference-implementations/backend-express-prisma/resources/validation-patterns.md +754 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/SKILL.md +399 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/common-patterns.md +331 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/complete-examples.md +872 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/component-patterns.md +502 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/data-fetching.md +767 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/file-organization.md +502 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/loading-and-error-states.md +501 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/performance.md +406 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/routing-guide.md +364 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/styling-guide.md +428 -0
- package/.claude/skills/_reference-implementations/frontend-react-mui/resources/typescript-standards.md +418 -0
- package/.claude/skills/cc-devflow-orchestrator/SKILL.md +229 -0
- package/.claude/skills/constitution-guardian/SKILL.md +306 -0
- package/.claude/skills/devflow-constitution-quick-ref/SKILL.md +374 -0
- package/.claude/skills/devflow-file-standards/SKILL.md +353 -0
- package/.claude/skills/devflow-tdd-enforcer/SKILL.md +192 -0
- package/.claude/skills/skill-developer/ADVANCED.md +197 -0
- package/.claude/skills/skill-developer/HOOK_MECHANISMS.md +306 -0
- package/.claude/skills/skill-developer/PATTERNS_LIBRARY.md +152 -0
- package/.claude/skills/skill-developer/SKILL.md +426 -0
- package/.claude/skills/skill-developer/SKILL_RULES_REFERENCE.md +315 -0
- package/.claude/skills/skill-developer/TRIGGER_TYPES.md +305 -0
- package/.claude/skills/skill-developer/TROUBLESHOOTING.md +514 -0
- package/.claude/skills/skill-rules.json +213 -0
- package/.claude/tests/README.md +300 -0
- package/.claude/tests/TODO.md +69 -0
- package/.claude/tests/__pycache__/test_analyze_upgrade_impact.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_consolidate_research.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_export_contracts.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_extract_data_model.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_generate_quickstart.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/__pycache__/test_generate_research_tasks.cpython-311-pytest-7.2.2.pyc +0 -0
- package/.claude/tests/constitution/run_all_constitution_tests.sh +111 -0
- package/.claude/tests/constitution/test_agent_assignment.sh +207 -0
- package/.claude/tests/constitution/test_article_coverage.sh +201 -0
- package/.claude/tests/constitution/test_template_completeness.sh +150 -0
- package/.claude/tests/constitution/test_version_consistency.sh +120 -0
- package/.claude/tests/fixtures/spec_delta_full.md +16 -0
- package/.claude/tests/fixtures/tasks_progress_sample.md +5 -0
- package/.claude/tests/run-all-tests.sh +229 -0
- package/.claude/tests/scripts/run.sh +30 -0
- package/.claude/tests/scripts/test-framework.sh +128 -0
- package/.claude/tests/scripts/test_check_prerequisites.sh +511 -0
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak +504 -0
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak2 +505 -0
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak3 +506 -0
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak4 +507 -0
- package/.claude/tests/scripts/test_check_prerequisites.sh.bak5 +508 -0
- package/.claude/tests/scripts/test_check_task_status.sh +499 -0
- package/.claude/tests/scripts/test_common.sh +244 -0
- package/.claude/tests/scripts/test_generate_status_report.sh +71 -0
- package/.claude/tests/scripts/test_mark_task_complete.sh +441 -0
- package/.claude/tests/scripts/test_mark_task_complete.sh.backup +410 -0
- package/.claude/tests/scripts/test_recover_workflow.sh +304 -0
- package/.claude/tests/scripts/test_setup_epic.sh +437 -0
- package/.claude/tests/scripts/test_sync_task_marks.sh +196 -0
- package/.claude/tests/scripts/test_validate_constitution.sh +74 -0
- package/.claude/tests/scripts/test_validate_research.sh +462 -0
- package/.claude/tests/slugify.bats +82 -0
- package/.claude/tests/test-framework.sh +732 -0
- package/.claude/tests/test_analyze_upgrade_impact.py +34 -0
- package/.claude/tests/test_consolidate_research.py +48 -0
- package/.claude/tests/test_export_contracts.py +43 -0
- package/.claude/tests/test_extract_data_model.py +33 -0
- package/.claude/tests/test_generate_quickstart.py +50 -0
- package/.claude/tests/test_generate_research_tasks.py +52 -0
- package/.claude/tsc-cache/6e64f818-6398-49ca-8623-581a9af85c44/edited-files.log +1 -0
- package/.claude/tsc-cache/795ba6e3-b98a-423b-bab2-51aa62812569/affected-repos.txt +1 -0
- package/.claude/tsc-cache/795ba6e3-b98a-423b-bab2-51aa62812569/edited-files.log +1 -0
- package/.claude/tsc-cache/ae335694-be5a-4ba4-a1a0-b676c09a7906/affected-repos.txt +1 -0
- package/.claude/tsc-cache/ae335694-be5a-4ba4-a1a0-b676c09a7906/edited-files.log +1 -0
- package/CHANGELOG.md +507 -0
- package/LICENSE +21 -0
- package/README.md +534 -0
- package/README.zh-CN.md +530 -0
- package/bin/adapt.js +240 -0
- package/bin/cc-devflow-cli.js +185 -0
- package/bin/cc-devflow.js +78 -0
- package/config/adapters.yml +5 -0
- package/config/schema/adapters.schema.json +44 -0
- package/docs/CLAUDE.md +26 -0
- package/docs/commands/README.md +61 -0
- package/docs/commands/README.zh-CN.md +55 -0
- package/docs/commands/core-roadmap.md +106 -0
- package/docs/commands/core-roadmap.zh-CN.md +102 -0
- package/docs/commands/core-style.md +405 -0
- package/docs/commands/core-style.zh-CN.md +405 -0
- package/docs/commands/flow-init.md +134 -0
- package/docs/commands/flow-init.zh-CN.md +163 -0
- package/docs/commands/flow-new.md +274 -0
- package/docs/commands/flow-new.zh-CN.md +270 -0
- package/docs/guides/getting-started.md +204 -0
- package/docs/guides/getting-started.zh-CN.md +152 -0
- package/lib/adapters/adapter-interface.js +57 -0
- package/lib/adapters/claude-adapter.js +74 -0
- package/lib/adapters/codex-adapter.js +40 -0
- package/lib/adapters/config-validator.js +68 -0
- package/lib/adapters/logger.js +42 -0
- package/lib/adapters/registry.js +153 -0
- package/lib/compiler/CLAUDE.md +92 -0
- package/lib/compiler/__tests__/drift.test.js +215 -0
- package/lib/compiler/__tests__/errors.test.js +184 -0
- package/lib/compiler/__tests__/incremental.test.js +174 -0
- package/lib/compiler/__tests__/integration.test.js +174 -0
- package/lib/compiler/__tests__/manifest.test.js +233 -0
- package/lib/compiler/__tests__/parser.test.js +456 -0
- package/lib/compiler/__tests__/schemas.test.js +301 -0
- package/lib/compiler/__tests__/skills-registry.test.js +125 -0
- package/lib/compiler/__tests__/transformer.test.js +286 -0
- package/lib/compiler/emitters/antigravity-emitter.js +171 -0
- package/lib/compiler/emitters/base-emitter.js +73 -0
- package/lib/compiler/emitters/codex-emitter.js +52 -0
- package/lib/compiler/emitters/cursor-emitter.js +31 -0
- package/lib/compiler/emitters/index.js +50 -0
- package/lib/compiler/emitters/qwen-emitter.js +39 -0
- package/lib/compiler/errors.js +119 -0
- package/lib/compiler/index.js +256 -0
- package/lib/compiler/manifest.js +242 -0
- package/lib/compiler/parser.js +258 -0
- package/lib/compiler/platforms.js +113 -0
- package/lib/compiler/resource-copier.js +320 -0
- package/lib/compiler/rules-emitters/__tests__/antigravity-rules-emitter.test.js +191 -0
- package/lib/compiler/rules-emitters/__tests__/codex-rules-emitter.test.js +109 -0
- package/lib/compiler/rules-emitters/__tests__/cursor-rules-emitter.test.js +123 -0
- package/lib/compiler/rules-emitters/__tests__/qwen-rules-emitter.test.js +123 -0
- package/lib/compiler/rules-emitters/antigravity-rules-emitter.js +253 -0
- package/lib/compiler/rules-emitters/base-rules-emitter.js +83 -0
- package/lib/compiler/rules-emitters/codex-rules-emitter.js +116 -0
- package/lib/compiler/rules-emitters/cursor-rules-emitter.js +98 -0
- package/lib/compiler/rules-emitters/index.js +71 -0
- package/lib/compiler/rules-emitters/qwen-rules-emitter.js +70 -0
- package/lib/compiler/schemas.js +144 -0
- package/lib/compiler/skills-registry.js +225 -0
- package/lib/compiler/transformer.js +236 -0
- package/package.json +50 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# `/core-roadmap` - Generate Product Roadmap
|
|
2
|
+
|
|
3
|
+
[中文文档](./core-roadmap.zh-CN.md) | [English](./core-roadmap.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📋 Overview
|
|
8
|
+
|
|
9
|
+
Generate comprehensive product roadmap and requirement priority planning through 6-stage interactive dialogue.
|
|
10
|
+
|
|
11
|
+
## 🎯 Syntax
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
/core-roadmap
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## 🎬 Use Cases
|
|
18
|
+
|
|
19
|
+
### ✅ Recommended Scenarios
|
|
20
|
+
- Early project product direction planning
|
|
21
|
+
- Reorganize requirement priorities
|
|
22
|
+
- Present product plan to team
|
|
23
|
+
|
|
24
|
+
### ❌ Not Recommended Scenarios
|
|
25
|
+
- Single requirement development → Use `/flow-new`
|
|
26
|
+
|
|
27
|
+
## 🔄 Execution Flow (6-Stage Interactive Dialogue)
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
Stage 1: Product Vision & Goals
|
|
31
|
+
├─ Product positioning
|
|
32
|
+
├─ Core value proposition
|
|
33
|
+
└─ Long-term objectives
|
|
34
|
+
|
|
35
|
+
Stage 2: Target Users & Pain Points
|
|
36
|
+
├─ User personas
|
|
37
|
+
├─ Core pain points
|
|
38
|
+
└─ Use scenarios
|
|
39
|
+
|
|
40
|
+
Stage 3: Core Feature Planning
|
|
41
|
+
├─ Feature list
|
|
42
|
+
├─ Priority ranking
|
|
43
|
+
└─ Feature dependencies
|
|
44
|
+
|
|
45
|
+
Stage 4: Technical Architecture Design
|
|
46
|
+
├─ Tech stack selection
|
|
47
|
+
├─ System architecture
|
|
48
|
+
└─ Technical risk assessment
|
|
49
|
+
|
|
50
|
+
Stage 5: Milestones & Timeline
|
|
51
|
+
├─ Quarterly planning (Q1-Q4)
|
|
52
|
+
├─ Milestone definitions (M1, M2, M3...)
|
|
53
|
+
└─ Requirement allocation to quarters
|
|
54
|
+
|
|
55
|
+
Stage 6: Success Metrics Definition
|
|
56
|
+
├─ KPI definition
|
|
57
|
+
├─ Acceptance criteria
|
|
58
|
+
└─ Monitoring metrics
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## 📂 Output Files
|
|
62
|
+
|
|
63
|
+
- `devflow/ROADMAP.md` - Product Roadmap
|
|
64
|
+
- Product vision and goals
|
|
65
|
+
- Quarterly planning (Q1-Q4)
|
|
66
|
+
- Milestone definitions (M1-M8)
|
|
67
|
+
- Feature Roadmap table
|
|
68
|
+
- Implementation Tracking table
|
|
69
|
+
|
|
70
|
+
- `devflow/BACKLOG.md` - Requirement Backlog
|
|
71
|
+
- Priority-sorted requirement list
|
|
72
|
+
- Detailed requirement descriptions
|
|
73
|
+
- Estimates and dependencies
|
|
74
|
+
|
|
75
|
+
## 💡 Example Dialogue Snippet
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
Agent: 📋 Stage 1: Product Vision & Goals
|
|
79
|
+
Please describe your product vision and core value proposition:
|
|
80
|
+
|
|
81
|
+
User: Build an intelligent code review platform to help teams improve code quality
|
|
82
|
+
and reduce manual code review time costs.
|
|
83
|
+
|
|
84
|
+
Agent: 🎯 Stage 2: Target Users & Pain Points
|
|
85
|
+
Who are your target users? What are their core pain points?
|
|
86
|
+
|
|
87
|
+
User: Target users are Tech Leads and senior engineers in development teams.
|
|
88
|
+
Pain points:
|
|
89
|
+
1. Low manual code review efficiency
|
|
90
|
+
2. Inconsistent code quality standards
|
|
91
|
+
3. High cost of training new developers
|
|
92
|
+
|
|
93
|
+
... (Continue Stage 3-6)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## 🔗 Related Commands
|
|
97
|
+
|
|
98
|
+
- [`/core-architecture`](./core-architecture.md) - Generate architecture based on roadmap
|
|
99
|
+
- [`/flow-init`](./flow-init.md) - Initialize requirement based on roadmap
|
|
100
|
+
- `.claude/scripts/sync-roadmap-progress.sh` - Sync progress to roadmap
|
|
101
|
+
|
|
102
|
+
## 📚 Deep Reading
|
|
103
|
+
|
|
104
|
+
- [Roadmap System Guide](../guides/roadmap-guide.md)
|
|
105
|
+
- [Priority Management](../guides/priority-management.md)
|
|
106
|
+
- [ROADMAP_TEMPLATE](../../.claude/docs/templates/ROADMAP_TEMPLATE.md)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# `/core-roadmap` - 生成产品路线图
|
|
2
|
+
|
|
3
|
+
## 📋 概述
|
|
4
|
+
|
|
5
|
+
通过 6 阶段交互式对话生成完整的产品路线图和需求优先级规划。
|
|
6
|
+
|
|
7
|
+
## 🎯 语法
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
/core-roadmap
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 🎬 使用场景
|
|
14
|
+
|
|
15
|
+
### ✅ 推荐场景
|
|
16
|
+
- 项目初期规划产品方向
|
|
17
|
+
- 重新梳理需求优先级
|
|
18
|
+
- 向团队展示产品规划
|
|
19
|
+
|
|
20
|
+
### ❌ 不推荐场景
|
|
21
|
+
- 单个需求开发 → 使用 `/flow-new`
|
|
22
|
+
|
|
23
|
+
## 🔄 执行流程(6阶段交互式对话)
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Stage 1: 产品愿景与目标
|
|
27
|
+
├─ 产品定位
|
|
28
|
+
├─ 核心价值主张
|
|
29
|
+
└─ 长期目标
|
|
30
|
+
|
|
31
|
+
Stage 2: 目标用户与痛点
|
|
32
|
+
├─ 用户画像
|
|
33
|
+
├─ 核心痛点
|
|
34
|
+
└─ 使用场景
|
|
35
|
+
|
|
36
|
+
Stage 3: 核心功能规划
|
|
37
|
+
├─ 功能列表
|
|
38
|
+
├─ 优先级排序
|
|
39
|
+
└─ 功能依赖关系
|
|
40
|
+
|
|
41
|
+
Stage 4: 技术架构设计
|
|
42
|
+
├─ 技术栈选择
|
|
43
|
+
├─ 系统架构
|
|
44
|
+
└─ 技术风险评估
|
|
45
|
+
|
|
46
|
+
Stage 5: 里程碑与时间线
|
|
47
|
+
├─ 季度规划 (Q1-Q4)
|
|
48
|
+
├─ 里程碑定义 (M1, M2, M3...)
|
|
49
|
+
└─ 需求分配到季度
|
|
50
|
+
|
|
51
|
+
Stage 6: 成功指标定义
|
|
52
|
+
├─ KPI 定义
|
|
53
|
+
├─ 验收标准
|
|
54
|
+
└─ 监控指标
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## 📂 输出文件
|
|
58
|
+
|
|
59
|
+
- `devflow/ROADMAP.md` - 产品路线图
|
|
60
|
+
- 产品愿景和目标
|
|
61
|
+
- 季度规划 (Q1-Q4)
|
|
62
|
+
- 里程碑定义 (M1-M8)
|
|
63
|
+
- Feature Roadmap 表格
|
|
64
|
+
- Implementation Tracking 表格
|
|
65
|
+
|
|
66
|
+
- `devflow/BACKLOG.md` - 需求待办列表
|
|
67
|
+
- 按优先级排序的需求列表
|
|
68
|
+
- 需求详细描述
|
|
69
|
+
- 估算和依赖关系
|
|
70
|
+
|
|
71
|
+
## 💡 示例对话片段
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
Agent: 📋 Stage 1: 产品愿景与目标
|
|
75
|
+
请描述您的产品愿景和核心价值主张:
|
|
76
|
+
|
|
77
|
+
User: 构建一个智能代码审查平台,帮助团队提升代码质量,
|
|
78
|
+
减少人工 Code Review 的时间成本。
|
|
79
|
+
|
|
80
|
+
Agent: 🎯 Stage 2: 目标用户与痛点
|
|
81
|
+
谁是您的目标用户?他们的核心痛点是什么?
|
|
82
|
+
|
|
83
|
+
User: 目标用户是开发团队的 Tech Lead 和高级工程师。
|
|
84
|
+
痛点:
|
|
85
|
+
1. 人工 Code Review 效率低
|
|
86
|
+
2. 代码质量标准不统一
|
|
87
|
+
3. 新人培养成本高
|
|
88
|
+
|
|
89
|
+
... (继续 Stage 3-6)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## 🔗 相关命令
|
|
93
|
+
|
|
94
|
+
- [`/core-architecture`](./core-architecture.md) - 基于路线图生成架构
|
|
95
|
+
- [`/flow-init`](./flow-init.md) - 基于路线图初始化需求
|
|
96
|
+
- `.claude/scripts/sync-roadmap-progress.sh` - 同步进度到路线图
|
|
97
|
+
|
|
98
|
+
## 📚 深度阅读
|
|
99
|
+
|
|
100
|
+
- [路线图系统详解](../guides/roadmap-guide.md)
|
|
101
|
+
- [需求优先级管理](../guides/priority-management.md)
|
|
102
|
+
- [ROADMAP_TEMPLATE](../../docs/templates/ROADMAP_TEMPLATE.md)
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
# `/core-style` - Generate Project Design Style Guide
|
|
2
|
+
|
|
3
|
+
[中文文档](./core-style.zh-CN.md) | [English](./core-style.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📋 Overview
|
|
8
|
+
|
|
9
|
+
Generate project-level design style guide (STYLE.md) from reference designs or existing code analysis, ensuring visual consistency across the entire project.
|
|
10
|
+
|
|
11
|
+
## 🎯 Syntax
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
/core-style # Generate new design style guide
|
|
15
|
+
/core-style --update # Update existing design style guide
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 🎬 Use Cases
|
|
19
|
+
|
|
20
|
+
### ✅ Recommended Scenarios
|
|
21
|
+
- Establish design standards during project initialization
|
|
22
|
+
- Unify project visual style
|
|
23
|
+
- Extract design system from reference designs
|
|
24
|
+
- Organize design specifications from existing code
|
|
25
|
+
- Update guide when design style changes
|
|
26
|
+
|
|
27
|
+
### ❌ Not Recommended Scenarios
|
|
28
|
+
- UI design for a single requirement → Use `/flow-ui`
|
|
29
|
+
- Temporary style adjustments → Directly modify component code
|
|
30
|
+
|
|
31
|
+
## 🧭 Positioning
|
|
32
|
+
|
|
33
|
+
**Project-level command** (similar to `/core-roadmap`)
|
|
34
|
+
|
|
35
|
+
- `/core-roadmap` defines product roadmap (feature planning)
|
|
36
|
+
- `/core-style` defines design style guide (visual specification)
|
|
37
|
+
- Both are **SSOT (Single Source of Truth)** for the project
|
|
38
|
+
|
|
39
|
+
## 💡 Core Philosophy
|
|
40
|
+
|
|
41
|
+
> "Design systems are the grammar of visual language, code is the implementation of grammar. Without grammar, there is no consistency."
|
|
42
|
+
|
|
43
|
+
**Role of STYLE.md**:
|
|
44
|
+
- ✅ Single Source of Truth (SSOT) for project design
|
|
45
|
+
- ✅ Primary reference for `/flow-ui` when generating UI prototypes
|
|
46
|
+
- ✅ Mandatory specification for `/flow-dev` during frontend development
|
|
47
|
+
- ✅ Ensures visual consistency across all requirement UIs
|
|
48
|
+
|
|
49
|
+
## 🔄 Execution Flow (3 Phases)
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
Phase 1: Entry Gate & Project Type Detection
|
|
53
|
+
├─ Detect existing style guide (does STYLE.md exist?)
|
|
54
|
+
├─ Detect project type (new project vs existing project)
|
|
55
|
+
└─ Route selection (new → reference design collection / existing → code analysis)
|
|
56
|
+
|
|
57
|
+
Phase 2: Reference Design Collection & Replication (New Projects Only)
|
|
58
|
+
├─ Guide user to provide reference design (URL / screenshot / HTML+CSS)
|
|
59
|
+
├─ Generate single HTML file replica (reference-001.html)
|
|
60
|
+
├─ User refinement loop (reference-002.html, reference-003.html...)
|
|
61
|
+
└─ Confirm final version (reference-final.html)
|
|
62
|
+
|
|
63
|
+
Phase 3: Style Analysis & STYLE.md Generation
|
|
64
|
+
├─ Analyze input source (reference-final.html or project code)
|
|
65
|
+
├─ Generate style analysis document (research/style_analysis.md)
|
|
66
|
+
├─ Invoke style-guide-generator Agent
|
|
67
|
+
└─ Output STYLE.md
|
|
68
|
+
|
|
69
|
+
Exit Gate: File check + Constitution validation + Status update
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 📂 Output Files
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
devflow/
|
|
76
|
+
├── STYLE.md # Project design style guide (SSOT)
|
|
77
|
+
├── research/
|
|
78
|
+
│ ├── style_analysis.md # Style analysis document
|
|
79
|
+
│ └── style_reference_designs/ # Reference designs (new projects)
|
|
80
|
+
│ ├── reference-001.html # Version 1 replica
|
|
81
|
+
│ ├── reference-002.html # Version 2 (refined)
|
|
82
|
+
│ └── reference-final.html # Final confirmed version
|
|
83
|
+
├── project_status.json # Project status (updated)
|
|
84
|
+
└── EXECUTION_LOG.md # Execution log (updated)
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## 📋 STYLE.md Contents
|
|
88
|
+
|
|
89
|
+
STYLE.md is a comprehensive design style guide containing these 15 core sections:
|
|
90
|
+
|
|
91
|
+
1. **Overview** - Design system overview (name, version, philosophy, update history)
|
|
92
|
+
2. **Color Palette** - Color system (primary, secondary, semantic, neutrals with Hex/RGB/HSL)
|
|
93
|
+
3. **Typography** - Font system (font families, type scale, responsive fonts, combination rules)
|
|
94
|
+
4. **Spacing System** - Spacing system (base unit, spacing scale, use cases)
|
|
95
|
+
5. **Component Styles** - Component library (Button, Input, Card, Modal, etc. with variants, sizes, states)
|
|
96
|
+
6. **Shadows & Elevation** - Shadow and elevation system (shadow levels, use cases)
|
|
97
|
+
7. **Animations & Transitions** - Animations and transitions (duration, easing, common animations)
|
|
98
|
+
8. **Border Radius** - Border radius system (radius levels, use cases)
|
|
99
|
+
9. **Opacity & Transparency** - Opacity system (opacity levels, use cases)
|
|
100
|
+
10. **Common Tailwind CSS Usage** - Tailwind usage specifications (if applicable)
|
|
101
|
+
11. **Example Component Reference Design Code** - Example component code (at least 3 complete implementations)
|
|
102
|
+
12. **Design Principles** - Design principles (simplicity, consistency, accessibility, etc.)
|
|
103
|
+
13. **Responsive Design** - Responsive design (breakpoints, strategy, examples)
|
|
104
|
+
14. **Accessibility** - Accessibility (color contrast, keyboard navigation, ARIA attributes)
|
|
105
|
+
15. **Assets** - Asset specifications (Icon, Image, Logo, etc., if applicable)
|
|
106
|
+
|
|
107
|
+
**All definitions include**:
|
|
108
|
+
- Concrete values (not "TBD" or placeholders)
|
|
109
|
+
- Semantic naming (e.g., `--color-primary`, `--spacing-md`)
|
|
110
|
+
- Use case descriptions
|
|
111
|
+
- Example code (CSS Variables / Tailwind Config)
|
|
112
|
+
|
|
113
|
+
**Example code characteristics**:
|
|
114
|
+
- ✅ Copy-paste ready
|
|
115
|
+
- ✅ Complete HTML structure and CSS/Tailwind classes
|
|
116
|
+
- ✅ Clear comments explaining design decisions
|
|
117
|
+
- ❌ Not pseudocode or placeholders
|
|
118
|
+
|
|
119
|
+
## 🆕 New Project Workflow Example
|
|
120
|
+
|
|
121
|
+
### Scenario: You have a favorite design you want to use as the project's design foundation
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# Step 1: Run command
|
|
125
|
+
/core-style
|
|
126
|
+
|
|
127
|
+
# Step 2: Agent guidance
|
|
128
|
+
Agent: Detected a new project (no frontend code).
|
|
129
|
+
|
|
130
|
+
Please provide the design you want to reference:
|
|
131
|
+
- Website URL (I'll fetch and analyze it)
|
|
132
|
+
- Design screenshot (PNG/JPG)
|
|
133
|
+
- Extracted HTML + CSS code
|
|
134
|
+
|
|
135
|
+
I'll help you replicate this design into a single HTML file.
|
|
136
|
+
|
|
137
|
+
# Step 3: User provides reference
|
|
138
|
+
User: I want to reference https://example.com/design, here's the screenshot and extracted CSS...
|
|
139
|
+
|
|
140
|
+
# Step 4: Agent generates replica
|
|
141
|
+
Agent: Generated devflow/research/style_reference_designs/reference-001.html
|
|
142
|
+
|
|
143
|
+
Please open the file to review. Are you satisfied? If not, tell me what needs adjustment:
|
|
144
|
+
- Colors (e.g., primary color too bright, change to softer blue)
|
|
145
|
+
- Fonts (e.g., heading font too bold, change to medium weight)
|
|
146
|
+
- Spacing (e.g., card spacing too small, increase to 24px)
|
|
147
|
+
- Component styles (e.g., button radius too large, change to 4px)
|
|
148
|
+
|
|
149
|
+
# Step 5: User refinement
|
|
150
|
+
User: Change primary color to #3B82F6, button radius to 6px.
|
|
151
|
+
|
|
152
|
+
# Step 6: Agent adjusts and confirms again
|
|
153
|
+
Agent: Adjusted, generated reference-002.html. Please review. Satisfied?
|
|
154
|
+
|
|
155
|
+
User: Yes!
|
|
156
|
+
|
|
157
|
+
# Step 7: Agent generates STYLE.md
|
|
158
|
+
Agent: Analyzing reference-final.html, generating STYLE.md...
|
|
159
|
+
|
|
160
|
+
✅ STYLE.md generated!
|
|
161
|
+
|
|
162
|
+
Content statistics:
|
|
163
|
+
- Color definitions: 15
|
|
164
|
+
- Font definitions: 8
|
|
165
|
+
- Spacing levels: 10
|
|
166
|
+
- Component styles: 12
|
|
167
|
+
- Example code: 3
|
|
168
|
+
|
|
169
|
+
Next steps:
|
|
170
|
+
1. Review devflow/STYLE.md for completeness
|
|
171
|
+
2. Run /flow-prd to start requirement development
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## 🏢 Existing Project Workflow Example
|
|
175
|
+
|
|
176
|
+
### Scenario: You have a project with existing frontend code and want to organize design specifications
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Step 1: Run command
|
|
180
|
+
/core-style
|
|
181
|
+
|
|
182
|
+
# Step 2: Agent auto-analyzes
|
|
183
|
+
Agent: Detected an existing project (found src/components/, styles/, etc.).
|
|
184
|
+
|
|
185
|
+
Analyzing project code, extracting design styles...
|
|
186
|
+
- Analyzing files: src/components/**/*.tsx, styles/**/*.css
|
|
187
|
+
- Extracting colors: Primary #3B82F6, Secondary #8B5CF6, ...
|
|
188
|
+
- Extracting fonts: Inter, Roboto Mono
|
|
189
|
+
- Extracting spacing: 4px, 8px, 16px, 24px, 32px...
|
|
190
|
+
|
|
191
|
+
Generated devflow/research/style_analysis.md, generating STYLE.md...
|
|
192
|
+
|
|
193
|
+
✅ STYLE.md generated!
|
|
194
|
+
|
|
195
|
+
Content statistics:
|
|
196
|
+
- Color definitions: 18
|
|
197
|
+
- Font definitions: 6
|
|
198
|
+
- Spacing levels: 8
|
|
199
|
+
- Component styles: 15
|
|
200
|
+
- Example code: 3
|
|
201
|
+
|
|
202
|
+
Tech stack:
|
|
203
|
+
- Framework: React
|
|
204
|
+
- CSS: Tailwind CSS
|
|
205
|
+
|
|
206
|
+
Next steps:
|
|
207
|
+
1. Review devflow/STYLE.md for completeness
|
|
208
|
+
2. Adjust inconsistent components based on STYLE.md (if any)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## 🔄 Update Mode Example
|
|
212
|
+
|
|
213
|
+
### Scenario: Design style changes, need to update STYLE.md
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
# Step 1: Run command
|
|
217
|
+
/core-style --update
|
|
218
|
+
|
|
219
|
+
# Step 2: Agent analyzes and updates
|
|
220
|
+
Agent: Detected existing STYLE.md (v1.0.0), entering update mode.
|
|
221
|
+
|
|
222
|
+
Analyzing latest code, detecting new design patterns...
|
|
223
|
+
- Found new color: Warning #F59E0B
|
|
224
|
+
- Found new components: Tooltip, Pagination
|
|
225
|
+
- Found new spacing: 96px
|
|
226
|
+
|
|
227
|
+
Merged into STYLE.md (v1.1.0).
|
|
228
|
+
|
|
229
|
+
Update content:
|
|
230
|
+
- New colors: 1
|
|
231
|
+
- New components: 2
|
|
232
|
+
- New spacing: 1
|
|
233
|
+
|
|
234
|
+
✅ STYLE.md update complete!
|
|
235
|
+
|
|
236
|
+
Next steps:
|
|
237
|
+
1. Review changes
|
|
238
|
+
2. Update existing UI prototypes (if any)
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## 🔗 Integration with Other Workflows
|
|
242
|
+
|
|
243
|
+
### `/flow-ui` Integration
|
|
244
|
+
|
|
245
|
+
**Before** (no STYLE.md):
|
|
246
|
+
- `/flow-ui` uses default sampling strategy (80+ design masters)
|
|
247
|
+
- Each requirement's UI may have inconsistent styles
|
|
248
|
+
|
|
249
|
+
**After** (with STYLE.md):
|
|
250
|
+
- `/flow-ui` prioritizes loading `devflow/STYLE.md`
|
|
251
|
+
- All colors, fonts, spacing, components strictly follow STYLE.md
|
|
252
|
+
- Default sampling strategy only used for parts not covered by STYLE.md
|
|
253
|
+
|
|
254
|
+
**Example**:
|
|
255
|
+
```bash
|
|
256
|
+
# Run /flow-ui
|
|
257
|
+
/flow-ui "REQ-001"
|
|
258
|
+
|
|
259
|
+
# Agent auto-references STYLE.md
|
|
260
|
+
Agent: Detected devflow/STYLE.md (v1.0.0), will strictly follow design style guide.
|
|
261
|
+
|
|
262
|
+
Generating UI prototype...
|
|
263
|
+
- Primary color: #3B82F6 (from STYLE.md)
|
|
264
|
+
- Font: Inter (from STYLE.md)
|
|
265
|
+
- Button radius: 6px (from STYLE.md)
|
|
266
|
+
|
|
267
|
+
✅ UI_PROTOTYPE.html generated, all styles comply with STYLE.md.
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### `/flow-dev` Integration
|
|
271
|
+
|
|
272
|
+
**After** (with STYLE.md):
|
|
273
|
+
- `/flow-dev` auto-loads `devflow/STYLE.md` when generating frontend code
|
|
274
|
+
- All component implementations must follow STYLE.md style definitions
|
|
275
|
+
- Pay special attention to: color usage, font usage, spacing usage, component structure
|
|
276
|
+
|
|
277
|
+
**Example**:
|
|
278
|
+
```bash
|
|
279
|
+
# Run /flow-dev
|
|
280
|
+
/flow-dev "REQ-001"
|
|
281
|
+
|
|
282
|
+
# Agent auto-references STYLE.md
|
|
283
|
+
Agent: Detected devflow/STYLE.md (v1.0.0), all frontend code will follow design style guide.
|
|
284
|
+
|
|
285
|
+
Implementing Task T003: Implement login button...
|
|
286
|
+
- Using STYLE.md Button Primary style
|
|
287
|
+
- Color: var(--color-primary)
|
|
288
|
+
- Radius: var(--radius-md)
|
|
289
|
+
- Spacing: var(--spacing-2) var(--spacing-4)
|
|
290
|
+
|
|
291
|
+
✅ Login button implementation complete, style complies with STYLE.md.
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
## 💡 Design Philosophy
|
|
295
|
+
|
|
296
|
+
### 1. SSOT Principle (Single Source of Truth)
|
|
297
|
+
- STYLE.md is the sole source of truth for project design
|
|
298
|
+
- All UI-related work must reference STYLE.md
|
|
299
|
+
- Avoid design style fragmentation and inconsistency
|
|
300
|
+
|
|
301
|
+
### 2. Consistency First
|
|
302
|
+
- Unified visual language enhances product professionalism
|
|
303
|
+
- Consistent component styles reduce development and maintenance costs
|
|
304
|
+
- Smoother, more predictable user experience
|
|
305
|
+
|
|
306
|
+
### 3. Reusability
|
|
307
|
+
- All definitions are concrete and executable
|
|
308
|
+
- Example code is copy-paste ready, not pseudocode
|
|
309
|
+
- Reduce repetitive work, improve development efficiency
|
|
310
|
+
|
|
311
|
+
### 4. Evolvability
|
|
312
|
+
- Support iteration through `--update` parameter
|
|
313
|
+
- Version control (v1.0.0, v1.1.0...)
|
|
314
|
+
- Record reasons and changes for each update
|
|
315
|
+
|
|
316
|
+
### 5. User-Centered
|
|
317
|
+
- New projects through reference design collection + refinement loop
|
|
318
|
+
- Ensure user satisfaction
|
|
319
|
+
- Avoid large-scale refactoring later
|
|
320
|
+
|
|
321
|
+
## 📊 Workflow Position
|
|
322
|
+
|
|
323
|
+
```
|
|
324
|
+
/flow-init → research.md + tasks.json
|
|
325
|
+
↓
|
|
326
|
+
/core-roadmap → ROADMAP.md + BACKLOG.md (optional, project-level)
|
|
327
|
+
↓
|
|
328
|
+
/core-style → STYLE.md (optional, project-level design style guide) ⭐ NEW
|
|
329
|
+
↓
|
|
330
|
+
/flow-prd → PRD.md
|
|
331
|
+
↓
|
|
332
|
+
/flow-tech → TECH_DESIGN.md + data-model + contracts
|
|
333
|
+
↓
|
|
334
|
+
/flow-ui → UI_PROTOTYPE.html (must reference STYLE.md) ⭐ CHANGED
|
|
335
|
+
↓
|
|
336
|
+
/flow-epic → EPIC.md + TASKS.md
|
|
337
|
+
↓
|
|
338
|
+
/flow-dev → TASKS.md execution (frontend code must reference STYLE.md) ⭐ CHANGED
|
|
339
|
+
↓
|
|
340
|
+
/flow-qa → QA reports
|
|
341
|
+
↓
|
|
342
|
+
/flow-release → PR creation
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
## ⚠️ Error Handling
|
|
346
|
+
|
|
347
|
+
| Error Scenario | Handling |
|
|
348
|
+
|----------------|----------|
|
|
349
|
+
| **STYLE.md exists without --update** | Ask for confirmation to overwrite, exit if user declines |
|
|
350
|
+
| **No frontend features and no reference design** | Prompt user to provide reference design or confirm pure backend project |
|
|
351
|
+
| **Reference design replication fails** | Request more detailed design info (HTML/CSS/screenshot) |
|
|
352
|
+
| **Agent generation fails** | Keep style_analysis.md, prompt user to check and retry |
|
|
353
|
+
| **Constitution validation fails** | Block based on severity (warning level only prompts) |
|
|
354
|
+
|
|
355
|
+
## 🎯 Next Steps
|
|
356
|
+
|
|
357
|
+
1. **Review STYLE.md** - Ensure design style guide is complete and meets project needs
|
|
358
|
+
2. **Update existing components** (existing projects) - Adjust inconsistent components based on STYLE.md
|
|
359
|
+
3. **Run /flow-prd** - Start requirement development (if applicable)
|
|
360
|
+
4. **Run /core-roadmap** - Generate product roadmap (if applicable)
|
|
361
|
+
|
|
362
|
+
## 🔗 Related Commands
|
|
363
|
+
|
|
364
|
+
- [`/core-roadmap`](./core-roadmap.md) - Generate product roadmap
|
|
365
|
+
- [`/flow-ui`](./flow-ui.md) - Generate UI prototype (will reference STYLE.md)
|
|
366
|
+
- [`/flow-dev`](./flow-dev.md) - Execute development tasks (will reference STYLE.md)
|
|
367
|
+
- [`/flow-verify`](./flow-verify.md) - Consistency check (can check if code complies with STYLE.md)
|
|
368
|
+
|
|
369
|
+
## 📚 Deep Reading
|
|
370
|
+
|
|
371
|
+
- [Design System Guide](../guides/design-system-guide.md) (TBD)
|
|
372
|
+
- [Visual Consistency Management](../guides/visual-consistency.md) (TBD)
|
|
373
|
+
- [STYLE_TEMPLATE](../../.claude/docs/templates/STYLE_TEMPLATE.md)
|
|
374
|
+
|
|
375
|
+
## ❓ FAQ
|
|
376
|
+
|
|
377
|
+
### Q: When should I run `/core-style`?
|
|
378
|
+
A:
|
|
379
|
+
- ✅ During project initialization (establish design standards)
|
|
380
|
+
- ✅ When you have a reference design to replicate
|
|
381
|
+
- ✅ When existing project needs design specification organization
|
|
382
|
+
- ✅ When design style changes (use `--update`)
|
|
383
|
+
|
|
384
|
+
### Q: What's the difference between `/core-style` and `/flow-ui`?
|
|
385
|
+
A:
|
|
386
|
+
- **core-style**: Generates **project-level** design style guide (STYLE.md), one-time or as-needed updates
|
|
387
|
+
- **flow-ui**: Generates UI prototype (UI_PROTOTYPE.html) for **specific requirements**, runs per requirement
|
|
388
|
+
|
|
389
|
+
### Q: Do I need to run `/core-style` for a pure backend project?
|
|
390
|
+
A: No. `/core-style` is designed for frontend or full-stack projects. Pure backend projects don't need a design style guide.
|
|
391
|
+
|
|
392
|
+
### Q: Can I manually edit STYLE.md after it's generated?
|
|
393
|
+
A: Yes. STYLE.md is a Markdown file, you can edit it manually. However, it's recommended to use `/core-style --update` for consistency and version control.
|
|
394
|
+
|
|
395
|
+
### Q: What if I'm not satisfied with the reference design replica?
|
|
396
|
+
A: The agent provides a refinement loop where you can adjust multiple times until satisfied. Each adjustment generates a new version (reference-002.html, reference-003.html...), and you can revert anytime.
|
|
397
|
+
|
|
398
|
+
### Q: Will STYLE.md automatically apply to code?
|
|
399
|
+
A: No automatic code modification. However, `/flow-ui` and `/flow-dev` will auto-reference STYLE.md to ensure newly generated code complies with the style guide. Existing code needs manual adjustment (or use `/flow-verify` to check inconsistencies).
|
|
400
|
+
|
|
401
|
+
### Q: If my project uses Tailwind CSS, will STYLE.md include Tailwind configuration?
|
|
402
|
+
A: Yes. The agent auto-detects the tech stack. If using Tailwind CSS, STYLE.md will include Tailwind Config example code.
|
|
403
|
+
|
|
404
|
+
### Q: What does STYLE.md contain?
|
|
405
|
+
A: Contains 15 core sections: Overview, Color Palette, Typography, Spacing System, Component Styles, Shadows, Animations, Border Radius, Opacity, Tailwind Usage, Example Code, Design Principles, Responsive Design, Accessibility, Assets. See [STYLE_TEMPLATE](../../.claude/docs/templates/STYLE_TEMPLATE.md) for details.
|