Skill Doctor
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Skill Doctor run a full health check on my skills and AGENTS.md"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Why Skill Doctor?
Modern coding agents pull instructions from everywhere at once: global SKILL.md folders, installed plugins, ~/.claude/CLAUDE.md, repo-level AGENTS.md, .cursorrules, .cursor/rules/*.mdc, and .github/copilot-instructions.md.
When your agent starts behaving erratically — switching between pnpm and npm, loading the wrong skill, hitting missing helper scripts, or burning 10,000+ system-prompt tokens before your first message — the culprit is almost always hidden inside those files.
Skill Doctor gives you a single cross-agent checkup engine, interactive MCP App dashboard, universal MCP server, and standalone CLI:
Directive Contradiction Detector — Catches opposing rules across global and workspace files (
npmvspnpm/yarn/bun,tabsvsspaces,vitestvsjest,never mockvsalways mock,never commitvsalways commit, TypeScriptforbid anyvsallow any, quote/semicolon/ESM-vs-CJS conflicts) with exact file paths and line numbers — while safely ignoring negated comparisons ("use pnpm, never npm") and fenced code examples.Skill Trigger Collision Matrix — Extracts domain trigger keywords from every
SKILL.mdfrontmatter description and flags pairs of installed skills competing for the same triggers with Jaccard similarity and overlap scores.Duplicate Skill Name Detector — Flags skills sharing the exact same
nameacross Antigravity, plugins, Claude Code, Cursor, Codex, and project.agents/skillsbefore one silently shadows another.Context Bloat & Always-On Token Budget — Separates always-on token tax (skill trigger descriptions + always-applied rule files loaded on every single turn) from on-demand skill bodies, flagging bloated frontmatter (>120 words), oversized skills (>3,500 words / >5,000 tokens), and missing/vague descriptions (<25 chars).
Broken Local Reference Checker — Scans Markdown links and companion script/reference paths (
scripts/...,references/...,templates/...) inside each skill folder and flags referenced files that don't exist on disk.Security Hygiene Scanner — Flags remote pipe-to-shell commands (
curl | bash), destructive recursive deletions (rm -rf ~,rm -rf /), hidden zero-width / bidirectional Unicode characters, prompt-injection override strings, and suspicious credential exfiltration patterns.
All 6 checks roll up into a transparent Workspace Health Score (0–100) and Grade (A–F).
Related MCP server: skill-lint
Scanned Locations
Ecosystem | Discovered Paths |
Antigravity |
|
Antigravity Plugins |
|
Claude Code |
|
Cursor |
|
Codex |
|
Project Workspace (optional path) |
|
Quick Start
1. Google Antigravity Plugin (Full Interactive MCP App Dashboard)
git clone https://github.com/oguzhan-yildirim/skill-doctor.git
cd skill-doctor
npm install
npm run build
npm run install:antigravityAntigravity discovers the plugin automatically:
Launch Skill Doctor from the left Sidebar or side pane
+menu.Or ask in chat: "Open Skill Doctor and run a full health diagnosis on my skills and rules."
2. Claude Code / Cursor / Codex (Universal MCP Server)
Add skill-doctor to your MCP client configuration:
{
"mcpServers": {
"skill-doctor": {
"command": "npx",
"args": ["-y", "github:oguzhan-yildirim/skill-doctor"]
}
}
}Or point directly to a local build:
{
"mcpServers": {
"skill-doctor": {
"command": "node",
"args": ["/absolute/path/to/skill-doctor/dist/server.js"]
}
}
}3. Standalone CLI
# Run full 6-check health diagnosis (optionally include a workspace repo)
node dist/server.js check
node dist/server.js check /path/to/your/project
# Check directive contradictions, duplicate skill names & trigger collisions
node dist/server.js conflicts /path/to/your/project
# Inspect always-on & on-demand system-prompt token budget
node dist/server.js budget /path/to/your/project
# Machine-readable JSON output for CI pipelines
node dist/server.js check /path/to/your/project --jsonMCP Tools Reference
Tool | Visibility | Description |
| Model + UI Entrypoint | Launches the interactive Skill Doctor dashboard (side pane, full-page sidebar, or inline). Works with |
| Model + Inline UI | Runs the full 6-check health report with 0–100 score, A–F grade, and structured findings. |
| Model | Checks directive contradictions, duplicate skill names, and trigger collisions with exact line citations. |
| Model | Deep-inspects a specific skill or rule file (tokens, keywords, companion files, reference validation, targeted issues). |
| App-only | Refreshes full diagnosis from the interactive dashboard UI with an optional workspace path. |
| App-only | Loads full file inspection & line-highlighted source for the slide-over File Inspector drawer. |
Architecture
flowchart LR
Host["Antigravity / Claude / Cursor / Codex"] <-->|MCP stdio| Server["Skill Doctor MCP Server"]
Host <-->|ui://skill-doctor/app.html| UI["Interactive React MCP App"]
UI <-->|app_diagnose / app_inspect_file| Server
Server --> Scanner["Cross-Agent Scanner\n(Frontmatter + Token Estimator)"]
Scanner --> FS["~/.gemini · ~/.claude · ~/.cursor · ~/.codex · Workspace"]
Scanner --> Engine["6-Check Diagnostic Engine"]
Engine --> C1["Directive Contradictions"]
Engine --> C2["Trigger Collision Matrix"]
Engine --> C3["Duplicate Names & Bloat"]
Engine --> C4["Broken Local Refs & Security"]Development
npm install
npm run typecheck # Strict TypeScript check
npm run build # Bundles single-file dist/app.html + standalone dist/server.js
npm test # Runs scanner, 6-check diagnostic, CLI & MCP stdio E2E tests
npm run install:antigravityAgent Toolkit Suite
Skill Doctor is part of the open-source Agent Toolkit Suite for Antigravity, Claude Code, Cursor, and Codex:
Project | Purpose |
Discover, security-audit, preview, and one-click install AI Agent Skills ( | |
Diagnose conflicting agent rules, skill trigger collisions, token bloat, broken references & security hazards. | |
Live MCP protocol traffic inspector, latency profiler, and schema debugger. | |
Flight recorder & replay timeline for agent tool calls, file mutations, and failures. | |
Profile-based MCP server router and dynamic tool-surface manager. |
License
MIT © 2026 Oğuzhan Yıldırım
Available Tools
6 toolsapp_diagnoseUI Run DiagnosisC
App-only full skill & rule diagnosis refresh
Inputs: workspaceDir.
app_inspect_fileUI Inspect FileC
App-only deep file inspection for discovered skills and rules
Inputs: filePath (required), workspaceDir.
check_rule_conflictsCheck Rule Conflicts & Trigger CollisionsB
Check installed skills and workspace/global rule files specifically for directive contradictions (package manager, indentation, testing, mocking, git commits, TypeScript any), duplicate skill names, and overlapping skill trigger keywords.
Inputs: workspaceDir.
diagnose_skillsDiagnose Skills & RulesB
Scan all installed AI agent skills and rule files across Antigravity, Claude Code, Cursor, Codex, and an optional workspace; compute a 0–100 Health Score and detect contradictions, trigger collisions, duplicate names, context bloat, broken local references, and security hazards.
Inputs: workspaceDir, severityFilter.
inspect_skill_healthInspect Skill or Rule HealthA
Inspect a single discovered skill or rule file by name or file path: reports token footprint (always-on vs body), extracted trigger keywords, companion files, broken local reference checks, collisions, and targeted diagnostics.
Inputs: target (required), workspaceDir.
open_skill_doctorSkill DoctorB
Open the interactive Skill Doctor diagnostic dashboard to audit installed skills and rules across Antigravity, Claude Code, Cursor, Codex, and an optional project workspace.
Inputs: tab, workspaceDir.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Several tools overlap heavily: diagnose_skills and app_diagnose both perform a full skill/rule diagnosis refresh, and check_rule_conflicts re-detects contradictions and trigger collisions already covered by diagnose_skills. Similarly, inspect_skill_health and app_inspect_file both inspect individual files, with only the 'app-only' qualifier distinguishing them. An agent could easily misselect between these pairs.
The set mixes inconsistent patterns: verb_noun tools (diagnose_skills, check_rule_conflicts, inspect_skill_health), a prefix_verb tool with no noun (app_diagnose), and prefix_verb_noun tools (app_inspect_file). The 'app_' prefix signals audience rather than action, breaking the verb-first convention and making the app-only variants look like a separate namespace.
Six tools is a well-scoped count for a skill/rule auditing server. The only issue is redundancy—the two app-only variants largely duplicate the general diagnosis and inspection tools—but the overall size is appropriate.
The auditing lifecycle (dashboard, full scan, conflict check, single-file inspection) is reasonably covered, but there is no remediation, suppression/ignore, or report-export operation despite the 'doctor' framing implying fixes. Agents hitting findings have no way to act on them through this surface.
Maintenance
Related MCP Connectors
Research-backed lint + generation for agent context files (CLAUDE.md, AGENTS.md) + prompt enhancer.
MEOK AGENTS.md Linter MCP — validates the cross-vendor coding-agent spec (Cursor / Claude Code /
Lints + auto-fixes how AI coding agents discover any new product. 24 rules, 6 tools, score 0-100.
Scan AI agent skills, MCP server packages and MCP configs before you install them. Static analysis.
Related MCP Servers
- AlicenseAqualityBmaintenanceAudits AI agent skills for safety using static, semantic, adversarial, and supply-chain analysis, providing scores and risk flags. Can be run via CLI, CI, or as an MCP tool from Claude Code, Cursor, and Codex.528 PyPI2Apache 2.0
- AlicenseAqualityCmaintenanceLint agent SKILL.md files and MCP tool schemas to catch issues like missing descriptions, similar skills, unconstrained parameters, and destructive tools without confirmation gates.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to lint MCP tool schemas inside a conversation, flagging JSON Schema constructs that break specific clients like Claude, Cursor, Gemini, VS Code Copilot, and OpenAI. It reports per-client compatibility, explains rules, and suggests or applies safe auto-fixes before deployment.1,392 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables linting AI agent context files, MCP server configs, and session data against the actual codebase to catch broken paths, stale commands, contradictions, and secrets. It supports CI, pre-commit, CLI, and agent integration workflows with auto-fix and token-awareness.42,543 npm13MIT