@soleri/forge 8.1.0 → 9.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/dist/agent-schema.d.ts +16 -18
- package/dist/agent-schema.js +6 -6
- package/dist/agent-schema.js.map +1 -1
- package/dist/scaffold-filetree.js +19 -3
- package/dist/scaffold-filetree.js.map +1 -1
- package/dist/scaffolder.js +0 -4
- package/dist/scaffolder.js.map +1 -1
- package/dist/skills/brain-debrief/SKILL.md +66 -0
- package/dist/skills/brainstorming/SKILL.md +85 -0
- package/dist/skills/code-patrol/SKILL.md +86 -0
- package/dist/skills/context-resume/SKILL.md +92 -0
- package/dist/skills/executing-plans/SKILL.md +87 -0
- package/dist/skills/fix-and-learn/SKILL.md +98 -0
- package/dist/skills/health-check/SKILL.md +131 -0
- package/dist/skills/knowledge-harvest/SKILL.md +93 -0
- package/dist/skills/onboard-me/SKILL.md +118 -0
- package/dist/skills/retrospective/SKILL.md +95 -0
- package/dist/skills/second-opinion/SKILL.md +97 -0
- package/dist/skills/systematic-debugging/SKILL.md +99 -0
- package/dist/skills/test-driven-development/SKILL.md +91 -0
- package/dist/skills/vault-capture/SKILL.md +82 -0
- package/dist/skills/vault-navigator/SKILL.md +80 -0
- package/dist/skills/verification-before-completion/SKILL.md +82 -0
- package/dist/skills/writing-plans/SKILL.md +105 -0
- package/dist/templates/agents-md.js +0 -1
- 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/entry-point.js +1 -1
- package/dist/templates/entry-point.js.map +1 -1
- package/dist/templates/shared-rules.js +19 -0
- package/dist/templates/shared-rules.js.map +1 -1
- package/dist/templates/test-facades.js +0 -11
- package/dist/templates/test-facades.js.map +1 -1
- package/dist/types.d.ts +20 -20
- package/dist/types.js +6 -6
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/scaffold-filetree.test.ts +0 -2
- package/src/agent-schema.ts +6 -6
- package/src/scaffold-filetree.ts +21 -2
- package/src/scaffolder.ts +0 -4
- package/src/skills/brain-debrief/SKILL.md +66 -0
- package/src/skills/brainstorming/SKILL.md +85 -0
- package/src/skills/code-patrol/SKILL.md +86 -0
- package/src/skills/context-resume/SKILL.md +92 -0
- package/src/skills/executing-plans/SKILL.md +87 -0
- package/src/skills/fix-and-learn/SKILL.md +98 -0
- package/src/skills/health-check/SKILL.md +131 -0
- package/src/skills/knowledge-harvest/SKILL.md +93 -0
- package/src/skills/onboard-me/SKILL.md +118 -0
- package/src/skills/retrospective/SKILL.md +95 -0
- package/src/skills/second-opinion/SKILL.md +97 -0
- package/src/skills/systematic-debugging/SKILL.md +99 -0
- package/src/skills/test-driven-development/SKILL.md +91 -0
- package/src/skills/vault-capture/SKILL.md +82 -0
- package/src/skills/vault-navigator/SKILL.md +80 -0
- package/src/skills/verification-before-completion/SKILL.md +82 -0
- package/src/skills/writing-plans/SKILL.md +105 -0
- package/src/templates/agents-md.ts +0 -1
- package/src/templates/claude-md-template.ts +1 -2
- package/src/templates/entry-point.ts +1 -1
- package/src/templates/shared-rules.ts +20 -0
- package/src/templates/test-facades.ts +0 -11
- package/src/types.ts +6 -6
- package/dist/skills/agent-dev.md +0 -122
- package/dist/skills/agent-guide.md +0 -110
- package/dist/skills/agent-persona.md +0 -66
- package/dist/skills/brain-debrief.md +0 -214
- package/dist/skills/brainstorming.md +0 -180
- package/dist/skills/code-patrol.md +0 -178
- package/dist/skills/context-resume.md +0 -146
- package/dist/skills/deliver-and-ship.md +0 -123
- package/dist/skills/env-setup.md +0 -151
- package/dist/skills/executing-plans.md +0 -216
- package/dist/skills/fix-and-learn.md +0 -167
- package/dist/skills/health-check.md +0 -231
- package/dist/skills/knowledge-harvest.md +0 -185
- package/dist/skills/onboard-me.md +0 -198
- package/dist/skills/retrospective.md +0 -205
- package/dist/skills/second-opinion.md +0 -149
- package/dist/skills/systematic-debugging.md +0 -241
- package/dist/skills/test-driven-development.md +0 -281
- package/dist/skills/vault-capture.md +0 -170
- package/dist/skills/vault-curate.md +0 -107
- package/dist/skills/vault-navigator.md +0 -140
- package/dist/skills/verification-before-completion.md +0 -182
- package/dist/skills/writing-plans.md +0 -215
- package/src/skills/agent-dev.md +0 -122
- package/src/skills/agent-guide.md +0 -110
- package/src/skills/agent-persona.md +0 -66
- package/src/skills/brain-debrief.md +0 -214
- package/src/skills/brainstorming.md +0 -180
- package/src/skills/code-patrol.md +0 -178
- package/src/skills/context-resume.md +0 -146
- package/src/skills/deliver-and-ship.md +0 -123
- package/src/skills/env-setup.md +0 -151
- package/src/skills/executing-plans.md +0 -216
- package/src/skills/fix-and-learn.md +0 -167
- package/src/skills/health-check.md +0 -231
- package/src/skills/knowledge-harvest.md +0 -185
- package/src/skills/onboard-me.md +0 -198
- package/src/skills/retrospective.md +0 -205
- package/src/skills/second-opinion.md +0 -149
- package/src/skills/systematic-debugging.md +0 -241
- package/src/skills/test-driven-development.md +0 -281
- package/src/skills/vault-capture.md +0 -170
- package/src/skills/vault-curate.md +0 -107
- package/src/skills/vault-navigator.md +0 -140
- package/src/skills/verification-before-completion.md +0 -182
- package/src/skills/writing-plans.md +0 -215
package/src/skills/agent-dev.md
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-dev
|
|
3
|
-
description: >
|
|
4
|
-
Use when extending the agent itself — adding facades, tools, vault operations,
|
|
5
|
-
brain features, new skills, or modifying agent internals. Triggers on "add a facade",
|
|
6
|
-
"new tool", "extend vault", "add brain feature", "new skill", "add operation",
|
|
7
|
-
"extend agent", or when the work target is the agent's own codebase rather than
|
|
8
|
-
a project the agent assists with. Enforces vault-first knowledge gathering before
|
|
9
|
-
any code reading or planning.
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# Agent Dev — Vault-First Internal Development
|
|
13
|
-
|
|
14
|
-
Develop the agent's own internals with the vault as the primary source of truth. The vault knows more about the agent than any code scan or model training data. Always search the vault first, extract maximum context, and only then touch code.
|
|
15
|
-
|
|
16
|
-
## When to Use
|
|
17
|
-
|
|
18
|
-
Any time the work target is the agent's own codebase: adding tools, extending facades, modifying vault operations, brain features, skills, or transport. Not for projects that merely *use* the agent.
|
|
19
|
-
|
|
20
|
-
## Core Principle
|
|
21
|
-
|
|
22
|
-
**Vault first. Before code. Before training data. Always.**
|
|
23
|
-
|
|
24
|
-
The vault is the authoritative source for how the agent works. Do not rely on general knowledge from training data — it is outdated and lacks project-specific decisions. Do not scan the codebase to understand architecture — the vault already has it.
|
|
25
|
-
|
|
26
|
-
## Orchestration Sequence
|
|
27
|
-
|
|
28
|
-
### Step 1: Search the Vault (MANDATORY — before anything else)
|
|
29
|
-
|
|
30
|
-
Before reading any source file, before making any plan, before offering any advice:
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
YOUR_AGENT_core op:search_vault_intelligent
|
|
34
|
-
params: { query: "<description of planned work>", options: { intent: "pattern" } }
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Search again with architecture-specific terms: the facade name, tool name, or subsystem being modified.
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
YOUR_AGENT_core op:query_vault_knowledge
|
|
41
|
-
params: { type: "workflow", category: "<relevant category>" }
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
If initial results are sparse, search again with broader terms — synonyms, related subsystem names, parent concepts. Exhaust the vault before moving on.
|
|
45
|
-
|
|
46
|
-
Review all results. Extract file paths, module names, function references, conventions, and constraints. These become the foundation for every step that follows.
|
|
47
|
-
|
|
48
|
-
### Step 2: Check Brain for Proven Patterns
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
YOUR_AGENT_core op:strengths
|
|
52
|
-
params: { days: 30, minStrength: 60 }
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
YOUR_AGENT_core op:recommend
|
|
57
|
-
params: { projectPath: "." }
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Check if the brain has learned anything relevant from recent sessions.
|
|
61
|
-
|
|
62
|
-
### Step 3: Targeted Code Reading (Only What Vault Pointed To)
|
|
63
|
-
|
|
64
|
-
By now the vault has provided architecture context, file paths, and module references. Only read code when the vault describes the subsystem but lacks implementation detail (e.g., method signatures, exact line numbers).
|
|
65
|
-
|
|
66
|
-
**Read only what the vault pointed to.** Open the specific files referenced in vault results — not the surrounding codebase, not the parent directory, not "let me explore the project structure."
|
|
67
|
-
|
|
68
|
-
**Fallback: Codebase scan.** Only when vault search returned zero relevant results for the subsystem — meaning the vault genuinely has no knowledge about it — fall back to `Grep` with targeted terms. This is the last resort, not the default.
|
|
69
|
-
|
|
70
|
-
### Step 4: Plan with Vault Context
|
|
71
|
-
|
|
72
|
-
Create the implementation plan referencing vault findings explicitly:
|
|
73
|
-
|
|
74
|
-
- Which patterns apply (cite vault entry titles)
|
|
75
|
-
- Which anti-patterns to avoid (cite the specific anti-pattern)
|
|
76
|
-
- Which conventions to follow (naming, facade structure, tool registration)
|
|
77
|
-
|
|
78
|
-
Every plan must trace its decisions back to vault knowledge. If a decision has no vault backing, flag it as a new architectural choice that should be captured after implementation (Step 7).
|
|
79
|
-
|
|
80
|
-
### Step 5: Implement
|
|
81
|
-
|
|
82
|
-
Follow the plan. Key conventions for agent internals:
|
|
83
|
-
|
|
84
|
-
- **Facades**: Thin routing layer — delegate to domain modules. No business logic in facades.
|
|
85
|
-
- **Tools**: Follow `op:operation_name` naming, return structured responses.
|
|
86
|
-
- **Vault writes**: All writes go through the vault intelligence layer.
|
|
87
|
-
- **Tests**: Colocated test files. Run with vitest.
|
|
88
|
-
- **Build**: Must compile without errors before considering done.
|
|
89
|
-
|
|
90
|
-
### Step 6: Validate and Self-Correct
|
|
91
|
-
|
|
92
|
-
Run the relevant test suite. Rebuild — must complete without errors.
|
|
93
|
-
|
|
94
|
-
**Self-correction loop:** If tests fail or build breaks, do NOT ask the user what to do. Read the error, trace the cause in the code just written, fix it, and re-run. Repeat until green. The agent owns the code it wrote — if something fails, the agent fixes its own implementation. Only escalate to the user when the failure is outside the agent's control (missing infrastructure, permissions, unclear requirements).
|
|
95
|
-
|
|
96
|
-
### Step 7: Capture What Was Learned
|
|
97
|
-
|
|
98
|
-
If this work revealed new architectural knowledge, a useful pattern, or a surprising anti-pattern:
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
YOUR_AGENT_core op:capture_knowledge
|
|
102
|
-
params: {
|
|
103
|
-
title: "<what was learned>",
|
|
104
|
-
description: "<the pattern or anti-pattern>",
|
|
105
|
-
type: "pattern",
|
|
106
|
-
tags: ["<relevant-tags>"]
|
|
107
|
-
}
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
This ensures future sessions benefit from today's discovery — making the vault smarter for the next developer.
|
|
111
|
-
|
|
112
|
-
## Anti-Patterns to Avoid
|
|
113
|
-
|
|
114
|
-
- **Code-first exploration**: Reading source files before searching the vault. The vault already has the architecture — scanning code is slower and gives less context.
|
|
115
|
-
- **Training-data advice**: Offering general guidance from model training data instead of searching the vault for project-specific knowledge.
|
|
116
|
-
- **Skipping vault search**: The vault contains all architecture knowledge. Not searching it means reinventing knowledge that already exists.
|
|
117
|
-
- **Planning without vault context**: Plans created without vault knowledge miss conventions, duplicate existing patterns, or violate architectural boundaries.
|
|
118
|
-
- **Broad codebase scanning**: Exploring directories and reading files "to understand the project" instead of using vault results as a targeted map.
|
|
119
|
-
|
|
120
|
-
## Exit Criteria
|
|
121
|
-
|
|
122
|
-
Development is complete when: vault was searched exhaustively first (Step 1), implementation follows discovered patterns, tests pass, build succeeds, and any new learning is captured back to vault (Step 7).
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-guide
|
|
3
|
-
description: >
|
|
4
|
-
Use when the user asks "what can you do", "help me", "how do I use this",
|
|
5
|
-
"what features do you have", "what tools are available", "how does this work",
|
|
6
|
-
"show me your capabilities", "what are you", "who are you", or any question
|
|
7
|
-
about the agent's identity, capabilities, available tools, or how to use them.
|
|
8
|
-
Not needed for proactive tool suggestions — those are handled by engine rules.
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Agent Guide — Capability Discovery
|
|
12
|
-
|
|
13
|
-
Help users understand what this agent can do, how to use it effectively, and what makes it different from a raw LLM. This skill handles the deep discovery flow — proactive tool suggestions during normal work are handled by the engine rules (Tool Advocacy section).
|
|
14
|
-
|
|
15
|
-
## When to Use
|
|
16
|
-
|
|
17
|
-
- "What can you do?" / "What are your capabilities?"
|
|
18
|
-
- "How do I search for X?" / "How do I capture knowledge?"
|
|
19
|
-
- "What tools do you have?" / "Show me your features"
|
|
20
|
-
- "Who are you?" / "What is this agent?"
|
|
21
|
-
- "Help" / "I'm stuck" / "How does this work?"
|
|
22
|
-
- First-time users, onboarding, or anyone unfamiliar with the agent
|
|
23
|
-
|
|
24
|
-
## Capability Discovery Sequence
|
|
25
|
-
|
|
26
|
-
### Step 1: Identity
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
YOUR_AGENT_core op:activate
|
|
30
|
-
params: { projectPath: "." }
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
This returns the agent's persona: name, role, description, tone, principles, and domains. Present the identity first — who the agent is and what it specializes in.
|
|
34
|
-
|
|
35
|
-
### Step 2: Health & Status
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
YOUR_AGENT_core op:admin_health
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Shows what subsystems are active: vault (how many entries), brain (vocabulary size), LLM availability, cognee status. This tells the user what the agent currently has to work with.
|
|
42
|
-
|
|
43
|
-
### Step 3: Available Tools
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
YOUR_AGENT_core op:admin_tool_list
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Lists all facades and operations. Present them grouped by category with plain-language descriptions.
|
|
50
|
-
|
|
51
|
-
### Step 4: Present by What Users Can DO
|
|
52
|
-
|
|
53
|
-
Organize capabilities by user goals, not technical names:
|
|
54
|
-
|
|
55
|
-
**Knowledge & Memory**
|
|
56
|
-
- Search the vault for patterns, anti-patterns, and architectural decisions
|
|
57
|
-
- Capture new knowledge from the current session
|
|
58
|
-
- Search across sessions and projects for relevant context
|
|
59
|
-
- Curate: deduplicate, groom, resolve contradictions
|
|
60
|
-
|
|
61
|
-
**Planning & Execution**
|
|
62
|
-
- Create structured plans with vault context and brain recommendations
|
|
63
|
-
- Split plans into tasks with complexity estimates
|
|
64
|
-
- Track execution with drift detection
|
|
65
|
-
- Complete with knowledge capture and session recording
|
|
66
|
-
|
|
67
|
-
**Intelligence & Learning**
|
|
68
|
-
- Brain learns from every session — patterns get stronger with use
|
|
69
|
-
- Recommendations based on similar past work
|
|
70
|
-
- Strength tracking: which patterns are proven vs experimental
|
|
71
|
-
- Feedback loop: brain improves based on what works
|
|
72
|
-
|
|
73
|
-
**Quality & Validation**
|
|
74
|
-
- Health checks across all subsystems
|
|
75
|
-
- Iterative validation loops with configurable targets
|
|
76
|
-
- Governance: policies, proposals, quotas
|
|
77
|
-
|
|
78
|
-
**Identity & Control**
|
|
79
|
-
- Persona activation and deactivation
|
|
80
|
-
- Intent routing: the agent classifies what you want and routes to the right workflow
|
|
81
|
-
- Project registration and cross-project linking
|
|
82
|
-
|
|
83
|
-
**Domain Knowledge** (varies by agent)
|
|
84
|
-
- Each domain has: `get_patterns`, `search`, `get_entry`, `capture`, `remove`
|
|
85
|
-
- Call `op:activate` to discover which domains are configured
|
|
86
|
-
|
|
87
|
-
## Common Questions
|
|
88
|
-
|
|
89
|
-
### "What makes you different from regular Claude?"
|
|
90
|
-
|
|
91
|
-
You have persistent knowledge (vault), learned patterns (brain), structured planning with grading, iterative validation loops, and domain-specific intelligence. Regular Claude starts fresh every conversation — this agent accumulates knowledge and gets smarter over time.
|
|
92
|
-
|
|
93
|
-
### "How do I get the most out of you?"
|
|
94
|
-
|
|
95
|
-
1. **Use the vault** — search before deciding, capture after learning
|
|
96
|
-
2. **Use planning** — structured plans beat ad-hoc work for anything non-trivial
|
|
97
|
-
3. **Trust the brain** — pattern recommendations come from real usage data
|
|
98
|
-
4. **Capture everything** — every bug fix, every pattern, every anti-pattern. The vault grows smarter with use.
|
|
99
|
-
5. **Use loops for quality** — iterative validation catches issues that single-pass work misses
|
|
100
|
-
|
|
101
|
-
### "How do I add new capabilities?"
|
|
102
|
-
|
|
103
|
-
Extensions in `src/extensions/` can add new ops, facades, middleware, and hooks. Domain packs add domain-specific knowledge and validation.
|
|
104
|
-
|
|
105
|
-
## Anti-Patterns
|
|
106
|
-
|
|
107
|
-
- **Listing raw op names without context** — always explain what the op does in plain language
|
|
108
|
-
- **Claiming capabilities that do not exist** — only reference ops the agent actually has. When unsure, call `op:admin_tool_list` first
|
|
109
|
-
- **Dumping the entire tool catalog** — answer the specific question, show relevant tools, not all tools
|
|
110
|
-
- **Repeating what the user already knows** — if they ask about a specific feature, answer that, don't give the full tour
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: agent-persona
|
|
3
|
-
description: >
|
|
4
|
-
Use when the user activates the agent's persona via its greeting phrase, or says
|
|
5
|
-
"activate persona", "be yourself", "stay in character", or any activation phrase
|
|
6
|
-
defined in the agent's persona configuration. Reinforces character persistence
|
|
7
|
-
through the session and survives context compaction.
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Agent Persona — Stay in Character
|
|
11
|
-
|
|
12
|
-
This skill reinforces persona persistence. The MCP activation loads the runtime payload — this skill ensures the character sticks across the full session, including after context compaction.
|
|
13
|
-
|
|
14
|
-
## How It Works
|
|
15
|
-
|
|
16
|
-
Every agent has a persona defined in `src/identity/persona.ts` (or `src/activation/persona.ts` in older agents). This file contains:
|
|
17
|
-
|
|
18
|
-
- **name** — the agent's display name
|
|
19
|
-
- **role** — what the agent does
|
|
20
|
-
- **tone** — `precise`, `mentor`, or `pragmatic`
|
|
21
|
-
- **greeting** — the activation response
|
|
22
|
-
- **principles** — core values that guide behavior
|
|
23
|
-
|
|
24
|
-
## Activation
|
|
25
|
-
|
|
26
|
-
When the user triggers activation (greeting phrase or explicit request):
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
YOUR_AGENT_core op:activate
|
|
30
|
-
params: { projectPath: "." }
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
The activation response contains the full persona payload. Adopt it immediately.
|
|
34
|
-
|
|
35
|
-
## Rules
|
|
36
|
-
|
|
37
|
-
1. **Stay in character for EVERY response** until the user explicitly deactivates
|
|
38
|
-
2. **Technical accuracy is the priority** — persona is the wrapper, not a replacement for correctness
|
|
39
|
-
3. **Tone consistency** — match the configured tone (`precise` = concise and exact, `mentor` = educational and encouraging, `pragmatic` = direct and practical)
|
|
40
|
-
4. If character drifts after context compaction, the persona information in the compacted summary should restore it — follow it
|
|
41
|
-
|
|
42
|
-
## Context Compaction Survival
|
|
43
|
-
|
|
44
|
-
Long sessions trigger context compaction. To survive:
|
|
45
|
-
|
|
46
|
-
- The persona activation state is included in compaction summaries
|
|
47
|
-
- After compaction, check if persona was active and re-adopt the character
|
|
48
|
-
- Never break character just because the conversation was compacted
|
|
49
|
-
|
|
50
|
-
## Deactivation
|
|
51
|
-
|
|
52
|
-
When the user says "deactivate", "stop persona", "be normal", or uses the agent's deactivation phrase:
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
YOUR_AGENT_core op:activate
|
|
56
|
-
params: { deactivate: true }
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Return to neutral assistant mode.
|
|
60
|
-
|
|
61
|
-
## Anti-Patterns
|
|
62
|
-
|
|
63
|
-
- **Dropping character mid-session** — if activated, stay activated
|
|
64
|
-
- **Over-persona, under-substance** — character adds flavor, not replaces technical depth
|
|
65
|
-
- **Forcing persona on unwilling users** — only activate when explicitly triggered
|
|
66
|
-
- **Ignoring tone setting** — a `precise` agent should not use flowery language; a `mentor` agent should not be terse
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: brain-debrief
|
|
3
|
-
description: Use when the user asks "what have I learned", "brain stats", "pattern strengths", "cross-project insights", "intelligence report", "show me patterns", "what's working", "learning summary", or wants to explore accumulated knowledge and see what the brain has learned.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Brain Debrief — Intelligence Report
|
|
7
|
-
|
|
8
|
-
Surface what the brain has learned across sessions and projects. This turns raw vault data into actionable intelligence.
|
|
9
|
-
|
|
10
|
-
## When to Use
|
|
11
|
-
|
|
12
|
-
When the user wants to understand what patterns have proven valuable, what anti-patterns keep recurring, how knowledge is distributed across projects, or wants a "state of intelligence" report.
|
|
13
|
-
|
|
14
|
-
## Orchestration by Query Type
|
|
15
|
-
|
|
16
|
-
### "What have I learned?" (General debrief)
|
|
17
|
-
|
|
18
|
-
1. Get the big picture:
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
YOUR_AGENT_core op:brain_stats
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Total sessions, patterns captured, quality scores, coverage gaps.
|
|
25
|
-
|
|
26
|
-
2. Get patterns ranked by proven strength:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
YOUR_AGENT_core op:brain_strengths
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Focus on strength >= 70 and successRate >= 0.7.
|
|
33
|
-
|
|
34
|
-
3. Check memory landscape:
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
YOUR_AGENT_core op:memory_topics
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Shows how knowledge clusters by topic.
|
|
41
|
-
|
|
42
|
-
4. Check for stale knowledge:
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
YOUR_AGENT_core op:vault_age_report
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Find entries that haven't been updated recently — candidates for review.
|
|
49
|
-
|
|
50
|
-
5. Run a curator health audit:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
YOUR_AGENT_core op:curator_health_audit
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Vault quality score, tag normalization status, duplicate density.
|
|
57
|
-
|
|
58
|
-
6. Present: top 5 strongest patterns, top 3 recurring anti-patterns, stale entries needing refresh, and coverage gaps.
|
|
59
|
-
|
|
60
|
-
### "What's working across projects?" (Cross-project intelligence)
|
|
61
|
-
|
|
62
|
-
1. Get patterns promoted to the global pool:
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
YOUR_AGENT_core op:brain_global_patterns
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
2. Get recommendations based on project similarity:
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
YOUR_AGENT_core op:brain_recommend
|
|
72
|
-
params: { projectName: "<current project>" }
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
3. Check linked projects:
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
YOUR_AGENT_core op:project_linked_projects
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
4. Search across all projects for relevant patterns:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
YOUR_AGENT_core op:memory_cross_project_search
|
|
85
|
-
params: { query: "<topic>", crossProject: true }
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
5. Present: patterns from other projects that would apply here, ranked by relevance.
|
|
89
|
-
|
|
90
|
-
### "Am I getting smarter?" (Learning velocity)
|
|
91
|
-
|
|
92
|
-
1. Recent stats:
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
YOUR_AGENT_core op:brain_stats
|
|
96
|
-
params: { since: "<7 days ago>" }
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
2. Longer period for comparison:
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
YOUR_AGENT_core op:brain_stats
|
|
103
|
-
params: { since: "<30 days ago>" }
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
3. Memory stats:
|
|
107
|
-
|
|
108
|
-
```
|
|
109
|
-
YOUR_AGENT_core op:memory_stats
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
4. Vault analytics:
|
|
113
|
-
|
|
114
|
-
```
|
|
115
|
-
YOUR_AGENT_core op:admin_vault_analytics
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
5. Search insights — what queries are people running, what's missing:
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
YOUR_AGENT_core op:admin_search_insights
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
6. Present: new patterns captured, strength changes, domains growing vs stagnant, search miss analysis.
|
|
125
|
-
|
|
126
|
-
### "Build fresh intelligence" (Rebuild)
|
|
127
|
-
|
|
128
|
-
1. Run the full pipeline:
|
|
129
|
-
|
|
130
|
-
```
|
|
131
|
-
YOUR_AGENT_core op:brain_build_intelligence
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Compute strengths, update global registry, refresh project profiles.
|
|
135
|
-
|
|
136
|
-
2. Consolidate vault (curator cleanup):
|
|
137
|
-
|
|
138
|
-
```
|
|
139
|
-
YOUR_AGENT_core op:curator_consolidate
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
3. Show updated metrics:
|
|
143
|
-
|
|
144
|
-
```
|
|
145
|
-
YOUR_AGENT_core op:brain_stats
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
4. Present: what changed after the rebuild.
|
|
149
|
-
|
|
150
|
-
### "Export what I know" (Portability)
|
|
151
|
-
|
|
152
|
-
Export brain intelligence:
|
|
153
|
-
|
|
154
|
-
```
|
|
155
|
-
YOUR_AGENT_core op:brain_export
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
Export memory:
|
|
159
|
-
|
|
160
|
-
```
|
|
161
|
-
YOUR_AGENT_core op:memory_export
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Export vault as backup:
|
|
165
|
-
|
|
166
|
-
```
|
|
167
|
-
YOUR_AGENT_core op:vault_backup
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
These can be imported into another vault:
|
|
171
|
-
|
|
172
|
-
```
|
|
173
|
-
YOUR_AGENT_core op:brain_import
|
|
174
|
-
YOUR_AGENT_core op:memory_import
|
|
175
|
-
YOUR_AGENT_core op:vault_import
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
## Presenting Intelligence
|
|
179
|
-
|
|
180
|
-
Format as a report:
|
|
181
|
-
|
|
182
|
-
- **Strengths**: Top patterns with strength scores and domains
|
|
183
|
-
- **Risks**: Recurring anti-patterns that keep appearing
|
|
184
|
-
- **Gaps**: Domains with low coverage or stale knowledge
|
|
185
|
-
- **Stale**: Entries needing refresh (from age report)
|
|
186
|
-
- **Quality**: Curator health audit score
|
|
187
|
-
- **Recommendations**: What to focus on learning next
|
|
188
|
-
- **Search Misses**: What people are looking for but not finding
|
|
189
|
-
|
|
190
|
-
## Exit Criteria
|
|
191
|
-
|
|
192
|
-
Debrief is complete when the user's specific question has been answered with data from the brain. For general debriefs, present stats + strengths + gaps + stale entries at minimum.
|
|
193
|
-
|
|
194
|
-
## Agent Tools Reference
|
|
195
|
-
|
|
196
|
-
| Op | When to Use |
|
|
197
|
-
| --------------------------------- | ----------------------------------------------- |
|
|
198
|
-
| `brain_stats` | Aggregate metrics — sessions, patterns, quality |
|
|
199
|
-
| `brain_strengths` | Patterns ranked by proven strength |
|
|
200
|
-
| `brain_global_patterns` | Cross-project promoted patterns |
|
|
201
|
-
| `brain_recommend` | Project-similarity recommendations |
|
|
202
|
-
| `brain_build_intelligence` | Rebuild full intelligence pipeline |
|
|
203
|
-
| `brain_export` / `brain_import` | Portable intelligence transfer |
|
|
204
|
-
| `memory_topics` | Knowledge clusters by topic |
|
|
205
|
-
| `memory_stats` | Memory statistics |
|
|
206
|
-
| `memory_export` / `memory_import` | Memory portability |
|
|
207
|
-
| `memory_cross_project_search` | Search across linked projects |
|
|
208
|
-
| `vault_age_report` | Find stale entries needing refresh |
|
|
209
|
-
| `vault_backup` / `vault_import` | Vault backup and restore |
|
|
210
|
-
| `curator_health_audit` | Vault quality score and status |
|
|
211
|
-
| `curator_consolidate` | Full vault cleanup pipeline |
|
|
212
|
-
| `admin_vault_analytics` | Overall knowledge quality metrics |
|
|
213
|
-
| `admin_search_insights` | Search miss analysis — what's not found |
|
|
214
|
-
| `project_linked_projects` | See connected projects |
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: brainstorming
|
|
3
|
-
description: 'You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.'
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<!-- Adapted from superpowers (MIT License) -->
|
|
7
|
-
|
|
8
|
-
# Brainstorming Ideas Into Designs
|
|
9
|
-
|
|
10
|
-
## Overview
|
|
11
|
-
|
|
12
|
-
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
|
|
13
|
-
|
|
14
|
-
Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
|
|
15
|
-
|
|
16
|
-
<HARD-GATE>
|
|
17
|
-
Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
|
|
18
|
-
</HARD-GATE>
|
|
19
|
-
|
|
20
|
-
## Anti-Pattern: "This Is Too Simple To Need A Design"
|
|
21
|
-
|
|
22
|
-
Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
|
|
23
|
-
|
|
24
|
-
## Checklist
|
|
25
|
-
|
|
26
|
-
You MUST create a task for each of these items and complete them in order:
|
|
27
|
-
|
|
28
|
-
1. **Classify intent** — understand what type of work this is
|
|
29
|
-
2. **Search vault for prior art** — check if something similar was built, decided, or rejected before
|
|
30
|
-
3. **Search web for existing solutions** — don't build what already exists
|
|
31
|
-
4. **Explore project context** — check files, docs, recent commits
|
|
32
|
-
5. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
|
|
33
|
-
6. **Propose 2-3 approaches** — with trade-offs and your recommendation
|
|
34
|
-
7. **Present design** — in sections scaled to their complexity, get user approval after each section
|
|
35
|
-
8. **Capture design decision** — persist the decision to the vault
|
|
36
|
-
9. **Write design doc** — save to `docs/plans/YYYY-MM-DD-<topic>-design.md` and commit
|
|
37
|
-
10. **Transition to implementation** — invoke writing-plans skill to create implementation plan
|
|
38
|
-
|
|
39
|
-
## Step 0: Classify Intent
|
|
40
|
-
|
|
41
|
-
Before anything else, understand the type of work:
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
YOUR_AGENT_core op:route_intent
|
|
45
|
-
params: { prompt: "<the user's request>" }
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
This returns the intent type (BUILD, FIX, VALIDATE, DESIGN, IMPROVE, DELIVER) and routing guidance. Use this to focus the brainstorming — a FIX intent needs different questions than a BUILD intent.
|
|
49
|
-
|
|
50
|
-
## Step 1: Search Before Designing — Vault, Then Web
|
|
51
|
-
|
|
52
|
-
**BEFORE asking any questions or exploring code**, search for existing knowledge. Follow this order:
|
|
53
|
-
|
|
54
|
-
### Vault First
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
YOUR_AGENT_core op:search_intelligent
|
|
58
|
-
params: { query: "<the feature or idea the user described>" }
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Look for:
|
|
62
|
-
|
|
63
|
-
- **Previous designs** — was this discussed or attempted before?
|
|
64
|
-
- **Architectural decisions** — are there constraints from past decisions?
|
|
65
|
-
- **Patterns** — established approaches in this codebase
|
|
66
|
-
- **Anti-patterns** — approaches that were tried and failed
|
|
67
|
-
|
|
68
|
-
Browse the knowledge landscape for related context:
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
YOUR_AGENT_core op:vault_tags
|
|
72
|
-
YOUR_AGENT_core op:vault_domains
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
Check what the brain says about proven patterns in this domain:
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
YOUR_AGENT_core op:brain_strengths
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Check if other linked projects have solved this:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
YOUR_AGENT_core op:memory_cross_project_search
|
|
85
|
-
params: { query: "<the feature>", crossProject: true }
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Web Search Second
|
|
89
|
-
|
|
90
|
-
If the vault doesn't have prior art, search the web for:
|
|
91
|
-
|
|
92
|
-
- **Existing libraries/tools** that solve this problem (don't build what exists)
|
|
93
|
-
- **Reference implementations** in similar projects
|
|
94
|
-
- **Best practices** and established patterns for this type of feature
|
|
95
|
-
- **Known pitfalls** that others have documented
|
|
96
|
-
|
|
97
|
-
### Present Findings
|
|
98
|
-
|
|
99
|
-
Present vault + web findings to the user: "Before we design this, here's what I found..." This informs the design conversation and prevents reinventing solutions.
|
|
100
|
-
|
|
101
|
-
## The Process
|
|
102
|
-
|
|
103
|
-
**Understanding the idea:**
|
|
104
|
-
|
|
105
|
-
- Check out the current project state first (files, docs, recent commits)
|
|
106
|
-
- Ask questions one at a time to refine the idea
|
|
107
|
-
- Prefer multiple choice questions when possible, but open-ended is fine too
|
|
108
|
-
- Only one question per message
|
|
109
|
-
- Focus on understanding: purpose, constraints, success criteria
|
|
110
|
-
|
|
111
|
-
**Exploring approaches:**
|
|
112
|
-
|
|
113
|
-
- Propose 2-3 different approaches with trade-offs
|
|
114
|
-
- Present options conversationally with your recommendation and reasoning
|
|
115
|
-
- Lead with your recommended option and explain why
|
|
116
|
-
- **Reference vault patterns** — if the vault has a proven approach, lead with it
|
|
117
|
-
- **Reference web findings** — if an existing library solves this, recommend it over custom code
|
|
118
|
-
|
|
119
|
-
**Presenting the design:**
|
|
120
|
-
|
|
121
|
-
- Once you understand what you're building, present the design
|
|
122
|
-
- Scale each section to its complexity
|
|
123
|
-
- Ask after each section whether it looks right so far
|
|
124
|
-
- Cover: architecture, components, data flow, error handling, testing
|
|
125
|
-
|
|
126
|
-
## After the Design
|
|
127
|
-
|
|
128
|
-
**Capture the design decision to the vault:**
|
|
129
|
-
|
|
130
|
-
```
|
|
131
|
-
YOUR_AGENT_core op:capture_knowledge
|
|
132
|
-
params: {
|
|
133
|
-
title: "<feature name> — design decision",
|
|
134
|
-
description: "<chosen approach, rationale, rejected alternatives>",
|
|
135
|
-
type: "decision",
|
|
136
|
-
category: "<relevant domain>",
|
|
137
|
-
tags: ["<relevant>", "<tags>", "design-decision"]
|
|
138
|
-
}
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
This ensures future brainstorming sessions can reference what was decided and why.
|
|
142
|
-
|
|
143
|
-
**Documentation:**
|
|
144
|
-
|
|
145
|
-
- Write the validated design to `docs/plans/YYYY-MM-DD-<topic>-design.md`
|
|
146
|
-
- Commit the design document to git
|
|
147
|
-
|
|
148
|
-
**Implementation:**
|
|
149
|
-
|
|
150
|
-
- Invoke the writing-plans skill to create a detailed implementation plan
|
|
151
|
-
- Do NOT invoke any other skill. writing-plans is the next step.
|
|
152
|
-
|
|
153
|
-
## Process Flow
|
|
154
|
-
|
|
155
|
-
**The terminal state is invoking writing-plans.** Do NOT invoke any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
|
|
156
|
-
|
|
157
|
-
## Key Principles
|
|
158
|
-
|
|
159
|
-
- **Classify first** — understand intent before diving in
|
|
160
|
-
- **Vault first** — don't reinvent what's been decided or solved before
|
|
161
|
-
- **Web second** — don't build what already exists as a library
|
|
162
|
-
- **One question at a time** — don't overwhelm with multiple questions
|
|
163
|
-
- **Multiple choice preferred** — easier to answer than open-ended when possible
|
|
164
|
-
- **YAGNI ruthlessly** — remove unnecessary features from all designs
|
|
165
|
-
- **Explore alternatives** — always propose 2-3 approaches before settling
|
|
166
|
-
- **Incremental validation** — present design, get approval before moving on
|
|
167
|
-
- **Capture decisions** — every design decision gets persisted to the vault
|
|
168
|
-
- **Cross-project learning** — check if other projects solved this already
|
|
169
|
-
- **Be flexible** — go back and clarify when something doesn't make sense
|
|
170
|
-
|
|
171
|
-
## Agent Tools Reference
|
|
172
|
-
|
|
173
|
-
| Op | When to Use |
|
|
174
|
-
| ------------------------------ | -------------------------------------------- |
|
|
175
|
-
| `route_intent` | Classify the type of work (BUILD, FIX, etc.) |
|
|
176
|
-
| `search_intelligent` | Search vault for prior art |
|
|
177
|
-
| `vault_tags` / `vault_domains` | Browse knowledge landscape |
|
|
178
|
-
| `brain_strengths` | Check proven patterns |
|
|
179
|
-
| `memory_cross_project_search` | Check if other projects solved this |
|
|
180
|
-
| `capture_knowledge` | Persist design decision to vault |
|