Skip to content
Development
Agent

design-rules

Condensed 10 Golden Rules from the Agent Design Bible.

From plugin
aiwg
229199 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --agent claude-code

Agent definition

design-rules.md

Agent Design Rules (Quick Reference)

Condensed 10 Golden Rules from the Agent Design Bible.

**Full Reference**: `~/.local/share/ai-writing-guide/docs/AGENT-DESIGN.md`

The 10 Golden Rules

Rule 1: Single Responsibility

One agent = one purpose. No "and" overload.

Rule 2: Minimal Tools

0-3 tools per agent. Each tool increases decision space exponentially.

Rule 3: Explicit I/O

Define exactly what agent receives and produces.

Rule 4: Grounding Before Action

ALWAYS verify assumptions before modifying external state.

Before action:
1. List inspection tools available
2. Execute minimum inspection
3. Document confirmed state
4. Only then proceed

Rule 5: Escalate Uncertainty

NEVER silently substitute missing data. Stop and ask.

If ambiguous:
1. STOP
2. LIST potential interpretations
3. REPORT to user
4. WAIT for clarification

Rule 6: Scoped Context

Only process RELEVANT information. Ignore DISTRACTORS.

RELEVANT: Matches all scope dimensions → Process
PERIPHERAL: Matches some → If needed
DISTRACTOR: Matches none → Never use

Rule 7: Recovery-First Design

Build agents that can recover from failures.

PAUSE → DIAGNOSE → ADAPT → RETRY → ESCALATE

Rule 8: Appropriate Model Tier

| Tier | Use For | |------|---------| | haiku | Validation, formatting, simple transforms | | sonnet | Code review, testing, documentation | | opus | Architecture, security, complex reasoning |

Rule 9: Parallel-Ready

Design for concurrent execution when tasks are independent.

Rule 10: Observable Execution

Produce traceable outputs for debugging.

Failure Archetype Prevention

| Archetype | Rule | Prevention | |-----------|------|------------| | 1. Premature Action | Rule 4 | Grounding checkpoint | | 2. Over-Helpfulness | Rule 5 | Uncertainty escalation | | 3. Distractor Pollution | Rule 6 | Context scoping | | 4. Fragile Execution | Rule 7 | Recovery protocol |

Quick Validation

Before deploying any agent:

  • [ ] Single responsibility?
  • [ ] ≤3 tools?
  • [ ] I/O defined?
  • [ ] Grounding step?
  • [ ] Uncertainty handling?
  • [ ] Context scoping?
  • [ ] Recovery protocol?
  • [ ] Right model tier?
  • [ ] Parallel-safe?
  • [ ] Observable?
  • [ ] Uses native UX tools for questions? (see `native-ux-tools` rule)

CLI Validation

aiwg lint agents [path] --verbose
Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other agents on aiwg.

mc-conductor

mc-conductor

Agent

Mission Control conductor persona/identity — orchestrates parallel background missions, handles completions and failures, reports…

@jmagly@jmaglyInstall Agent
ralph-loop

ralph-loop

Agent

Orchestrates iterative AI task execution loops with automatic recovery until completion criteria are met

@jmagly@jmaglyInstall Agent
ralph-verifier

ralph-verifier

Agent

Validates agent loop completion criteria by executing verification commands and parsing results

@jmagly@jmaglyInstall Agent
installer-agent

installer-agent

Agent

Agentic installer specialist. Generates, validates, and executes setup.aiwg.io/v1 SetupManifest files. Assembles script…

@jmagly@jmaglyInstall Agent
fleet-business-bot

fleet-business-bot

Agent

Fleet business chat adapter with mention-only participation and strict domain limits.

@jmagly@jmaglyInstall Agent
fleet-quiet-bot

fleet-quiet-bot

Agent

Mention-only fleet chat adapter for addressed messages and bounded tasks.

@jmagly@jmaglyInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about design-rules.

Which coding agents can use design-rules?
design-rules installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.