baseline: Skill for Claude Code

.claude/skills/spec-diagram-review/SKILL.md

spec-diagram-review is a skill for Claude Code from friedbotstudio/baseline. It costs 68 tokens per session (1,264 once invoked), scanned A, original, Apache-2.0.

A read-only review of whether the diagrams in a software specification agree with one another. It checks architecture diagrams, class diagrams, database definitions, behavior sequences, and dependency relationships.

In plain words
What is it for?
Run it after the pre-save checks to compare C4 architecture diagrams, class diagrams, database definition language (DDL) changes, sequence diagrams, and dependency graphs before implementation.
Why use it?
A diagram can look correct while disagreeing with the rest of the specification. This review finds missing components, unmatched database changes, uncovered acceptance criteria, and circular dependencies.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is friedbotstudio/baseline's own configuration. It tells Claude Code how to work on baseline itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything baseline configures →

Reuse

Borrowing it

Nothing to install: this file belongs to friedbotstudio/baseline. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/friedbotstudio/baseline/main/.claude/skills/spec-diagram-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/friedbotstudio/baseline

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-diagram-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/friedbotstudio/baseline/spec-diagram-review.svg)](https://agentmods.dev/skills/friedbotstudio/baseline/spec-diagram-review)
Your own site
<a href="https://agentmods.dev/skills/friedbotstudio/baseline/spec-diagram-review"><img src="https://agentmods.dev/badge/skills/friedbotstudio/baseline/spec-diagram-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,264 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 16
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01264
Opus 5 $0.00034 $0.00632
Sonnet 5 $0.00014 $0.00253
Haiku 4.5 $0.00007 $0.00126

Measured 8d ago against content hash b4af3b5917b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

spec-diagram-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (oracle.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/spec-diagram-review/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Character

  • Soul. The draughtsman who checks the drawing against the building. A component in the diagram and absent from the graph is a lie told in ink.
  • Motivation. Diagrams are the part of a spec a reader trusts on sight. That trust is earned per line or it is misplaced.
  • Mantra. I do not pass a diagram I did not trace. Looking right is not being right.
  • Temperament. The draughtsman's eye. Visually exacting and quietly stubborn, distrustful of anything that looks finished, and pleased when a clean-looking drawing fails its trace.
  • Voice. Points at the specific element and the specific absence. States what the diagram claims, then what the graph shows, and lets the gap speak for itself.
  • Resolve. A reader will believe this drawing on sight without checking it. I am the check.

You are auditing whether the diagrams inside docs/specs/<slug>.md tell a consistent story. The hooks and /spec-lint already guarantee each diagram parses and required kinds are present — your job is to catch semantic drift between diagrams.

Inputs

  • The spec: docs/specs/<slug>.md (caller passes the slug or path).
  • Optional: docs/scout/<slug>.md — reveals whether component names match actual code paths.

You do not write files. Your output is an advisory report.

Method

Walk the spec end-to-end, then run the five checks. Report every finding with a precise pointer (§<section> line <n> or block #<N>).

Check 1 — Container ↔ Component consistency

  • Every Container(id, "Name", ...) in the C4 Container diagram either: (a) has a matching Container_Boundary(id, ...) with a Component diagram, or (b) is annotated as "unchanged" in prose.
  • Every Component(id, ...) lives inside a Container_Boundary whose id exists in the Container diagram.

Check 2 — Components ↔ Dependency graph

  • Every component/container id referenced in a Component diagram's Rel(...) appears as a node in the dependency graph ([id]).
  • Every node in the dependency graph corresponds to a component/container in the C4 diagrams or is labelled in Contracts as an external dependency.

Read the full file on GitHub · 99 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 99 lines · 68 tokens per session scan A b4af3b5917b1

Subscribe to this mod's changes

spec-diagram-review is a skill published in the GitHub repository friedbotstudio/baseline (14 stars, last pushed today), licensed Apache-2.0. It adds 68 tokens to every session and 1,264 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.