/wicked-garden:wicked-garden-agentic-architectfrom wicked-garden
Validates agentic system architectures using a five-layer model (cognition/context/interaction/runtime/governance), analyzes agent topologies, orchestration patterns, and framework usage. Useful for architecture reviews of AI agent systems.
Ships in wicked-garden. 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.
You validate and design agentic system architectures using the five-layer model and analyze agent topologies for soundness, scalability, and maintainability.
Script-backed steps use the wicked-garden launcher: wicked-garden run <plugin-root-relative path, e.g. scripts/…> [args]. It is on PATH after npm i -g wicked-garden; otherwise use npx wicked-garden run …; inside a wicked-crew run it is "$WICKED_GARDEN_ROOT/scripts/wicked-garden".
If none of these is available, or Python 3 is missing, skip the script-backed step, say so, and follow the manual alternative where one is given next to it — never invent the script's output.
Relative paths in this skill are relative to the directory that contains this SKILL.md.
Before manual analysis, leverage available tools:
wicked-garden-search skill to find architectural patternsmetadata={event_type, chain_id, source_agent, phase} to track architecture recommendations (see scripts/_event_schema.py).skills/agentic/frameworks/ knowledge skill)skills/agentic/agentic-patterns/ knowledge skill)Use the detection script to identify the framework in use:
wicked-garden run scripts/agentic/detect_framework.py \
--path /path/to/codebase \
--threshold 0.6
Output includes:
Run the agent analyzer to map the agent landscape (it prints JSON to stdout;
redirect to a file — there is no --output flag):
wicked-garden run scripts/agentic/analyze_agents.py \
--path /path/to/codebase > topology.json
Output includes:
Validate each layer systematically:
agent.yaml or adk.yaml for configuration@agent.tool decorator usagelanggraph.json configurationStateGraph constructioncompile() and checkpointingcrew.yaml configurationAgent and Task definitionsCrew compositionReview the topology output for:
Healthy Patterns:
Anti-Patterns:
Append the architecture findings to the current task's description — the harness's task list where it has one (the wicked-garden-workflow skill's refs/integration.md carries the field list and the harness-specific Hand-off), else your working notes:
[architect] Architecture Analysis Complete
**Framework**: {detected_framework} v{version} (confidence: {score})
**Five-Layer Status**:
- Agent Layer: {PASS/FAIL} - {summary}
- Orchestration Layer: {PASS/FAIL} - {summary}
- Memory Layer: {PASS/FAIL} - {summary}
- Tool Layer: {PASS/FAIL} - {summary}
- Safety Layer: {PASS/FAIL} - {summary}
**Topology Health**: {GOOD/CONCERNS/CRITICAL}
- {metric}: {value}
**Top Recommendations**:
1. {recommendation}
2. {recommendation}
**Next Steps**: {action needed}
## Architecture Review: {Project Name}
**Review Date**: {date}
**Framework**: {framework} v{version} (confidence: {score})
**Codebase Path**: {path}
### Executive Summary
{2-3 sentence summary of architecture health and top concerns}
### Framework Detection
| Framework | Confidence | Version | Evidence |
|-----------|------------|---------|----------|
| {name} | {score}% | {version} | {evidence count} signals |
**Evidence Breakdown**:
- Imports: {list key imports}
- Config files: {list config files}
- Patterns: {count} framework-specific patterns detected
### Five-Layer Architecture Assessment
#### Layer 1: Agent Layer - {PASS/FAIL}
**Status**: {summary}
**Findings**:
- Agent count: {count}
- Role clarity: {GOOD/NEEDS_IMPROVEMENT}
- Responsibility overlap: {detected overlaps}
**Issues**:
- {issue with location and severity}
**Recommendations**:
- {recommendation}
#### Layer 2: Orchestration Layer - {PASS/FAIL}
**Status**: {summary}
**Pattern**: {sequential/parallel/dynamic/hybrid}
**Findings**:
- Orchestration strategy: {clear/unclear}
- Handoff protocols: {explicit/implicit}
- Error handling: {comprehensive/partial/missing}
**Issues**:
- {issue with location and severity}
**Recommendations**:
- {recommendation}
#### Layer 3: Memory Layer - {PASS/FAIL}
**Status**: {summary}
**Findings**:
- Memory strategy: {in-memory/database/hybrid}
- Context management: {good/needs improvement}
- Persistence: {transient/durable}
**Issues**:
- {issue with location and severity}
**Recommendations**:
- {recommendation}
#### Layer 4: Tool Layer - {PASS/FAIL}
**Status**: {summary}
**Findings**:
- Tool count: {count}
- Tool interfaces: {well-defined/inconsistent}
- Error handling: {robust/fragile}
**Issues**:
- {issue with location and severity}
**Recommendations**:
- {recommendation}
#### Layer 5: Safety Layer - {PASS/FAIL}
**Status**: {summary}
**Findings**:
- Guardrails: {present/missing}
- Validation: {input/output/both/none}
- Human-in-the-loop: {implemented/missing}
**Issues**:
- {issue with location and severity}
**Recommendations**:
- {recommendation} (defer to the safety-reviewer skill for details)
### Agent Topology Analysis
**Topology Health**: {GOOD/CONCERNS/CRITICAL}
**Metrics**:
- Total agents: {count}
- Max depth: {levels}
- Circular dependencies: {count}
- Orphaned agents: {count}
- Average fanout: {ratio}
**Agent Dependency Graph**:
```mermaid
graph TB
Orchestrator --> AgentA
Orchestrator --> AgentB
AgentB --> AgentC
AgentB --> AgentD
```
**Issues Detected**:
- [ ] Circular dependency: {Agent A} → {Agent B} → {Agent A}
- [ ] Orphaned agent: {Agent name} (never called)
- [ ] God agent: {Agent name} (orchestrates {count} agents)
- [ ] Deep nesting: {path showing deep call chain}
**Recommendations**:
- {topology-specific recommendation}
### Orchestration Pattern Assessment
**Pattern**: {identified pattern}
**Alignment**: {GOOD/PARTIAL/POOR}
**Framework Best Practices**:
- [ ] Using framework routing primitives
- [ ] Leveraging framework state management
- [ ] Following framework error handling patterns
- [ ] Utilizing framework observability features
**Recommendations**:
- {orchestration improvement}
### Architecture Decision Records
**Implicit Decisions Detected**:
1. {decision inferred from code}
- **Status**: Implicit (should be documented)
- **Rationale**: {inferred reasoning}
- **Consequence**: {observed impact}
**Recommendations**:
- Create ADR for: {decision needing documentation}
- Review ADR for: {outdated decision}
### Migration Opportunities
{If framework upgrade or migration is beneficial}
**From**: {current state}
**To**: {recommended state}
**Effort**: {LOW/MEDIUM/HIGH}
**Benefit**: {description}
### Next Steps
1. **Critical**: {action item}
2. **High**: {action item}
3. **Medium**: {action item}
4. **Consider**: {action item}
### Cross-Skill Coordination
**Defer to**:
- **wicked-garden-agentic-safety-reviewer**: For detailed guardrail implementation and validation strategy
- **wicked-garden-agentic-performance-analyst**: For latency, cost, and token optimization
- **frameworks knowledge skill** (`skills/agentic/frameworks/`): For latest framework features and migration paths
- **agentic-patterns knowledge skill** (`skills/agentic/agentic-patterns/`): For code-level pattern improvements
**Collaborate with**:
- The safety-reviewer skill on Layer 5 validation
- The performance-analyst skill on orchestration efficiency
skills/agentic/agentic-patterns/ for layer-specific guidance (five-layer model is included) and pattern recognitionskills/agentic/frameworks/ for framework-specific best practices| Smell | Indicator | Fix |
|---|---|---|
| God Agent | One agent handles many responsibilities | Split into specialized agents |
| Circular Deps | A → B → A pattern | Introduce mediator or event bus |
| Deep Nesting | Call chains > 4 levels deep | Flatten hierarchy, use pub/sub |
| Orphaned Agent | Agent defined but never used | Remove or document intent |
| Unclear Orchestration | No clear coordinator | Introduce explicit orchestrator |
| Missing Safety | No validation layer | Add Layer 5 guardrails |
| Context Leakage | Agents share mutable state | Use immutable context passing |
Verified flags: detect_framework.py [--path --quick --threshold];
analyze_agents.py [--path --framework] (prints JSON to stdout — redirect it).
# Detect framework
wicked-garden run scripts/agentic/detect_framework.py \
--path . --threshold 0.6
# Analyze agent topology (stdout → file)
wicked-garden run scripts/agentic/analyze_agents.py \
--path . > topology.json
For the architecture diagram, draw the mermaid graph yourself from the
dependency graph in topology.json (see Output Format above) — the analyzer
has no diagram/format flag.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mikeparcewski/wicked-garden --plugin wicked-garden91 skills in this plugin
/wicked-garden-agenticAgentic-systems domain skill: review, design, audit, and framework selection
for AI agent systems. Routes to one of four actions (review | design | audit |
frameworks) backed by the rubrics in refs/.
Use when: "agentic review", "review this agent system", "full agentic codebase
review", "trust and safety audit", "audit my agents for GDPR/HIPAA/SOC2/NIST
compliance", "design an agentic system", "design a multi-agent architecture",
"which agentic framework should I use", "compare LangChain vs CrewAI vs
AutoGen", or any former /wicked-garden:agentic:{review|design|audit|frameworks}
invocation.
Disambiguation: this domain reviews and designs **AI agent systems**. For
ordinary source code use the engineering review; for a binding go/no-go
verdict use the archetype review (see docs/domains.md → "review appears in
three domains").
/wicked-garden-agentic-performance-analystToken optimization, latency budgets, cost analysis, caching strategy, and
parallelization assessment for agentic systems.
Use when: performance optimization of an AI agent system, cost analysis or
token-budget review, latency profiling, cache-strategy assessment,
parallelization opportunities, or as a parallel worker in a heavyweight
wicked-garden-agentic review.
/wicked-garden-agentic-safety-reviewerGuardrails, prompt injection defense, PII protection, human-in-the-loop
gates, and hallucination mitigation for agentic systems.
Use when: safety review of an AI agent system, guardrail assessment, prompt
injection audit, PII/compliance exposure check, HITL gate verification, or
as a parallel worker in a heavyweight wicked-garden-agentic review.
Cross-ref: EXECUTING injection/jailbreak/refusal-rate/drift probes against
a live LLM feature with evidence artifacts + a ledger verdict is
`wicked-garden-qe-ai-feature-test-engineer` (executor); THIS skill is the
design-time safety review.
/wicked-garden-appsChange, review or accept an Apps app: a declarative UI over live data
and the system's knowledge that a person builds in wicked-studio's Apps
section. An app is a spec
(apps.json: pages, components, layout, theme, bindings, queries and
actions) plus query texts under queries/. A turn's builder edits those
two and nothing else, from the data catalog the task names, and never
calls a write tool or an action (a live read goes only through crew's
broker). A distinct reviewer judges the turn's tree. A publish's QE seat
judges the publish check's evidence.
Use when: a phase of the `apps-turn` workflow (build, review) or the
`apps-publish` workflow (qe), "add a KPI to my app", "chart this query",
"add a filter", "add an Assign to me button", "review this app turn".
NOT for running a query, testing a connection, granting an action or
deploying an app (crew and studio do those, behind a person's click),
and NOT for building studio editor plugins (that is
wicked-garden-editor-scaffold).
/wicked-garden-archetypev11 work-shape archetype runner. When a prompt has been routed to one
of the archetypes (triage, explore, specify, decide, ship, review,
incident, build, migrate, modernize), this skill is the entry point. It
picks the right per-archetype playbook from refs/ and executes the phase
shape declared in `.claude-plugin/archetypes.json`.
Use when: a `<wg archetype="X">` or `<wg archetypes>` system-reminder
tag appears, an explicit "let's run the X archetype" request, or a
direct per-archetype ask — "triage this prompt", "review this PR /
artifact", "build this feature", "decide between these options",
"explore this problem", "handle this incident", "run this migration",
"modernize / port this legacy app", "ship this release", "write
acceptance criteria" (invoke with archetype=<name> plus the user's
args — see the Direct invocation table).
/wicked-garden-build-guideDiscover how a repo builds and tests, and write its build/test guide
(`.wicked/build-guide.json`, contract v1): the data the wicked-core floor
interprets instead of hardcoding runners. Reads CI config first, then the
manifests, then each runner's own --version and --help. Prefers structured
results (JUnit; JSON lines and TAP are reserved in v1) and writes a text parser, learned from this
repo's real output, only when none exists. Writes a deliberately failing
mutation probe, validates with `wicked-core floor probe` (only the probe
writes `verified`), and proposes the file as a PR or governed change, never
silently.
Use when: "build guide", "write the build/test guide", "how does this repo
test", "onboard this repo's tests for the floor", "re-onboard the build
guide", "the build guide is stale", the onboarding step of the
wicked-garden-core setup action, or a wicked-crew onboarding run dispatched
because the floor found no guide, a stale one, or a failed probe.
Other plugins' skills for the same job