/agentic-framework:analyze-frameworkfrom Agentic Framework for Claude
Runs the full consistency check battery on the Claude Code Agentic Framework — validates configuration files, agent registrations, hook bindings, and MCP server specs. Supports --detailed and --export flags.
Ships in Agentic Framework for Claude. Installing the plugin adds it to Claude Code.
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.mdRun short shell commands inline — git/gh calls, jq one-liners, quick checks. Delegate only the long, output-heavy runs this workflow needs — the validator battery, full test and build runs, log grinding — to bash-expert (POSIX/Git Bash) or powershell-expert (PowerShell/Windows), where hundreds of output lines compress to a verdict. 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)${CLAUDE_PLUGIN_ROOT}/POLICY.md, list-agents — checks 9/10)Hooks are real Claude Code hooks: .ps1/.sh script pairs (gates and advisory hooks) or sh-only scripts (silent telemetry hooks) 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/ ✓ (13 commands)
├── hooks/ ✓ (registered hook scripts)
├── skills/ ✓ (operational skills)
├── scripts/ ✓ (install + validation + doc generation)
├── tests/ ✓ (consistency + hook harnesses)
├── docs/design/ ✓ (hook architecture rationale)
├── POLICY.md ✓ (agent execution rules)
├── README.md ✓ (documentation)
├── claude.json ✓ (agent registry)
├── hooks/hooks.json ✓ (hook registration)
├── settings.template.json ✓ (recommended user settings: permissions)
└── .mcp.json ✓ (MCP servers, bundled)
--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.json: valid server specs
AGENTS
• Registry == filesystem; all categories partition the roster; model parity OK
HOOKS
• Pair parity OK (.ps1 + .sh present for every paired hook, .sh + allowlist entry for sh-only hooks, 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 assessmentWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
13 commands in this plugin
/agent-statusDisplay configuration status and health information for framework agents/build/agentic-framework:build — Spec → Build ⇆ Review LoopBuild exactly what a spec describes, then loop build ⇆ spec-compliance review autonomously until the review passes clean/delegate/agentic-framework:delegate — Orchestrate & RouteRoute and orchestrate a development objective end-to-end through specialist sub-agentsnpx claudepluginhub tomas-rampas/agentic-framework --plugin agentic-frameworkOther plugins' commands for the same job