Agent skill

Skill Doctor

by alirezarezvani in alirezarezvani/claude-skills

A skill your agent uses when the user wants their agent setup graded from real conversation history, asks which installed skills are actually working, or wants evidence-backed skill edits — scores…

MITAuto-check passedEducation

Install Skill Doctor

skills CLI
$ npx skills add alirezarezvani/claude-skills --skill skill-doctor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alirezarezvani/claude-skills skill-doctor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alirezarezvani/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/engineering/skill-doctor/skills/skill-doctor .claude/skills/skill-doctor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
skill-doctor
GitHub stars
28k
Token cost
~1.5k tokens
SKILL.md length
587 words
Files
12 (incl. scripts, references, assets)
Skills in repo
342
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user wants their agent setup graded from real conversation history, asks which installed skills are actually working, or wants evidence-backed skill edits — scores…

  • Works in 7 steps: Never upload transcripts, session files,… → Labels only, from the rubric tables. The… → Every suggestion traces to a scored… → …
  • The user wants their agent setup graded from real conversation history
  • SKILL.md covers Hard rules, Scripts and References and assets
  • Runs Python scripts from its folder; calls python

What it does

Skill Doctor is an agent skill from alirezarezvani/claude-skills. Use when the user wants their agent setup graded from real conversation history, asks which installed skills are actually working, or wants evidence-backed skill edits — scores recent local Claude Code / Codex sessions against efficiency and code-quality rubrics, then drafts skill changes gated by a deterministic aggregator and renders one local shareable report.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including scripts, reference files and assets (for example `assets/report.example.json`, `assets/session_scores.example.json` and `assets/suggestions.example.json`).

It sits in Education, covering Quizzes and assessments and Code quality. The repository describes itself as: 380 Claude Code skills & agent skills & plugins (30+ Agents, 70+ custom commands, 380+ skills, customizable references, scripts)for Claude Code, Codex, Gemini CLI, Cursor, and 8… The licence is MIT.

When your agent uses it

  • The user wants their agent setup graded from real conversation history
  • Asks which installed skills are actually working
  • Wants evidence-backed skill edits — scores recent local Claude Code / Codex sessions against efficiency and code-quality rubrics
  • Then drafts skill changes gated by a deterministic aggregator and renders one local shareable report

Example prompts

  • “/skill-doctor”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Never upload transcripts, session files, or any excerpt. Local only.
  2. Labels only, from the rubric tables. The aggregator owns all arithmetic.
  3. Every suggestion traces to a scored session — or it is dropped. Generic best practice is not evidence.
  4. Zero suggestions is a success, not a failure to report around.
  5. Exit 4 from the aggregator is a stop, not an error to swallow or bypass.
  6. Never touch the user's real skill files without an explicit per-skill yes; proposed edits live under $RUN/proposed/.
  7. A proposed skill edit follows write-a-skill discipline — trigger phrase in the description, smallest change that expresses the rule…

What it can do on your machine

Read from SKILL.md and the folder at commit 19392f7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Skill Doctor loads about 1.5k tokens when it runs, and up to ~5.5k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 587 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~95
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from alirezarezvani/claude-skills at commit 19392f7, republished under its MIT licence (© alirezarezvani). 587 words, ~1,547 tokens.

