Overview
aiwg-dev is the developer toolkit for contributors building AIWG itself — adding new addons, framewo
aiwg-dev Overview
Prompt-first procedure: Describe the outcome you want in your agent conversation. The agent should select and load the appropriate AIWG assets, explain material changes, request any needed approval, and report verification evidence. Exact commands and flags appear only in the CLI reference.
aiwg-dev is the toolkit for developing and extending AIWG. Use it when you run AIWG from a local checkout (dev mode, the agent-owned the use-dev option operation), or when you add or validate addons, frameworks, agents, skills, commands, rules, or templates in an AIWG source tree. It is not installed by default or by the agent-owned use operation; install it with the agent-owned use operation.
Common Use Cases
- Validate a new skill, agent, command, or addon before review.
- Scaffold a framework or addon using the expected AIWG directory structure.
- Check distributable `@file` references so source files do not point at provider deployment directories.
- Run development health checks before opening an AIWG source change.
Use AIWG to complete this documented outcome: - Validate a new skill, agent, command, or addon before review. - Scaffold a framework or addon using the expected AIWG directory structure. - Check distributable @file references so source files do not point at provider deployment director
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.
What It Provides
Validation Skills
| Skill | What It Checks |
|---|---|
| `validate-component` | Single skill, agent, or command — completeness, placement, manifest registration, `@file` link classification |
| `validate-addon` | Full addon — all skills, agents, and rules against manifest; orphan detection |
| `dev-doctor` | Full repository health — structure, orphans, placement violations, TypeScript, tests, circular calls |
| `link-check` | `@file` references in distributable source — catches forbidden `.claude/` refs, bare AIWG-core refs, non-normalized `.aiwg/` refs |
Scaffolding Skill Aliases (Devkit)
The canonical aiwg-utils skills own guided design and post-creation guidance. Load one with the agent’s stable-asset loader; devkit names remain compatibility aliases.
| Skill | What It Creates |
|---|---|
| `devkit-create-addon` | Alias of `scaffold-addon` — Create a standalone addon. |
| `devkit-create-extension` | Alias of `scaffold-extension` — Create an extension inside a parent framework. |
| `devkit-create-framework` | Alias of `scaffold-framework` — Create a complete lifecycle framework. |
| `devkit-create-agent` | Alias of `add-agent` — Create an agent inside an addon or framework. |
| `devkit-create-command` | Alias of `add-command` — Create a command inside an addon or framework. |
| `devkit-create-skill` | Alias of `add-skill` — Create a skill inside an addon or framework. |
| `devkit-validate` | Run all validation checks on the current working directory |
| `devkit-test` | Run the test suite with development-appropriate flags |
Enforcement Rules
| Rule | What It Prevents |
|---|---|
| `skill-placement` | Skills placed in provider deployment directories (`.claude/skills/`) instead of `agentic/code/` |
| `no-circular-skill-calls` | Skills that invoke themselves via `aiwg <command>` in bash blocks |
| `component-completeness` | Components missing required sections (frontmatter, title, behavior, examples) |
| `addon-boundaries` | Source code mixed with project output (`.aiwg/` content in `agentic/code/`) |
| `aiwg-dir-reference-contract` | Non-normalized `.aiwg/` paths in distributable source (paths that only work in the AIWG repo itself) |
The Component Validation Model
All validation in aiwg-dev follows the same model: check completeness, check placement, check manifest registration, check `@file` references.
@file Reference Classification
Every `@<path>` reference in a distributable skill or agent is classified:
| Pattern | Classification | Action |
|---|---|---|
| `@$AIWG_ROOT/<path>` | PASS | Install-relative AIWG core reference |
| ``@.aiwg/<path`>` (normalized) | PASS | Project memory reference |
| ``@.aiwg/<path`>` (non-normalized) | FAIL | Repo-local path — only works in AIWG dev repo |
| `@.claude/<path>` | FAIL | Deployment target — forbidden in source |
| `@agentic/code/<path>` (bare) | WARN | Legacy — migrate to `@$AIWG_ROOT/agentic/code/` |
| ``@docs/<path`>` (bare) | WARN | Legacy — migrate to `@$AIWG_ROOT/docs/` |
This classification is what the `link-check` skill and Section 4 of `dev-doctor` both use.
Normalized .aiwg/ Paths
A "normalized" `.aiwg/` path is one that exists (or will exist) in every project that installs AIWG — specifically paths listed in `memory.creates` fields in `manifest.json` files, plus the Tier 1 allowlist (root `AIWG.md`, `.aiwg/frameworks/`; `.aiwg/AIWG.md` is optional operator notes only). Non-normalized paths are repo-local and will break for any user who installs the addon.
Audience
aiwg-dev is for:
- AIWG contributors adding new addons, frameworks, or skills
- Users who customize AIWG by running it from their own checkout in dev mode
- Developers building custom addons that follow AIWG conventions
- Anyone running pre-PR validation checks on AIWG source changes
If you only use deployed AIWG frameworks and do not change AIWG itself, you do not need it: use the agent-owned doctor operation (the runtime health check) rather than `dev-doctor` (the source structure check).
References
- Quickstart — Install and validate your first component
- `@$AIWG_ROOT/agentic/code/addons/aiwg-dev/rules/RULES-INDEX.md` — All enforcement rules
- `@$AIWG_ROOT/agentic/code/addons/aiwg-dev/skills/validate-component/SKILL.md` — Full validation logic
- `@$AIWG_ROOT/agentic/code/addons/aiwg-dev/skills/dev-doctor/SKILL.md` — Full health check logic