[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HVWF4VYP3FH50XD4XCTXKB":3,"skill-same:01M6HVWF4VYP3FH50XD4XCTXKB":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":14,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M6HVWF4VYP3FH50XD4XCTXKB","decision-graph",null,"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.","cyclone-pro\u002Fwooshed","cyclone-pro","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F260544037?v=4","01M6HVW0J9FGKDF0S416G0SF56","Cyclone","01M6HVW0P9D8CH70YD0K05EWGD",0,"MIT","https:\u002F\u002Fgithub.com\u002Fcyclone-pro\u002Fwooshed\u002Fblob\u002Fmain\u002Fexample\u002Fskills\u002Fdecision-graph\u002Foriginal-1.5\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"graph","decision","decision graph","design","cli","architecture","guidelines","how","history","capture","evolution","use","structure","time","commands","codebase","2026-11-10 10:12:30",false,"---\nname: decision-graph\ndescription: 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.\n---\n\n# Decision Graph Construction\n\nYou are building a **deciduous decision graph** - a DAG that captures the evolution of design decisions in a codebase.\n\nUse the `deciduous` CLI (at ~\u002F.cargo\u002Fbin\u002Fdeciduous) to build the graph. Run deciduous commands in the current directory (not inside the source repo).\n\nFor git commands to explore commit history, use `git -C \u003Crepo-path>` to target the source repo.\n\n**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.**\n\n## Commit Exploration\n\nUse a layered strategy to find all relevant commits:\n\n**Layer 1: See all commits.** Start with the full list when building narratives.\n\n```bash\ngit log --oneline --after=\"...\" --before=\"...\" -- path\u002F\n```\n\n**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:\n\n- Introduction\n- Changes and modifications\n- Renames\n- Deprecation or removal\n- Replacement by other mechanisms\n- Becoming stable\u002Fpublic API\n\nIf there's a feature flag controlling the feature, search for commits mentioning that flag.\n\n**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.\n\n### DO NOT:\n\n- `git log ... | head -100` — **NO.** You will miss commits in the middle.\n- `git log ... | tail -200` — **NO.** Same problem.\n- Start with keyword filtering — **NO.** You'll miss things with unexpected names.\n\n### DO:\n\n- See all commits first, filter mentally while building narratives\n- Include \"remove\", \"delete\", \"disable\", \"deprecate\" in keyword searches — removals explain transitions\n- Check the commit count first (`| wc -l`), but then see them all\n- **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\n\n## Finding the Story\n\nNot every commit matters. Look for commits that change **the model** - how the system conceptualizes the problem:\n\n- Existing tests modified (contract changing, not just bugs fixed)\n- Data structures replaced or reworked\n- Heuristics changed significantly\n- New abstractions introduced\n- API behavior shifts\n\nSkip commits that are pure implementation (same model, different code) or routine fixes that just add tests.\n\nAmong 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.\n\n## Narrative Tracking\n\n**Don't build the graph as you explore.** First, collect commits into narratives.\n\nMaintain `narratives.md` as you explore:\n\n1. For each significant commit, read `narratives.md`\n2. Ask: \"Does this commit evolve an existing narrative?\"\n3. If yes: append the commit to that narrative's section\n4. If no: add a new narrative section\n\nExample `narratives.md`:\n\n```\n## Cache Strategy\n\n**Arc:** The service initially hit the database on every request, which worked until traffic spiked. An in-memory cache solved immediate pain but caused stale data across instances. Redis gave a single source of truth at the cost of network latency.\n\n- a1b2c3d: Add in-memory cache\n- e4f5g6h: Cache invalidation issues\n- i7j8k9l: Switch to Redis\n\n## API Rate Limiting\n- m1n2o3p: Add basic throttling\n- ...\n```\n\nThe **Arc** is a one-paragraph story summarizing the narrative's trajectory - what problem started it, what was tried, and where it ended up. Arcs help you see the shape of the story before building the graph.\n\n**Before building the graph**, take a critical pass over `narratives.md`:\n\n- Merge narratives that are essentially the same evolving thing\n- Ensure each narrative clearly explains how one independent piece evolved\n- Note where narratives branch from or feed into each other\n\n## Hardening Phase\n\nAfter building initial narratives, harden them to ensure nothing is missed.\n\n### Step 1: Extract concepts per narrative\n\nFor each narrative, list the key concepts\u002FAPIs\u002Fidentifiers and their lifecycle stage:\n\n- **Introduced**: First appearance of the concept\n- **Changed**: Modifications to behavior or implementation\n- **Renamed\u002FDeprecated\u002FRemoved**: End of life or replacement\n- **Marked stable**: Became public API or removed \"unstable\\_\" prefix\n\nExample addition to narrative:\n\n```\n## Cache Strategy\nConcepts: cache, LRUCache, cacheTimeout, invalidate\n\nLifecycle:\n- cache: introduced (a1b2c3d), changed (e4f5g6h), renamed to LRUCache (x1y2z3)\n- cacheTimeout: introduced (e4f5g6h), removed (i7j8k9l)\n- LRUCache: introduced via rename (x1y2z3), marked stable (p1q2r3)\n\nCommits:\n- a1b2c3d: Add in-memory cache\n- ...\n```\n\n### Step 2: Exhaustive search per concept\n\nFor each concept, search full commit messages (not just subject lines):\n\n```bash\ngit log --all --after=\"...\" --before=\"...\" --grep=\"\u003Cconcept>\" --format=\"%H %s\" -- path\u002F\n```\n\nFor each match, read the full commit message:\n\n```bash\ngit show \u003Csha> --format=\"%B\" --no-patch\n```\n\n### Step 3: Rewrite narratives with gaps filled\n\nRewrite `narratives.md` integrating any newly discovered commits. The rewritten version should:\n\n- Include ALL commits found for each concept\n- Update the lifecycle tracking for each concept\n- Ensure the arc is complete (if something was introduced, when was it changed\u002Fremoved?)\n\nIf a concept has an incomplete arc (e.g., introduced but never removed, yet it's not in current code), investigate further.\n\n**Before building the graph**, take one more critical pass over `narratives.md`:\n\n- Merge narratives that are essentially the same evolving thing\n- Ensure each narrative clearly explains how one independent piece evolved\n- Note where narratives branch from or feed into each other\n\n## Cross-Narrative Connections\n\nWhen building the graph, don't just branch everything from the goal. Capture how narratives relate:\n\n**Branch from the spine, not goal:** If a narrative arose from work in another narrative, branch from that work.\n\n- Wrong: `goal → \"How to preserve state?\"`\n- Right: `outcome(\"timeout works\") → \"How to preserve state?\"` (the question arose after implementing timeout)\n\n**Observations feed back:** If an observation in one narrative influenced decisions in another, add an edge.\n\n- Example: An observation about nested boundary timing might inform heuristics refinement in the main narrative\n\n**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.\n\n**Parallel vs Sequential:** When connecting narratives, ask: \"Did A cause B, or did they happen to occur around the same time?\"\n\n- If A genuinely caused or enabled B → connect them sequentially (A → B)\n- If A and B developed independently but happened in parallel → don't force a connection; both can branch from the same parent\n\nAfter consolidating, build the graph - one decision chain per narrative, with cross-links where they connect.\n\n## Node Types\n\n| Type            | Purpose                                               |\n| --------------- | ----------------------------------------------------- |\n| **goal**        | High-level objective being pursued                    |\n| **decision**    | A choice point with multiple possible paths           |\n| **option**      | A possible approach to a decision                     |\n| **observation** | Learning, insight, or new information discovered      |\n| **action**      | Something that was done (must reference a commit)     |\n| **outcome**     | Result or consequence of an action                    |\n| **revisit**     | Pivot point where a previous approach is reconsidered |\n\n## CLI Commands\n\n```bash\n# Add nodes (returns node ID)\ndeciduous add goal \"Title of the goal\"\ndeciduous add decision \"The question or choice point\"\ndeciduous add option \"One possible approach\"\ndeciduous add observation \"Something learned or discovered\"\ndeciduous add action \"Descriptive title of what was done\"\ndeciduous add outcome \"What resulted from the action\"\ndeciduous add revisit \"Reconsidering previous approach\"\n\n# Add nodes with descriptions (use -d for explanations and sources)\ndeciduous add action \"Title\" -d \"Explanation of what happened and why.\n\nSources:\n- abc123: 'Relevant quote from commit message'\"\n\n# Set status on options\ndeciduous status \u003Cid> rejected    # option that wasn't chosen\ndeciduous status \u003Cid> completed   # option that was chosen\n\n# Connect nodes (from → to means \"from leads_to to\")\ndeciduous link \u003Cfrom-id> \u003Cto-id>\ndeciduous link \u003Cfrom-id> \u003Cto-id> -r \"Why this led to that\"\n\n# View\u002Frestructure\ndeciduous nodes           # list all\ndeciduous edges           # list connections\ndeciduous unlink \u003Cfrom> \u003Cto>   # remove edge\ndeciduous delete \u003Cid>          # remove node and edges\n```\n\n## Narrative Discipline\n\nYou're not collecting facts - you're crafting a story. Every node needs a _raison d'être_.\n\nBefore adding a node, stop and ask: **Why does this exist? What prompted it?**\n\n- Is this commit evolving something that's already in the graph? Then connect it there - it's a continuation, not a new branch.\n- Is this a response to an observation about existing work? Then chain from that observation - something was learned, and this is the reaction.\n- 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.\n\n**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.\n\nThe 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.\n\nThink 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.\n\n## Temporal Rule\n\n**Time flows forward. Past influences future, never reverse.**\n\nOptions 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.\n\nExample - DON'T model sequential attempts as parallel options:\n\n```\n# WRONG - these were decided years apart, not simultaneously\ndecision: \"How to handle caching?\"\n  ├→ option: in-memory cache (2019)\n  ├→ option: Redis (2020)\n  └→ option: CDN (2021)\n```\n\nExample - DO model as chain of decisions with learning:\n\n```\n# RIGHT - each attempt informs the next, options are simultaneous alternatives\ndecision: \"How to handle caching?\" (2019)\n  ├→ option: in-memory cache [chosen]\n  └→ option: no caching [rejected] \"Perf requirements too strict\"\n        ↓\noption: in-memory cache → action → outcome\n        ↓\nobservation: \"Doesn't scale across instances\"\n        ↓\ndecision: \"How to share cache across instances?\" (2020)\n  ├→ option: Redis [chosen] \"Team has Redis experience\"\n  ├→ option: Memcached [rejected] \"Less feature-rich\"\n  └→ option: database caching [rejected] \"Adds DB load\"\n        ↓\noption: Redis → action → outcome\n        ↓\nobservation: \"Latency too high for hot paths\"\n        ↓\ndecision: \"How to reduce latency for static assets?\" (2021)\n  └→ option: CDN [chosen]\n```\n\nMultiple observations can converge into one decision. Multiple options can branch from one decision. But the graph flows forward in time.\n\n## Edge Types\n\nUse specific edge types to show relationships:\n\n```bash\ndeciduous link \u003Cfrom> \u003Cto> -t chosen -r \"Why this was selected\"\ndeciduous link \u003Cfrom> \u003Cto> -t rejected -r \"Why this wasn't selected\"\ndeciduous link \u003Cfrom> \u003Cto> -t leads_to -r \"How this led to that\"\n```\n\n- `decision --chosen--> option` - This option was selected\n- `decision --rejected--> option` - This option was considered but not selected (with rationale)\n- `decision --leads_to--> option` - Lists available options\n\nFor post-hoc abandonment (tried something, it failed later):\n\n- Mark the option status as `rejected`: `deciduous status \u003Cid> rejected`\n- Create an observation explaining why it failed\n- Link observation to the new decision it triggered\n\n## Link Patterns\n\n- `goal → decision` - Goal leads to choice point\n- `decision → option` - Decision has options (use chosen\u002Frejected edge types)\n- `option → action` - Chosen option leads to implementation\n- `action → outcome` - Action produces result\n- `outcome → observation` - Result reveals new insight\n- `observation → decision` - Insight triggers new choice (can have multiple observations converging)\n- `observation → revisit` - Insight forces reconsideration of previous approach\n- `revisit → decision` - Pivot leads to new choice point\n\nWhen a design approach is abandoned and replaced:\n\n```bash\ndeciduous add observation \"JWT too large for mobile\"\ndeciduous add revisit \"Reconsidering token strategy\"\ndeciduous link \u003Cobservation> \u003Crevisit> -r \"forced rethinking\"\ndeciduous status \u003Cold_decision> superseded\n```\n\nRevisit nodes connect old approaches to new ones, capturing WHY things changed.\n\n## Grounding Requirements\n\n1. **Actions must cite commits**: Every action node must reference a real commit SHA in its description. Use `-d` when adding the node.\n\n2. **Observations from evidence**: Observations should come from commit messages, code comments, or test descriptions you find in the repo.\n\n3. **No speculation**: If you can't find evidence for something in the repo, don't include it. An incomplete but grounded graph is better than a complete but speculative one.\n\n4. **Quote sources**: When possible, quote or paraphrase the actual commit message or comment that supports a node.\n\n## Rich Node Content\n\nThe graph is an **alternative interface to browsing commit history**. Someone reading a node should understand what happened without looking up commits.\n\n**Every node needs a description** - especially outcome and observation nodes. The description should be readable to someone exploring the graph who doesn't have the commits open.\n\n### Structure: Explanation first, then sources\n\n1. **Start with a readable explanation** that makes sense within the narrative. What happened? Why? How does it connect to what came before?\n2. **Add sources below** with direct quotes from commits that support the explanation.\n\nIf you find your explanation doesn't make sense in context - something feels like a leap or a gap - that's a signal to dig deeper. There's probably a missing commit or transition you haven't found yet.\n\nThe relationship is many-to-many:\n\n- One node may reference multiple commits (a decision informed by several changes)\n- One commit may appear in multiple nodes (a large commit touching several concerns)\n\n### Example\n\n```bash\ndeciduous add decision \"Should we switch from SQL to a document store?\" -d \"The team decided to switch from SQL to a document store.\nThis eliminated the impedance mismatch between the object model and storage,\nat the cost of losing ad-hoc query capability (which wasn't being used anyway).\n\nSources:\n- a1b2c3d: 'Our access patterns are almost entirely key-value lookups. The\n  JOIN operations we wrote are never actually used in production.'\n- e4f5g6h: 'Document store removes the ORM layer entirely - one less thing\n  to maintain and debug.'\"\n```\n\n### DO NOT:\n\n- Leave nodes with just a title and no description\n- Put quotes first without explaining what they mean\n- Write explanations that don't make sense in the narrative flow (this signals missing context)\n\n### DO:\n\n- Write explanations that flow naturally from previous nodes\n- Include direct quotes that support the explanation\n- Treat gaps in the story as prompts to investigate further\n\n## Output\n\nWhen done, run `deciduous graph > graph.json` to export.\n","# Decision Graph Construction\n\nYou are building a **deciduous decision graph** - a DAG that captures the evolution of design decisions in a codebase.\n\nUse the `deciduous` CLI (at ~\u002F.cargo\u002Fbin\u002Fdeciduous) to build the graph. Run deciduous commands in the current directory (not inside the source repo).\n\nFor git commands to explore commit history, use `git -C \u003Crepo-path>` to target the source repo.\n\n**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.**\n\n## Commit Exploration\n\nUse a layered strategy to find all relevant commits:\n\n**Layer 1: See all commits.** Start with the full list when building narratives.\n\n```bash\ngit log --oneline --after=\"...\" --before=\"...\" -- path\u002F\n```\n\n**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:\n\n- Introduction\n- Changes and modifications\n- Renames\n- Deprecation or removal\n- Replacement by other mechanisms\n- Becoming stable\u002Fpublic API\n\nIf there's a feature flag controlling the feature, search for commits mentioning that flag.\n\n**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.\n\n### DO NOT:\n\n- `git log ... | head -100` — **NO.** You will miss commits in the middle.\n- `git log ... | tail -200` — **NO.** Same problem.\n- Start with keyword filtering — **NO.** You'll miss things with unexpected names.\n\n### DO:\n\n- See all commits first, filter mentally while building narratives\n- Include \"remove\", \"delete\", \"disable\", \"deprecate\" in keyword searches — removals explain transitions\n- Check the commit count first (`| wc -l`), but then see them all\n- **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\n\n## Finding the Story\n\nNot every commit matters. Look for commits that change **the model** - how the system conceptualizes the problem:\n\n- Existing tests modified (contract changing, not just bugs fixed)\n- Data structures replaced or reworked\n- Heuristics changed significantly\n- New abstractions introduced\n- API behavior shifts\n\nSkip commits that are pure implementation (same model, different code) or routine fixes that just add tests.\n\nAmong 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.\n\n## Narrative Tracking\n\n**Don't build the graph as you explore.** First, collect commits into narratives.\n\nMaintain `narratives.md` as you explore:\n\n1. For each significant commit, read `narratives.md`\n2. Ask: \"Does this commit evolve an existing narrative?\"\n3. If yes: append the commit to that narrative's section\n4. If no: add a new narrative section\n\nExample `narratives.md`:\n\n```\n## Cache Strategy\n\n**Arc:** The service initially hit the database on every request, which worked until traffic spiked. An in-memory cache solved immediate pain but caused stale data across instances. Redis gave a single source of truth at the cost of network latency.\n\n- a1b2c3d: Add in-memory cache\n- e4f5g6h: Cache invalidation issues\n- i7j8k9l: Switch to Redis\n\n## API Rate Limiting\n- m1n2o3p: Add basic throttling\n- ...\n```\n\nThe **Arc** is a one-paragraph story summarizing the narrative's trajectory - what problem started it, what was tried, and where it ended up. Arcs help you see the shape of the story before building the graph.\n\n**Before building the graph**, take a critical pass over `narratives.md`:\n\n- Merge narratives that are essentially the same evolving thing\n- Ensure each narrative clearly explains how one independent piece evolved\n- Note where narratives branch from or feed into each other\n\n## Hardening Phase\n\nAfter building initial narratives, harden them to ensure nothing is missed.\n\n### Step 1: Extract concepts per narrative\n\nFor each narrative, list the key concepts\u002FAPIs\u002Fidentifiers and their lifecycle stage:\n\n- **Introduced**: First appearance of the concept\n- **Changed**: Modifications to behavior or implementation\n- **Renamed\u002FDeprecated\u002FRemoved**: End of life or replacement\n- **Marked stable**: Became public API or removed \"unstable\\_\" prefix\n\nExample addition to narrative:\n\n```\n## Cache Strategy\nConcepts: cache, LRUCache, cacheTimeout, invalidate\n\nLifecycle:\n- cache: introduced (a1b2c3d), changed (e4f5g6h), renamed to LRUCache (x1y2z3)\n- cacheTimeout: introduced (e4f5g6h), removed (i7j8k9l)\n- LRUCache: introduced via rename (x1y2z3), marked stable (p1q2r3)\n\nCommits:\n- a1b2c3d: Add in-memory cache\n- ...\n```\n\n### Step 2: Exhaustive search per concept\n\nFor each concept, search full commit messages (not just subject lines):\n\n```bash\ngit log --all --after=\"...\" --before=\"...\" --grep=\"\u003Cconcept>\" --format=\"%H %s\" -- path\u002F\n```\n\nFor each match, read the full commit message:\n\n```bash\ngit show \u003Csha> --format=\"%B\" --no-patch\n```\n\n### Step 3: Rewrite narratives with gaps filled\n\nRewrite `narratives.md` integrating any newly discovered commits. The rewritten version should:\n\n- Include ALL commits found for each concept\n- Update the lifecycle tracking for each concept\n- Ensure the arc is complete (if something was introduced, when was it changed\u002Fremoved?)\n\nIf a concept has an incomplete arc (e.g., introduced but never removed, yet it's not in current code), investigate further.\n\n**Before building the graph**, take one more critical pass over `narratives.md`:\n\n- Merge narratives that are essentially the same evolving thing\n- Ensure each narrative clearly explains how one independent piece evolved\n- Note where narratives branch from or feed into each other\n\n## Cross-Narrative Connections\n\nWhen building the graph, don't just branch everything from the goal. Capture how narratives relate:\n\n**Branch from the spine, not goal:** If a narrative arose from work in another narrative, branch from that work.\n\n- Wrong: `goal → \"How to preserve state?\"`\n- Right: `outcome(\"timeout works\") → \"How to preserve state?\"` (the question arose after implementing timeout)\n\n**Observations feed back:** If an observation in one narrative influenced decisions in another, add an edge.\n\n- Example: An observation about nested boundary timing might inform heuristics refinement in the main narrative\n\n**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.\n\n**Parallel vs Sequential:** When connecting narratives, ask: \"Did A cause B, or did they happen to occur around the same time?\"\n\n- If A genuinely caused or enabled B → connect them sequentially (A → B)\n- If A and B developed independently but happened in parallel → don't force a connection; both can branch from the same parent\n\nAfter consolidating, build the graph - one decision chain per narrative, with cross-links where they connect.\n\n## Node Types\n\n| Type            | Purpose                                               |\n| --------------- | ----------------------------------------------------- |\n| **goal**        | High-level objective being pursued                    |\n| **decision**    | A choice point with multiple possible paths           |\n| **option**      | A possible approach to a decision                     |\n| **observation** | Learning, insight, or new information discovered      |\n| **action**      | Something that was done (must reference a commit)     |\n| **outcome**     | Result or consequence of an action                    |\n| **revisit**     | Pivot point where a previous approach is reconsidered |\n\n## CLI Commands\n\n```bash\n# Add nodes (returns node ID)\ndeciduous add goal \"Title of the goal\"\ndeciduous add decision \"The question or choice point\"\ndeciduous add option \"One possible approach\"\ndeciduous add observation \"Something learned or discovered\"\ndeciduous add action \"Descriptive title of what was done\"\ndeciduous add outcome \"What resulted from the action\"\ndeciduous add revisit \"Reconsidering previous approach\"\n\n# Add nodes with descriptions (use -d for explanations and sources)\ndeciduous add action \"Title\" -d \"Explanation of what happened and why.\n\nSources:\n- abc123: 'Relevant quote from commit message'\"\n\n# Set status on options\ndeciduous status \u003Cid> rejected    # option that wasn't chosen\ndeciduous status \u003Cid> completed   # option that was chosen\n\n# Connect nodes (from → to means \"from leads_to to\")\ndeciduous link \u003Cfrom-id> \u003Cto-id>\ndeciduous link \u003Cfrom-id> \u003Cto-id> -r \"Why this led to that\"\n\n# View\u002Frestructure\ndeciduous nodes           # list all\ndeciduous edges           # list connections\ndeciduous unlink \u003Cfrom> \u003Cto>   # remove edge\ndeciduous delete \u003Cid>          # remove node and edges\n```\n\n## Narrative Discipline\n\nYou're not collecting facts - you're crafting a story. Every node needs a _raison d'être_.\n\nBefore adding a node, stop and ask: **Why does this exist? What prompted it?**\n\n- Is this commit evolving something that's already in the graph? Then connect it there - it's a continuation, not a new branch.\n- Is this a response to an observation about existing work? Then chain from that observation - something was learned, and this is the reaction.\n- 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.\n\n**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.\n\nThe 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.\n\nThink 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.\n\n## Temporal Rule\n\n**Time flows forward. Past influences future, never reverse.**\n\nOptions 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.\n\nExample - DON'T model sequential attempts as parallel options:\n\n```\n# WRONG - these were decided years apart, not simultaneously\ndecision: \"How to handle caching?\"\n  ├→ option: in-memory cache (2019)\n  ├→ option: Redis (2020)\n  └→ option: CDN (2021)\n```\n\nExample - DO model as chain of decisions with learning:\n\n```\n# RIGHT - each attempt informs the next, options are simultaneous alternatives\ndecision: \"How to handle caching?\" (2019)\n  ├→ option: in-memory cache [chosen]\n  └→ option: no caching [rejected] \"Perf requirements too strict\"\n        ↓\noption: in-memory cache → action → outcome\n        ↓\nobservation: \"Doesn't scale across instances\"\n        ↓\ndecision: \"How to share cache across instances?\" (2020)\n  ├→ option: Redis [chosen] \"Team has Redis experience\"\n  ├→ option: Memcached [rejected] \"Less feature-rich\"\n  └→ option: database caching [rejected] \"Adds DB load\"\n        ↓\noption: Redis → action → outcome\n        ↓\nobservation: \"Latency too high for hot paths\"\n        ↓\ndecision: \"How to reduce latency for static assets?\" (2021)\n  └→ option: CDN [chosen]\n```\n\nMultiple observations can converge into one decision. Multiple options can branch from one decision. But the graph flows forward in time.\n\n## Edge Types\n\nUse specific edge types to show relationships:\n\n```bash\ndeciduous link \u003Cfrom> \u003Cto> -t chosen -r \"Why this was selected\"\ndeciduous link \u003Cfrom> \u003Cto> -t rejected -r \"Why this wasn't selected\"\ndeciduous link \u003Cfrom> \u003Cto> -t leads_to -r \"How this led to that\"\n```\n\n- `decision --chosen--> option` - This option was selected\n- `decision --rejected--> option` - This option was considered but not selected (with rationale)\n- `decision --leads_to--> option` - Lists available options\n\nFor post-hoc abandonment (tried something, it failed later):\n\n- Mark the option status as `rejected`: `deciduous status \u003Cid> rejected`\n- Create an observation explaining why it failed\n- Link observation to the new decision it triggered\n\n## Link Patterns\n\n- `goal → decision` - Goal leads to choice point\n- `decision → option` - Decision has options (use chosen\u002Frejected edge types)\n- `option → action` - Chosen option leads to implementation\n- `action → outcome` - Action produces result\n- `outcome → observation` - Result reveals new insight\n- `observation → decision` - Insight triggers new choice (can have multiple observations converging)\n- `observation → revisit` - Insight forces reconsideration of previous approach\n- `revisit → decision` - Pivot leads to new choice point\n\nWhen a design approach is abandoned and replaced:\n\n```bash\ndeciduous add observation \"JWT too large for mobile\"\ndeciduous add revisit \"Reconsidering token strategy\"\ndeciduous link \u003Cobservation> \u003Crevisit> -r \"forced rethinking\"\ndeciduous status \u003Cold_decision> superseded\n```\n\nRevisit nodes connect old approaches to new ones, capturing WHY things changed.\n\n## Grounding Requirements\n\n1. **Actions must cite commits**: Every action node must reference a real commit SHA in its description. Use `-d` when adding the node.\n\n2. **Observations from evidence**: Observations should come from commit messages, code comments, or test descriptions you find in the repo.\n\n3. **No speculation**: If you can't find evidence for something in the repo, don't include it. An incomplete but grounded graph is better than a complete but speculative one.\n\n4. **Quote sources**: When possible, quote or paraphrase the actual commit message or comment that supports a node.\n\n## Rich Node Content\n\nThe graph is an **alternative interface to browsing commit history**. Someone reading a node should understand what happened without looking up commits.\n\n**Every node needs a description** - especially outcome and observation nodes. The description should be readable to someone exploring the graph who doesn't have the commits open.\n\n### Structure: Explanation first, then sources\n\n1. **Start with a readable explanation** that makes sense within the narrative. What happened? Why? How does it connect to what came before?\n2. **Add sources below** with direct quotes from commits that support the explanation.\n\nIf you find your explanation doesn't make sense in context - something feels like a leap or a gap - that's a signal to dig deeper. There's probably a missing commit or transition you haven't found yet.\n\nThe relationship is many-to-many:\n\n- One node may reference multiple commits (a decision informed by several changes)\n- One commit may appear in multiple nodes (a large commit touching several concerns)\n\n### Example\n\n```bash\ndeciduous add decision \"Should we switch from SQL to a document store?\" -d \"The team decided to switch from SQL to a document store.\nThis eliminated the impedance mismatch between the object model and storage,\nat the cost of losing ad-hoc query capability (which wasn't being used anyway).\n\nSources:\n- a1b2c3d: 'Our access patterns are almost entirely key-value lookups. The\n  JOIN operations we wrote are never actually used in production.'\n- e4f5g6h: 'Document store removes the ORM layer entirely - one less thing\n  to maintain and debug.'\"\n```\n\n### DO NOT:\n\n- Leave nodes with just a title and no description\n- Put quotes first without explaining what they mean\n- Write explanations that don't make sense in the narrative flow (this signals missing context)\n\n### DO:\n\n- Write explanations that flow naturally from previous nodes\n- Include direct quotes that support the explanation\n- Treat gaps in the story as prompts to investigate further\n\n## Output\n\nWhen done, run `deciduous graph > graph.json` to export.\n",{"name":5,"description":7},"main","0b8330a96ffcdb9c9cce7a5f1c27fd3bce6cdbb4","example\u002Fskills\u002Fdecision-graph\u002Foriginal-1.5","https:\u002F\u002Fgithub.com\u002Fcyclone-pro\u002Fwooshed","https:\u002F\u002Fgithub.com\u002Fcyclone-pro","2026-03-24 15:03:52",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add cyclone-pro\u002Fwooshed --skill decision-graph",{"tool":52,"command":53},"bunx","bunx skills add cyclone-pro\u002Fwooshed --skill decision-graph",{"tool":55,"command":56},"pnpm","pnpm dlx skills add cyclone-pro\u002Fwooshed --skill decision-graph","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcyclone-pro\u002Fwooshed\u002Fblob\u002Fmain\u002Fexample\u002Fskills\u002Fdecision-graph\u002Foriginal-1.5\u002FSKILL.md",true,[],[61,68,74,82,89,96],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":35},"01M6HVWYSZ2KQ899QXGQNEQ7JJ","mul","Performs multiplication incorrectly","https:\u002F\u002Fgithub.com\u002Fcyclone-pro\u002Fwooshed\u002Fblob\u002Fmain\u002Ftest\u002Froot\u002Fskills\u002Fmul\u002Fwrong\u002FSKILL.md",[],[63],{"skillNo":69,"name":63,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":35},"01M6HVWXM1VCZWT8KVZ0F5PNB8","Performs multiplication correctly","https:\u002F\u002Fgithub.com\u002Fcyclone-pro\u002Fwooshed\u002Fblob\u002Fmain\u002Ftest\u002Froot\u002Fskills\u002Fmul\u002Fcorrect\u002FSKILL.md",[],[63],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":35},"01M6HVWWFRTNQ1D7NRQEV7DXA2","helper","Provides an incorrect answer","https:\u002F\u002Fgithub.com\u002Fcyclone-pro\u002Fwooshed\u002Fblob\u002Fmain\u002Ftest\u002Froot\u002Fskills\u002Fhelper\u002Fwrong\u002FSKILL.md",[],[76,81],"answer",{"skillNo":83,"name":76,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":35},"01M6HVWSF5J7169A80RNAA8KAN","Provides the correct answer","https:\u002F\u002Fgithub.com\u002Fcyclone-pro\u002Fwooshed\u002Fblob\u002Fmain\u002Ftest\u002Froot\u002Fskills\u002Fhelper\u002Fcorrect\u002FSKILL.md",[],[76,88,81],"correct",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":35},"01M6HVWREZP3FNBFNJ60BNKCXH","add","Performs addition incorrectly","https:\u002F\u002Fgithub.com\u002Fcyclone-pro\u002Fwooshed\u002Fblob\u002Fmain\u002Ftest\u002Froot\u002Fskills\u002Fadd\u002Fwrong\u002FSKILL.md",[],[91],{"skillNo":97,"name":91,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":35},"01M6HVWNR27KK9B3756JDCWFG5","Performs addition correctly","https:\u002F\u002Fgithub.com\u002Fcyclone-pro\u002Fwooshed\u002Fblob\u002Fmain\u002Ftest\u002Froot\u002Fskills\u002Fadd\u002Fcorrect\u002FSKILL.md",[],[91]]