Skip to content

Commit dfc323a

Browse files
rjmurillo-botclaude
andcommitted
docs(skillbook): convert format decision tree to Mermaid diagram
Convert text-based decision tree to Mermaid flowchart for clarity: - Visual flowchart with decision nodes - Clear YES/NO paths to Format A or Format B - Terminal node for file creation Added to: - src/claude/skillbook.md - templates/agents/skillbook.shared.md - Generated platform files (copilot-cli, vscode) Created memory file: - skill-format-selection-decision-tree.md - Added to skills-documentation-index.md Validation: 30 domains, 195 indexed files, PASSED 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5c197c9 commit dfc323a

File tree

6 files changed

+111
-48
lines changed

6 files changed

+111
-48
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Skill Format Selection Decision Tree
2+
3+
**Statement**: Use decision tree to select Format A (standalone) or Format B (bundled) for new skills.
4+
5+
**Context**: When creating new skill files in `.serena/memories/`
6+
7+
**Atomicity**: 95%
8+
9+
**Impact**: 8/10
10+
11+
## Decision Tree (Mermaid)
12+
13+
```mermaid
14+
flowchart TD
15+
START([New Skill]) --> Q1{CRITICAL or<br/>BLOCKING P0?}
16+
Q1 -->|YES| A1[Format A<br/>Standalone]
17+
Q1 -->|NO| Q2{2+ related skills<br/>same workflow?}
18+
Q2 -->|YES| B1[Format B<br/>Bundled]
19+
Q2 -->|NO| Q3{Referenced by<br/>other skills?}
20+
Q3 -->|YES| A2[Format A<br/>Standalone]
21+
Q3 -->|NO| EITHER[Either Format<br/>Acceptable]
22+
23+
A1 --> DONE([Create File])
24+
A2 --> DONE
25+
B1 --> DONE
26+
EITHER --> DONE
27+
```
28+
29+
## Decision Rules
30+
31+
| Question | YES | NO |
32+
|----------|-----|-----|
33+
| CRITICAL/BLOCKING (P0)? | Format A | Continue |
34+
| 2+ related skills same workflow? | Format B | Continue |
35+
| Referenced by other skills? | Format A | Either |
36+
37+
## Format Definitions
38+
39+
**Format A (Standalone)**: Full skill structure with Statement, Context, Evidence, Pattern, Anti-Pattern, Related sections. One skill per file.
40+
41+
**Format B (Bundled)**: Multiple related skills in one file. Each skill has Statement, Atomicity, code example. Grouped by workflow.
42+
43+
## Examples
44+
45+
| Skill Type | Format | Example File |
46+
|------------|--------|--------------|
47+
| Session initialization (P0) | A | `session-init-serena.md` |
48+
| PR acknowledgment workflow (4 skills) | B | `pr-review-acknowledgment.md` |
49+
| GitHub CLI API patterns (4 skills) | B | `github-cli-api-patterns.md` |
50+
| Pester test isolation (standalone) | A | `pester-test-isolation.md` |
51+
52+
## Evidence
53+
54+
Derived from migration of 194 skill files during ADR-017 implementation (Session 57).

.serena/memories/skills-documentation-index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| fallback tool call graceful degradation mcp serena | documentation-fallback-pattern |
1313
| user-facing content internal PR issue session exclude | documentation-user-facing |
1414
| self-contained artifact handoff agent amnesia autonomous | documentation-self-contained |
15+
| skill format standalone bundled decision tree mermaid P0 | skill-format-selection-decision-tree |
1516

1617
## Domain Statistics
1718

src/claude/skillbook.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,20 @@ Use for multiple related skills that share a workflow context.
244244

245245
### Format Selection Decision Tree
246246

