/agentic-framework:agent-debuggerfrom Agentic Framework for Claude
Diagnose and fix agent routing, loading, and configuration issues by inspecting agents/*.md frontmatter, the claude.json registry, hook registration, and validator output. Use when an agent is not found, tasks route to the wrong specialist, models mismatch, hooks do not fire, or validate-consistency.sh fails.
Ships in Agentic Framework for Claude. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Systematic diagnosis of agent configuration problems in this framework. Every check below is grounded in real files — inspect configuration, run the validators, fix the source of truth, then re-verify. Do not invent runtime logs or metrics; this framework has none.
Configuration lives in the agentic-framework plugin (typically at ~/.claude/plugins/cache/agentic-framework/agentic-framework/*/) and is overridden by user-scope copies in ~/.claude/agents/, ~/.claude/commands/, and ~/.claude/skills/:
agents/<name>.md — agent definition. YAML frontmatter carries name (must equal the filename), description (the routing trigger text Claude Code matches tasks against), model (tier shorthand, e.g. sonnet), color, and the optional effort (reasoning effort: low|medium|high|xhigh|max), mcpServers (list of MCP servers available to the agent; per Claude Code's documentation, not applied to plugin-shipped agents), and tools (comma-separated explicit tool allowlist). The body is the agent's system prompt.
~/.claude/plugins/cache/agentic-framework/agentic-framework/*/agents/<name>.md~/.claude/agents/<name>.md (takes priority)claude.json — the registry. .sub_agents maps each agent to its config (including model shorthand and focus); .agent_categories partitions the roster into the canonical categories; .consistency.model_tiers lists the only legal model values (tier names only, never model ids); .consistency.deprecated_agent_names lists dead names that must never be referenced.
~/.claude/plugins/cache/agentic-framework/agentic-framework/*/claude.jsonhooks/hooks.json — hook registration as shell-form dispatch chains (sh dispatch.sh <name> || pwsh -NoProfile -File <name>.ps1) with ${CLAUDE_PLUGIN_ROOT} substitution; gates and advisory hooks are .ps1/.sh pairs, the silent telemetry hooks are .sh only (sh dispatch.sh <name> || exit 0), all routed by hooks/dispatch.sh. Hooks are loaded automatically by Claude Code.
~/.claude/plugins/cache/agentic-framework/agentic-framework/*/hooks/hooks.jsonsettings.template.json — recommended permissions and alwaysThinkingEnabled for merging into user settings.
~/.claude/plugins/cache/agentic-framework/agentic-framework/*/settings.template.jsonscripts/validate-consistency.sh (the full anti-drift battery), scripts/validate-hooks.sh (hook pair parity + dispatch), scripts/validate-framework.sh, scripts/generate-docs.sh --check. Tests: tests/hooks.test.ps1 (PowerShell), tests/hooks.test.sh (POSIX shell), tests/hooks-equivalence.test.sh (cross-platform byte-equality)./agentic-framework:list-agents, /agentic-framework:agent-status, /agentic-framework:analyze-framework, /agentic-framework:validate-hooks, /agentic-framework:quality-report.Note: The cache path format is {marketplace}/{plugin}/{version}/; the repeated agentic-framework/agentic-framework segment is correct and intentional.
bash scripts/validate-consistency.sh # numbered checks, PASS/FAIL per check, aggregates all failures
# Check plugin location first (default)
ls ~/.claude/plugins/cache/agentic-framework/agentic-framework/*/agents/<name>.md # file exists, exactly matching name?
# Or check override location (if applicable)
ls ~/.claude/agents/<name>.md # override present?
# Check registry
jq '.sub_agents["<name>"]' ~/.claude/plugins/cache/agentic-framework/agentic-framework/*/claude.json # registered?
# Check frontmatter (from plugin or override)
head -10 ~/.claude/plugins/cache/agentic-framework/agentic-framework/*/agents/<name>.md # frontmatter sane?
# or: head -10 ~/.claude/agents/<name>.md
# Check for deprecated names
jq -r '.consistency.deprecated_agent_names[]' ~/.claude/plugins/cache/agentic-framework/agentic-framework/*/claude.json # is the name dead/legacy?
Check 1 of validate-consistency.sh reports both failure directions: missing-md (registered in claude.json but no agents/<name>.md) and orphan-md (file exists but not registered). Fix by adding the missing side, never by deleting the working side.
Frontmatter requirements: opens and closes with ---; name: equals the filename stem; description: is a single line with concrete trigger phrasing; model: is listed in .consistency.model_tiers; color: present. A malformed frontmatter block silently prevents loading — validate YAML before anything else.
Also confirm the agent appears in exactly one .agent_categories category (check 2 fails on missing or duplicated membership).
Routing is driven by the description frontmatter of each agent (Claude Code matches the task against it) plus the routing tables in the plugin's POLICY.md (printed at session start) and the /agentic-framework:delegate command logic in commands/delegate.md.
description of both the expected agent and the one that won. Overlapping trigger phrasing is the usual cause.POLICY.md (${CLAUDE_PLUGIN_ROOT}/POLICY.md) agent table lists the agent under the right domain, and that .agent_categories places it in the correct category.Remember the review chain: code-review-gatekeeper reviews first; peer-review-critic is the mandatory final reviewer of branch-vs-base before work is declared done. Routing review work anywhere else is a routing bug.
Both sides must hold the SAME tier shorthand, and each value must be listed in .consistency.model_tiers:
grep -m1 '^model:' agents/<name>.md
jq -r '.sub_agents["<name>"].model' claude.json
jq -r '.consistency.model_tiers[]' claude.json
Check 7 fails on: missing frontmatter model:, empty registry model, a value not in the tier list (typos like sonnett), or any md-vs-registry divergence. Fix by editing BOTH files to the same shorthand — never introduce full model IDs anywhere; the tier list is the single source of truth, and Claude Code resolves each alias at runtime.
Hooks are real Claude Code hooks — PowerShell 7 (.ps1) and POSIX shell (.sh) script pairs, routed by dispatch.sh, registered in hooks/hooks.json of the agentic-framework plugin.
# Check plugin hook registration
jq '.hooks.Stop' ~/.claude/plugins/cache/agentic-framework/agentic-framework/*/hooks/hooks.json # hook registration for Stop event
# Verify plugin is installed
/plugin list | grep agentic-framework
# Check hook scripts exist (gates and advisory hooks are .ps1/.sh pairs, telemetry hooks are .sh only, plus dispatch.sh)
ls ~/.claude/plugins/cache/agentic-framework/agentic-framework/*/hooks/*.ps1 \
~/.claude/plugins/cache/agentic-framework/agentic-framework/*/hooks/*.sh
# Validate hook registration parity
/agentic-framework:validate-hooks
# Verify pwsh 7+ is available
pwsh -NoProfile -Command '$PSVersionTable.PSVersion'
# Verify jq is available (required for POSIX hook implementations)
command -v jq && jq --version
Common causes, in order of likelihood:
/plugin install agentic-framework@agentic-framework and verify with /plugin list.jq missing from PATH — hooks load and fire (visible in transcript), but enforcement is disarmed. The SessionStart hook prints a [session-context] warning when jq is absent, confirming the symptom. Fix: install jq (apt-get install jq on Debian/Ubuntu; brew install jq on macOS), then restart Claude Code.record-subagent-run fires on PostToolUse Task|Agent and on SubagentStop; pretooluse-delegation-hint on PreToolUse Write|Edit; pretooluse-model-guard on PreToolUse Task|Agent; pretooluse-code-review-gate on PreToolUse Bash|PowerShell; telemetry-agent-run (.sh only) on PreToolUse and PostToolUse Task|Agent and on SubagentStop, which has no matcher (each other name = its .ps1/.sh pair). An event without a matching tool never fires.[model-guard] reason: that is the model-tier ceiling working, not a fault. The call named the top tier in model (fable, any spelling or full id), or it was a fork (always runs on the parent's model). Re-issue the call with a tier the reason allows; AF_MODEL_GUARD=off disables the guard.Explore, Plan, general-purpose, claude) ran on haiku or sonnet although the call named no model, and a [model-guard] ... Model set to ... notice appeared: the guard rewrote the call instead of letting it inherit the session's model. That is automatic and needs no setup. To run a built-in on a different tier, pass model explicitly — the guard never touches an explicit model other than the top tier. If CLAUDE_CODE_SUBAGENT_MODEL is set to a usable tier, the guard leaves built-ins alone and that variable decides.SubagentHandback tool and last_assistant_message is empty; update the plugin to a version whose recorder reads the transcript (5.1.0 or later) and restart./plugin uninstall agentic-framework and then /plugin install agentic-framework@agentic-framework.Check 3 of validate-consistency.sh asserts pair parity: every hook in hooks/hooks.json registered with a pwsh arm has both .ps1 and .sh implementations, and every sh-only chain has its .sh; dispatch.sh is present and referenced in every registered chain; no orphans on either side; every registered hook name appears in the dispatch.sh case allowlist (rule j of scripts/lib/hookcheck.sh). Behavior is covered by tests/hooks.test.ps1 (PowerShell) and tests/hooks.test.sh (POSIX).
Stop-gate specifics: stop-peer-review-gate.ps1 blocks session end only when a feature branch has committed work ahead of its base and the latest peer-review-critic run this session did not record VERDICT: APPROVED (verdicts are parsed into the session marker by record-subagent-run.ps1/.sh from the stop payload's last message or, on Claude Code 2.1.303 to 2.1.308 (observed), from the sub-agent transcript's hand-back report; blocks are bounded — once with no review, up to 3 on CHANGES_REQUIRED). It is loop-safe and fail-open — if it appears to "block forever", verify the recorder hook is registered and firing, since the gate clears based on its records. Design rationale lives in docs/design/.
validate-consistency.sh derives all truth at runtime from claude.json plus the filesystem — nothing is hardcoded. Read each FAIL line; it names the check and the offending items. Frequent ones:
bash scripts/generate-docs.sh --write to regenerate, then re-check..sub_agents[<agent>].focus or the roster exactly.bash scripts/validate-consistency.sh && echo OK # must exit 0
bash scripts/validate-hooks.sh
bash scripts/generate-docs.sh --check
pwsh -NoProfile -File tests/hooks.test.ps1 # after any hook change
Then confirm the original symptom is gone (e.g. re-issue the task and watch it route correctly, or restart a session and confirm the hook fires).
agents/<name>.md and claude.json together, in the same commit; the validators treat divergence as a blocking failure.claude.json) and let generate-docs.sh produce derived content.agents/, hooks/, claude.json, or hooks/hooks.json.hooks/hooks.json, reinstall or update the plugin and restart Claude Code.~/.claude/ that shadow the plugin agents — run /agentic-framework:migrate-legacy to resolve.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tomas-rampas/agentic-framework --plugin agentic-framework11 skills in this plugin
/agent-routing-advisorRecommends which framework agent (or multi-agent workflow) should handle a task; use when the user asks which agent to use, how to delegate a piece of work, or how to sequence agents for a multi-domain task./code-reviewReview a PR (pull request), a branch, a diff, or a set of files with a structured 3-pass method (architecture, logic, expressiveness), five questions in pass 2, a Chesterton's Fence provenance check, and ICE-prefixed findings under a summary-first report. Use when asked to review, critique, or evaluate code changes./code-scaffolderGenerate idiomatic project scaffolding, config files, and boilerplate per language — use when starting a new project, adding a service, or bootstrapping a library/package (e.g. "scaffold a Rust CLI", "set up a new FastAPI project")./code-scoring-loopIteratively improve a pending (uncommitted) code change by having the matching specialist agent score the diff 0-100 against an explicit rubric, rewriting the weakest parts, and repeating until the score plateaus. Use after the quality bar is green (build/lint/format/tests clean) but before the review gates — e.g. polishing an implementation or refactor, or when asked to "clean up" uncommitted code without concrete criteria. Code-side sibling of self-scoring-loop./dependency-checkerVerify the framework's toolchain (git, bash, jq, gh, yq, PowerShell 7+, Node.js/npx, uv/uvx, shellcheck, Claude Code CLI) is installed and working — use when setting up the framework, after system updates, or when hooks, validators, MCP servers, or the executor agents fail with "command not found"./git-workflow-assistantGit branching, commit, PR, conflict-resolution, and release guidance integrated with the framework's review gates — use when planning branches, writing commit messages, preparing or opening PRs, resolving merge conflicts, cutting releases, when the Stop gate blocks a session over unreviewed committed work, or when the push/PR gate denies a PR, MR or push to main/master.Other plugins' skills for the same job