可追溯性与模式校验
awa-check
运行可追溯性和模式(schema)检查,并修复发现的错误。当用户要求检查、验证或修复可追溯性与模式问题时使用此技能。
- License 许可
- BSD-3-Clause
- 所属仓库
- ncoderz/awa
- 最近更新
- 2026-08-13
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- awa-check
- description
- Run traceability and schema checks, then fix any errors. Use this when asked to check, validate, or fix traceability and schema issues.
03 SKILL.md 正文
Run Traceability and Schema Checks
Bootstrap
<tool name="read_file"> <read path=".awa/.agent/awa.core.md" required="true" error="on not found" /> <read path=".awa/rules/*.md" required="true" /> <read path=".awa/specs/ARCHITECTURE.md" required="true" error="on not found" /> </tool>
User Input
${input}
You MUST consider the user input before proceeding (if not empty).
Inputs
<file type="architecture" path=".awa/specs/ARCHITECTURE.md" /> <file type="requirements" path=".awa/specs/REQ-{CODE}-{feature-name}.md" required="if relevant" /> <file type="design" path=".awa/specs/DESIGN-{CODE}-{feature-name}.md" required="if relevant" /> <file type="code_and_tests" path="various" required="if relevant" />
Action
Run awa check to validate traceability integrity and schema correctness across the project, then analyze and fix any reported errors.
Process
-
RUN CHECK
- Execute
awa checkusing the project's package manager - Capture the full output (errors and warnings)
- Execute
-
ANALYZE FINDINGS
- Parse the output for errors (exit code 1) and warnings
- Group findings by type:
- Orphaned markers:
@awa-impl,@awa-test, or@awa-componentreferencing IDs not found in specs - Broken cross-references: IMPLEMENTS/VALIDATES pointing to invalid targets
- Schema violations: Missing sections, wrong heading levels, missing content
- Uncovered ACs: Acceptance criteria without corresponding
@awa-test
- Orphaned markers:
-
FIX ERRORS
- For orphaned markers: locate the marker in code and either fix the ID or add the missing spec entry
- For broken cross-references: update the DESIGN spec to reference valid REQ IDs
- For schema violations: update the spec file to match the expected structure
- For uncovered ACs: add missing
@awa-testmarkers or note as intentionally deferred
-
RE-RUN CHECK
- Execute
awa checkagain to verify all errors are resolved - Repeat fix cycle until exit code is 0
- Execute
-
REPORT
- Summarize what was found and what was fixed
- Note any remaining warnings that do not block (exit code 0)
Outputs
<cli>awa check output (text or JSON)</cli>
- Fixed source code files (corrected markers)
- Fixed spec files (corrected cross-references or structure)
Rules
You SHALL run awa check before making any fixes to establish a baseline.
You SHALL fix all errors (severity: error) before completing.
You SHALL re-run awa check after fixes to confirm resolution.
You SHALL NOT remove traceability markers to silence errors — fix the root cause instead.
You SHOULD address warnings when straightforward, but warnings do not block completion.
You MAY use awa check --json for structured output when analyzing complex results.
You MAY use todos and tools as needed.
04 同仓库更多 Skills
awa 全流程开发实现
awa-vibe
使用完整的 awa 工作流从头到尾实现一个想法。当被要求将一个想法走完完整开发周期时使用。
awa 工具使用与配置
awa-usage
了解 awa 本身、其命令行界面(CLI)及配置。当被问及 awa 本身、如何使用它或如何配置它时使用。
规格文档升级迁移
awa-upgrade
升级规格文档以匹配当前模式(schema)。当被要求升级、迁移或更新规格文档以符合模式变更时使用。
任务清单生成与分解
awa-tasks
创建或更新任务清单文档。当被要求创建任务、生成实施步骤,或将需求与设计分解为工作项时使用。
规格文档整理重组
awa-spec-tidy
按逻辑整理和重组规格文档。当被要求整理或重组规格文档时使用。
功能代码合并
awa-spec-merge
将两个功能代码合并为一个。当被要求组合、合并或整合功能代码时使用。