src/agents/plugins/claude/plugin/skills/claude-setup-audit/SKILL.md
This skill should be used when the user asks to "audit my claude setup", "check my claude configuration", "assess my claude code setup", "audit claude", "review my .claude folder", "is my claude setup correct", "check repo health", "assess my skills quality", "review my agents", "check my CLAUDE.md", "validate my hooks", "audit claude configuration", "check my MCP config", "how good is my claude setup", "scan my .claude folder", or wants a comprehensive quality assessment of all Claude Code components in a repository. Evaluates skills, subagents, CLAUDE.md rules, commands, hooks, and MCP configuration against established best practices. Produces a graded health report (A–F per component) with good/bad example references and prioritized recommendations.
npx skillsauth add codemie-ai/codemie-code claude-setup-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive quality assessment of Claude Code configuration and components in a repository. Evaluates skills, agents, CLAUDE.md rules, commands, hooks, and MCP configuration against established best practices. Produces a graded health report with concrete good/bad example references and actionable fixes.
| Component | Primary Locations | Max Score |
|-----------|------------------|-----------|
| Skills | .claude/skills/*/SKILL.md, plugins/*/skills/*/SKILL.md | 32 pts each |
| Agents | .claude/agents/*.md, plugins/*/agents/*.md | 32 pts each |
| CLAUDE.md | CLAUDE.md, .claude/CLAUDE.md, **/CLAUDE.md (subdirs), CLAUDE.local.md | 36 pts each |
| Commands | .claude/commands/**/*.md, plugins/*/commands/**/*.md | 20 pts each |
| Hooks | .claude/settings.json (hooks array) | 20 pts total |
| MCP Config | .mcp.json, .claude/mcp.json | 20 pts |
Run scripts/scan-repo.sh or manually scan:
find . \( \
-path '*/.claude/agents/*.md' -o \
-path '*/skills/*/SKILL.md' -o \
-path '*/.claude/commands/**/*.md' -o \
-name 'CLAUDE.md' -o \
-name 'CLAUDE.local.md' -o \
-name '.mcp.json' -o \
-path '*/.claude/settings.json' \
\) -not -path '*/node_modules/*' 2>/dev/null
CLAUDE.md knowledge organisation scan (run separately):
# Find all CLAUDE.md files
find . -name 'CLAUDE.md' -o -name 'CLAUDE.local.md' \
| grep -v node_modules | sort
# Find dedicated guide directories
find . -type d \( -name 'guides' -o -name 'references' -o -name '.codemie' \) \
| grep -v node_modules | sort
Detect which pattern is in use — both are valid, mutually exclusive:
| Pattern | Signals | Scoring note |
|---------|---------|-------------|
| A — Single CLAUDE.md + Guide Files | 1 CLAUDE.md at root + guide files in guides/, .codemie/guides/, references/, docs/ | R5.3 full credit if CLAUDE.md references guide paths |
| B — Hierarchical CLAUDE.md | Multiple CLAUDE.md files at different directory depths | R5.3 N/A (hierarchy IS the delegation); run hierarchy checks |
Print discovery summary:
Found: X skills, Y agents, Z commands
CLAUDE.md pattern: A (single + guides) | B (hierarchical) | unknown
CLAUDE.md locations: [list each path found]
Guide dirs: [list if present]
Hooks: ✓/✗ | MCP: ✓/✗
Apply checklists from references/component-checklists.md. Mark each criterion:
Skills — classify type first, then score:
Before scoring any skill, detect its type:
grep -i "codemie.*assistant\|codemie.*chat\|assistants chat" SKILL.md
- Match found → Codemie-delegating skill (API wrapper): applies reduced rubric (21 pts max)
- No match → Standard skill: full 32-pt rubric applies
Standard Skills (32 pts max):
[a-z0-9-]+ name, description >20 chars, allowed-tools field- [ ])Codemie-delegating Skills (21 pts max — exemptions apply):
allowed-tools is N/A (no local tool execution)Agents (32 pts max):
CLAUDE.md Rules (36 pts max):
@importCLAUDE.md hierarchy — score each file separately, then run hierarchy analysis (Phase 3).
Commands (20 pts max):
argument-hint if uses $ARGUMENTS, numbered phases, usage examplesHooks (20 pts max):
set -e/trapMCP Config (20 pts max):
mcpServers key, each server has command/url + typeAfter individual scoring, check repository-wide health:
lowercase-kebab-case?.claude/ content for /Users/, /home/, password=, api_key, token=references/component-checklists.md (Pattern A and B checks are separate)Component Score = (Points Obtained / Max Points) × 100
Overall Score = Average of all component scores
| Grade | Range | Label | |-------|-------|-------| | A | 90–100% | Production-ready | | B | 80–89% | Good — meets production threshold | | C | 70–79% | Needs improvement | | D | 60–69% | Significant gaps | | F | <60% | Critical issues — rewrite needed |
Production threshold: Grade B (≥80%) required per component.
Generate a report following examples/sample-report.md structure.
For each failed criterion, cite the relevant example:
❌ No role statement ("You are...") found
→ See examples/bad-agent.md (line 10) vs examples/good-agent.md (line 8)
Prioritize findings:
| Issue | Score Impact | Fix Effort |
|-------|-------------|------------|
| Missing model: in agent | +3 pts | 1 line |
| No allowed-tools in standard skill | +3 pts | 1 line |
| No "When to use" trigger section | +2–3 pts | 1 paragraph |
| Hardcoded /Users/ path | +1 pt + removes security risk | Find + replace |
| No argument-hint for command with args | +3 pts | 1 line |
| Missing "You are…" role statement in agent | +2 pts | 1 sentence |
| No output format section | +2 pts | 1 short section |
| Description uses second person ("Use this...") | +1–2 pts | Rephrase |
| CLAUDE.md >400 non-code words | +2 pts + reduces instruction loss | Prune noise |
| CLAUDE.local.md not in .gitignore | removes security risk | 1 line in .gitignore |
| Pattern A: guides exist but not referenced by path | +2 pts | Add guide paths to CLAUDE.md |
| Pattern B: subdir CLAUDE.md duplicates root | +2 pts | Remove duplication, scope to module only |
references/component-checklists.md — Full rubric: all criteria, point values, detection patternsreferences/best-practices.md — Rationale per criterion, anti-patterns to avoid, quick-fix examples| Component | Good Example | Bad Example |
|-----------|-------------|-------------|
| Skill | examples/good-skill.md | examples/bad-skill.md |
| Agent | examples/good-agent.md | examples/bad-agent.md |
| CLAUDE.md | examples/good-claude-md-snippet.md | examples/bad-claude-md-snippet.md |
| Command | examples/good-command.md | examples/bad-command.md |
| Hooks config | examples/good-hooks.json | examples/bad-hooks.json |
| Full report | examples/sample-report.md | — |
scripts/scan-repo.sh — Discover and inventory all Claude Code componentstools
Work with Microsoft 365 services via the Graph API — emails, calendar events, SharePoint sites (read and write), Teams chats and channel messages, OneDrive files, OneNote notebooks, Planner task boards, Microsoft To Do task lists, AI meeting insights (Copilot recap), contacts, and org chart. Use this skill whenever the user asks about their emails, inbox, unread messages, meetings, calendar, Teams messages or chats, channel messages, SharePoint documents, OneDrive files, OneNote notes or notebooks, Planner plans or tasks, "my tasks", to-do lists, action items, meeting summaries, colleagues, manager, direct reports, or any personal/organizational Microsoft data. Invoke proactively any time the user mentions Outlook, Teams, SharePoint, OneDrive, OneNote, Planner, Microsoft To Do, or wants to interact with their Microsoft 365 account. The skill uses a local Node.js CLI (msgraph.js) that handles authentication, token caching, and all API calls.
tools
CodeMie Analytics expert — use this skill whenever the user asks about CodeMie usage data, AI adoption metrics, user leaderboards, CLI insights, spending, LiteLLM costs, token usage, or wants to build a dashboard/report from CodeMie or LiteLLM APIs. Also triggers for: "who uses CodeMie most", "show me AI analytics", "get spending data", "generate a report", "leaderboard", "cost analysis", "LiteLLM customer info", "enrich CSV with costs", "top performers", "AI champions", "tier distribution", or any custom analytics query against the platform. Always use this skill when CodeMie analytics, reporting, or cost data is involved.
tools
Manage CodeMie platform assets (assistants, workflows, datasources, integrations, skills, users, assistant-categories) directly from CLI using CodeMie SDK. Use when user says "create assistant", "list workflows", "update datasource", "delete assistant", "show my assistants", "get workflow details", "manage integrations", "create integration", "list integrations", "list llm models", "list embedding models", "list skills", "get skill", "create skill", "update skill", "delete skill", "publish skill", "import skill", "export skill", "attach skill", "list assistant categories", "get assistant category", "create assistant category", "delete assistant category", "who am i", "current user", "my profile", "user info", or any request to manage CodeMie platform resources. NOTE: For analytics requests (usage analytics, summaries, spending, users activity, leaderboards, etc.) use the codemie-analytics skill instead.
development
Build static HTML pages, reports, dashboards, and mockups that match the CodeMie UI design system. Use this skill whenever the user asks to create an HTML report, dashboard, analytics page, status page, data visualization page, or any static HTML document that should look like the CodeMie/EPAM AI/Run product. Also use it when the user says "make it look like CodeMie", "use the style guide", "dark-themed report", "CodeMie styles", or references the style-guide directory. Trigger for any HTML output task in a project that includes the style-guide folder. IMPORTANT: This skill MUST be used for ALL HTML generation requests — whenever a user asks for an HTML report, HTML analysis output, HTML dashboard, HTML visualization, or any HTML document. Claude must always use this skill to generate HTML in CodeMie styles to ensure consistent, professional, branded output across all HTML artifacts.