任务清单生成与分解
awa-tasks
创建或更新任务清单文档。当被要求创建任务、生成实施步骤,或将需求与设计分解为工作项时使用。
- License 许可
- BSD-3-Clause
- 所属仓库
- ncoderz/awa
- 最近更新
- 2026-08-13
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- awa-tasks
- description
- Create or update task list documents. Use this when asked to create tasks, generate implementation steps, or break down requirements and designs into work items.
02 资源文件 5
- 参考文档agents/openai.yaml305 B
- 资产文件assets/remotion-icon.svg1.3 KB
- 参考文档display-captions.md5.7 KB
- 参考文档import-srt-captions.md2.2 KB
- 参考文档transcribe-captions.md2.2 KB
03 SKILL.md 正文
Create or Update Task List(s)
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" /> <read path=".awa/.agent/schemas/DESIGN.schema.yaml" optional="true" /> <read path=".awa/.agent/schemas/REQ.schema.yaml" optional="true" /> <read path=".awa/.agent/schemas/TASK.schema.yaml" 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-{CODE}-{feature-name}.md" required="if relevant" /> <file type="examples" path=".awa/specs/EXAMPLE-{CODE}-{feature-name}-{nnn}.md" required="if relevant" /> <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="api" path=".awa/specs/API-{CODE}-{feature-name}.md" required="if relevant" />
Action
Update or create the task list document(s) as specified in the instruction above, following awa conventions.
Process
-
PARSE REQ
- Extract requirements ({CODE}-{n}) with priorities (must/should/could)
- Extract acceptance criteria ({CODE}-{n}[.{p}]_AC-{m}) with types
- Note dependencies between requirements
- Identify testable criteria
-
PARSE DESIGN
- Extract components ({CODE}-{ComponentName}) and interfaces
- Map IMPLEMENTS references (component → ACs)
- Extract properties ({CODE}_P-{n}) and VALIDATES references
- Note architectural decisions and constraints
- Extract error types for error handling tasks
-
IF ARCH PROVIDED
- Extract project structure for file paths
- Extract technology stack for setup tasks
- Note architectural rules as constraints
-
GENERATE TASKS
- Phase 1: Setup (project initialization, dependencies)
- Phase 2: Foundation (shared types, core interfaces, error types)
- Phase 3+: One phase per requirement (priority order: must → should → could)
- Final Phase: Integration and polish
- Include test tasks based on properties and ACs
-
VALIDATE
- Every AC has at least one implementing task
- Every P has a test task
- No orphan tasks (all trace to AC or P)
- Dependencies respect component order from DESIGN
Task Organization
From Requirements
- Each requirement ({CODE}-{n}) becomes a phase (priority order)
- All ACs for that requirement → tasks within its phase
- Subrequirements ({CODE}-{n}.{p}) nest under parent phase
From Design Components
- Each component → one or more implementation tasks
- Component's IMPLEMENTS list → task's IMPLEMENTS line
- Component interface → task description specifics
From Properties
- Each property ({CODE}_P-{n}) → test task
- Property's VALIDATES list → determines test assertions
- Property type determines test approach:
- Invariants → property-based tests
- Specific behaviors → example-based tests
From Error Types
- Each error type → error handling task in Foundation phase
- Error variants → validation tasks in relevant requirement phases
Phase Structure
Phase 1: Setup
- Project initialization
- Dependency installation
- Configuration scaffolding
- No requirement labels, no IMPLEMENTS lines
Phase 2: Foundation
- Core types from DESIGN dataModels
- Error types from DESIGN errorHandling
- Shared interfaces
- No requirement labels, IMPLEMENTS only if AC covers foundation
Phase 3+: Requirements (priority order)
Within each requirement phase:
- Types/models specific to this requirement
- Implementation tasks (component by component)
- Test tasks (properties first, then direct AC tests)
Each phase should be independently testable after completion.
Final Phase: Polish
- Integration tests across requirements
- Cross-cutting concerns
- No requirement labels
Documentation Phase
- Documentation update tasks for any changed user-facing behavior, CLI, API, or configuration
- If no user-facing changes, include a single task: "No doc changes — internal only"
- No requirement labels, no IMPLEMENTS lines
Validation Checklist
Before output, verify:
- [ ] Every task has correct format (checkbox, ID, description, path)
- [ ] Every AC appears in at least one IMPLEMENTS line
- [ ] Every P appears in at least one TESTS line
- [ ] Requirement labels only on requirement phase tasks
- [ ] [P] markers only where truly parallelizable
- [ ] Dependencies match DESIGN component order
- [ ] Each requirement phase has clear test criteria
- [ ] Trace summary accounts for all ACs and Ps
- [ ] Documentation phase present with doc update tasks or explicit "no changes" task
Outputs
<file path=".awa/tasks/TASK-{CODE}-{feature-name}-{nnn}.md" />
Rules
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-spec-tidy
按逻辑整理和重组规格文档。当被要求整理或重组规格文档时使用。
功能代码合并
awa-spec-merge
将两个功能代码合并为一个。当被要求组合、合并或整合功能代码时使用。
需求弃用与归档
awa-deprecate
通过将需求 ID 移入 tombstone(墓碑)文件来弃用需求。当被要求弃用、退役或移除需求、验收标准或组件时使用。