/claude-eng-pack:auditing-agent-architecturefrom claude-eng-pack
Reviews and designs Claude-based agent systems: agentic loops, multi-agent orchestration, subagent invocation, workflow enforcement, Agent SDK hooks, task decomposition, and session state. Debugs premature termination, infinite loops, and inconsistent subagent results.
Ships in claude-eng-pack. 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.
Read when SKILL.md points to them.
Best-practice reference for the architecture layer of Claude-based agents: the execution loop, orchestration topology, subagent contracts, enforcement gates, hooks, decomposition, and session state. Each reference module states the correct pattern, the named anti-patterns, and ends with an Audit Checklist of verifiable conditions.
Not for tool schemas or MCP servers (use designing-tools-and-mcp) or context-window degradation (use managing-context-reliability).
| Module | Read when the question is about |
|---|---|
references/1-1-agentic-loops.md | Loop lifecycle, stop_reason branching, termination anti-patterns |
references/1-2-multi-agent-orchestration.md | Hub-and-spoke coordination, context isolation, decomposition coverage gaps |
references/1-3-subagent-invocation-and-context-passing.md | Task tool, structured metadata handoff, parallel spawning, fork_session |
references/1-4-workflow-enforcement-and-handoff.md | Prompt guidance vs programmatic gates, prerequisite gates, handoff protocols |
references/1-5-agent-sdk-hooks.md | PreToolUse/PostToolUse policy enforcement, hooks vs prompt instructions |
references/1-6-task-decomposition-strategies.md | Fixed sequential vs dynamic decomposition, attention dilution |
references/1-7-session-state-and-resumption.md | Session persistence, stale context, targeted re-analysis |
file:line evidence and the module's recommended fix.For a fast full-domain sweep, checklists.md aggregates all seven checklists.
Error propagation between agents: managing-context-reliability (5-3). Review pipelines built on multiple instances: engineering-prompts-and-output (4-6).
This skill gives you a best-practice reference for the architecture layer of Claude-based agent systems. It covers the execution loop, orchestration topology, subagent contracts, enforcement gates, hooks, task decomposition, and session state. Each reference module names the correct pattern and its anti-patterns, then closes with an Audit Checklist of conditions you can verify against real code.
designing-tools-and-mcp.managing-context-reliability.engineering-prompts-and-output.Skill(skill: "claude-eng-pack:auditing-agent-architecture")
Invoke it, then say which system you are reviewing and what is going wrong; the skill routes you to the matching reference modules.
The skill loads a routing table mapping seven reference modules to the questions each one answers, plus checklists.md, which aggregates all seven Audit Checklists for a fast full-domain sweep. Nothing is written to disk. When you run an audit, each unchecked item becomes a finding reported with file:line evidence and the module's recommended fix.
Skill(skill: "claude-eng-pack:auditing-agent-architecture")
"Our coordinator spawns four subagents over orders/line-items. Two of
them report the same finding and nothing covers the pricing path.
Audit apps/<mainApp>/agents/."
The skill points you at references/1-2-multi-agent-orchestration.md for decomposition coverage gaps and references/1-3-subagent-invocation-and-context-passing.md for the handoff contract. You walk both Audit Checklists against the code and end up with a finding list — each one citing file:line and the fix the module prescribes for that failed condition.
designing-tools-and-mcp — when the problem is which tool the agent picks, not how the agents are wired together.managing-context-reliability — for error propagation between agents and long-session degradation.engineering-prompts-and-output — for review pipelines built on multiple instances of the same prompt.checklists.md (opens in a new tab)references/1-1-agentic-loops.md (opens in a new tab)references/1-2-multi-agent-orchestration.md (opens in a new tab)references/1-3-subagent-invocation-and-context-passing.md (opens in a new tab)references/1-4-workflow-enforcement-and-handoff.md (opens in a new tab)references/1-5-agent-sdk-hooks.md (opens in a new tab)references/1-6-task-decomposition-strategies.md (opens in a new tab)references/1-7-session-state-and-resumption.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/configuring-claude-codeUse when setting up or auditing Claude Code in a repository — CLAUDE.md hierarchy and imports, .claude/rules, custom slash commands and skills, path-specific rules, plan mode vs direct execution, iterative refinement workflow, or CI/CD integration with headless -p mode. Also when instructions get ignored, conventions load in the wrong scope, CLAUDE.md has grown bloated, or a CI pipeline needs non-interactive Claude runs. NOT for task prompt content (use engineering-prompts-and-output), agent loops/orchestration (use auditing-agent-architecture), or MCP tools (use designing-tools-and-mcp)./designing-tools-and-mcpUse when creating or reviewing tool definitions for Claude — tool names, descriptions, input schemas, structured error responses, tool_choice configuration, MCP server setup and scoping, or built-in tool usage (Grep, Glob, Read, Edit). Also when Claude picks the wrong tool, confuses similar tools, retries hopeless failures, treats empty results as errors, or degrades because too many tools are exposed. NOT for agent loops/orchestration (use auditing-agent-architecture), system prompts/schemas (use engineering-prompts-and-output), or multi-turn error loss (use managing-context-reliability)./engineering-prompts-and-outputUse when writing or reviewing system prompts, few-shot examples, structured output via tool use, JSON schema validation with retry loops, Message Batches API processing, or multi-instance/multi-pass review pipelines such as automated PR reviewers. Also when outputs are inconsistent between runs, JSON fails validation, false positives erode reviewer trust, hallucinated fields appear, or self-review keeps missing defects. NOT for tool interface design (use designing-tools-and-mcp), context/review calibration (use managing-context-reliability), or loop orchestration (use auditing-agent-architecture)./managing-context-reliabilityUse when reviewing long-running or multi-agent Claude systems for reliability — context window management and summarisation, escalation and ambiguity resolution, error propagation between agents, codebase exploration and context degradation, human review and confidence calibration, or information provenance and multi-source synthesis. Also when quality degrades over long sessions, agents silently swallow failures, mid-context details get lost, or synthesised answers lose attribution. NOT for loop/orchestration structure (use auditing-agent-architecture), prompt/review false-positive tuning (use engineering-prompts-and-output), or tool schemas (use designing-tools-and-mcp).npx claudepluginhub atretyak1985/swarmery --plugin claude-eng-pack