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
  • 0 views
  • Added September 28, 2026
ai-agents

Works with

  • mcp

Security analysis

A100/100

Scanned September 28, 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/badge)](https://www.skillsdirectory.com/skills/mtrdesign-rationale)

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

SKILL.md
---
name: rationale
description: Show the WhyGraph rationale for a code chunk — purpose, why, constraints, tradeoffs, risks. Read-only lookup.
argument-hint: <qualified_name | path:line_start-line_end> [--force]
allowed-tools: mcp__whygraph__whygraph_rationale_brief
disable-model-invocation: true
---

Arguments: `$ARGUMENTS`

Parse them 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/whygraph/mcp_server.py:957-1056` → 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.

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.

Comments

Loading comments…