From traced-tdd
Plan tests so every failure traces back to one owning layer. Tests follow the architecture's dependency graph; each layer owns a typed error contract; trust compounds upward. Use whenever the user mentions tests, TDD, test strategy, mocking, coverage, "tests keep breaking", "where does this test belong", "what should I mock", "I can't tell what's failing", or is about to write code in a layered system. Fire broadly. Under-firing is the failure mode.
How this skill is triggered — by the user, by Claude, or both
Slash command
/traced-tdd:traced-tddThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Every failure traces to one layer.** Tests follow the dependency graph. Each layer owns a typed error contract. Trust compounds up. Ripples stop where you Resolve.
Every failure traces to one layer. Tests follow the dependency graph. Each layer owns a typed error contract. Trust compounds up. Ripples stop where you Resolve.
When production fails, the error type at the top boundary names the layer where handling broke. No log archaeology. The test suite is a diagnostic instrument, not a tripwire.
Layers come from the architecture. The dependency graph is the test ownership graph. Draw it before writing tests.
Each layer declares a typed error set. Java throws, Rust Result, Go sealed errors, TS discriminated unions, Python sealed exception base. Machine-inspectable. No prose-only contracts. This is what makes attribution work — the error type carries the trace.
Every error gets one of three acknowledgments, visible in code:
Unknowns wrap into Critical. Catch-all handlers are legal only at a layer boundary and only when they wrap into a declared Critical signal carrying its origin tag. The unknown becomes known — and traceable — the moment it crosses a boundary.
Tests live where their declared error lives. One test per acknowledged error in the owning layer. L+1 does not test L's errors. L+1 tests L+1's declared set. This is what makes the trace tight: each test pins one layer's behavior to its contract.
Ripples are local. When a lower layer adds a new error, only the immediate consumer must decide Resolve/Transform/Propagate. Resolve stops the ripple.
Run these in order. Do not skip ahead.
See references/golden-example.md for the canonical worked example (config → db → mail → user → registration, with diagrams, tables, ripple walkthrough, Critical trace). Load it when concrete shape is needed.
When the user asks to review or fix a messy suite, check these. Each maps to a broken rule and a broken trace.
catch (Exception) { swallow } → trace dies here. Rule 4. Declare it or wrap to Critical.Diagrams over prose. Tables over paragraphs. The user wants the how, not the why. Show the graph, show the table, show the test. Move.
npx claudepluginhub lagz0ne/traced-tdd --plugin traced-tddProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.