Download SKILL.mdSave it as .claude/skills/skill-doctor/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
name
skill-doctor
description
Use when the user wants their agent setup graded from real conversation history, asks which installed skills are actually working, or wants evidence-backed skill edits — scores recent local Claude Code / Codex sessions against efficiency and code-quality rubrics, then drafts skill changes gated by a deterministic aggregator and renders one local shareable report.
argument-hint
[optional: --repo PATH, --days N, or a question about the setup]
license
MIT
metadata.version
1.0.0
metadata.build_pattern
Rebuild of warpdotdev/common-skills skill-doctor (MIT): harvest → LLM-judges-with-rubrics → deterministic aggregation gate → self-contained HTML report
metadata.distinct_from
skillopt-sleep (nightly automated replay loop with adopt gate; this is one interactive graded pass); write-a-skill (authors a skill from expertise; this…

skill-doctor — grade the agent setup from real sessions

Privacy is the contract. Everything runs locally. Transcripts are condensed, secret-redacted, chmod-0600, and never uploaded — the only shareable artifact is the report the user chooses to share.

Run from the repo being graded. Every artifact goes to one fresh scratch dir, never into the repo:

bash
RUN="$(mktemp -d "${TMPDIR:-/tmp}/skill-doctor-XXXXXXXX")"
python scripts/collect_sessions.py --out "$RUN"          # 1 — harvest + redact

1 — Collect. Scans Claude Code project-history JSONL and Codex rollouts, discovers repo skills (.claude/skills, .agents/skills, .codex/skills, plugin layouts), detects skill usage (Skill invocations, slash commands, SKILL.md paths), samples newest-first, and writes redacted transcripts. Read $RUN/inventory.json: if sessions_sampled is 0, tell the user there is nothing recent to score (suggest --days 90 or --repo) and stop. skills_found 0 is fine — the report becomes a case for creating skills.

2 — Score. python scripts/score_aggregator.py --inventory "$RUN/inventory.json" --emit-template > "$RUN/session_scores.json". Read each transcript in $RUN/transcripts/ and judge it against both rubrics — scorers/efficiency.md and scorers/code-quality.md. Fill the template with a label from the rubric's table and a 1–3 sentence reason citing transcript specifics. Never invent numeric scores — the aggregator derives them from labels. Use insufficient_evidence when a transcript shows no judgeable diff. Also write 1–5 top_findings: the most impactful cross-session patterns, concrete and specific.

3 — Draft edits. Follow references/skill_edit_governance.md (the filing bar: would a competent agent with the current instructions still fail this way?). For each suggestion that clears it, write the full improved SKILL.md to $RUN/proposed/<skill>/SKILL.md, produce diff -u <current> <proposed>, and record it in $RUN/suggestions.json citing the sampled session id(s) that motivated it. Zero suggestions is a valid success — say why per finding. Never modify the user's real skill files in this step.

4 — Aggregate (the gate). python scripts/score_aggregator.py --inventory "$RUN/inventory.json" --scores "$RUN/session_scores.json" --suggestions "$RUN/suggestions.json". It validates labels against the rubric tables, refuses scores for unsampled sessions, requires substantive reasons, rejects suggestions that cite no scored session, computes overall = 0.5·efficiency + 0.35·code_quality + 0.15·skill_coverage, and writes report.json. Exit 4 is a stop: fix what it names and re-run; never hand-edit report.json around it.

5 — Render + tell. python scripts/render_report.py --report "$RUN/report.json" → one self-contained report.html (no JS, no CDN, dark-mode + print-to-PDF). Then tell the user the grade and the top findings in text, link file://$RUN/report.html, and ask whether to apply the proposed diffs to their real skills — apply only on an explicit yes, skill by skill.

Show full SKILL.md (216 more words)Show less

Hard rules

  1. Never upload transcripts, session files, or any excerpt. Local only.
  2. Labels only, from the rubric tables. The aggregator owns all arithmetic.
  3. Every suggestion traces to a scored session — or it is dropped. Generic best practice is not evidence.
  4. Zero suggestions is a success, not a failure to report around.
  5. Exit 4 from the aggregator is a stop, not an error to swallow or bypass.
  6. Never touch the user's real skill files without an explicit per-skill yes; proposed edits live under $RUN/proposed/.
  7. A proposed skill edit follows write-a-skill discipline — trigger phrase in the description, smallest change that expresses the rule, replace over append.

Scripts

ScriptRoleExit codes
scripts/collect_sessions.pyHarvest Claude Code + Codex sessions, redact secrets, sample, inventory0 · 3 bad input
scripts/score_aggregator.pyValidate labels/reasons/suggestions, compute grade, emit report.json0 · 2 warnings · 3 bad input · 4 validation failure
scripts/render_report.pyreport.json → single self-contained report.html0 · 3 bad input

All support --help, --output json, and --sample (no real history needed).

References and assets

© alirezarezvani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 11 other files (scripts, references, assets) in engineering/skill-doctor/skills/skill-doctor of alirezarezvani/claude-skills.

  • SKILL.md
  • assets/report.example.json
  • assets/session_scores.example.json
  • assets/suggestions.example.json
  • references/session_mining_privacy.md
  • references/skill_edit_governance.md
  • references/transcript_scoring_canon.md
  • scorers/code-quality.md
  • scorers/efficiency.md
  • scripts/collect_sessions.py
  • scripts/render_report.py
  • scripts/score_aggregator.py

Open the folder on GitHubat commit 19392f7

Compare with similar skills

Skill Doctor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Skill Doctor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Doctor this skillalirezarezvani/claude-skills28k—~1.5kAutomated safety check: PassMIT
Self Reviewverl-project/verl-omni1.2k—~2kAutomated safety check: PassApache-2.0
Codebase to Coursezarazhangrui/codebase-to-course5.7k—~4.4kAutomated safety check: PassNone
Auto Improvecrimeacs/auto-improve135—~651Automated safety check: PassMIT
Create Skill Testdotnet/skills5.6k1 repos~6.1kAutomated safety check: PassMIT
Dhdna ProfilerK-Dense-AI/scientific-agent-skills48k1 repos~2.8kAutomated safety check: PassMIT

Similar skills

  • Self Review

    verl-project/verl-omni

    Review your own verl-omni branch against the project rubric before opening or updating a PR.

    1.2k GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Codebase to Course

    zarazhangrui/codebase-to-course

    Turns a codebase into an interactive single-page HTML course for non-technical learners, with scroll modules, animated diagrams, quizzes and plain-English code translations.

    5.7k GitHub stars~4.4k tokensUpdated 6 mo ago
    EducationAuto-check passed
  • Auto Improve

    crimeacs/auto-improve

    GAN-style iterative improvement loop for any text artifact. An agent skill from crimeacs/auto-improve.

    135 GitHub stars~651 tokensUpdated 2 mo ago
    EducationAuto-check passed
  • Create Skill Test

    dotnet/skills

    Official

    Scaffolds eval.yaml evaluation specs for skills, custom agents, and redistributable gh-aw workflow packages in the dotnet/skills repository.

    5.6k GitHub starsUsed in 1 repo~6.1k tokens
    EducationAuto-check passed
  • Dhdna Profiler

    K-Dense-AI/scientific-agent-skills

    Applies the DHDNA framework as an exploratory rubric for reasoning and writing patterns in supplied text.

    48k GitHub starsUsed in 1 repo~2.8k tokens
    EducationAuto-check passed
  • Comment Judge

    fmflurry/settings-opencode

    LLM-as-a-judge rubric for code comments (forbidden, false, stale, narration, noise, keep).

    171 GitHub stars~2.5k tokensUpdated 3 days ago
    EducationAuto-check passed

More from alirezarezvani/claude-skills

All 342 skills in this repo
  • Agile Product Owner

    alirezarezvani/claude-skills

    Writes INVEST-checked user stories with acceptance criteria, splits epics, plans sprints from velocity and ranks the backlog with a weighted score.

    28k GitHub starsUsed in 3 repos~3.2k tokens
    Auto-check passed
  • Product Strategist

    alirezarezvani/claude-skills

    OKR cascade toolkit for product leaders: generates aligned company-to-team OKRs from five strategy types and scores how well they line up.

    28k GitHub starsUsed in 2 repos~1.8k tokens
    Auto-check passed
  • App Store Optimization

    alirezarezvani/claude-skills

    App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store.

    28k GitHub starsUsed in 1 repo~4.2k tokens
    Auto-check passed
  • AWS Solution Architect

    alirezarezvani/claude-skills

    Design AWS architectures for startups using serverless patterns and IaC templates.

    28k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Campaign Analytics

    alirezarezvani/claude-skills

    Calculates attribution, funnel and ROI figures for marketing campaigns with three Python scripts that need only the standard library.

    28k GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • Code to PRD

    alirezarezvani/claude-skills

    Reverse-engineers a frontend, backend or fullstack codebase into a product requirements document with per-page docs, an enum dictionary and an API inventory.

    28k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed

Questions about Skill Doctor

What does Skill Doctor do?

A skill your agent uses when the user wants their agent setup graded from real conversation history, asks which installed skills are actually working, or wants evidence-backed skill edits — scores…. Skill Doctor is an agent skill from alirezarezvani/claude-skills. Use when the user wants their agent setup graded from real conversation history, asks which installed skills are actually working, or wants evidence-backed skill edits — scores recent local Claude Code / Codex sessions against efficiency and code-quality rubrics, then drafts skill changes gated by a deterministic aggregator and renders one local shareable report.

When should I use Skill Doctor?

Skill Doctor fits situations like: the user wants their agent setup graded from real conversation history; asks which installed skills are actually working; wants evidence-backed skill edits — scores recent local Claude Code / Codex sessions against efficiency and code-quality rubrics; then drafts skill changes gated by a deterministic aggregator and renders one local shareable report.

How do I install Skill Doctor in Claude Code?

Run `npx skills add alirezarezvani/claude-skills --skill skill-doctor -a claude-code`. Or copy the skill folder (engineering/skill-doctor/skills/skill-doctor in alirezarezvani/claude-skills) into .claude/skills/skill-doctor in your project. Claude Code loads it when a task matches its description.

How do I install Skill Doctor in Codex?

Run `npx skills add alirezarezvani/claude-skills --skill skill-doctor -a codex`. Or copy the skill folder (engineering/skill-doctor/skills/skill-doctor in alirezarezvani/claude-skills) into .agents/skills/skill-doctor in your project. Codex loads it when a task matches its description.

Can I use Skill Doctor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alirezarezvani/claude-skills --skill skill-doctor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-doctor, .gemini/skills/skill-doctor, .github/skills/skill-doctor and .opencode/skills/skill-doctor in your project.

What does Skill Doctor need to run?

Going by SKILL.md and its folder, Skill Doctor needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Skill Doctor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Skill Doctor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Skill Doctor use?

Skill Doctor is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Skill Doctor use?

About 1.5k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.9k tokens, read only when the agent opens those files.

What are the alternatives to Skill Doctor?

Skills that share tags, products or a category with Skill Doctor: Self Review (verl-project/verl-omni, 1.2k stars), Codebase to Course (zarazhangrui/codebase-to-course, 5.7k stars), Auto Improve (crimeacs/auto-improve, 135 stars) and Create Skill Test (dotnet/skills, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skill Doctor?

alirezarezvani (a GitHub user) maintains it in alirezarezvani/claude-skills, which has 27,938 GitHub stars. The repository holds 342 skills in this directory. The repository was last updated on August 30, 2026.

Source: alirezarezvani/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.