Understand awa, its CLI, and configuration. Use this when asked about awa itself, how to use it, or how to configure it.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Understand awa, its CLI, and configuration. Use this when asked about awa itself, how to use it, or how to configure it.
awa — Agent Workflow for AIs
What awa Is
awa is a CLI tool and structured development workflow for AI-assisted coding. It generates agent configuration files from templates and defines a spec-driven development process with full traceability from requirements through code and tests.
Key concepts:
Templates: Eta-based templates that produce agent config files (.github/agents/, .claude/, etc.) with conditional output via feature flags
Workflow: A structured pipeline from architecture through implementation, where every artifact traces to its origin
Traceability: Code markers (@awa-impl, @awa-test, @awa-component) link source code and tests back to requirements and design
Validation: awa check verifies that all markers resolve to spec IDs and that spec files conform to YAML schemas
How it gets built — components, interfaces, properties
Tasks
TASK-{CODE}-*-{nnn}.md
Step-by-step implementation work items
Code & Tests
Source files
Implementation with traceability markers
Documentation
README.md, docs/
User-facing docs
(lateral)
EXAMPLE-{CODE}-*-{nnn}.md
Concrete usage examples for a feature
(lateral)
API-{CODE}-*.tsp
TypeSpec API definitions
(lateral)
PLAN-{nnn}-*.md
Ad-hoc plans for vibe coding
(lateral)
ALIGN-{x}-WITH-{y}-{nnn}.md
Alignment reports comparing artifacts
(lateral)
deprecated/DEPRECATED.md
Tombstone for retired spec IDs
The workflow is flexible. Start top-down (architecture → code), bottom-up (code → extract requirements), or lateral (docs, refactors, ad-hoc plans). Lateral artifacts can be produced at any stage.
Traceability Chain
IDs and markers create explicit links between artifacts:
Glob patterns to exclude from spec file scanning (repeatable, appends to config)
--code-ignore <pattern...>
Glob patterns to exclude from code file scanning (repeatable, appends to config)
--json
Output results as JSON
--summary
Compact one-line counts summary
--allow-warnings
Allow warnings without failing
--spec-only
Run only spec-level checks; skip code-to-spec traceability
--no-fix
Skip auto-regeneration of Requirements Traceability sections and Feature Codes table
--deprecated
Surface warnings for code markers and cross-references targeting deprecated IDs
Before running checks, awa check auto-regenerates Requirements Traceability sections in DESIGN and TASK files, and the Feature Codes table in ARCHITECTURE.md. Use --no-fix to skip this.
Navigate the traceability chain and assemble context from specs, code, and tests. Use this to gather focused context before implementing, refactoring, or reviewing.
awa trace [ids...] [options]
Option
Description
[ids...]
Traceability ID(s) to trace (e.g. FEAT-1, FEAT-1_AC-2, FEAT_P-3)
--all
Trace all known IDs in the project
--scope <code>
Limit results to a feature code (e.g. --scope FEAT)
--file <path>
Resolve IDs from a source file's markers — useful to understand a file's spec connections before changing it
--task <path>
Resolve IDs from a task file
--content
Output actual file sections instead of locations
--list
Output file paths only
--direction <dir>
Traversal direction: both (default), forward, reverse
--depth <n>
Maximum traversal depth
--no-code
Exclude source code (spec-only context)
--no-tests
Exclude test files
--json
Output results as JSON
--summary
Compact one-line counts summary
--max-tokens <n>
Cap content output size (implies --content)
-A/-B/-C <n>
Lines of context after/before/both around a code marker (--content only)
-c, --config <path>
Path to configuration file
awa spec renumber [code]
Renumber traceability IDs to match document order, closing gaps in numbering sequences. Exit code 0 = no changes, 1 = changes applied/previewed.
Option
Description
[code]
Feature code to renumber (e.g. DIFF, TRC)
--all
Renumber all feature codes
--dry-run
Preview changes without modifying files
--json
Output results as JSON
--expand-unambiguous-ids
Expand unambiguous malformed ID shorthand before renumbering
-c, --config <path>
Path to configuration file
Scans all REQ and DESIGN spec files for the given feature code, builds a globally sequential renumber map that closes gaps (e.g. 1, 3, 5 → 1, 2, 3), and propagates all ID changes across every spec file type (ARCHITECTURE.md, FEAT, EXAMPLE, REQ, DESIGN, API, TASK, PLAN, ALIGN), source code, and tests. Detects and reports malformed IDs.
When --expand-unambiguous-ids is set, unambiguous malformed patterns are expanded before renumbering: slash ranges (ARC-36_AC-8/9 → ARC-36_AC-8, ARC-36_AC-9) and dot-dot AC ranges (ARC-18_AC-14..16 → ARC-18_AC-14, ARC-18_AC-15, ARC-18_AC-16). Ambiguous patterns (letter suffixes, full-ID ranges, trailing periods) remain as warnings only.
awa spec recode
Recode traceability IDs from one feature code to another. Rewrites all IDs, renames spec files, and updates headings. Exit code 0 = no changes, 1 = changes applied/previewed.
Option
Description
<source>
Source feature code to recode from
<target>
Target feature code to recode into
--dry-run
Preview changes without modifying files
--json
Output results as JSON
--renumber
Renumber target code after recode
-c, --config <path>
Path to configuration file
Builds an offset map across all source REQ and DESIGN files so source IDs don't collide with existing target IDs. Use awa spec merge if target spec files already exist.
awa spec merge
Merge one feature code into another — combines recode, content merge, and cleanup. Exit code 0 = no changes, 1 = changes applied/previewed.
Option
Description
<source>
Source feature code to merge from
<target>
Target feature code to merge into
--dry-run
Preview changes without modifying files
--json
Output results as JSON
--renumber
Renumber target code after merge
-c, --config <path>
Path to configuration file
Pipeline: recode source IDs past target's highest → rename/move spec files → warn about stale source refs → optionally renumber. Use merge when both codes have existing spec files; use recode for a pure rename.
awa spec codes
List all feature codes with requirement counts and scope summaries. Exit code 0 = success.
Option
Description
--json
Output results as JSON
--summary
Compact one-line counts summary
-c, --config <path>
Path to configuration file
awa template test
Run template test fixtures. Exit code 0 = all pass, 1 = failures.
Option
Description
-t, --template <source>
Template source — local path or Git repo
-c, --config <path>
Path to configuration file
--update-snapshots
Update stored snapshots with current output
--refresh
Force re-fetch of cached Git templates
--overlay <path...>
Overlay directory paths (repeatable)
--json
Output results as JSON
--summary
Compact one-line counts summary
Discovers *.toml fixtures in _tests/, renders per fixture, verifies expected files, compares against snapshots.
awa template generate --all-targets # process all targets
awa template generate --target claude # process one target
awa template diff --all-targets # diff all targets
Template Sources
Templates can be a local path or a Git repository:
Local path: ./templates/awa
GitHub shorthand: owner/repo
Full URL: https://github.com/owner/repo
SSH: git@github.com:owner/repo
With subdirectory: owner/repo/path/to/templates
With ref: owner/repo#branch, owner/repo#v1.0.0
Git templates are cached in ~/.cache/awa/templates/. Use --refresh to re-fetch.