/utils:add-skillfrom utils
Scaffolds a new SKILL.md file inside an existing addon or framework, with optional interactive design mode for defining purpose, triggers, and steps.
Ships in utils. 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.
Scaffold a new SKILL.md inside an existing addon or framework.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action |
|---|---|---|
| Named add | "add skill voice-apply --to voice-framework" | Scaffold directly |
| Description-driven | "create a skill that validates metadata" | Derive name=validate-metadata, prompt target |
| Interactive | "add skill --interactive --to aiwg-utils" | Guided design mode |
| Target omitted | "add skill my-skill" | Ask which addon or framework |
Extract from $ARGUMENTS:
<name> — kebab-case skill name (required)--to <target> — addon or framework directory name (required; skills cannot be added to extensions)--interactive — enable guided design questionsIf either <name> or --to is missing, ask before proceeding.
Note: Skills cannot be added to extensions. Extensions provide language/ecosystem-specific capabilities; skills require standalone, cross-cutting functionality.
Confirm the target addon or framework exists:
# Check addons
ls agentic/code/addons/<target>/
# Check frameworks
ls agentic/code/frameworks/<target>/
If target is an extension directory, explain the constraint and suggest using an addon instead.
Guide through skill design before generating:
references/?aiwg add-skill <name> --to <target>
The generated file needs these sections populated. Include required frontmatter:
name: kebab-case skill slugdescription: non-empty purpose used for natural language matching; Codex rejects skills without itversion: semver string (for example, 1.0.0)priority: critical, high, medium, or low, used by corpus gap reports and backlog toolingUse clear conversational triggers, specific execution steps, and realistic input/output examples. Skills suit conversational capabilities and cross-cutting concerns; use a command when explicit invocation is needed.
---
name: <skill-name>
description: <one-sentence purpose>
version: 1.0.0
priority: medium
platforms: [all]
---
# Skill Name
[One-paragraph description of what the skill does and when it activates]
## Triggers
Alternate expressions and non-obvious activations:
- "<phrase>" → <what happens>
- "<phrase>" → <what happens>
## Trigger Patterns Reference
| Pattern | Example | Action |
|---------|---------|--------|
| <category> | "<example>" | <action> |
## Process
### 1. <Step Name>
[Description and any code blocks]
### 2. <Step Name>
[Description]
## Generated Structure (if applicable)
\`\`\`
<what files are created>
\`\`\`
## Output Format
\`\`\`
<what success output looks like>
\`\`\`
## Examples
### Example 1: <scenario>
**User**: "<trigger phrase>"
**Extraction**: <what was parsed>
**Action**: <what runs>
**Result**: <what happens>
## References
- @path/to/related/file — description
If the skill references supporting documentation:
mkdir -p <target>/skills/<name>/references/
# Create reference files as needed
The CLI tool updates <target>/manifest.json. Verify:
{
"skills": ["existing-skill", "<name>"]
}
<target>/skills/<name>/
├── SKILL.md # Main skill definition
└── references/ # Supporting documentation (optional)
Manifest updated: <target>/manifest.json
Skill Created: <name>
─────────────────────
Location: <target>/skills/<name>/
Created:
✓ SKILL.md
✓ references/ (placeholder)
Manifest updated: <target>/manifest.json
Next Steps:
1. Edit SKILL.md trigger phrases
2. Write execution process steps
3. Add reference materials (if needed)
4. Test with natural language: "<trigger phrase>"
User: "add skill lint-manifests --to aiwg-utils"
Action:
aiwg add-skill lint-manifests --to aiwg-utils
Result: agentic/code/addons/aiwg-utils/skills/lint-manifests/SKILL.md scaffolded with standard platform frontmatter and section stubs.
User: "create a skill voice-apply --to voice-framework --interactive"
Process: Guided questions establish trigger phrases ("apply voice", "write in X voice"), process steps (identify voice, load profile, transform), and reference materials needed (voice profile templates).
Result: agentic/code/addons/voice-framework/skills/voice-apply/SKILL.md plus references/ directory.
User: "scaffold skill requirement-tracer --to sdlc-complete"
Action:
aiwg add-skill requirement-tracer --to sdlc-complete
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jmagly/aiwg --plugin utils133 skills in this plugin
/activity-logQuery and manage the unified .aiwg/activity.log chronological record of AIWG-managed workflow operations/add-agentScaffold a new agent definition file inside an existing addon or framework/add-behaviorScaffold a new behavior definition with BEHAVIOR.md and optional scripts inside an existing addon or framework/add-commandScaffold a new command definition inside an existing addon or frameworkOther plugins' skills for the same job