@soleri/forge 9.0.1 → 9.2.0
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/dist/compose-claude-md.js +1 -1
- package/dist/compose-claude-md.js.map +1 -1
- package/dist/scaffold-filetree.js +8 -13
- package/dist/scaffold-filetree.js.map +1 -1
- package/dist/skills/brain-debrief/SKILL.md +16 -12
- package/dist/skills/brainstorming/SKILL.md +9 -5
- package/dist/skills/code-patrol/SKILL.md +7 -7
- package/dist/skills/context-resume/SKILL.md +14 -11
- package/dist/skills/deep-review/SKILL.md +186 -0
- package/dist/skills/executing-plans/SKILL.md +13 -9
- package/dist/skills/fix-and-learn/SKILL.md +12 -8
- package/dist/skills/health-check/SKILL.md +21 -17
- package/dist/skills/knowledge-harvest/SKILL.md +10 -6
- package/dist/skills/onboard-me/SKILL.md +19 -16
- package/dist/skills/parallel-execute/SKILL.md +277 -0
- package/dist/skills/retrospective/SKILL.md +18 -15
- package/dist/skills/second-opinion/SKILL.md +6 -6
- package/dist/skills/systematic-debugging/SKILL.md +12 -8
- package/dist/skills/test-driven-development/SKILL.md +5 -5
- package/dist/skills/vault-capture/SKILL.md +9 -5
- package/dist/skills/vault-navigator/SKILL.md +14 -10
- package/dist/skills/vault-smells/SKILL.md +251 -0
- package/dist/skills/verification-before-completion/SKILL.md +8 -5
- package/dist/skills/writing-plans/SKILL.md +14 -11
- package/dist/templates/agents-md.js +2 -2
- package/dist/templates/agents-md.js.map +1 -1
- package/dist/templates/claude-md-template.js +2 -2
- package/dist/templates/claude-md-template.js.map +1 -1
- package/dist/templates/shared-rules.js +35 -1
- package/dist/templates/shared-rules.js.map +1 -1
- package/dist/templates/skills.js +28 -6
- package/dist/templates/skills.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +6 -2
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/scaffolder.test.ts +17 -35
- package/src/compose-claude-md.ts +1 -1
- package/src/scaffold-filetree.ts +9 -13
- package/src/skills/brain-debrief/SKILL.md +16 -12
- package/src/skills/brainstorming/SKILL.md +9 -5
- package/src/skills/code-patrol/SKILL.md +7 -7
- package/src/skills/context-resume/SKILL.md +14 -11
- package/src/skills/deep-review/SKILL.md +186 -0
- package/src/skills/executing-plans/SKILL.md +13 -9
- package/src/skills/fix-and-learn/SKILL.md +12 -8
- package/src/skills/health-check/SKILL.md +21 -17
- package/src/skills/knowledge-harvest/SKILL.md +10 -6
- package/src/skills/onboard-me/SKILL.md +19 -16
- package/src/skills/parallel-execute/SKILL.md +277 -0
- package/src/skills/retrospective/SKILL.md +18 -15
- package/src/skills/second-opinion/SKILL.md +6 -6
- package/src/skills/systematic-debugging/SKILL.md +12 -8
- package/src/skills/test-driven-development/SKILL.md +5 -5
- package/src/skills/vault-capture/SKILL.md +9 -5
- package/src/skills/vault-navigator/SKILL.md +14 -10
- package/src/skills/vault-smells/SKILL.md +251 -0
- package/src/skills/verification-before-completion/SKILL.md +8 -5
- package/src/skills/writing-plans/SKILL.md +14 -11
- package/src/templates/agents-md.ts +2 -2
- package/src/templates/claude-md-template.ts +2 -2
- package/src/templates/shared-rules.ts +36 -1
- package/src/templates/skills.ts +27 -6
- package/src/types.ts +7 -2
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: executing-plans
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use when the user says "execute my plan", "run the plan", "start executing", "implement the
|
|
5
|
+
plan step by step", or has a written plan to execute sequentially with review checkpoints.
|
|
6
|
+
Tasks run one at a time in order. If tasks are independent and can run in parallel, use
|
|
7
|
+
parallel-execute instead.
|
|
4
8
|
---
|
|
5
9
|
|
|
6
10
|
# Executing Plans
|
|
@@ -14,10 +18,10 @@ Load plan, review critically, execute tasks in batches, report for review betwee
|
|
|
14
18
|
### Step 1: Load and Review Plan
|
|
15
19
|
|
|
16
20
|
```
|
|
17
|
-
|
|
18
|
-
|
|
21
|
+
YOUR_AGENT_core op:get_plan
|
|
22
|
+
YOUR_AGENT_core op:plan_list_tasks
|
|
19
23
|
params: { planId: "<id>" }
|
|
20
|
-
|
|
24
|
+
YOUR_AGENT_core op:plan_stats
|
|
21
25
|
```
|
|
22
26
|
|
|
23
27
|
If no tracked plan exists, read from `docs/plans/`. Review critically — raise concerns before starting.
|
|
@@ -25,7 +29,7 @@ If no tracked plan exists, read from `docs/plans/`. Review critically — raise
|
|
|
25
29
|
### Step 2: Start Execution Loop
|
|
26
30
|
|
|
27
31
|
```
|
|
28
|
-
|
|
32
|
+
YOUR_AGENT_core op:loop_start
|
|
29
33
|
params: { prompt: "<plan objective>", mode: "custom" }
|
|
30
34
|
```
|
|
31
35
|
|
|
@@ -49,10 +53,10 @@ Apply feedback, execute next batch, repeat until complete.
|
|
|
49
53
|
### Step 6: Complete Development
|
|
50
54
|
|
|
51
55
|
1. Run final verification (use verification-before-completion skill)
|
|
52
|
-
2. `
|
|
53
|
-
3. `
|
|
54
|
-
4. `
|
|
55
|
-
5. `
|
|
56
|
+
2. `YOUR_AGENT_core op:loop_complete`
|
|
57
|
+
3. `YOUR_AGENT_core op:plan_reconcile` — compare planned vs actual
|
|
58
|
+
4. `YOUR_AGENT_core op:plan_complete_lifecycle` — extract knowledge, archive
|
|
59
|
+
5. `YOUR_AGENT_core op:session_capture` — save session context
|
|
56
60
|
|
|
57
61
|
Capture mid-execution learnings with `op:capture_quick` as they happen — don't wait until the end.
|
|
58
62
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fix-and-learn
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use AFTER a root cause has been identified (typically via systematic-debugging) to execute
|
|
5
|
+
the fix and capture the learning in the vault. Triggers on "fix it", "apply the fix",
|
|
6
|
+
"patch this and remember". Do NOT use as the first response to a bug — use
|
|
7
|
+
systematic-debugging first to find root cause.
|
|
4
8
|
---
|
|
5
9
|
|
|
6
10
|
# Fix & Learn — Debug, Repair, Capture
|
|
@@ -21,16 +25,16 @@ Fix bugs through a structured recovery workflow, then capture the root cause as
|
|
|
21
25
|
### Step 1: Classify and Route
|
|
22
26
|
|
|
23
27
|
```
|
|
24
|
-
|
|
28
|
+
YOUR_AGENT_core op:route_intent
|
|
25
29
|
params: { prompt: "<bug description>" }
|
|
26
30
|
```
|
|
27
31
|
|
|
28
32
|
### Step 2: Check Vault First
|
|
29
33
|
|
|
30
34
|
```
|
|
31
|
-
|
|
35
|
+
YOUR_AGENT_core op:search_intelligent
|
|
32
36
|
params: { query: "<error message or bug description>" }
|
|
33
|
-
|
|
37
|
+
YOUR_AGENT_core op:memory_search
|
|
34
38
|
params: { query: "<bug description>" }
|
|
35
39
|
```
|
|
36
40
|
|
|
@@ -43,7 +47,7 @@ If vault has no answer, search for known issues, Stack Overflow answers, GitHub
|
|
|
43
47
|
### Step 4: Start Fix Loop
|
|
44
48
|
|
|
45
49
|
```
|
|
46
|
-
|
|
50
|
+
YOUR_AGENT_core op:loop_start
|
|
47
51
|
params: { prompt: "Fix: <bug description>", mode: "custom" }
|
|
48
52
|
```
|
|
49
53
|
|
|
@@ -59,12 +63,12 @@ If Steps 2-3 didn't produce a solution, use systematic-debugging skill:
|
|
|
59
63
|
|
|
60
64
|
### Step 6: Validate
|
|
61
65
|
|
|
62
|
-
Run test suite. Use verification-before-completion skill. Complete loop: `
|
|
66
|
+
Run test suite. Use verification-before-completion skill. Complete loop: `YOUR_AGENT_core op:loop_complete`.
|
|
63
67
|
|
|
64
68
|
### Step 7: Capture the Learning
|
|
65
69
|
|
|
66
70
|
```
|
|
67
|
-
|
|
71
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
68
72
|
params: {
|
|
69
73
|
title: "<bug title>",
|
|
70
74
|
description: "<root cause, solution, what made it hard to find>",
|
|
@@ -74,7 +78,7 @@ ernesto_core op:capture_knowledge
|
|
|
74
78
|
}
|
|
75
79
|
```
|
|
76
80
|
|
|
77
|
-
Run `
|
|
81
|
+
Run `YOUR_AGENT_core op:curator_detect_duplicates` to avoid redundant entries.
|
|
78
82
|
|
|
79
83
|
## Exit Criteria
|
|
80
84
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: health-check
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use when the user asks "check health", "system status", "how healthy is the vault",
|
|
5
|
+
"knowledge quality", "run diagnostics", "vault health report", or wants a read-only health
|
|
6
|
+
assessment of the knowledge base — scoring, reporting, finding issues. Does NOT modify vault
|
|
7
|
+
entries. To actively clean, merge, or deduplicate, use vault-curate instead.
|
|
4
8
|
---
|
|
5
9
|
|
|
6
10
|
# Health Check — Knowledge Base Maintenance
|
|
@@ -12,43 +16,43 @@ Comprehensive maintenance cycle on the knowledge base. Finds stale entries, dupl
|
|
|
12
16
|
### 1. System Health
|
|
13
17
|
|
|
14
18
|
```
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
YOUR_AGENT_core op:admin_health
|
|
20
|
+
YOUR_AGENT_core op:admin_diagnostic
|
|
17
21
|
```
|
|
18
22
|
|
|
19
23
|
### 2. Vault Metrics
|
|
20
24
|
|
|
21
25
|
```
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
YOUR_AGENT_core op:admin_vault_size
|
|
27
|
+
YOUR_AGENT_core op:admin_vault_analytics
|
|
28
|
+
YOUR_AGENT_core op:vault_domains
|
|
29
|
+
YOUR_AGENT_core op:vault_tags
|
|
26
30
|
```
|
|
27
31
|
|
|
28
32
|
### 3. Quality Audit
|
|
29
33
|
|
|
30
34
|
```
|
|
31
|
-
|
|
35
|
+
YOUR_AGENT_core op:curator_health_audit
|
|
32
36
|
```
|
|
33
37
|
|
|
34
38
|
### 4. Find Duplicates
|
|
35
39
|
|
|
36
40
|
```
|
|
37
|
-
|
|
41
|
+
YOUR_AGENT_core op:curator_detect_duplicates
|
|
38
42
|
```
|
|
39
43
|
|
|
40
44
|
### 5. Find Contradictions
|
|
41
45
|
|
|
42
46
|
```
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
YOUR_AGENT_core op:curator_contradictions
|
|
48
|
+
YOUR_AGENT_core op:curator_resolve_contradiction
|
|
45
49
|
params: { contradictionId: "<id>" }
|
|
46
50
|
```
|
|
47
51
|
|
|
48
52
|
### 6. Find Stale Entries
|
|
49
53
|
|
|
50
54
|
```
|
|
51
|
-
|
|
55
|
+
YOUR_AGENT_core op:vault_age_report
|
|
52
56
|
```
|
|
53
57
|
|
|
54
58
|
Entries >30 days without updates: refresh, archive, or delete.
|
|
@@ -56,21 +60,21 @@ Entries >30 days without updates: refresh, archive, or delete.
|
|
|
56
60
|
### 7. Check Search Quality
|
|
57
61
|
|
|
58
62
|
```
|
|
59
|
-
|
|
63
|
+
YOUR_AGENT_core op:admin_search_insights
|
|
60
64
|
```
|
|
61
65
|
|
|
62
66
|
### 8. Memory Health
|
|
63
67
|
|
|
64
68
|
```
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
YOUR_AGENT_core op:memory_stats
|
|
70
|
+
YOUR_AGENT_core op:memory_deduplicate
|
|
67
71
|
```
|
|
68
72
|
|
|
69
73
|
### 9. Governance Queue
|
|
70
74
|
|
|
71
75
|
```
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
YOUR_AGENT_core op:governance_proposals params: { action: "list" }
|
|
77
|
+
YOUR_AGENT_core op:governance_expire
|
|
74
78
|
```
|
|
75
79
|
|
|
76
80
|
### 10. Fix Everything (Optional, with user approval)
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: knowledge-harvest
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use to EXTRACT multiple patterns from a source — code, docs, PRs, articles. Triggers on
|
|
5
|
+
"learn from this", "harvest knowledge", "ingest this document", "extract patterns from".
|
|
6
|
+
The agent reads the source and identifies what to capture. For saving a single known item,
|
|
7
|
+
use vault-capture instead.
|
|
4
8
|
---
|
|
5
9
|
|
|
6
10
|
# Knowledge Harvest — Extract Patterns From Anything
|
|
@@ -11,15 +15,15 @@ Point at code, docs, PRs, architecture decisions, or postmortems — the agent e
|
|
|
11
15
|
|
|
12
16
|
### 1. Understand the Source
|
|
13
17
|
|
|
14
|
-
Read target content and classify: `
|
|
18
|
+
Read target content and classify: `YOUR_AGENT_core op:route_intent params: { prompt: "Extract knowledge from: <source>" }`
|
|
15
19
|
|
|
16
20
|
### 2. Check What's Already Known
|
|
17
21
|
|
|
18
22
|
```
|
|
19
|
-
|
|
23
|
+
YOUR_AGENT_core op:search_intelligent
|
|
20
24
|
params: { query: "<topic of source material>" }
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
YOUR_AGENT_core op:vault_tags
|
|
26
|
+
YOUR_AGENT_core op:vault_domains
|
|
23
27
|
```
|
|
24
28
|
|
|
25
29
|
Focus extraction on gaps — skip what vault already covers.
|
|
@@ -39,7 +43,7 @@ For each: determine category, severity, and tags.
|
|
|
39
43
|
### 4. Batch Capture
|
|
40
44
|
|
|
41
45
|
```
|
|
42
|
-
|
|
46
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
43
47
|
params: {
|
|
44
48
|
title: "<clear, searchable name>",
|
|
45
49
|
description: "<what it is, when to apply, why it matters>",
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: onboard-me
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use when someone is new to the PROJECT and needs orientation — "onboard me", "I'm new here",
|
|
5
|
+
"project overview", "what should I know about this codebase". Questions about the project's
|
|
6
|
+
patterns and conventions, not about the agent's capabilities (use agent-guide for that).
|
|
4
7
|
---
|
|
5
8
|
|
|
6
9
|
# Onboard Me — Instant Project Intelligence
|
|
@@ -12,59 +15,59 @@ Structured tour of everything the vault knows about this project. Decisions, pat
|
|
|
12
15
|
### 1. Project Overview
|
|
13
16
|
|
|
14
17
|
```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
YOUR_AGENT_core op:identity
|
|
19
|
+
YOUR_AGENT_core op:project_get
|
|
20
|
+
YOUR_AGENT_core op:project_list_rules
|
|
21
|
+
YOUR_AGENT_core op:get_behavior_rules
|
|
19
22
|
```
|
|
20
23
|
|
|
21
24
|
### 2. Knowledge Landscape
|
|
22
25
|
|
|
23
26
|
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
YOUR_AGENT_core op:vault_domains
|
|
28
|
+
YOUR_AGENT_core op:vault_tags
|
|
29
|
+
YOUR_AGENT_core op:admin_vault_size
|
|
27
30
|
```
|
|
28
31
|
|
|
29
32
|
### 3. Critical Knowledge
|
|
30
33
|
|
|
31
34
|
```
|
|
32
|
-
|
|
35
|
+
YOUR_AGENT_core op:search
|
|
33
36
|
params: { severity: "critical" }
|
|
34
37
|
```
|
|
35
38
|
|
|
36
39
|
### 4. Key Decisions
|
|
37
40
|
|
|
38
41
|
```
|
|
39
|
-
|
|
42
|
+
YOUR_AGENT_core op:search_intelligent
|
|
40
43
|
params: { query: "architectural decision design choice" }
|
|
41
44
|
```
|
|
42
45
|
|
|
43
46
|
### 5. Strongest Patterns
|
|
44
47
|
|
|
45
48
|
```
|
|
46
|
-
|
|
49
|
+
YOUR_AGENT_core op:brain_strengths
|
|
47
50
|
```
|
|
48
51
|
|
|
49
52
|
### 6. Anti-Patterns to Avoid
|
|
50
53
|
|
|
51
54
|
```
|
|
52
|
-
|
|
55
|
+
YOUR_AGENT_core op:search
|
|
53
56
|
params: { type: "anti-pattern" }
|
|
54
57
|
```
|
|
55
58
|
|
|
56
59
|
### 7. Cross-Project Context
|
|
57
60
|
|
|
58
61
|
```
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
YOUR_AGENT_core op:project_linked_projects
|
|
63
|
+
YOUR_AGENT_core op:brain_global_patterns
|
|
61
64
|
```
|
|
62
65
|
|
|
63
66
|
### 8. Knowledge Gaps
|
|
64
67
|
|
|
65
68
|
```
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
YOUR_AGENT_core op:admin_search_insights
|
|
70
|
+
YOUR_AGENT_core op:vault_age_report
|
|
68
71
|
```
|
|
69
72
|
|
|
70
73
|
## Presenting the Onboarding
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: parallel-execute
|
|
3
|
+
description: >
|
|
4
|
+
Use when executing a plan where independent tasks can run concurrently. Triggers on "run in
|
|
5
|
+
parallel", "parallelize", "fan out", "concurrent execution", "run simultaneously", "at the
|
|
6
|
+
same time", "dispatch subagents", "batch execute", or when a plan has 3+ tasks with no
|
|
7
|
+
dependency overlap. For sequential task-by-task execution, use executing-plans instead.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Parallel Execute — Subagent-Driven Plan Execution
|
|
11
|
+
|
|
12
|
+
Execute plan tasks in parallel by dispatching independent tasks to separate subagents. The controller agent (you) never implements — you dispatch, review, and integrate.
|
|
13
|
+
|
|
14
|
+
**Announce at start:** "I'm using the parallel-execute skill to run independent tasks concurrently."
|
|
15
|
+
|
|
16
|
+
<HARD-GATE>
|
|
17
|
+
You MUST have an approved, split plan before using this skill. If no plan exists or it has no tasks, stop and use the writing-plans skill first.
|
|
18
|
+
</HARD-GATE>
|
|
19
|
+
|
|
20
|
+
## When to Use
|
|
21
|
+
|
|
22
|
+
- Plan has 3+ tasks
|
|
23
|
+
- At least 2 tasks have no dependency overlap (can run simultaneously)
|
|
24
|
+
- Tasks touch different files/modules (low merge conflict risk)
|
|
25
|
+
|
|
26
|
+
**Do NOT use when:**
|
|
27
|
+
- All tasks are sequential (each depends on the previous)
|
|
28
|
+
- Tasks modify the same files (high conflict risk)
|
|
29
|
+
- Plan has fewer than 3 tasks (use executing-plans instead)
|
|
30
|
+
|
|
31
|
+
## The Process
|
|
32
|
+
|
|
33
|
+
### Step 1: Load Plan and Build Dependency Graph
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
YOUR_AGENT_core op:get_plan
|
|
37
|
+
YOUR_AGENT_core op:plan_list_tasks params:{ planId: "<id>" }
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Map out which tasks are independent by checking `dependsOn` for each task. Group tasks into **waves** — sets of tasks that can run in parallel:
|
|
41
|
+
|
|
42
|
+
- **Wave 1**: All tasks with no dependencies (or whose dependencies are already complete)
|
|
43
|
+
- **Wave 2**: Tasks whose dependencies are all in Wave 1
|
|
44
|
+
- **Wave N**: Tasks whose dependencies are all in prior waves
|
|
45
|
+
|
|
46
|
+
Present the wave plan to the user before starting:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
## Execution Waves
|
|
50
|
+
|
|
51
|
+
| Wave | Tasks | Parallel? |
|
|
52
|
+
|------|-------|-----------|
|
|
53
|
+
| 1 | task-1, task-3, task-5 | Yes (3 subagents) |
|
|
54
|
+
| 2 | task-2 (depends on task-1) | Solo |
|
|
55
|
+
| 3 | task-4 (depends on task-2, task-3) | Solo |
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Step 2: Dispatch a Wave
|
|
59
|
+
|
|
60
|
+
For each task in the current wave:
|
|
61
|
+
|
|
62
|
+
1. Check readiness:
|
|
63
|
+
```
|
|
64
|
+
YOUR_AGENT_core op:plan_dispatch params:{ planId: "<id>", taskId: "<taskId>" }
|
|
65
|
+
```
|
|
66
|
+
Only dispatch tasks where `ready: true`.
|
|
67
|
+
|
|
68
|
+
2. Mark as in_progress:
|
|
69
|
+
```
|
|
70
|
+
YOUR_AGENT_core op:update_task params:{ planId: "<id>", taskIndex: <n>, status: "in_progress" }
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
3. Gather vault context for the task:
|
|
74
|
+
```
|
|
75
|
+
YOUR_AGENT_core op:search params:{ query: "<task topic>", mode: "scan" }
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
4. **Launch all ready tasks as parallel Agent calls in a single message.** Each subagent gets:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
You are implementing a single task from a plan. Work autonomously.
|
|
82
|
+
|
|
83
|
+
## Task
|
|
84
|
+
- **ID**: {taskId}
|
|
85
|
+
- **Title**: {title}
|
|
86
|
+
- **Description**: {description}
|
|
87
|
+
- **Acceptance Criteria**: {criteria}
|
|
88
|
+
|
|
89
|
+
## Context
|
|
90
|
+
- **Plan Objective**: {planObjective}
|
|
91
|
+
- **Vault Patterns to Follow**: {relevantPatterns}
|
|
92
|
+
- **Files Likely Involved**: {fileHints}
|
|
93
|
+
|
|
94
|
+
## Rules
|
|
95
|
+
- Implement ONLY this task — do not touch files outside your scope
|
|
96
|
+
- Run tests after implementation
|
|
97
|
+
- If blocked, report the blocker and stop — do not guess
|
|
98
|
+
- Do not commit — the controller handles commits
|
|
99
|
+
- When done, report: files changed, tests passing, any concerns
|
|
100
|
+
|
|
101
|
+
## Self-Review Checklist
|
|
102
|
+
Before reporting completion, verify:
|
|
103
|
+
- [ ] All acceptance criteria met
|
|
104
|
+
- [ ] Tests pass
|
|
105
|
+
- [ ] No files modified outside task scope
|
|
106
|
+
- [ ] No console.log or debug code left behind
|
|
107
|
+
- [ ] No raw colors or hardcoded values (use semantic tokens)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Use the Agent tool with `isolation: "worktree"` when tasks touch nearby files to prevent conflicts.
|
|
111
|
+
|
|
112
|
+
### Step 3: Collect Results
|
|
113
|
+
|
|
114
|
+
As subagents complete, collect their results. For each completed task:
|
|
115
|
+
|
|
116
|
+
1. **Run spec review** — spawn a reviewer subagent:
|
|
117
|
+
```
|
|
118
|
+
YOUR_AGENT_core op:plan_review_spec params:{ planId: "<id>", taskId: "<taskId>" }
|
|
119
|
+
```
|
|
120
|
+
Use the returned prompt to launch a spec-review Agent that reads the ACTUAL code changes (not the implementer's self-report).
|
|
121
|
+
|
|
122
|
+
2. **Record spec review outcome:**
|
|
123
|
+
```
|
|
124
|
+
YOUR_AGENT_core op:plan_review_outcome params:{
|
|
125
|
+
planId: "<id>", taskId: "<taskId>",
|
|
126
|
+
reviewType: "spec", reviewer: "spec-reviewer",
|
|
127
|
+
outcome: "approved|rejected|needs_changes",
|
|
128
|
+
comments: "<specific file:line references>"
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
3. **If spec passes, run quality review:**
|
|
133
|
+
```
|
|
134
|
+
YOUR_AGENT_core op:plan_review_quality params:{ planId: "<id>", taskId: "<taskId>" }
|
|
135
|
+
```
|
|
136
|
+
Launch a quality-review Agent with the returned prompt.
|
|
137
|
+
|
|
138
|
+
4. **Record quality review outcome:**
|
|
139
|
+
```
|
|
140
|
+
YOUR_AGENT_core op:plan_review_outcome params:{
|
|
141
|
+
planId: "<id>", taskId: "<taskId>",
|
|
142
|
+
reviewType: "quality", reviewer: "quality-reviewer",
|
|
143
|
+
outcome: "approved|rejected|needs_changes",
|
|
144
|
+
comments: "<severity-tagged feedback>"
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
5. **Handle outcomes:**
|
|
149
|
+
|
|
150
|
+
| Spec | Quality | Action |
|
|
151
|
+
|------|---------|--------|
|
|
152
|
+
| Pass | Pass | Mark task completed |
|
|
153
|
+
| Fail | — | Dispatch fix subagent with failure feedback (max 2 retries) |
|
|
154
|
+
| Pass | Critical issues | Dispatch targeted fix subagent (max 2 retries) |
|
|
155
|
+
| Pass | Minor issues only | Mark completed, note issues for later |
|
|
156
|
+
|
|
157
|
+
6. **Mark completed:**
|
|
158
|
+
```
|
|
159
|
+
YOUR_AGENT_core op:update_task params:{ planId: "<id>", taskIndex: <n>, status: "completed" }
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Step 4: Advance to Next Wave
|
|
163
|
+
|
|
164
|
+
After all tasks in a wave are complete (or failed after retries):
|
|
165
|
+
|
|
166
|
+
1. Report wave results to the user:
|
|
167
|
+
```
|
|
168
|
+
## Wave N Complete
|
|
169
|
+
|
|
170
|
+
| Task | Status | Review | Notes |
|
|
171
|
+
|------|--------|--------|-------|
|
|
172
|
+
| task-1 | Completed | Spec: Pass, Quality: Pass | — |
|
|
173
|
+
| task-3 | Completed | Spec: Pass, Quality: Minor issues | Noted for cleanup |
|
|
174
|
+
| task-5 | Failed | Spec: Fail (2 retries exhausted) | Escalated |
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
2. **Wait for user acknowledgment** before proceeding to the next wave.
|
|
178
|
+
|
|
179
|
+
3. Check which tasks in the next wave are now ready (dependencies met).
|
|
180
|
+
|
|
181
|
+
4. Repeat from Step 2.
|
|
182
|
+
|
|
183
|
+
### Step 5: Final Integration Review
|
|
184
|
+
|
|
185
|
+
After all waves complete:
|
|
186
|
+
|
|
187
|
+
1. Spawn a final review subagent that checks cross-cutting concerns:
|
|
188
|
+
- Consistency across all task implementations
|
|
189
|
+
- Integration points between tasks
|
|
190
|
+
- No conflicting patterns or duplicate code
|
|
191
|
+
- Tests pass together (not just individually)
|
|
192
|
+
|
|
193
|
+
2. Report to user with full execution summary.
|
|
194
|
+
|
|
195
|
+
### Step 6: Complete Plan Lifecycle
|
|
196
|
+
|
|
197
|
+
Same as executing-plans — reconcile, capture knowledge, archive:
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
YOUR_AGENT_core op:plan_reconcile params:{
|
|
201
|
+
planId: "<id>",
|
|
202
|
+
actualOutcome: "<what happened>",
|
|
203
|
+
driftItems: [{ type: "...", description: "...", impact: "...", rationale: "..." }]
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
YOUR_AGENT_core op:plan_complete_lifecycle params:{
|
|
207
|
+
planId: "<id>",
|
|
208
|
+
patterns: ["<patterns discovered>"],
|
|
209
|
+
antiPatterns: ["<anti-patterns discovered>"]
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
YOUR_AGENT_core op:session_capture params:{
|
|
213
|
+
summary: "<execution summary with parallel metrics>"
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
## Subagent Isolation Rules
|
|
218
|
+
|
|
219
|
+
| Situation | Isolation |
|
|
220
|
+
|-----------|-----------|
|
|
221
|
+
| Tasks touch completely different directories | No isolation needed |
|
|
222
|
+
| Tasks touch files in the same package | Use `isolation: "worktree"` |
|
|
223
|
+
| Tasks modify the same file | **Do NOT parallelize** — run sequentially |
|
|
224
|
+
|
|
225
|
+
When using worktree isolation, the controller must merge worktree changes back after review passes.
|
|
226
|
+
|
|
227
|
+
## Failure Handling
|
|
228
|
+
|
|
229
|
+
| Failure | Response |
|
|
230
|
+
|---------|----------|
|
|
231
|
+
| Subagent reports blocker | Pause that task, continue others in the wave |
|
|
232
|
+
| Spec review fails | Dispatch fix subagent with feedback (retry 1/2) |
|
|
233
|
+
| Second retry fails | Mark task as `failed`, escalate to user |
|
|
234
|
+
| Merge conflict from worktree | Resolve manually, then re-run quality review |
|
|
235
|
+
| All tasks in wave fail | Stop execution, report to user |
|
|
236
|
+
|
|
237
|
+
## Capture Learnings
|
|
238
|
+
|
|
239
|
+
During execution, capture insights about parallelization:
|
|
240
|
+
|
|
241
|
+
```
|
|
242
|
+
YOUR_AGENT_core op:capture_quick params:{
|
|
243
|
+
title: "<what you learned about parallel execution>",
|
|
244
|
+
description: "<context: which tasks parallelized well, which conflicted>"
|
|
245
|
+
}
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
## When to Fall Back to Sequential
|
|
249
|
+
|
|
250
|
+
**Switch to executing-plans skill mid-execution when:**
|
|
251
|
+
- Subagents keep conflicting on shared files
|
|
252
|
+
- Merge resolution is taking longer than the parallelization saves
|
|
253
|
+
- User requests sequential execution
|
|
254
|
+
|
|
255
|
+
## Agent Tools Reference
|
|
256
|
+
|
|
257
|
+
| Op | When to Use |
|
|
258
|
+
|----|-------------|
|
|
259
|
+
| `get_plan` | Load tracked plan |
|
|
260
|
+
| `plan_list_tasks` | List all tasks with dependencies |
|
|
261
|
+
| `plan_dispatch` | Check task readiness (dependencies met?) |
|
|
262
|
+
| `update_task` | Mark tasks in_progress / completed / failed |
|
|
263
|
+
| `plan_review_spec` | Generate spec compliance review prompt |
|
|
264
|
+
| `plan_review_quality` | Generate code quality review prompt |
|
|
265
|
+
| `plan_review_outcome` | Record review pass/fail result |
|
|
266
|
+
| `plan_reconcile` | Post-execution drift analysis |
|
|
267
|
+
| `plan_complete_lifecycle` | Extract knowledge, archive |
|
|
268
|
+
| `session_capture` | Save session context |
|
|
269
|
+
| `capture_quick` | Capture mid-execution learnings |
|
|
270
|
+
| `search` | Vault lookup for task context |
|
|
271
|
+
|
|
272
|
+
## Integration
|
|
273
|
+
|
|
274
|
+
**Required skills:**
|
|
275
|
+
- writing-plans — Creates the plan this skill executes
|
|
276
|
+
- verification-before-completion — Verify work before claiming completion
|
|
277
|
+
- executing-plans — Fallback for sequential execution
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: retrospective
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Use for time-bound reflection on recent WORK — "sprint retro", "weekly summary", "what went
|
|
5
|
+
well this week", "end of sprint", "monthly report". Reviews sessions and extracts actionable
|
|
6
|
+
improvements. For brain pattern intelligence and strength scores, use brain-debrief instead.
|
|
4
7
|
---
|
|
5
8
|
|
|
6
9
|
# Retrospective — Learning Report From Real Data
|
|
@@ -12,24 +15,24 @@ Generate a data-driven retrospective from session data, vault captures, plan out
|
|
|
12
15
|
### 1. Gather Data
|
|
13
16
|
|
|
14
17
|
```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
YOUR_AGENT_core op:brain_stats
|
|
19
|
+
YOUR_AGENT_core op:brain_stats params: { since: "<start of period>" }
|
|
20
|
+
YOUR_AGENT_core op:brain_strengths
|
|
21
|
+
YOUR_AGENT_core op:vault_recent
|
|
22
|
+
YOUR_AGENT_core op:memory_topics
|
|
23
|
+
YOUR_AGENT_core op:memory_stats
|
|
24
|
+
YOUR_AGENT_core op:plan_stats
|
|
25
|
+
YOUR_AGENT_core op:admin_search_insights
|
|
26
|
+
YOUR_AGENT_core op:admin_vault_analytics
|
|
24
27
|
```
|
|
25
28
|
|
|
26
29
|
### 2. Analyze Patterns
|
|
27
30
|
|
|
28
31
|
```
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
YOUR_AGENT_core op:vault_age_report
|
|
33
|
+
YOUR_AGENT_core op:curator_detect_duplicates
|
|
34
|
+
YOUR_AGENT_core op:curator_contradictions
|
|
35
|
+
YOUR_AGENT_core op:curator_health_audit
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
### 3. Present the Retrospective
|
|
@@ -62,7 +65,7 @@ Quality: X/100 | Duplicates: N | Contradictions: N | Stale: N
|
|
|
62
65
|
### 4. Capture the Retrospective
|
|
63
66
|
|
|
64
67
|
```
|
|
65
|
-
|
|
68
|
+
YOUR_AGENT_core op:capture_knowledge
|
|
66
69
|
params: {
|
|
67
70
|
title: "Retrospective — [period]",
|
|
68
71
|
description: "<key findings and action items>",
|