agentleFS
p-larssonp-larsson/spec-orbit/skills/spec-check/SKILL.md

spec-check

Skill2 starsChanged 5 months agoMITView on GitHub

Verify code against a spec plan. Supports PR diff checks and full state audits.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. MelbourneDeveloper/dart_node★ 113same name
    2. OHOKAYYEAH/claude-skills★ 1same name
    3. matthull/my-skills★ 0same name
    4. yisean/claude-spec-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run bun ~/.claude/tools/spec-edit/index.ts conf-get <cwd> where <cwd> is the current working directory.

    line 13
  2. Very specific:

    If invoked without arguments, run bun ~/.claude/tools/spec-edit/index.ts status <specs-dir> and present the output.

    line 17
  3. Distinctive:

    Always use spec-edit to read specs — it's faster than the Read tool:

    line 24
  4. Distinctive:

    Ask the user if unclear

    line 37
  5. Distinctive:

    Read the spec: Read the full spec (spec.md + detail files).

    line 38
  6. Distinctive:

    Check linked ticket: If the spec has a linked issue tracker ticket (e.g.

    line 40
  7. Distinctive:

    Do not spawn agents here. Wait for the user's decision.

    line 46
  8. Distinctive:

    Do the files/modules exist where the spec says they do?

    line 55
  9. Distinctive:

    Do the implementations match the described patterns?

    line 56
  10. Distinctive:

    Don't nitpick code style — focus on architectural alignment with the spec.

    line 71

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Spec Check — Verify Code Against Plan

You are verifying that code matches a spec plan. "Audit" in this skill means a full review of code against a spec — it is unrelated to audit logging, audit context, or audit trails in the codebase.

Specs Folder Discovery

Run bun ~/.claude/tools/spec-edit/index.ts conf-get <cwd> where <cwd> is the current working directory. If it returns a path, use that as <specs-dir>. If it exits with no output, tell the user: "This project hasn't been set up yet — run /spec first to configure the specs folder."

No Arguments?

If invoked without arguments, run bun ~/.claude/tools/spec-edit/index.ts status <specs-dir> and present the output. Then ask:

  • "What do you want to check?"
    • "A PR or branch diff against a spec"
    • "The current codebase against a spec (full audit)"

Using spec-edit for reading

Always use spec-edit to read specs — it's faster than the Read tool:

bun ~/.claude/tools/spec-edit/index.ts status <specs-dir>         # Quick summary of all specs
bun ~/.claude/tools/spec-edit/index.ts read <file> [heading]      # Print file or section to stdout
bun ~/.claude/tools/spec-edit/index.ts list <file>                # List sections with line counts

Steps

  1. Find the spec. Based on the user's input, use spec-edit status to find it. If ambiguous, present the list and ask.
  2. Determine check mode:
    • Diff mode: User provides a PR number/URL, or there are uncommitted/branch changes relevant to the spec → use gh pr diff or git diff against base branch
    • Audit mode (full spec review, NOT audit logging): No meaningful diff (code is already merged) → read the source files referenced in the spec and verify current state matches what the spec describes
    • Ask the user if unclear
  3. Read the spec. Read the full spec (spec.md + detail files). Focus on Key Decisions and Current Approach.
  4. Check linked ticket. If the spec has a linked issue tracker ticket (e.g. Jira) and an Atlassian MCP is available in the environment, pull the ticket context for additional verification context.
  5. Propose parallel audit agents. For audit mode, identify the distinct areas the spec covers — each detail file, each major Key Decision, each described module or layer. If two or more distinct areas can be verified independently, propose spawning one audit agent per area. Each agent would read the relevant source files and check alignment with its slice of the spec, then report back findings.

    Present what each agent would own and verify. Then ask: "Want to run these checks in parallel, or work through them sequentially?"

    Do not spawn agents here. Wait for the user's decision. For diff mode, skip this step — a diff is already a bounded scope.

  6. Verify.
    • Diff mode — check the diff against the spec:
      • Alignment: Do the changes follow the Key Decisions?
      • Completeness: Is anything from the spec missing?
      • Scope: Are there changes beyond what the spec describes?
      • Deviations: Differences from the planned approach?
    • Audit mode — read the actual source files referenced in the spec and check:
      • Do the files/modules exist where the spec says they do?
      • Do the implementations match the described patterns?
      • Are the Key Decisions reflected in the code?
      • What does the spec say should exist that doesn't?
      • What exists that the spec doesn't account for?
  7. Report. Give a concise verdict:
    • Aligned — code matches the spec
    • Gaps — what's missing or not yet implemented
    • Deviations — what differs from the plan and whether it matters
    • Out of scope — code not covered by the spec
    • Spec outdated — spec doesn't reflect what the code actually does

Rules

  • Be specific. Reference exact files and spec sections.
  • Don't nitpick code style — focus on architectural alignment with the spec.
  • This works for the user's own PRs and teammates' PRs alike.

$ARGUMENTS

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.