AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Skill Doctor

skill-evilstar2016-skill-doctor-skill-doctor · by evilstar2016

Use the `skill-doctor` CLI to analyze, audit, and diagnose AI-agent skills (duplicates, conflicts, security risks, context/token cost) on the current machine or project. Trigger when the user asks to review or audit their agent skills, find duplicate or conflicting skills, check skill safety, estimate context-token cost, diagnose agent misbehavior, or compare two skills. Prefers structured CLI JS…

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-evilstar2016-skill-doctor-skill-doctor

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-evilstar2016-skill-doctor-skill-doctor)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
yesterday

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Skill Doctor? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

skill-doctor — Agent Skill Analysis via CLI

skill-doctor is a local-only CLI (it never uploads your skills) that scans the user's installed AI-agent skills across platforms (Claude Code, Cursor, Copilot, Codex, Gemini CLI, Windsurf, …) and reports duplicates, conflicts, security risks, and context-cost. This skill wraps it: you (the agent) drive the CLI, read its --json output, and produce the analysis.

Core principle (read first)

  • The CLI is the source of truth. Run skill-doctor commands and use their

--json output as your reasoning input. Do not re-implement discovery yourself.

  • Do NOT read raw SKILL.md files of the user's installed skills to perform

analysis. skill-doctor already discovers, parses, and structures them. Only read a specific raw skill file when the user explicitly asks ("show me the raw SKILL.md of X") or requests a targeted edit.

  • Keep it local: never upload or exfiltrate the user's skills.

Step 0 — Mode detection (run every invocation)

  1. Is the CLI present? skill-doctor --version. If it fails, tell the user to

install (npm i -g @evilstar2025/skill-doctor, Node ≥ 20) and stop.

  1. Is a backend model configured? Run:

`` skill-doctor config view --json ` Inspect analysis.apiKeyConfigured and embedding.apiKeyConfigured`.

  • Both configured → ENHANCED mode (CLI can do LLM grouping, LLM audit,

semantic conflict detection).

  • Neither configured → FALLBACK mode (you analyze the static JSON yourself).
  1. First-use prompt (optional, non-blocking). If in FALLBACK mode and you have

not asked in this session, ask the user once: > "skill-doctor can give deeper AI analysis (semantic conflict detection, LLM > safety audit, plain-language explanations) if you point it at an > OpenAI-compatible LLM/embedding endpoint. Configure one now? (Optional — full > CLI analysis works without it.)"

  • Yes → skill-doctor config set analysis --base-url --model [--api-key ]

and/or skill-doctor config set embedding ...; optionally skill-doctor config test. Then re-run config view.

  • No / no reply → proceed in FALLBACK mode. Never repeat the question this session.

Step 1 — Inventory & scan

skill-doctor scan --scope all --json
  • ENHANCED: add --group for LLM-derived skill groupings.
  • Feed the JSON (summary + skills + duplicates + conflicts) into your analysis.

Run from the project root if project-scoped findings matter; otherwise --scope all covers the whole machine.

Step 2 — Conflicts & duplicates

  • Always (token strategy):

`` skill-doctor conflicts --scope all --json ``

  • ENHANCED (if embedding and analysis configured):

`` skill-doctor conflicts --strategy embedding --analyze --json ``

Step 3 — Security audit

  • Always (static rules):

`` skill-doctor audit --scope all --json ``

  • ENHANCED (if analysis configured): add --ai (LLM audit).

Step 4 — Context / token cost

skill-doctor context --json

Always available, needs no backend. Reports estimated tokens per skill/MCP/plugin and a budget grade. Use --platform / --budget-tokens N to narrow.

Step 5 — Health gate (optional, CI-style)

skill-doctor check --scope all --json

Returns passed / failures. Useful when the user wants a go/no-go verdict.

Step 6 — Deep-dive (on demand)

  • skill-doctor show --json — single-skill detail (ENHANCED: LLM explanation).
  • skill-doctor diff --json — compare two skills.

Producing the analysis (output)

Collect the JSON from the steps above and write the analysis:

  • ENHANCED mode: surface the CLI's AI-generated fields (LLM groupings, --ai

audit findings, semantic conflict reasons) and add a short synthesis on top.

  • FALLBACK mode: you are the analysis engine. Using only the CLI JSON, write:

the top issues, a severity ranking, duplicate/conflict clusters, security concerns, context-cost hotspots, and concrete recommended actions. This is the "analysis via the skill's LLM" path — no backend required.

  • Always end with prioritized, actionable next steps. Offer an export:

skill-doctor dashboard --report or skill-doctor scan --report produce a shareable HTML file.

Reference

  • Config file: ~/.skill-doctor/config.jsonanalysis / embedding / ignore /

paths / scanSources.

  • Provider model: OpenAI-compatible onlybaseUrl + model + apiKey (no

vendor-specific fields). baseUrl must not end with a trailing slash; endpoints used: {baseUrl}/chat/completions (analysis) and {baseUrl}/embeddings (embedding).

  • Scopes: project | global | all (default all for a full picture).
  • To suppress a known false positive, add it to ignore in config.json (or via the

UI). A future skill-doctor config ignore subcommand may automate this.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.