mtrdesign

17 mods across 1 repository, 4 stars between them.

whygraph CLAUDE.md

01

mtrdesign/whygraph

Instructions file

Claude Code instructions for mtrdesign/whygraph, covering claude.md, status, common commands, documentation site and before pushing.

4 25d ago C 6,019 tokens

mtrdesign/whygraph

Agent

WhyGraph plan executor. Reads a reviewed plan markdown, applies each step in order, runs the per-step Verify, and logs progress back into the plan. Spawned by the /whygraph-implement slash command — do not invoke for unrelated work.

4 25d ago A 56 tokens

whygraph-planner

03

mtrdesign/whygraph

Agent

WhyGraph planning orchestrator. Given a code-change task, builds a working set of affected symbols via CodeGraph, warms WhyGraph rationale cache, then either writes a plan (single-pass mode) or fans out to 3 researchers + a synthesizer (deep mode). Spawned by the /whygraph-plan slash command — do not invoke for…

4 25d ago A 77 tokens

whygraph-researcher

04

mtrdesign/whygraph

Agent

WhyGraph fan-out researcher. Investigates one specific dimension of a planned code change (impact, constraintsrisks, or priorart) using WhyGraph + CodeGraph MCP tools. Spawned in parallel with sibling researchers by the whygraph-planner in deep mode — do not invoke directly.

4 25d ago A 65 tokens

mtrdesign/whygraph

Agent

WhyGraph fan-in synthesizer. Combines reports from 3 fan-out researchers (impact, constraintsrisks, priorart) into a single step-by-step implementation plan in WhyGraph's standard format. Spawned by the whygraph-planner in deep mode after researchers complete — do not invoke directly.

4 25d ago A 69 tokens

pre-edit

06

mtrdesign/whygraph

Skill Claude CodeCodex

Fetches WhyGraph rationale — intent, constraints, tradeoffs, and risks — for existing code before it is changed, so an edit respects the original intent instead of rediscovering it.

4 25d ago A 41 tokens

rationale

07

mtrdesign/whygraph

Skill Claude CodeCodex

Show the WhyGraph rationale for a code chunk — purpose, why, constraints, tradeoffs, risks. Read-only lookup.

4 25d ago A 28 tokens

whygraph-implement

08

mtrdesign/whygraph

Skill Claude CodeCodex

Execute a reviewed WhyGraph plan markdown step by step. Reads the plan as a strict contract, runs Verify after each step, halts on first failure, appends an Implementation log to the plan.

4 25d ago A 45 tokens

whygraph-plan

09

mtrdesign/whygraph

Skill Claude CodeCodex

Plan a non-trivial code change with WhyGraph rationale + CodeGraph symbols. Asks scoping questions, then runs a fan-out/fan-in pipeline (planner → 3 parallel researchers → synthesizer) to produce a step-by-step plan.

4 25d ago A 54 tokens

rationale

10

mtrdesign/whygraph

Command

Show the WhyGraph rationale for a code chunk — purpose, why, constraints, tradeoffs, risks. Read-only lookup.

4 25d ago A 0 tokens

whygraph-implement

11

mtrdesign/whygraph

Command

Execute a reviewed WhyGraph plan markdown step by step. Reads the plan as a strict contract, runs Verify after each step, halts on first failure, appends an Implementation log to the plan.

4 25d ago A 0 tokens

whygraph-plan

12

mtrdesign/whygraph

Command

Plan a non-trivial code change with WhyGraph rationale + CodeGraph symbols. Asks scoping questions if needed, then dispatches to the planner subagent (which optionally fans out to 3 researchers + a synthesizer) to produce a step-by-step plan.

4 25d ago A 0 tokens

whygraph-ask-why

13

mtrdesign/whygraph

Cursor rule

When the user asks "why does X exist?", "what is X for?", "is X still needed?", "can I delete X?", or any similar intent-question about an existing code symbol, call the whygraphrationalebrief MCP tool and surface its output verbatim. Read-only — don't paraphrase or pre-answer.

4 25d ago A 66 tokens

whygraph-codegraph

14

mtrdesign/whygraph

Cursor rule

Always-on guidance for using the CodeGraph (codegraph) MCP tools. Prefer them over grep for structural questions; don't pull large explore output into context; trust their AST-parsed results.

4 25d ago A 395 tokens

mtrdesign/whygraph

Cursor rule

When the user has a reviewed WhyGraph plan markdown file and wants to execute it — "implement that plan", "execute the plan at ", "run through the steps", "carry out the plan", "let's apply the plan" — surface the /whygraph-implement slash command. Cost-gated — don't run /whygraph-implement automatically; the user…

4 25d ago A 78 tokens

mtrdesign/whygraph

Cursor rule

When the user wants to plan a non-trivial code change — "plan how to add X", "what would it take to migrate to Y", "outline the steps to refactor Z" — surface the /whygraph-plan slash command. The planner grounds the plan in CodeGraph (structural impact) and WhyGraph (rationale, constraints, risks). Cost-gated — don't…

4 25d ago A 90 tokens

whygraph-pre-edit

17

mtrdesign/whygraph

Cursor rule

Before editing, refactoring, renaming, deleting, or replacing existing code, call the whygraphrationalebrief MCP tool to learn the intent, constraints, tradeoffs, and risks behind it. Skip for new code, typos, or formatter-only changes.

4 25d ago A 54 tokens