247-
```text
248-
1. Is this a CRITICAL/BLOCKING skill (P0)?
249-
YES → Format A (standalone, full detail)
250-
NO → Continue
251-
252-
2. Are there 2+ related skills in the same workflow?
253-
YES → Format B (bundled in one file)
254-
NO → Format A (standalone)
255-
256-
3. Is the skill referenced by other skills?
257-
YES → Format A (standalone for linkability)
258-
NO → Either format acceptable
247+
```mermaid
248+
flowchart TD
249+
START([New Skill]) --> Q1{CRITICAL or<br/>BLOCKING P0?}
250+
Q1 -->|YES| A1[Format A<br/>Standalone]
251+
Q1 -->|NO| Q2{2+ related skills<br/>same workflow?}
252+
Q2 -->|YES| B1[Format B<br/>Bundled]
253+
Q2 -->|NO| Q3{Referenced by<br/>other skills?}
254+
Q3 -->|YES| A2[Format A<br/>Standalone]
255+
Q3 -->|NO| EITHER[Either Format<br/>Acceptable]
256+
257+
A1 --> DONE([Create File])
258+
A2 --> DONE
259+
B1 --> DONE
260+
EITHER --> DONE
259261
```
260262

261263
### Skill Categories

src/copilot-cli/skillbook.agent.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,20 @@ Use for multiple related skills that share a workflow context.
206206

207207
### Format Selection Decision Tree
208208

209-
```text
210-
1. Is this a CRITICAL/BLOCKING skill (P0)?
211-
YES → Format A (standalone, full detail)
212-
NO → Continue
213-
214-
2. Are there 2+ related skills in the same workflow?
215-
YES → Format B (bundled in one file)
216-
NO → Format A (standalone)
217-
218-
3. Is the skill referenced by other skills?
219-
YES → Format A (standalone for linkability)
220-
NO → Either format acceptable
209+
```mermaid
210+
flowchart TD
211+
START([New Skill]) --> Q1{CRITICAL or<br/>BLOCKING P0?}
212+
Q1 -->|YES| A1[Format A<br/>Standalone]
213+
Q1 -->|NO| Q2{2+ related skills<br/>same workflow?}
214+
Q2 -->|YES| B1[Format B<br/>Bundled]
215+
Q2 -->|NO| Q3{Referenced by<br/>other skills?}
216+
Q3 -->|YES| A2[Format A<br/>Standalone]
217+
Q3 -->|NO| EITHER[Either Format<br/>Acceptable]
218+
219+
A1 --> DONE([Create File])
220+
A2 --> DONE
221+
B1 --> DONE
222+
EITHER --> DONE
221223
```
222224

223225
### Skill Categories

src/vs-code-agents/skillbook.agent.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,20 @@ Use for multiple related skills that share a workflow context.
206206

207207
### Format Selection Decision Tree
208208

209-
```text
210-
1. Is this a CRITICAL/BLOCKING skill (P0)?
211-
YES → Format A (standalone, full detail)
212-
NO → Continue
213-
214-
2. Are there 2+ related skills in the same workflow?
215-
YES → Format B (bundled in one file)
216-
NO → Format A (standalone)
217-
218-
3. Is the skill referenced by other skills?
219-
YES → Format A (standalone for linkability)
220-
NO → Either format acceptable
209+
```mermaid
210+
flowchart TD
211+
START([New Skill]) --> Q1{CRITICAL or<br/>BLOCKING P0?}
212+
Q1 -->|YES| A1[Format A<br/>Standalone]
213+
Q1 -->|NO| Q2{2+ related skills<br/>same workflow?}
214+
Q2 -->|YES| B1[Format B<br/>Bundled]
215+
Q2 -->|NO| Q3{Referenced by<br/>other skills?}
216+
Q3 -->|YES| A2[Format A<br/>Standalone]
217+
Q3 -->|NO| EITHER[Either Format<br/>Acceptable]
218+
219+
A1 --> DONE([Create File])
220+
A2 --> DONE
221+
B1 --> DONE
222+
EITHER --> DONE
221223
```
222224

223225
### Skill Categories

templates/agents/skillbook.shared.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,20 @@ Use for multiple related skills that share a workflow context.
206206

207207
### Format Selection Decision Tree
208208

209-
```text
210-
1. Is this a CRITICAL/BLOCKING skill (P0)?
211-
YES → Format A (standalone, full detail)
212-
NO → Continue
213-
214-
2. Are there 2+ related skills in the same workflow?
215-
YES → Format B (bundled in one file)
216-
NO → Format A (standalone)
217-
218-
3. Is the skill referenced by other skills?
219-
YES → Format A (standalone for linkability)
220-
NO → Either format acceptable
209+
```mermaid
210+
flowchart TD
211+
START([New Skill]) --> Q1{CRITICAL or<br/>BLOCKING P0?}
212+
Q1 -->|YES| A1[Format A<br/>Standalone]
213+
Q1 -->|NO| Q2{2+ related skills<br/>same workflow?}
214+
Q2 -->|YES| B1[Format B<br/>Bundled]
215+
Q2 -->|NO| Q3{Referenced by<br/>other skills?}
216+
Q3 -->|YES| A2[Format A<br/>Standalone]
217+
Q3 -->|NO| EITHER[Either Format<br/>Acceptable]
218+
219+
A1 --> DONE([Create File])
220+
A2 --> DONE
221+
B1 --> DONE
222+
EITHER --> DONE
221223
```
222224

223225
### Skill Categories

0 commit comments

Comments
 (0)