Skip to content

Commit 235e066

Browse files
committed
feat(spec): add workflow diagram to documentation
Add Mermaid.js diagram visualizing Spec-Kit integration workflow, showing how SketchRunContext loads spec commands and integrates with AI assistant prompts.
1 parent 6568b5b commit 235e066

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/spec/index.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,30 @@ permalink: /spec-driven
1313

1414
这两个集成允许 AI 代理利用预定义的工作流、模板和最佳实践,提供一致的高质量结果。
1515

16+
```mermaid
17+
graph TD
18+
A[SketchRunContext.create] --> B{Check SpecKit Available}
19+
B -->|Yes| C[Load SpecKit Commands]
20+
B -->|No| D[Return Empty String]
21+
C --> E[Format as Markdown]
22+
E --> F[Include in System Prompt]
23+
F --> G[sketch.vm Template]
24+
25+
H[.github/prompts/] --> I[speckit.plan.prompt.md]
26+
H --> J[speckit.clarify.prompt.md]
27+
H --> K[speckit.*.prompt.md]
28+
29+
I --> C
30+
J --> C
31+
K --> C
32+
33+
G --> L[AI Assistant Context]
34+
35+
style A fill:#e1f5ff
36+
style G fill:#fff4e1
37+
style L fill:#e8f5e9
38+
style H fill:#f3e5f5
39+
```
1640

1741
### 快速开始:Spec-Kit
1842

0 commit comments

Comments
 (0)