Skip to content
Development
Skill

/cad-why

Why is this code like this - a git-log chain over one file[:line], joined to the phase, task, decision, deviation and review record on disk

From plugin
cadence
534 skills30 agents3 hooks
Install
$ npx -y skills add crenshawdev/cadence --skill cad-why --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/cad-why

Context preview

The summary Claude sees to decide when to auto-load this skill.

Why is this code like this - a git-log chain over one file[:line], joined to the phase, task, decision, deviation and review record on disk

SKILL.md

cad-why.SKILL.md
name: cad-why
description: "Why is this code like this - a git-log chain over one file[:line], joined to the phase, task, decision, deviation and review record on disk"
argument-hint: "<path>[:<line>]"
allowed-tools:
  - Bash

<objective> Answer "why is this code like this" from the record already on disk, at one file and line. Read-only: no write, no dispatch, no summarization - the seam does the whole join and this skill relays what it returns. </objective>

<process> 1. Run the seam with the query as ONE single-quoted literal word: `node "${CLAUDE_PLUGIN_ROOT}/cadence-core/bin/why.mjs" '<path>[:<line>]' --dir .` Single quotes, never double: `$ARGUMENTS` is caller-supplied, and a double-quoted `$(...)` or backtick inside it runs before Node starts. A query containing a single quote is refused here, never escaped. Parse the one JSON line it prints. 2. `ok:false` - state the `reason` and `detail` fields plainly and stop. 3. `ok:true` - print the `text` field VERBATIM and nothing else: no summary before it, no commentary after it, no reformatting. `text` is already the whole answer, quoted from the record in its own words - reformatting it here would make the byte-identity a reader can check against the seam's own output false. </process>

Ships withcadence

Appearance is cheap. Verification is the work. Cadence is for developers using Claude Code on software they will still own after the session ends. Claude can write a convincing plan, produce working code, and tell you the job is finished.

Get the whole plugin

Other skills on cadence.