Addons are standalone utilities that work anywhere - with or without frameworks installed.
Create an addon when you have:
- Utilities that don't depend on any framework
- Tools that should be available across all projects
- Features that complement but don't extend specific frameworks
Examples: voice profiles, validation tools, code quality checkers, documentation generators.
# Create addon structure
aiwg scaffold-addon my-addon --description "My custom utilities"
# Navigate to addon
cd ~/.local/share/ai-writing-guide/agentic/code/addons/my-addon
# Add components
aiwg add-agent my-helper --to my-addon --template simple
aiwg add-command run-check --to my-addon --template utility/devkit-create-addon my-addon --interactiveClaude will ask about:
- Purpose: What problem does this addon solve?
- Capabilities: What agents, commands, or skills will it provide?
- Target audience: Who will use this addon?
- Dependencies: Does it need external tools or APIs?
my-addon/
├── manifest.json # Package metadata and component registry
├── README.md # User documentation
├── agents/ # Agent definitions
│ └── my-helper.md
├── commands/ # Slash commands
│ └── run-check.md
├── skills/ # Skills (optional)
│ └── my-skill/
│ ├── SKILL.md
│ └── references/
└── templates/ # Document templates (optional)
└── my-template.md
{
"id": "my-addon",
"type": "addon",
"name": "My Addon",
"version": "1.0.0",
"description": "What this addon does",
"author": "Your Name",
"license": "MIT",
"core": false,
"autoInstall": false,
"entry": {
"agents": "agents",
"commands": "commands",
"skills": "skills"
},
"agents": ["my-helper"],
"commands": ["run-check"],
"skills": []
}| Field | Purpose |
|---|---|
id |
Unique identifier (lowercase, hyphens) |
type |
Must be "addon" |
core |
If true, auto-installed with any framework |
autoInstall |
If true, installed with AIWG by default |
entry |
Maps component types to directories |
agents/commands/skills |
Arrays of component names (no .md extension) |
aiwg add-agent code-checker --to my-addon --template simpleGenerated structure:
---
name: code-checker
description: [Brief description]
model: sonnet
tools: Read, Write, Bash
---
# Code Checker Agent
## Domain Expertise
[What this agent specializes in]
## Responsibilities
- [Primary task]
- [Secondary task]
## Process
1. [Step one]
2. [Step two]aiwg add-agent security-auditor --to my-addon --template complexAdditional sections: Knowledge Base, Analysis Framework, Output Format.
aiwg add-agent workflow-manager --to my-addon --template orchestratorIncludes Task tool for multi-agent coordination.
aiwg add-command quick-check --to my-addon --template utility---
name: quick-check
description: Perform quick validation check
args:
- name: target
description: File or directory to check
required: true
---
Check the specified target for common issues.
## Process
1. Validate target exists
2. Run checks
3. Report resultsaiwg add-command convert-format --to my-addon --template transformationStructured for clear input processing and output generation.
aiwg add-command full-review --to my-addon --template orchestrationIncludes agent assignment table and workflow phases.
aiwg add-skill auto-format --to my-addonSkills differ from commands - they're triggered by natural language patterns rather than slash commands.
auto-format/
├── SKILL.md # Trigger phrases and execution process
└── references/ # Supporting documentation
# Deploy to test project
aiwg -deploy-agents --target ./test-project --mode general
# Verify commands available
ls ./test-project/.claude/commands/
# Test in Claude Code session
cd ./test-project
# /run-check some-file.ts# Check manifest and structure
aiwg validate ~/.local/share/ai-writing-guide/agentic/code/addons/my-addon --verbose
# Auto-fix issues
aiwg validate my-addon --fix- Create PR to ai-writing-guide repository
- Place addon in
agentic/code/addons/ - Update
agentic/code/addons/manifest.json(addon registry)
- Package addon directory
- Users install to
~/.local/share/ai-writing-guide/agentic/code/addons/ - Deploy with
aiwg -deploy-agents --mode general
- Keep addons focused - One clear purpose, not kitchen sink utilities
- Document thoroughly - README should explain all features
- Use descriptive names -
code-quality-checkernotcqc - Version semantically - Major.Minor.Patch
- Test before publishing - Use
--dry-runand local testing - Update manifest - Keep agents/commands arrays in sync with files
aiwg-utils- Core utilities (context regeneration, workspace management)voice-framework- Voice profiles and voice-apply skillwriting-quality- Banned patterns, validation rulesguided-implementation- Bounded iteration control for issue-to-code workflows
- Simple addon:
agentic/code/addons/writing-quality/ - Complex addon:
agentic/code/addons/voice-framework/ - Core addon:
agentic/code/addons/aiwg-utils/ - Skill-based addon:
agentic/code/addons/guided-implementation/