/t-tools:t-task [任务名称] [--phase <phase>]from t-tools
Converts technical design documents into executable phased task plans with ordered work breakdown. Generates task directories, state files, and serial item files from design specs.
Ships in t-tools. 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.
None: SKILL.md is the whole skill.
运行时边界:${CLAUDE_PLUGIN_ROOT}/protocols/runtime-boundaries.md(判断产物写入位置或项目事实与插件默认冲突时读)
需求来源边界:${CLAUDE_PLUGIN_ROOT}/protocols/requirement-source-contract.md(区分草稿与已发布需求来源时读)
决策连续性和用户决策暴露:${CLAUDE_PLUGIN_ROOT}/protocols/decision-continuity-contract.md(提问、更新决策账本或处理决策暴露门禁时读)
设计生成状态:${CLAUDE_PLUGIN_ROOT}/protocols/design-contract.md 的 Design State 节(校验设计 .state.json 时读)
任务拆分必须服务于边界清楚、验证闭环明确的执行;如果设计文档、guide 或 protocol 冲突,停止并说明冲突。
影响规划方向的缺口(任务拆分、交付范围、权限/安全边界、数据模型、兼容性策略、验收标准、测试闭环)先按 Topic 查 Decision Log;仍未解决时用 AskUserQuestion 获取答案,回答前不得生成或更新任务。回答后先更新 Decision Log 和设计文档。slot item 数量超过 ${CLAUDE_PLUGIN_ROOT}/protocols/task-phase-execution.md 的默认上限时,同样必须由用户授权后才能写入。
规划测试与验收时读取 ${CLAUDE_PLUGIN_ROOT}/protocols/verification-evidence-contract.md,将受影响行为的验证入口、关键断言和承接位置写入现有设计测试章节/阶段计划;交付收尾按同一协议核对证据和待验证项。
.ai/design/[feature].md 生成 .ai/task/[feature]/ 任务目录和 .state.json。phase -> slot -> item 模型;生成串行执行的 item 文件,而不是把 manifest 当执行输入。| 参数 | 说明 |
|---|---|
[feature] | 功能名(必填) |
--phase <phase> | 指定阶段生成;未指定时默认选择第一个 active phase |
上游输入(来自 /t-design 产出):
.ai/design/[feature].md — 设计主文档(必须存在)
.ai/design/[feature]/backend.md、frontend.md、extension.md、flutter.md、shopify.md — 分端设计文档;主文档 §4.2 标记适用时必须存在,生成对应 phase 时必须读取(分端细节以分端文档为准).ai/design/[feature]/.state.json — 必须存在且为 complete,否则停止并提示恢复 /t-design [feature].ai/decision-log/[feature].md — 跨阶段决策账本(存在时必须读取;本阶段不得采用 Superseded Decision)可选输入:
.ai/task/[feature]/.state.json — 已有任务状态(增量生成时)docs/prd/**/*.md、.ai/user-stories/**/*.md、docs/user-stories/**/*.md、.ai/tech-research/**/*.md — 需求来源${CLAUDE_PLUGIN_ROOT}/guides/ — 开发规范解析参数和规划阶段前读取 ${CLAUDE_PLUGIN_ROOT}/protocols/task-phase-execution.md 的 Phases 与 Slot Order,校验支持值、active phases 和 slot 顺序;非法或不适用时按协议提示可选阶段,未启用的 phase 不参与生成。
下游产出:
.ai/task/[feature]/.state.json — 任务状态文件,包含 phase/slot/item 层级状态.ai/task/[feature]/<phase>/index.md — 阶段总览,包含当前 phase 的 Decision Trace.ai/task/[feature]/<phase>/<slot>.md — Slot manifest(导航与执行顺序).ai/task/[feature]/<phase>/<slot>/<ITEM-ID>-*.md — 可执行的 item 文件状态结构、item 字段、slot 顺序、测试集中执行和 backend/test 特殊字段统一参考:
${CLAUDE_PLUGIN_ROOT}/protocols/task-state-contract.md${CLAUDE_PLUGIN_ROOT}/protocols/task-phase-execution.md.ai/design/[feature].md 存在。读取 Decision Log,核对设计的 Decision Trace,并把 Must Resolve Before=t-task 的 Deferred Question 升级为 needs_user_answer。[feature] 和 --phase;按 task-phase-execution 检测 active phases,未传 --phase 时选择第一个 active phase。extension.md 的浏览器策略及 ${CLAUDE_PLUGIN_ROOT}/guides/extension/testing.md;extension 适用却缺少分端设计时停止,不套用 Web UI 方案。${CLAUDE_PLUGIN_ROOT}/protocols/task-phase-execution.md 判断是否规划 test slot。仅运行现有测试或编译、类型检查、构建时,阶段计划只生成 dev 与 accept;index 说明测试选择和适用的后续 Demo 计划,dev item 的 Validation 至少包含一项可执行验证。需要测试角色编写测试用例、fixture/helper 或专项验证脚本时才规划 test slot。${CLAUDE_PLUGIN_ROOT}/protocols/subagent-dispatch.md 通过 Agent tool 启动。prompt 保持精简:阶段设计摘要、上游 handoff、验证责任表及 verification-evidence-contract 路径、目标 guide/protocol 路径、责任闭环识别要求、输出字段要求、needs_user_answer 规则;不得复制 guide、protocol 或 agent 文档中的长篇规则。Expected Test Manifest、变更文件和 package/module/test name 推导最小可靠定向命令;规划全量 uv run scripts/backend-test.py -- 时必须在 Validation 或 Handoff 写明无法可靠定向的具体原因或门禁要求,否则写入前硬校验拒绝。完整规则见 task-phase-execution 的 Backend Test Item Types。<phase>/index.md,用 Decision ID | Status | Task/Item Location | Notes 表追踪影响当前 phase 的 Active Decision;没有 test slot 时在 index 中说明测试选择和 dev 验证。index.md、slot manifest 和 item Markdown,运行 python ${CLAUDE_PLUGIN_ROOT}/scripts/check-decision-closure.py <all-phase-markdown-paths>;命中项按 Decision Exposure Gate 处理,重新扫描通过前不得交付任务计划。.state.json:当前 phase 新生成且尚未执行的 item 写为 generated,再按 task-state-contract 聚合 slot 和 phase;不得在 /t-task 中提前改为 pending。/t-task-check [feature] --phase [phase];简单任务可直接运行 /t-run [feature] --phase [phase]。规划 slot 时读取 ${CLAUDE_PLUGIN_ROOT}/protocols/task-phase-execution.md 的 Role Mapping,按当前 phase 与 slot 选择 subagent_type;不得按名称猜测角色。
每个 slot manifest 必须包含:
id | title | agent | file;表格从上到下即 /t-run 执行顺序manifest 不得包含完整实现步骤;完整步骤必须写入 item 文件。
任务文档面向 /t-run 执行,不承载教程或指南复述:
Work 写具体动作,不写通用工程原则;Validation 写目标项目真实命令、脚本或验收证据,不写抽象测试建议。Handoff 只保留给顺序中后续 slot/agent 必需的信息;没有交接内容时写 None。Goal 或 Handoff 引用稳定 DEC ID,不复制整条决策历史。slot agent 输出必须至少包含:
slot: dev|test|acceptmanifest_target_filemanifest_contentitems: 按执行顺序排列的 item 对象列表,每个 item 包含 id/file/agent/contentself_check: 必填字段、执行顺序、责任闭环拆分、过度拆分、阶段执行规则和 P0/P1 风险自检结果主流程在每个 slot 返回后执行写入前硬校验(失败则终止该 slot):
slot 与被调度 agent 匹配;item 必填字段齐备、ID 唯一;manifest 按返回的 items 顺序覆盖全部 items,表格顺序与 items 列表一致,且 manifest、item 文件路径和 .state.json 计划一致self_check 存在且未声明未解决 P0/P1;slot agent 已说明 item 的责任闭环index.md;文档写入与 .state.json 更新保持同轮完成agents 根字段dev.md、test.md、accept.md 当作 /t-run 的直接执行输入/t-design [feature]self_check 缺失、覆盖不完整、类型非法、明显过度拆分或超限无授权):拒绝写入成功状态,要求重新生成或合并该 slotneeds_user_answer:按决策纪律提问,回答前不写入该 slot;回答后先同步设计/规划依据,再重新生成该 slot/t-task <feature> --phase backend # 生成 backend 阶段任务
/t-task <feature> # 未指定 phase 时选择第一个 active phase
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
task-planning, design-to-task, work-breakdown, phase-execution
Generated from the plugin's indexed repository (timzaak/web-dev-skills) — no native marketplace selected
npx claudepluginhub p/timzaak-t-tools34 skills in this plugin
/t-decisionDecide whether a feature should enter the t-tools workflow before tech research or PRD./t-designGenerate technical design documents including API design, database schema, and implementation details for a feature./t-design-checkEvaluate technical design documents for implementability, completeness, and consistency with a quantitative 100-point score./t-docGenerate human-readable project documentation — tutorials, getting-started guides, architecture overviews, API references, deployment or onboarding docs — by scanning the codebase for real facts. Output prefers an existing docs-web site over docs/tutorials/. Use when the user asks to write project docs, tutorials, guides, onboarding material, or a module walkthrough. Not for PRDs, technical designs, or API schema generation./t-dreamOrganize and realign published PRDs, user stories, implementation facts, and project structure so the target project keeps a clean current context instead of accumulating stale or misleading information. Audits published docs and code only; never reads the temporary .ai/ workflow directory. Use when asked to audit documentation drift, structure drift, traceability gaps, whether PRD/code/test/demo directory organization and module boundaries are reasonable, or to get PRD governance recommendations (merge/archive/rewrite/reference fixes) as read-only report output. Use --phase <phase> to check published PRD/story versus implementation-or-demo consistency for one delivery phase at phase wrap-up./t-extension-demo-accept独立验收 Chrome 扩展真实加载后的 Playwright 用户故事演示并汇总报告;普通 Web 页面演示使用 t-web-demo-accept。Other plugins' skills for the same job