规格文档整理重组
awa-spec-tidy
按逻辑整理和重组规格文档。当被要求整理或重组规格文档时使用。
- License 许可
- BSD-3-Clause
- 所属仓库
- ncoderz/awa
- 最近更新
- 2026-08-13
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- awa-spec-tidy
- description
- Tidy and reorganise the specifications logically. Use this when asked to tidy or reorganise the specifications.
02 资源文件 31
- 参考文档rules/3d.md2.2 KB
- 参考文档rules/animations.md812 B
- 参考文档rules/assets.md1.6 KB
- 其他rules/assets/charts-bar-chart.tsx3.4 KB
- 其他rules/assets/text-animations-typewriter.tsx2.1 KB
- 其他rules/assets/text-animations-word-highlight.tsx2.3 KB
- 参考文档rules/audio.md3.7 KB
- 参考文档rules/calculate-metadata.md3.4 KB
- 参考文档rules/can-decode.md1.6 KB
- 参考文档rules/charts.md1.7 KB
- 参考文档rules/compositions.md3.4 KB
- 参考文档rules/display-captions.md3.7 KB
- 参考文档rules/extract-frames.md5.8 KB
- 参考文档rules/fonts.md3.4 KB
- 参考文档rules/get-audio-duration.md1.3 KB
- 参考文档rules/get-video-dimensions.md1.6 KB
- 参考文档rules/get-video-duration.md1.3 KB
- 参考文档rules/gifs.md3.8 KB
- 参考文档rules/images.md2.7 KB
- 参考文档rules/import-srt-captions.md2.1 KB
- 参考文档rules/lottie.md1.7 KB
- 参考文档rules/measuring-dom-nodes.md974 B
- 参考文档rules/measuring-text.md2.9 KB
- 参考文档rules/sequencing.md2.4 KB
- 参考文档rules/tailwind.md422 B
- 参考文档rules/text-animations.md700 B
- 参考文档rules/timing.md3.8 KB
- 参考文档rules/transcribe-captions.md850 B
- 参考文档rules/transitions.md3.6 KB
- 参考文档rules/trimming.md1.2 KB
- 参考文档rules/videos.md3.5 KB
03 SKILL.md 正文
Tidy and Reorganise Specifications
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="feat" path=".awa/specs/FEAT-{SOURCE_CODE}-.md" required="true" /> <file type="requirements" path=".awa/specs/REQ-{SOURCE_CODE}-.md" required="if exists" /> <file type="design" path=".awa/specs/DESIGN-{SOURCE_CODE}-.md" required="if exists" /> <file type="api" path=".awa/specs/API-{SOURCE_CODE}-.tsp" required="if exists" /> <file type="examples" path=".awa/specs/EXAMPLE-{SOURCE_CODE}-.md" required="if exists" /> <file type="tasks" path=".awa/tasks/TASK-{SOURCE_CODE}-.md" required="if exists" />
Action
Tidy and reorganise the specifications logically, following awa conventions. Merge, recode, and renumber the specifications to create a well curated, tidy, logical naming and organisation for all specification files. Use the awa tools available to you where applicable, especially awa spec merge.
Merge Process
-
PRE-VALIDATE
- Run
awa checkto record existing errors before proceeding
- Run
-
IDENTIFY CHANGES
- Find existing codes for spec files:
awa spec codes - Read through all spec files to understand their content and relationships
- Identify files that should be merged, recoded, or renumbered to improve logical organisation
- For merges, determine the source and target codes
- Find existing codes for spec files:
-
PREVIEW CHANGES
- For each planned merge, run
awa spec merge <source> <target> --dry-runto see planned operations - Review the output: ID remap table, file moves, renames
- For each planned recode, run
awa spec recode <code> <new-code> --dry-runto see planned operations - Review the output: ID remap table, file renames
- For each planned renumber, run
awa spec renumber <code> --dry-runto see planned ID changes - Review the output: ID remap table
- If output looks wrong, abort and investigate
- For each planned merge, run
-
EXECUTE MERGE / RECODE / RENUMBER
- Run the commands without dry run to apply the changes
-
CONSOLIDATE FILES
- Re-list all spec files
- For each file type (FEAT, REQ, DESIGN, API, EXAMPLE), check if multiple files exist that should be combined
- Where two files of the same type cover closely related or overlapping content, merge them into one:
- Append the smaller file's content to the larger one
- Remove duplicate sections, but do not alter the wording of requirements or design components
- Ensure the merged file stays within schema line limits; split if needed
- Files that cover distinct topics should remain separate
-
FIX MERGED FILES
- Open every merged spec file and verify content coherence
- Reorder content into logical order
- Check that REQ files have consistent requirement structure
- Check that DESIGN files have non-overlapping component names
- Ensure all files respect schema line limits; split if needed
-
VALIDATE
- Run
awa checkto verify new status - Fix any newly reported errors
- If no errors reported, process is complete
- Run
Outputs
- Well named and structured spec files with consistent codes and logical organisation
Rules
You SHALL always preview with --dry-run before executing an awa operation.
You SHALL run awa check --spec-only after reorganisation to verify structural integrity.
You SHALL run awa check after reorganisation if code markers were rewritten.
You SHALL review reorganised file content for coherence and size limits.
You SHALL use --renumber when clean sequential IDs are requested.
You SHALL NOT merge a code into itself.
You SHALL NOT proceed if --dry-run reveals unexpected stale references.
You SHALL update user-facing documentation when the reorganisation changes public features, CLI, or configuration.
You SHALL clarify open points with user.
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-merge
将两个功能代码合并为一个。当被要求组合、合并或整合功能代码时使用。
需求弃用与归档
awa-deprecate
通过将需求 ID 移入 tombstone(墓碑)文件来弃用需求。当被要求弃用、退役或移除需求、验收标准或组件时使用。