workflows-compound
Skill64 starsChanged 4 months agoMITView on GitHub
Capture learnings from the workflow into reusable documentation. Stage 7 of the development workflow.
In this repository102 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- assumptionsSkill
- capture-learningSkill
- Codex-opus-4-6-promptingSkill
- Codex-promptSkill
- mcp-code-modeSkill
- deploy-team-hubSkill
- diagramSkill
- distillSkill
- effect-tsSkill
- escalateSkill
- evalSkill
- experimentSkill
- hddSkill
- hub-auditSkill
- hub-collabSkill
- implementSkill
- knowledgeSkill
- peer-notebook-delivery-guardSkill
- research-taskSkill
- session-reviewSkill
- source-command-hdd-decideSkill
- source-command-hdd-hddSkill
- source-command-hdd-researchSkill
- source-command-hdd-stage-adrSkill
- source-command-hdd-validateSkill
- statusSkill
- supabaseSkill
- synthesizeSkill
- tasteSkill
- teamSkill
- test-suiteSkill
- theseus-protocolSkill
- thoughtbox:debugSkill
- thoughtbox:decisionSkill
- thoughtbox:evolutionSkill
- thoughtbox:knowledge-querySkill
- thoughtbox:onboardSkill
- thoughtbox:refactorSkill
- thoughtbox:researchSkill
- thoughtbox:session-reviewSkill
- thoughtbox-teamSkill
- ulc-loopSkill
- ulysses-protocolSkill
- workflow-brainstormingSkill
- workflow-ideationSkill
- workflow-reflectionSkill
- workflow-revisionSkill
- workflowSkill
- workflows-planSkill
- workflows-reviewSkill
- workflows-workSkill
- workflow-tournamentSkill
- assumptionsSkill
- capture-learningSkill
- claude-opus-4-6-promptingSkill
- claude-promptSkill
- mcp-code-modeSkill
- deploy-team-hubSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
If revision happened, it's also completed
- Distinctive: line 21
If pre-conditions are not met, report what's missing and halt.
- Distinctive: line 27
Read all workflow artifacts:
- Very specific: line 60
If a reusable solution was produced, write it to docs/solutions/:
- Distinctive: line 89
If significant patterns or discoveries should persist across sessions:
- Distinctive: line 91
Check existing memory files for related entries
- Distinctive: line 92
Update or add entries as appropriate
- Distinctive: line 132
Do NOT capture every detail — focus on what's reusable
- Distinctive: line 133
Do NOT write vague learnings like "testing is important" — be specific
- Distinctive: line 134
Do NOT skip this stage because "nothing interesting happened" — every workflow teaches something
- Distinctive: line 135
Do NOT write code — this is a documentation stage
- Distinctive: line 136
Do NOT create solution docs for trivial changes — only for patterns worth reusing
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Capture learnings from the current workflow: $ARGUMENTS
Purpose
You are executing Stage 7 (Compound) of the development workflow. Implementation is reviewed and revised. Your job is to extract reusable learnings from this workflow and persist them so future workflows benefit. You are NOT writing code — you are documenting what was learned.
Pre-Conditions
Before starting, verify:
.workflow/state.jsonexists andcurrentStageis"compound"- Review has passed (check
stages.review.statusis"completed") - If revision happened, it's also completed
If pre-conditions are not met, report what's missing and halt.
Process
Step 1: Gather Evidence
Read all workflow artifacts:
- Workflow state:
.workflow/state.json— timeline, iterations, stage notes - Sub-agent summaries:
.workflow/summaries/*.md— what was built - Review report:
.workflow/review-report.md— what was found - Spec and ADR: The original design documents
- Git log: What actually changed
git log --oneline --since="$(jq -r .startedAt .workflow/state.json)" -- .Step 2: Extract Learnings
Identify three categories of learnings:
Solutions — Reusable patterns for solving specific problems:
- What problem was solved?
- What approach worked?
- What approach was tried and didn't work?
- What would you do differently next time?
Discoveries — Things learned about the codebase or domain:
- Unexpected behaviors encountered
- Undocumented constraints discovered
- Performance characteristics measured
Process — What worked or didn't in the workflow itself:
- Which stages were smooth vs. painful?
- Where did revision loops happen and why?
- What spec assumptions were wrong?
Step 3: Write Solution Document
If a reusable solution was produced, write it to docs/solutions/:
# <Problem Title>
## Problem
[What problem this solves, in 2-3 sentences]
## Solution
[The approach that worked, with code references]
## Context
- Workflow: <id>
- Spec: <path>
- Date: <ISO date>
## Key Decisions
- [Decision 1]: [Why this choice was made]
- [Decision 2]: [Why this choice was made]
## What Didn't Work
- [Approach that was tried and abandoned, with brief explanation]
## Related
- [Links to specs, ADRs, or other solutions]Step 4: Update Agent Memory
If significant patterns or discoveries should persist across sessions:
- Check existing memory files for related entries
- Update or add entries as appropriate
- Include fitness tags (HOT/WARM/COLD) per the DGM calibration rules
Step 5: Record and Handoff
- Update workflow state (
.workflow/state.json):- Set
stages.compound.statusto"completed" - Set
stages.compound.completedAtto current ISO timestamp - Set
stages.compound.artifacts.solutionto the solution doc path (if created) - Set
currentStageto"reflection" - Update
updatedAt
- Set
- Present the handoff:
COMPOUND COMPLETE ================== Solutions captured: N Discoveries: N Process notes: N Solution doc: <path or "none — no reusable pattern identified"> Next: Stage 8 - Reflection (/workflow-reflection)
What Makes a Good Learning
A learning is worth capturing if it meets ANY of these:
- It would save >30 minutes if encountered again
- It contradicts documentation or common assumptions
- It reveals a non-obvious interaction between components
- It's a pattern that applies beyond this specific feature
A learning is NOT worth capturing if:
- It's specific to this feature with no broader applicability
- It's already documented in the codebase or specs
- It's a trivial fix that anyone would find quickly
Anti-Patterns
- Do NOT capture every detail — focus on what's reusable
- Do NOT write vague learnings like "testing is important" — be specific
- Do NOT skip this stage because "nothing interesting happened" — every workflow teaches something
- Do NOT write code — this is a documentation stage
- Do NOT create solution docs for trivial changes — only for patterns worth reusing
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

