doctor

doctor is a skill for Claude Code from fjpulidop/specrails-core. It costs 40 tokens per session (1,446 once invoked), scanned A, original, MIT.

A diagnostic skill for checking whether the SpecRails plugin and its project setup are healthy. It checks available agents, required command-line tools, configuration files, and memory directories.

In plain words
What is it for?
Use it to run a health check, view detailed results with `--verbose`, or apply limited safe fixes with `--fix`.
Why use it?
It helps explain missing or misconfigured parts of the installation before other commands fail unexpectedly.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the specrails plugin — 28 skills, 14 agents shipped together

Good fit Use it to run a health check, view detailed results with --verbose, or apply limited safe fixes with --fix.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fjpulidop/specrails-core/doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fjpulidop/specrails-core --skill doctor
Clone the repo
git clone --depth 1 https://github.com/fjpulidop/specrails-core

Made for: Claude Code.

Or install specrails, the plugin that ships this one along with the rest of its 28 skills, 14 agents.

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 doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/fjpulidop/specrails-core/doctor/github.svg)](https://agentmods.dev/skills/fjpulidop/specrails-core/doctor)
Your own site
<a href="https://agentmods.dev/skills/fjpulidop/specrails-core/doctor"><img src="https://agentmods.dev/badge/skills/fjpulidop/specrails-core/doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/fjpulidop/specrails-core/doctor"><img src="https://agentmods.dev/badge/skills/fjpulidop/specrails-core/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,446 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.
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.00040 $0.01446
Opus 5 $0.00020 $0.00723
Sonnet 5 $0.00008 $0.00289
Haiku 4.5 $0.00004 $0.00145

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

Security

Grade A, and why

doctor 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 9d ago.

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.

specrails-plugin/skills/doctor/SKILL.md · 147 lines

How it starts

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

SpecRails Doctor

Run a full diagnostic check on the sr plugin installation and project configuration. Outputs a health report that identifies missing components, misconfigured files, and actionable fixes.

Input: $ARGUMENTS — optional:

  • --fix — automatically fix issues where possible (safe fixes only: create missing dirs, initialize empty config files)
  • --verbose — show detailed output for each check

Check 1: Plugin agents

Verify that all expected plugin agents are accessible. The sr plugin should provide 14 agents:

Expected agents: sr:architect, sr:developer, sr:reviewer, sr:backend-developer, sr:frontend-developer, sr:backend-reviewer, sr:frontend-reviewer, sr:security-reviewer, sr:performance-reviewer, sr:test-writer, sr:doc-sync, sr:merge-resolver, sr:product-manager, sr:product-analyst

Check: Read the plugin's agent definitions to confirm they're installed.

Result: PASS if all agents found, WARN if some missing.


Check 2: Required tools

Check for required CLI tools:

which git && git --version
which openspec && openspec --version 2>/dev/null || echo "MISSING"
which gh && gh --version 2>/dev/null || echo "NOT_INSTALLED (optional)"
which npm && npm --version 2>/dev/null || echo "NOT_INSTALLED (optional)"
  • git — required
  • openspec — required for OpenSpec workflow (/specrails:opsx:* skills)
  • gh — required only if BACKLOG_PROVIDER=github
  • npm — required only if project uses Node.js

Check 3: Project configuration

Check for .specrails/config.yaml:

  • If missing: WARN — run /specrails:setup to create it
  • If exists: parse and validate required fields (project.name, stack.description, ci.command)
  • Flag any fields with placeholder values like "<STACK>" or "<CI_COMMAND>"

Check for .specrails/backlog-config.json:

  • If missing: WARN — run /specrails:setup to create it
  • If exists: validate BACKLOG_PROVIDER is one of github, local, none

Read the full file on GitHub · 147 lines

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. 9d ago First seen · 147 lines · 40 tokens per session scan A 5352acbbe898

Subscribe to this mod's changes

doctor is a skill published in the GitHub repository fjpulidop/specrails-core (9 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 1,446 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

manage-skills

A maintenance workflow for checking whether project verification skills still cover the code and rules that changed during a session.

sangrokjung/claude-forge · 54 tokens

review-loop

Run the adversarial verification loop — implement, then hand the change to a fresh checker that did not write it, fix what it finds, and re-dispatch until APPROVE. Use before claiming any behavioural change is done, and on requests like "review loop", "adversarial review", "independent review", "get this verified"…

sangrokjung/claude-forge · 100 tokens

systematic-debugging

Structured debugging methodology — use before proposing fixes for any error or failure. Covers: code bugs, build errors, deploy failures, config conflicts, dependency issues, infra problems. Also use when previous fix attempts failed or root cause is unclear.

sangrokjung/claude-forge · 53 tokens

memstack-development-performance-audit

Use this skill when the user says 'performance audit', 'why is it slow', 'optimize performance', 'page speed', 'Core Web Vitals', 'lighthouse', 'load time', or needs to diagnose and fix frontend or backend performance issues. Do NOT use for code reviews or security audits.

cwinvestments/memstack · 69 tokens

semgrep-rule-creator

Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections.

waybarrios/opencode-power-pack · 37 tokens

variant-analysis

Find similar vulnerabilities and bugs across codebases using pattern-based analysis. Use when hunting bug variants, building CodeQL/Semgrep queries, analyzing security vulnerabilities, or performing systematic code audits after finding an initial issue.

waybarrios/opencode-power-pack · 45 tokens