Analyzes the Claude Code Agentic Framework's configuration integrity, agent availability, and hook registration, producing a health report.
How this command is triggered — by the user, by Claude, or both
Slash command
/agentic-framework:analyze-frameworkThe summary Claude sees in its command listing — used to decide when to auto-load this command
Framework root: `${CLAUDE_PLUGIN_ROOT}` (when running from a development checkout of the framework itself, this may be empty — then use the current directory if it contains `claude.json`). All framework file paths below are relative to that root.
# /agentic-framework:analyze-framework — Framework Health Analysis
## Purpose
Perform a comprehensive analysis of the Claude Code CLI Agentic Framework, checking configuration integrity, agent availability, hook registration, and overall system health.
## Usage
**Options:**
- `--detailed`: Include detailed analysis of each component
- `--exp...Framework root: ${CLAUDE_PLUGIN_ROOT} (when running from a development checkout of the framework itself, this may be empty — then use the current directory if it contains claude.json). All framework file paths below are relative to that root.
Perform a comprehensive analysis of the Claude Code CLI Agentic Framework, checking configuration integrity, agent availability, hook registration, and overall system health.
/agentic-framework:analyze-framework [--detailed] [--export]
Options:
--detailed: Include detailed analysis of each component--export: Export results to framework-health-report.mdDelegate every shell command this workflow needs — validators, git/gh calls, JSON/YAML processing, test and build runs — to bash-expert (POSIX/Git Bash) or powershell-expert (PowerShell/Windows) instead of running it inline. Executors return the exact command, its integer exit code, and a distilled result (verbatim fenced where it will be used literally). Read files with Read/Grep/Glob directly — never via shell.
The authoritative implementation is the anti-drift tooling — this command runs it and interprets the results:
FRAMEWORK_ROOT="${CLAUDE_PLUGIN_ROOT:-.}" bash "${CLAUDE_PLUGIN_ROOT:-.}/scripts/validate-consistency.sh" # the full check battery (see CONTRIBUTING.md)
FRAMEWORK_ROOT="${CLAUDE_PLUGIN_ROOT:-.}" bash "${CLAUDE_PLUGIN_ROOT:-.}/scripts/generate-docs.sh" --check # generated doc blocks are fresh
pwsh -NoProfile -File "${CLAUDE_PLUGIN_ROOT:-.}/tests/hooks.test.ps1" # hook behavior tests (.ps1 implementations)
bash "${CLAUDE_PLUGIN_ROOT:-.}/tests/hooks.test.sh" # hook behavior tests (.sh implementations)
${CLAUDE_PLUGIN_ROOT}/agents/*.md files (and vice versa), categories partition the rosterhooks block is the canonical hook registration# Check claude.json structure (expected: matches `ls -1 ${CLAUDE_PLUGIN_ROOT}/agents/*.md | wc -l`)
jq '.sub_agents | length' "${CLAUDE_PLUGIN_ROOT:-.}/claude.json"
# Verify no deprecated agent names are referenced
FRAMEWORK_ROOT="${CLAUDE_PLUGIN_ROOT:-.}" bash "${CLAUDE_PLUGIN_ROOT:-.}/scripts/validate-consistency.sh" # check 5 covers this
Analyzes every registered agent using the canonical categories from ${CLAUDE_PLUGIN_ROOT}/claude.json .agent_categories:
For each agent:
${CLAUDE_PLUGIN_ROOT}/agents/{agent}.md)${CLAUDE_PLUGIN_ROOT}/claude.jsonmodel: tier matches the registry (check 7)Hooks are real Claude Code hooks: .ps1/.sh script pairs in ${CLAUDE_PLUGIN_ROOT}/hooks/, routed by ${CLAUDE_PLUGIN_ROOT}/hooks/dispatch.sh, registered in ${CLAUDE_PLUGIN_ROOT}/hooks/hooks.json as shell-form dispatch chains.
${CLAUDE_PLUGIN_ROOT}/tests/hooks.test.ps1 (PowerShell suite) and ${CLAUDE_PLUGIN_ROOT}/tests/hooks.test.sh (POSIX suite) exercise block/allow paths of the peer-review Stop gate, the run recorder, session context, and the delegation hint on both implementations${CLAUDE_PLUGIN_ROOT}/docs/design/Verifies the skills on disk parse and match the documented roster. See README's Skills table for the current list; counts are derived, never hardcoded.
${CLAUDE_PLUGIN_ROOT}/
├── agents/ ✓ (one .md per registered agent)
├── commands/ ✓ (10 commands)
├── hooks/ ✓ (registered hook scripts)
├── skills/ ✓ (operational skills)
├── scripts/ ✓ (install + validation + doc generation)
├── tests/ ✓ (consistency + hook harnesses)
├── docs/design/ ✓ (hook architecture rationale)
├── CLAUDE.md ✓ (agent execution rules)
├── README.md ✓ (documentation)
├── claude.json ✓ (agent registry)
├── hooks/hooks.json ✓ (hook registration)
├── settings.template.json ✓ (recommended user settings: permissions)
└── mcp-plugin/.mcp.json ✓ (MCP servers, optional plugin)
--check / --write)~/.claude (note: installer is deprecated in favor of the plugin pipeline)Claude Code CLI Framework Health Analysis
================================================
CONFIGURATION
• claude.json: valid, registry == filesystem
• hooks/hooks.json: registration parity OK
• mcp-plugin/.mcp.json: valid server specs
AGENTS
• Registry == filesystem; all categories partition the roster; model parity OK
HOOKS
• Pair parity OK (.ps1 + .sh present for every hook, dispatch referenced, events valid)
• hooks.test.ps1 + hooks.test.sh: all assertions pass
DOCS
• Generated blocks fresh; stated counts match derived values
OVERALL HEALTH: EXCELLENT
Includes:
Generates framework-health-report.md with executive summary, findings, remediation recommendations, and timestamp.
/agentic-framework:analyze-framework
/agentic-framework:analyze-framework --detailed
# After updating agents, hooks, or configuration
/agentic-framework:analyze-framework --detailed --export
/agentic-framework:analyze-framework --detailed
Missing agent file:
FAIL Agents registered in claude.json with NO agents/<name>.md file
Remediation: create the agent file or remove the registry entry
Hook pair parity break:
FAIL missing-hook-file: stop-peer-review-gate.ps1
Remediation: restore ${CLAUDE_PLUGIN_ROOT}/hooks/stop-peer-review-gate.ps1, or remove its registration
FAIL missing-sh-impl: stop-peer-review-gate.sh
Remediation: restore ${CLAUDE_PLUGIN_ROOT}/hooks/stop-peer-review-gate.sh, or remove the hook's registration from hooks/hooks.json (and its dispatch.sh allowlist entry)
Stale generated block:
FAIL generate-docs.sh --check reported stale/invalid blocks
Remediation: bash scripts/generate-docs.sh --write
/agentic-framework:validate-hooks for hook-specific analysis/agentic-framework:list-agents to see agent details/agentic-framework:agent-status for configuration status/agentic-framework:quality-report for a quality assessmentnpx claudepluginhub tomas-rampas/claude-agentic-framework/audit-claude-componentsAudits the .claude/ folder structure, component quality, cross-references, antipatterns, and resource usage. Produces a structured report with refactoring recommendations.
/doctorDiagnoses scaffolding plugin installation issues and prints exact fix commands for each problem found. Read-only health check that never mutates files or configuration.
/pluginValidates a Claude Code plugin against official guidelines, checking manifest, directory structure, file format, and command execution for installation and runtime issues.
/audit-agentAudits Claude Code agent definitions across 7 quality dimensions for triggering accuracy, system prompt quality, tool appropriateness, and example coverage. Supports --full and --mini audit depths.
/lintRuns 68 deterministic static analysis rules on the full agent setup (CLAUDE.md, skills, commands, hooks, agents, MCP configs). No LLM, fast, CI-suitable.
/agentAudits, configures, and scaffolds agent/subagent architecture — checks config drift, diagnoses failures, initializes .agents/ folder, and sets up skill routing.