Skip to content
Development
Agent

design-rules

Condensed 10 Golden Rules from the Agent Design Bible.

From plugin
aiwg
211199 skills199 agents26 commands
Install
$ npx -y skills add jmagly/aiwg --agent claude-code

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Condensed 10 Golden Rules from the Agent Design Bible.

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
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.

Get the whole plugin

Other agents on aiwg.