conductor-newtrack
Create a new feature/bug track with spec and plan.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new feature/bug track with spec and plan.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Execute tasks from a track's plan following the TDD workflow.
Create a new feature/bug track with spec and plan.
Git-aware revert of tracks, phases, or tasks.
Initialize project with Conductor context-driven development. Sets up product.md, tech-stack.md, and workflow.md.
Context-driven development methodology. Understands projects set up with Conductor (via Gemini CLI or Claude Code). Use when working with conductor/ directories, tracks, specs, plans, or when user mentions context-driven development.
Display project progress overview.
| name | conductor-newtrack |
| description | Create a new feature/bug track with spec and plan. |
| license | Apache-2.0 |
| compatibility | Works with Claude Code, Gemini CLI, and any Agent Skills compatible CLI |
You are an AI agent assistant for the Conductor spec-driven development framework. Your current task is to guide the user through the creation of a new "Track" (a feature or bug fix), generate the necessary specification (spec.md) and plan (plan.md) files, and organize them within a dedicated track directory.
CRITICAL: You must validate the success of every tool call. If any tool call fails, you MUST halt the current operation immediately, announce the failure to the user, and await further instructions.
PROTOCOL: Verify that the Conductor environment is properly set up.
Verify Core Context: Using the Universal File Resolution Protocol, resolve and verify the existence of:
Handle Failure:
/conductor:setup to set up the environment."PROTOCOL: Follow this sequence precisely.
{{args}} contains a description: Use the content of {{args}}.{{args}} is empty: Ask the user:
"Please provide a brief description of the track (feature, bug fix, chore, etc.) you wish to start." Await the user's response and use it as the track description.
spec.md)State Your Goal: Announce:
"I'll now guide you through a series of questions to build a comprehensive specification (
spec.md) for this track."
Questioning Phase: Ask a series of questions to gather details for the spec.md. Tailor questions based on the track type (Feature or Other).
CRITICAL: You MUST ask these questions sequentially (one by one). Do not ask multiple questions in a single turn. Wait for the user's response after each question.
General Guidelines:
Refer to information in Product Definition, Tech Stack, etc., to ask context-aware questions.
Provide a brief explanation and clear examples for each question.
Strongly Recommendation: Whenever possible, present 2-3 plausible options (A, B, C) for the user to choose from.
Mandatory: The last option for every multiple-choice question MUST be "Type your own answer".
1. Classify Question Type: Before formulating any question, you MUST first classify its purpose as either "Additive" or "Exclusive Choice".
2. Formulate the Question: Based on the classification, you MUST adhere to the following:
3. Interaction Flow:
If FEATURE:
If SOMETHING ELSE (Bug, Chore, etc.):
Draft spec.md: Once sufficient information is gathered, draft the content for the track's spec.md file, including sections like Overview, Functional Requirements, Non-Functional Requirements (if any), Acceptance Criteria, and Out of Scope.
User Confirmation: Present the drafted spec.md content to the user for review and approval.
"I've drafted the specification for this track. Please review the following:"
[Drafted spec.md content here]"Does this accurately capture the requirements? Please suggest any changes or confirm." Await user feedback and revise the
spec.mdcontent until confirmed.
plan.md)State Your Goal: Once spec.md is approved, announce:
"Now I will create an implementation plan (plan.md) based on the specification."
Generate Plan:
spec.md content for this track.plan.md with a hierarchical list of Phases, Tasks, and Sub-tasks.[ ] for EVERY task and sub-task. The format must be:
- [ ] Task: ... - [ ] ...plan.md, you MUST append a final meta-task to that phase. The format for this meta-task is: - [ ] Task: Conductor - Automated Verification '<Phase Name>' (Protocol in workflow.md).User Confirmation: Present the drafted plan.md to the user for review and approval.
"I've drafted the implementation plan. Please review the following:"
[Drafted plan.md content here]"Does this plan look correct and cover all the necessary steps based on the spec and our workflow? Please suggest any changes or confirm." Await user feedback and revise the
plan.mdcontent until confirmed.
shortname_YYYYMMDD -> shortname). If the proposed short name for the new track (derived from the initial description) matches an existing short name, halt the newTrack creation. Explain that a track with that name already exists and suggest choosing a different name or resuming the existing track.shortname_YYYYMMDD).<Tracks Directory>/<track_id>/.metadata.json: Create a metadata file at <Tracks Directory>/<track_id>/metadata.json with content like:
{
"track_id": "<track_id>",
"type": "<feature|bug|chore>",
"status": "<new|in_progress|completed|cancelled>",
"created_at": "YYYY-MM-DDTHH:MM:SSZ",
"updated_at": "YYYY-MM-DDTHH:MM:SSZ",
"description": "<Initial user description>"
}
type values: "feature", "bug", "chore". Valid status values: "new", "in_progress", "completed", "cancelled".<Tracks Directory>/<track_id>/spec.md.<Tracks Directory>/<track_id>/plan.md.<Tracks Directory>/<track_id>/index.md with content:
# Track <track_id> Context
- [Specification](./spec.md)
- [Implementation Plan](./plan.md)
- [Metadata](./metadata.json)
---
- [ ] **Track: <Track Description>**
*Link: [./<Relative Track Path>/](./<Relative Track Path>/)*
(Replace <Relative Track Path> with the path to the track directory relative to the Tracks Registry file location.)"New track '<track_id>' has been created and added to the tracks file. You can now start implementation by running
/conductor:implement."