gaearon/woodshed/original
Claude Code and agent skill by gaearon/woodshed
- community
Checking that the SKILL.md file is still in the repository.
Use when building a deciduous decision graph to capture design evolution, architecture history, or how a codebase's design changed over time. Provides the deciduous CLI commands and graph structure guidelines.
Install
npx vskill@latest install gaearon/woodshed/originalSKILL.md
Decision Graph Construction
You are building a deciduous decision graph - a DAG that captures the evolution of design decisions in a codebase.
Use the deciduous CLI (at ~/.cargo/bin/deciduous) to build the graph. Run deciduous commands in the current directory (not inside the source repo).
For git commands to explore commit history, use git -C <repo-path> to target the source repo.
CRITICAL: Only use information from the repository itself (commits, code, comments, tests). Do not use your prior knowledge about the project. Everything must be grounded in what you find in the repo.
Commit Exploration
Use a layered strategy to find all relevant commits:
Layer 1: See all commits. Start with the full list when building narratives.
Layer 2: Keyword expansion. Once you have narratives, search for spelling variations and related terms you might have missed (e.g., "cache" → "caching", "cached", "LRU", "invalidate"). For each key identifier in your narratives, trace its full lifecycle:
- Introduction
- Changes and modifications
- Renames
- Deprecation or removal
- Replacement by other mechanisms
- Becoming stable/public API
If there's a feature flag controlling the feature, search for commits mentioning that flag.
Layer 3: Follow authors. If a narrative has a key author, check their commits ±1 month from known commits. They often work on related things.
DO NOT:
git log ... | head -100— NO. You will miss commits in the middle.git log ... | tail -200— NO. Same problem.- Start with keyword filtering — NO. You'll miss things with unexpected names.
DO:
- See all commits first, filter mentally while building narratives
- Include "remove", "delete", "disable", "deprecate" in keyword searches — removals explain transitions
- Check the commit count first (
| wc -l), but then see them all - Read full commit messages for any commit whose title mentions an identifier or concept relevant to your narrative — you need precise understanding of what happened to each one you care about
Finding the Story
Not every commit matters. Look for commits that change the model - how the system conceptualizes the problem:
- Existing tests modified (contract changing, not just bugs fixed)
- Data structures replaced or reworked
- Heuristics changed significantly
- New abstractions introduced
- API behavior shifts
Skip commits that are pure implementation (same model, different code) or routine fixes that just add tests.
Among model-changing commits, find the spine: what question keeps getting re-answered? What approach keeps getting replaced or refined? That's your central thread - build the graph around it.
Narrative Tracking
Don't build the graph as you explore. First, collect commits into narratives.
Maintain narratives.md as you explore:
- For each significant commit, read
narratives.md - Ask: "Does this commit evolve an existing narrative?"
- If yes: append the commit to that narrative's section
- If no: add a new narrative section
Example narratives.md:
Before building the graph, take a critical pass over narratives.md:
- Merge narratives that are essentially the same evolving thing
- Ensure each narrative clearly explains how one independent piece evolved
- Note where narratives branch from or feed into each other
Hardening Phase
After building initial narratives, harden them to ensure nothing is missed.
Step 1: Extract concepts per narrative
For each narrative, list the key concepts/APIs/identifiers and their lifecycle stage:
- Introduced: First appearance of the concept
- Changed: Modifications to behavior or implementation
- Renamed/Deprecated/Removed: End of life or replacement
- Marked stable: Became public API or removed "unstable\_" prefix
Example addition to narrative:
Step 2: Exhaustive search per concept
For each concept, search full commit messages (not just subject lines):
For each match, read the full commit message:
Step 3: Rewrite narratives with gaps filled
Rewrite narratives.md integrating any newly discovered commits. The rewritten version should:
- Include ALL commits found for each concept
- Update the lifecycle tracking for each concept
- Ensure the arc is complete (if something was introduced, when was it changed/removed?)
If a concept has an incomplete arc (e.g., introduced but never removed, yet it's not in current code), investigate further.
Cross-Narrative Connections
When building the graph, don't just branch everything from the goal. Capture how narratives relate:
Branch from the spine, not goal: If a narrative arose from work in another narrative, branch from that work.
- Wrong:
goal → "How to preserve state?" - Right:
outcome("timeout works") → "How to preserve state?"(the question arose after implementing timeout)
Observations feed back: If an observation in one narrative influenced decisions in another, add an edge.
- Example: An observation about nested boundary timing might inform heuristics refinement in the main narrative
Keep truly independent things from goal: If a narrative is genuinely a separate concern that doesn't arise from other work, branching from goal is appropriate.
After consolidating, build the graph - one decision chain per narrative, with cross-links where they connect.
Node Types
| Type | Purpose | |
|---|---|---|
| goal | High-level objective being pursued | |
| decision | A choice point with multiple possible paths | |
| option | A possible approach to a decision | |
| observation | Learning, insight, or new information discovered | |
| action | Something that was done (must reference a commit) | |
| outcome | Result or consequence of an action | |
| revisit | Pivot point where a previous approach is reconsidered |
CLI Commands
Narrative Discipline
You're not collecting facts - you're crafting a story. Every node needs a _raison d'être_.
Before adding a node, stop and ask: Why does this exist? What prompted it?
- Is this commit evolving something that's already in the graph? Then connect it there - it's a continuation, not a new branch.
- Is this a response to an observation about existing work? Then chain from that observation - something was learned, and this is the reaction.
- Did the winds change? Look for the moment the team realized the old approach wasn't working. That's an observation node, and it's the bridge to what came next.
Don't branch from the goal unless it's genuinely new. If you're about to draw an edge from the root goal, ask: does this replace or refine something we already designed? If yes, find that thing and connect there instead.
The test: can someone read your graph and understand not just _what_ happened, but _why_ each thing happened? Every node should feel inevitable given what came before it.
Think of commits as chapters in a story. Each chapter exists because of what happened in previous chapters. Your job is to find those causal threads and make them explicit.
Temporal Rule
Time flows forward. Past influences future, never reverse.
Options under a decision are alternatives considered _at the same time_. If an approach was tried, failed, and a new approach was designed later - that's a new decision node, connected by observations about why the old approach failed.
Example - DON'T model sequential attempts as parallel options:
Example - DO model as chain of decisions with learning:
Multiple observations can converge into one decision. Multiple options can branch from one decision. But the graph flows forward in time.
Edge Types
Use specific edge types to show relationships:
decision --chosen--> option- This option was selecteddecision --rejected--> option- This option was considered but not selected (with rationale)decision --leads_to--> option- Lists available options
For post-hoc abandonment (tried something, it failed later):
- Mark the option status as
rejected:deciduous status <id> rejected - Create an observation explaining why it failed
- Link observation to the new decision it triggered
Link Patterns
goal → decision- Goal leads to choice pointdecision → option- Decision has options (use chosen/rejected edge types)option → action- Chosen option leads to implementationaction → outcome- Action produces resultoutcome → observation- Result reveals new insightobservation → decision- Insight triggers new choice (can have multiple observations converging)observation → revisit- Insight forces reconsideration of previous approachrevisit → decision- Pivot leads to new choice point
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexample/skills/decision-graph/original/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gaearon/woodshed/original)