/omni-dsdd:tasks 功能目录或任务生成上下文from omni-dsdd
Generates dependency-ordered tasks.md from design documents for feature implementation. Use when user asks for task lists, implementation plans, or spec-to-tasks output.
Ships in omni-dsdd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
$ARGUMENTS
在继续之前,必须考虑用户输入(若不空)。
本技能所有路径解析与脚本调用均依赖以下变量。后续步骤不得用裸 scripts/...、.omni-infra/... 或 Git 仓库根推断路径。
| 变量 | 含义 | 用途 |
|---|---|---|
CLAUDE_PLUGIN_ROOT | Omni 插件安装根目录 | 定位 check-prerequisites 等插件脚本 |
CLAUDE_WORKING_DIR | 用户当前工作区目录(可为 Git 仓库子目录) | 定位 .omni-infra/、前置检查 cwd |
FEATURE_DIR | 当前特性目录(绝对路径) | 优先 source env.sh 或 paths.json |
TASKS | 任务清单绝对路径 | env.sh / paths.json 的 tasks_file |
FEATURE_SPEC / IMPL_DESIGN | 规范与设计绝对路径 | env.sh(design init 写入) |
真值顺序:source "${FEATURE_DIR}/.runs/env.sh" → ${FEATURE_DIR}/.runs/paths.json → check-prerequisites --json(均为绝对路径)。
| 符号 | 展开路径 |
|---|---|
| 任务清单(输出) | ${TASKS} 或 ${FEATURE_DIR}/tasks.md |
| 规范 | ${FEATURE_SPEC} 或 ${FEATURE_DIR}/spec.md |
| 设计 | ${IMPL_DESIGN} 或 ${FEATURE_DIR}/design.md |
| 数据模型 | ${FEATURE_DIR}/data-model.md |
| 接口契约 | ${FEATURE_DIR}/contracts/ |
| 研究 | ${FEATURE_DIR}/research.md |
| Quickstart | ${FEATURE_DIR}/quickstart.md |
| E2E 用例(可选) | ${FEATURE_DIR}/e2e-test.md |
| 上下文 | ${FEATURE_DIR}/context.md |
| 任务模板 | ${CLAUDE_WORKING_DIR}/.omni-infra/templates/tasks-template.md |
| Harness 环境(若存在) | ${FEATURE_DIR}/.runs/env.sh |
test -n "${CLAUDE_PLUGIN_ROOT:-}" && test -d "${CLAUDE_PLUGIN_ROOT}"
test -n "${CLAUDE_WORKING_DIR:-}" && test -d "${CLAUDE_WORKING_DIR}"
两项均通过 → 若已 source 过 ${FEATURE_DIR}/.runs/env.sh 且 FEATURE_DIR 非空,可进入步骤 1;否则由步骤 1 解析。
任一项失败 → 执行 Step 0.2。
CLAUDE_PLUGIN_ROOT
${路径}/skills/tasks/SKILL.md 存在):
${CLAUDE_WORKING_DIR} 或其上级查找含 .claude-plugin/plugin.json 的目录;export CLAUDE_PLUGIN_ROOT="<绝对路径>"CLAUDE_WORKING_DIR
export CLAUDE_WORKING_DIR="$(pwd)"(不用 git rev-parse --show-toplevel)test -f "${CLAUDE_PLUGIN_ROOT}/scripts/bash/check-prerequisites.sh"
test -d "${CLAUDE_WORKING_DIR}"
若上游 design 已写入 ${FEATURE_DIR}/.runs/env.sh,推荐先执行:
source "${FEATURE_DIR}/.runs/env.sh"
✅ Checkpoint: CLAUDE_PLUGIN_ROOT=..., CLAUDE_WORKING_DIR=...
${CLAUDE_PLUGIN_ROOT}/scripts/bash/...、${CLAUDE_PLUGIN_ROOT}/scripts/powershell/...CLAUDE_WORKING_DIR 下执行${CLAUDE_PLUGIN_ROOT}/skills/tasks/references/task-rules.mdgit rev-parse --show-toplevel 替代 CLAUDE_WORKING_DIRcheck-prerequisites 推断 FEATURE_DIR(须以 .runs/paths.json / env.sh / JSON 的 FEATURE_DIR 为准,与 workflow 一致)在 design 已完成 的前提下,读取 ${FEATURE_DIR} 下 spec/design 及 design 附属制品,生成可执行的 ${FEATURE_DIR}/tasks.md。本技能无独立 Harness 脚本,路径与前置检查遵循上文环境初始化约定。
${FEATURE_DIR}/tasks.md 初稿)= Step 5 报告的输入tasks.md 前进行数字一致性交叉验证开始执行步骤之前,记录本 skill 的执行时间到 start_time 字段:
Get-Date -Format "yyyy-MM-dd HH:mm:ss"date +"%Y-%m-%d %H:%M:%S"start_timesource "${FEATURE_DIR}/.runs/env.sh"(须含绝对路径的 FEATURE_DIR、TASKS、FEATURE_SPEC、IMPL_DESIGN)${FEATURE_DIR}/.runs/paths.json 的 feature_dir、tasks_file、spec_file、design_fileCLAUDE_WORKING_DIR 下运行前置检查(校验 design.md 已存在,不要求 tasks.md):
pwsh "${CLAUDE_PLUGIN_ROOT}/scripts/powershell/check-prerequisites.ps1" --json --working-dir "${CLAUDE_WORKING_DIR}" --plugin-root "${CLAUDE_PLUGIN_ROOT}"bash "${CLAUDE_PLUGIN_ROOT}/scripts/bash/check-prerequisites.sh" --json --working-dir "${CLAUDE_WORKING_DIR}" --plugin-root "${CLAUDE_PLUGIN_ROOT}"${TASKS}(勿写到 cwd 或仓库根下裸 tasks.md)'I'\''m Groot')或双引号。FEATURE_DIR 必须位于 ${CLAUDE_WORKING_DIR}/changes/ 下;若不在,重走 design 或 create-branch,勿使用 Git 仓库根下错误的 changes/ 路径。${FEATURE_DIR})${FEATURE_DIR}/design.md(技术栈、库、结构), ${FEATURE_DIR}/spec.md(带优先级的场景)${FEATURE_DIR}/data-model.md, ${FEATURE_DIR}/contracts/, ${FEATURE_DIR}/research.md, ${FEATURE_DIR}/quickstart.md${FEATURE_DIR}/e2e-test.md(仅启用 E2E 时)${FEATURE_DIR}/context.md${IMPL_DESIGN} 提取技术栈、库、项目结构${FEATURE_SPEC} 提取带优先级的场景(P1、P2、P3…)${FEATURE_DIR}/data-model.md:提取实体并映射到场景${FEATURE_DIR}/contracts/:将端点映射到场景${FEATURE_DIR}/research.md:提取影响任务设置的决策${CLAUDE_WORKING_DIR}/.omni-infra/memory/constitution.mdomni-dsdd:tdd-workflow,每个场景必须按 RED → GREEN → REFACTOR 循环生成配对的测试-实现任务。测试任务在实现任务之前,测试与实现必须配对,不可只生成其中之一。具体任务格式与模板见 task-rules.md。覆盖率目标遵循 omni-dsdd:tdd-workflow 中定义的阈值。E2E 测试策略:
使用 ${CLAUDE_WORKING_DIR}/.omni-infra/templates/tasks-template.md 作为结构,Write 到 ${TASKS},填充:
${IMPL_DESIGN} 中的功能名称${FEATURE_SPEC} 优先级顺序,每个场景一个阶段
omni-dsdd:tdd-workflow 覆盖率阈值)与横切关注点[ ] [Scenario] 校验修改点支持状态(已支持/部分支持/不支持)[ ] [Scenario] 校验利旧实现路径(模块/接口/函数)[ ] [Scenario] 校验最小化改动边界(文件与函数范围)输出生成的 ${TASKS} 路径与摘要:总任务数、每场景任务数、并行机会、每场景独立测试标准、建议 MVP 范围(通常为场景 1)。
同时输出「修改点严格检查摘要」:修改点总数、已支持数量、利旧通过数量、最小化通过数量、需澄清数量。
任务生成上下文: $ARGUMENTS
tasks.md 应立即可执行——每项任务足够具体,使 LLM 无需额外上下文即可完成。
若「修改点严格检查」未通过且无合理说明,不得输出为最终可执行版本,必须先回填检查任务并收敛范围。
${FEATURE_DIR}/.runs/env.sh,执行前:source "${FEATURE_DIR}/.runs/env.sh"omni-dsdd:runlog-record skill,将 start_time 作为参数传入(如 /omni-dsdd:runlog-record "2026-05-15 10:30:00")current_stage 写成 analyze。下一阶段必须由 workflows/${FLOW_MODE}.yaml 决定:
express / standard / deep: tasks -> analyzeexpert: tasks -> implementworkflow-orchestrator 调度,本 skill 只需完成 tasks.md、requirements-content.md、scenarios-content.md 与 tasks gate;状态写入由编排器统一执行。workflow-update-state.sh,应先读取 ${FEATURE_DIR}/.runs/.omnispec-state.json 或 paths.json 中的 flow_mode,expert 使用 --current-stage implement --mark-complete tasks,其他流程使用 --current-stage analyze --mark-complete tasks。生成任务时严格遵循 task-rules.md 中的:检查清单格式(TaskID、[P]、[Scenario]、文件路径)、任务组织(来自 spec/合约/数据模型/基础设施)、阶段结构。每个场景强制生成 TDD 测试任务(RED → GREEN → REFACTOR),测试任务在实现任务之前。
| 项 | 路径 |
|---|---|
| 前置检查(bash) | ${CLAUDE_PLUGIN_ROOT}/scripts/bash/check-prerequisites.sh |
| 前置检查(pwsh) | ${CLAUDE_PLUGIN_ROOT}/scripts/powershell/check-prerequisites.ps1 |
| 任务规则 | ${CLAUDE_PLUGIN_ROOT}/skills/tasks/references/task-rules.md |
| 本技能 | ${CLAUDE_PLUGIN_ROOT}/skills/tasks/SKILL.md |
What SKILL.md sets; muted values are Claude Code's defaults
general-purpose), in the backgroundnpx claudepluginhub zte-aicloud/co-omnispec --plugin omni-dsdd63 skills in this plugin
/analyze制品一致性分析技能。对 spec.md、design.md、tasks.md 做跨制品一致性分析并自动修复,不设轮数上限,全程不询问用户。残留问题完整打印后继续正常结束。用于分析制品、检查一致性、质量审查。/archive将变更指示文件中的需求/设计/接口变更回流到 DOC_DIR/specs 下的要素文档. 当需要从 feature 变更目录同步更新到 DOC_DIR/specs 下的需求、场景、实体、功能和接口文档及其清单与关联关系时使用/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./brainstorming-sdd-bridgeExpert workflow adapter that converts an approved brainstorming *-design.md into the standard SDD document interface consumed by tasks/implement/review/local-sandbox-fix. Use only after expert brainstorming and before tasks./checklist检查清单生成技能. 基于用户需求为当前功能生成自定义检查清单, 清单是"需求编写的单元测试", 验证需求的质量、清晰度和完整性而非实现. 当用户提到生成检查清单、需求质量验证、规范完整性检查时使用./clarify规范澄清技能. 通过提出最多 5 个高度针对性的澄清问题, 识别当前功能规范中未充分说明的领域, 并将答案编码回规范中. 当用户提到澄清规范、消除模糊性、补充规范细节、或在 specify 完成后需要进一步细化时使用.Other plugins' skills for the same job