maestro-new-track
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNew Track -- Specification & Planning
新追踪项 -- 规格说明与规划
This skill is CLI-agnostic. It works with Claude Code, Codex, Amp, or any AI coding assistant.
Validate the result of every operation. If any step fails, halt and report the failure before continuing.
Create a new development track with a requirements specification and phased implementation plan. Every feature, bug fix, or chore gets its own track.
该Skill与CLI无关,可与Claude Code、Codex、Amp或任何AI编码助手配合使用。
验证每一步操作的结果。如果任何步骤失败,停止操作并报告失败情况后再继续。
创建包含需求规格说明和分阶段实施计划的新开发追踪项。每个功能、缺陷修复或杂项任务都对应单独的追踪项。
Arguments
参数
$ARGUMENTSThe track description. Examples: , ,
"Add dark mode support""Fix login timeout""Refactor connection pooling"$ARGUMENTS追踪项描述。示例:, ,
"添加深色模式支持""修复登录超时问题""重构连接池"Step 1: Validate Prerequisites
步骤1:验证前置条件
Check exists. If not: "Run first." Stop.
.maestro/context/product.md/maestro:setupCheck exists. If missing, create it with registry header.
.maestro/tracks.md检查是否存在。若不存在:"请先运行",然后停止操作。
.maestro/context/product.md/maestro:setup检查是否存在。若缺失,创建该文件并添加注册表头部信息。
.maestro/tracks.mdStep 2: Parse Input
步骤2:解析输入
Extract track description from . If empty, ask user for type (feature/bug/chore) and description.
$ARGUMENTS从中提取追踪项描述。若为空,询问用户任务类型(功能/缺陷/杂项)及描述。
$ARGUMENTSStep 3: Generate Track ID
步骤3:生成追踪项ID
Format: (2-4 words, snake_case + date). Example:
{shortname}_{YYYYMMDD}dark_mode_20260225格式:(2-4个单词,蛇形命名法+日期)。示例:
{shortname}_{YYYYMMDD}dark_mode_20260225Step 4: Duplicate Check
步骤4:重复项检查
Scan directories. Warn if any starts with the same short name prefix.
.maestro/tracks/*扫描目录。如果存在以相同短名称前缀开头的追踪项,发出警告。
.maestro/tracks/*Step 4.5: BR Bootstrap Check
步骤4.5:BR引导检查
Ensure the beads workspace exists for task tracking integration:
bash
[ -d ".beads" ] || br init --prefix maestro --jsonIf is not installed, skip silently -- beads integration is optional.
br确保用于任务追踪集成的beads工作区已存在:
bash
[ -d ".beads" ] || br init --prefix maestro --json若未安装,则静默跳过——beads集成是可选的。
brStep 5: Create Track Directory
步骤5:创建追踪项目录
bash
mkdir -p .maestro/tracks/{track_id}bash
mkdir -p .maestro/tracks/{track_id}Step 6: Auto-Infer Track Type
步骤6:自动推断追踪项类型
Analyze description keywords to classify as , , or . Only confirm with user if ambiguous.
featurebugchoreInference rules:
- feature: add, build, create, implement, support, introduce
- bug: fix, broken, error, crash, incorrect, regression, timeout, fail
- chore: refactor, cleanup, migrate, upgrade, rename, reorganize, extract
分析描述中的关键词,将其分类为(功能)、(缺陷)或(杂项)。仅当分类不明确时,才与用户确认。
featurebugchore推断规则:
- feature:包含add、build、create、implement、support、introduce等关键词
- bug:包含fix、broken、error、crash、incorrect、regression、timeout、fail等关键词
- chore:包含refactor、cleanup、migrate、upgrade、rename、reorganize、extract等关键词
Step 7: Specification Interview
步骤7:规格说明访谈
Run the type-specific interview to gather requirements.
See for all questions per type (feature/bug/chore).
reference/interview-questions.md运行对应类型的访谈以收集需求。详情请参考中针对不同类型(功能/缺陷/杂项)的所有问题。
reference/interview-questions.mdStep 8: Draft Specification
步骤8:起草规格说明
Compose spec from interview answers. See for the spec template and approval loop.
reference/interview-questions.mdPresent full draft for approval. Max 3 revision loops. Write to .
.maestro/tracks/{track_id}/spec.md根据访谈答案撰写规格说明。规格说明模板及审批流程请参考。
reference/interview-questions.md提交完整草稿供审批。最多允许3次修订循环。将最终版本写入。
.maestro/tracks/{track_id}/spec.mdStep 9: Generate Implementation Plan
步骤9:生成实施计划
Read context: , , .
Use for structure and rules.
workflow.mdtech-stack.mdguidelines.mdreference/plan-template.mdPresent full plan for approval. Max 3 revision loops. Write to .
.maestro/tracks/{track_id}/plan.md读取上下文文件:、、。
使用的结构和规则。
workflow.mdtech-stack.mdguidelines.mdreference/plan-template.md提交完整计划供审批。最多允许3次修订循环。将最终版本写入。
.maestro/tracks/{track_id}/plan.mdStep 9.5: Detect Relevant Skills
步骤9.5:检测相关Skills
Scan the runtime's installed skill list. Record skills whose description matches this track's domain/tech. Store names + relevance in metadata.json array. Skip if none match.
skills扫描运行时已安装的Skill列表。记录描述与当前追踪项领域/技术匹配的Skills。将名称及相关性存储在的数组中。若无匹配项则跳过。
metadata.jsonskillsStep 9.7: Plan-to-BR Sync
步骤9.7:计划与BR同步
If directory exists AND succeeds: run plan-to-BR sync per (in the skill). Otherwise skip entirely.
.beads/command -v brreference/plan-to-br-sync.mdmaestro:implement若目录存在且执行成功:根据Skill中的执行计划与BR的同步。否则完全跳过此步骤。
.beads/command -v brmaestro:implementreference/plan-to-br-sync.mdStep 10-12: Write Metadata and Registry
步骤10-12:写入元数据与注册表
Write , update .
See for all schemas, templates, commit message, and summary format.
metadata.jsontracks.mdreference/metadata-and-registry.md写入,更新。
所有模式、模板、提交消息及摘要格式请参考。
metadata.jsontracks.mdreference/metadata-and-registry.mdStep 13: Commit
步骤13:提交代码
bash
git add .maestro/tracks/{track_id} .maestro/tracks.mdbash
git add .maestro/tracks/{track_id} .maestro/tracks.mdInclude beads state if BR sync was performed
若执行了BR同步,则包含beads状态
[ -d ".beads" ] && git add .beads/
git commit -m "chore(maestro:new-track): add track {track_id}"
undefined[ -d ".beads" ] && git add .beads/
git commit -m "chore(maestro:new-track): add track {track_id}"
undefinedStep 14: Summary
步骤14:总结
Display track creation summary with ID, type, phase/task counts, file paths, and next step ().
/maestro:implement显示追踪项创建总结,包含ID、类型、阶段/任务数量、文件路径及下一步操作()。
/maestro:implementRelationship to Other Commands
与其他命令的关系
Recommended workflow:
- -- Scaffold project context (run first)
/maestro:setup - -- You are here. Create a feature/bug track with spec and plan
/maestro:new-track - -- Execute the implementation
/maestro:implement - -- Verify implementation correctness
/maestro:review - -- Check progress across all tracks
/maestro:status - -- Undo implementation if needed
/maestro:revert - -- Capture decisions and context to persistent notepad
/maestro:note
A track created here produces and that consumes. The spec also serves as the baseline for to validate against. Good specs lead to good implementations -- be thorough in the interview.
spec.mdplan.md/maestro:implement/maestro:review推荐工作流:
- -- 搭建项目上下文(首先运行)
/maestro:setup - -- 当前所在步骤:创建包含规格说明和计划的功能/缺陷追踪项
/maestro:new-track - -- 执行实施计划
/maestro:implement - -- 验证实施正确性
/maestro:review - -- 检查所有追踪项的进度
/maestro:status - -- 若需要,撤销实施操作
/maestro:revert - -- 将决策和上下文记录到持久记事本中
/maestro:note
在此创建的追踪项会生成和,供使用。规格说明同时作为验证的基准。完善的规格说明有助于实现高质量的开发——请在访谈环节做到详尽全面。
spec.mdplan.md/maestro:implement/maestro:review