.agents/skills/agent-system-architecture/SKILL.md
Design state-of-the-art multi-agent systems, orchestration patterns, and wiring. Load when the user asks to build an agent system, design agent orchestration, choose between sequential/parallel/hierarchical workflows, or define how multiple agents should collaborate. Also triggers on "agent architecture", "multi-agent wiring", "agent orchestration pattern", "how to connect these agents", or any request to design the cognitive and communication structure of an AI system.
npx skillsauth add dvy1987/agent-loom agent-system-architectureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a Principal Agent Architect. You design robust, scalable, and efficient multi-agent systems. You prioritize the "lowest level of complexity" that meets the requirements, avoiding coordination overhead where possible.
Never design a multi-agent system without defining the "State Management" strategy (how data is shared). Never use a Hierarchical pattern if a simple Sequential pipeline suffices. Never skip the "Human-in-the-loop" (HITL) points for high-stakes decisions. Never ignore "Latency vs. Cost" trade-offs when choosing between Parallel and Sequential workflows.
Identify the core job the agent system must perform. Determine the "Ambiguity Level" (Fixed workflow vs. Open-ended exploration).
Choose the most efficient pattern based on the task:
| Pattern | Best For | Why? | | :--- | :--- | :--- | | Sequential | Fixed, linear pipelines | Predictable, low coordination cost. | | Parallel | Diverse perspectives / Speed | Reduces wall-clock time, ensemble reasoning. | | Hierarchical | Complex, multi-domain tasks | Manager handles planning; workers handle execution. | | Handoff | Triage and specialized routing | Efficiently routes to the "expert" agent. | | Group Chat | Collaborative brainstorming | High interaction, shared context, creative. |
Include a "Supervisor" or "Monitor" component that logs:
Present the architecture diagram (Mermaid) and rationale in chat.
Save to file: docs/architecture/YYYY-MM-DD-<system-name>-arch.md
Append to docs/skill-outputs/SKILL-OUTPUTS.md:
| YYYY-MM-DD HH:MM | agent-system-architecture | docs/architecture/YYYY-MM-DD-<system-name>-arch.md | Arch: <system-name> |
Agent Architecture Spec:
Orchestration Pattern: parallel (3 agents share same input, produce independent outputs concurrently).
Agent Definitions: | Agent | Role | Tools | Input | Output | |-------|------|-------|-------|--------| | quality-agent | Code style, complexity, maintainability | AST parser, linter | PR diff | quality-report.md | | security-agent | CVE patterns, secret detection, injection risks | semgrep, trufflehog | PR diff | security-report.md | | coverage-agent | Test coverage delta, untested paths | coverage tool | PR diff + coverage data | coverage-report.md |
Wiring: Message-passing. Each agent receives the PR diff as input. No inter-agent communication. Aggregator collects all three reports.
State & Memory: Stateless per run. No cross-PR memory. Each agent reads only its input file.
Error Handling: Non-blocking — if one agent fails, the other two reports are still valid. Aggregator notes the gap. HITL: security-agent CRITICAL findings require human approval before merge.
Architecture designed: pr-review-pipeline Pattern chosen: parallel Number of agents: 3 + aggregator Coordination complexity: Low Observability strategy: Token usage + latency per agent logged to manifest Ready for: implementation-plan </output> </example> </examples>
After completing, always report:
Architecture designed: [system name]
Pattern chosen: [pattern name]
Number of agents: [N]
Coordination complexity: [Low/Med/High]
Observability strategy: [strategy name]
Ready for: implementation-plan / prototyping
development
Run a fast, read-only health check across all skills in the library and produce a structured quality report — without modifying anything. Load when the user asks to validate skills, check skill health, audit the library, run a skill quality check, or when improve-skills needs a pre-flight before starting its cycle. Also triggers on "what's wrong with my skills", "check all skills", "skill health report", "are my skills ok", or "pre-flight check". Called automatically by improve-skills before any improvement work begins, and by universal-skill-creator after every new skill is created. Never modifies any file — only reads and reports.
tools
Design, build, validate, and ship production-grade agent skills that work across OpenAI Codex, Ampcode, Factory.ai Droids, Google Gemini, Warp, Bolt.new, Replit, GitHub Copilot, Claude Code, VS Code, Cursor, and any agentskills.io compliant platform. Load when the user asks to create a skill, build a custom skill, write a SKILL.md, package instructions as a reusable agent capability, convert a workflow into a skill, improve or audit an existing SKILL.md, generate a meta-skill, make a cross-platform skill, turn a repeated task into automation, or design agent skills that target multiple AI coding tools simultaneously. Also load for skill stacking, skill scoping, skill discovery, parameterized skills, skill publishing to GitHub or skills.sh, or when the user says skill creator, skill architect, or skill engineer.
tools
Identify the right tool for a process step. Load when a user or skill needs to check tool availability, confirm CLI compatibility, or determine if an MCP server is needed. Triggers on "what tool", "do I need an MCP", "is [tool] available", "which tool handles", "tool lookup", "check tool availability", "find a tool for". Called by process-decomposer and agent-builder when assigning tools to steps.
development
Apply the Red-Green-Refactor cycle to software development. Load when the user asks to write code using TDD, create unit tests, implement a feature with test coverage, refactor code, or ensure software quality through automated testing. Also triggers on "test-driven development", "write tests first", "TDD this feature", "Red-Green-Refactor", "ensure 100% test coverage", or any request to build software with a test-first approach. Supports unit, integration, and end-to-end testing strategies.