Skip to content
Back to skills

Rationale

ASecurity

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

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

Works with

  • mcp

Security analysis

A100/100

Scanned November 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Rationale?

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

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

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: rationale
description: Show the WhyGraph rationale for a code chunk - purpose, why, constraints, tradeoffs, risks. Read-only lookup.
disable-model-invocation: true
---

# /rationale — show the WhyGraph rationale for a code chunk

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

Parse the user's input as `<target> [--force]`:

- First non-flag token → `target`. Two forms are accepted:
  - A qualified_name like `whygraph_rationale_brief` or `auth.session.refresh_token` → pass as `qualified_name`.
  - A `path:line_start-line_end` triple like `src/auth/session.py:120-180` → split into `path`, `line_start`, `line_end`.
- `--force` → pass `force_refresh: true` (bypasses the rationale cache).

If no target was provided, respond with: `Usage: /rationale <qualified_name | path:line_start-line_end> [--force]` and stop.

Otherwise call the MCP tool `whygraph_rationale_brief` with those arguments, then present the result verbatim. The tool returns a structured object with `purpose`, `why`, `constraints[]`, `tradeoffs[]`, `risks[]`, `evidence_count`, and `cached_at`. Render it as readable markdown — do not paraphrase or editorialise the rationale fields themselves.

If the tool returns `isError: true`, print the error message verbatim and stop. If it is `code: budget_exceeded` or `generation_not_permitted`, do not retry: say that generation is paused for this project and that `whygraph_evidence_for` still lists the raw commits and PRs.

Do not edit files or run other tools. This is a read-only lookup.

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.