Skip to content
Back to skills

Whygraph Review

ASecurity

Check a diff against the recorded WhyGraph rationale - per hunk, whether a constraint or risk on the enclosing symbol's card is at stake. Reads cached cards only, no LLM spend, unless --generate is passed.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agents

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add mtrdesign/whygraph --skill whygraph-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Whygraph Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Whygraph Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mtrdesign-whygraph-review/badge)](https://www.skillsdirectory.com/skills/mtrdesign-whygraph-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: whygraph-review
description: Check a diff against the recorded WhyGraph rationale - per hunk, whether a constraint or risk on the enclosing symbol's card is at stake. Reads cached cards only, no LLM spend, unless --generate is passed.
argument-hint: "[<base>] [--generate]"
allowed-tools: Agent, Read
disable-model-invocation: true
---

# /whygraph-review

Arguments: `$ARGUMENTS`

## Step 1 - Parse arguments

Strip and remember this flag if present (anywhere in `$ARGUMENTS`):

- `--generate` -> allow WhyGraph to generate a missing rationale card (LLM calls per card, charged to the project's budget). Default `false`: cached cards only, no LLM spend.

What remains is the optional **base**: at most one token, a branch, tag or commit to review against. It must match `^[A-Za-z0-9][A-Za-z0-9._/^~-]*$` (so it never starts with `-`). If more than one token remains, or the token does not match, respond with:
`Usage: /whygraph-review [<base>] [--generate]` and stop.

With no base, use `auto`: the working tree against `HEAD` when there are uncommitted changes, otherwise the branch against its merge base with the default branch.

## Step 2 - Dispatch to the reviewer

Spawn the `whygraph-reviewer` subagent via the Agent tool with `subagent_type: "whygraph-reviewer"`. The prompt body must be exactly:

```
BASE: <base | auto>
GENERATE: <true | false>
```

The reviewer has its own system prompt covering the diff, the hunk-to-symbol mapping, the card lookups and the output contract - do not inline review instructions here.

## Step 3 - Print the result

When the reviewer returns, print its output **verbatim** to the user, starting at its first `# Review:` line when it has one. Do not summarise, paraphrase, re-format, or comment. The reviewer is the source of truth.

This command's only job is: parse -> dispatch -> print. Do not edit files, run other tools, or improvise.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.