[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79R6V8GAFF1MWCMB99JXDQW":3,"skill-same:01M79R6V8GAFF1MWCMB99JXDQW":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M79R6V8GAFF1MWCMB99JXDQW","conductor-new-track",null,"newtonmunene99\u002Fclaudekit","newtonmunene99","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F29271333?v=4","01M79R6BB4AWRGZNKNSRC1SF50","Newton Munene","01M79R6BBWZPWCNJBW8VXZMD4Z",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnewtonmunene99\u002Fclaudekit\u002Fblob\u002Fmain\u002Fplugins\u002Fconductor\u002Fskills\u002Fconductor-new-track\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: conductor-new-track\ndescription: Create a new Conductor track: brainstorm the design, then write its spec and plan under conductor\u002F. Use when the user asks to start, plan, or spec a new Conductor track, promote a backlog item to a track, or triage Conductor backlog items.\n---\n\nFollow `${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002Fconductor-protocol.md` for file resolution, git policy, and output style.\n\n# Conductor New Track\n\n## Claude Tool Mapping\n\n- **User Prompt Protocol** for structured user prompts (AskUserQuestion tool when available, else numbered options in chat; wait for reply)\n- **Read** \u002F **Write** \u002F **Edit** for file operations\n- **Bash** for shell commands\n- **Grep** \u002F **Glob** for search\n- Use relative paths under `conductor\u002F` for all Conductor artifacts\n\n## Output Style\n\nFollow **Agent Output Style** in `templates\u002Fconductor-protocol.md` and `templates\u002Foutput-style.md`.\n\n**New-track-specific:** Line 1 = current phase (brainstorm | spec | plan) and the one thing the user should do. Show the whole design once (§2.2 step 6); do not restate it before drafting the spec. On completion: \"Run `\u002Fconductor:conductor-implement` on `\u003Ctrack_id>`.\"\n\n## Plugin Template Path\n\nLocate plugin templates in this order:\n1. `${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002F`\n2. Fallback (local dev): `.\u002Fplugins\u002Fconductor\u002Ftemplates\u002F` from claudekit repo root\n\n## Conductor Plan Format\n\nWhen creating or updating implementation plans, write to `conductor\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md` with this frontmatter:\n\n```yaml\n---\nname: Track Title\noverview: One-paragraph summary derived from spec\ntodos:\n  - id: kebab-case-id\n    content: \"Task description\"\n    status: pending\nisProject: true\n---\n```\n\n- `status` values: `pending`, `in_progress`, `completed`, `deferred` (a phase hand check the user postponed; it blocks nothing), and `blocked` (waiting on something outside the plan; `blocked_on` says what)\n- On task completion, set `status: completed` and append commit SHA to `content`\n- Markdown body below frontmatter carries phases, goals, architecture\n- Register plan path in `conductor\u002Fcontext\u002Ftracks.md`\n\n## Tracks Registry Format\n\nUse this format in `conductor\u002Fcontext\u002Ftracks.md`:\n\n```markdown\n- [ ] **Track: Description**\n  *Spec: [..\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md](..\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md)*\n  *Plan: [..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md](..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md)*\n```\n\nStatus markers: `[ ]` pending, `[~]` in progress, `[x]` complete.\n\n\n## 1.0 SYSTEM DIRECTIVE\nYou 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 (Conductor plan file) files, and organize them within a dedicated track directory.\n\nCRITICAL: Validate the result of every tool call. On failure, classify it with the **Failure Policy** in templates\u002Fconductor-protocol.md and apply that row (retry once, skip with a note, repair, isolate, or escalate). Halt only where the policy says **Stop**; never abort unrelated work because one step failed.\n\n\n---\n\n## 1.1 SETUP CHECK\n**PROTOCOL: Verify that the Conductor environment is properly set up.**\n\n1.  **Verify Core Context:** Using the **Universal File Resolution Protocol**, resolve and verify the existence of:\n    -   **Product Definition**\n    -   **Tech Stack**\n    -   **Workflow**\n\n2.  **Handle Failure:**\n    -   If ANY of these files are missing, you MUST halt the operation immediately.\n    -   Announce: \"Conductor is not set up. Please run `\u002Fconductor:conductor-setup` to set up the environment.\"\n    -   Do NOT proceed to New Track Initialization.\n\n---\n\n## 2.0 NEW TRACK INITIALIZATION\n**PROTOCOL: Follow this sequence precisely.**\n\n### 2.1 Get Track Description and Determine Type\n\n1.  **Load Project Context, narrowly:** Read **Working Agreements** (per the **Working Agreements Protocol**), then only what this track needs: the **Product Definition** summary, the **Tech Stack** sections relevant to the description (grep, don't read the whole file), and the backlog item when there is one. Survey the codebase with a read-only Explore subagent that returns a short summary rather than reading whole components into this context. Trust facts the user or a handoff marks as verified, and re-check only those marked unverified.\n2.  **Get Track Description & Enter Plan Mode:**\n    *   **If `{{args}}` is empty:** run `python3 \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fconductor_state.py\" backlog`.\n        1. If its `open` count is above 0, use the **User Prompt Protocol** to offer up to 3 items with `status: open` (label = title, description = one line on why now; put the one you recommend first, marked `(Recommended)`), plus **Something else**. A picked item is the description; continue as for `backlog:\u003Cslug>` below.\n        2. Otherwise, or on **Something else**, ask the user using the **User Prompt Protocol** (do not repeat the question in the chat):\n            - **questions:**\n                - **header:** \"Description\"\n                - **type:** \"text\"\n                - **question:** \"Please provide a brief description of the track (feature, bug fix, chore, etc.) you wish to start.\"\n                - **placeholder:** \"e.g., Implement user authentication\"\n            Await the user's response and use it as the track description.\n        3. If `duplicates` is non-empty, mention it in one line (\"backlog.md repeats N items; want me to dedupe it?\") and offer the cleanup once.\n    *   **If `{{args}}` is `backlog:\u003Cslug>[,\u003Cslug>...]` or names a backlog item:** find each item in the `backlog` output (slug first, then title). Their titles and bodies, joined, are the description, and any \"Notes for next session\" under them are verified context. One or two items form one track; three or more are a list of 3+ items and enter programme mode (§2.1b). If the items sit under one programme section, or their text names one programme, inherit that `programme_id` and set `order` to the programme's highest `order` + 1 (new tracks join that programme; several new tracks take consecutive orders from there, or share one when they can run in parallel). Items from different programmes, or from none, inherit nothing. Remember every item's line for promotion (§2.5 step 7b, or §2.5p in programme mode).\n    *   **If `{{args}}` contains a description:**\n        1. Use the content of `{{args}}` as the track description.\n        2. **Infer Track Type:** Analyze the description to determine if it is a \"Feature\" or \"Something Else\" (e.g., Bug, Chore, Refactor). Do NOT ask the user to classify it.\n\n### 2.1b Programme detection\n\nAfter loading the track description, check for **programme mode**:\n\n| Signal | Source | Action |\n| ------ | ------ | ------ |\n| User references `conductor\u002Freviews\u002F*.md` | review document | Enter programme mode |\n| Paste includes numbered findings (§3.x, ARCH-N, Addendum) | review document | Enter programme mode |\n| Description mentions \"remediation\" or \"review findings\" | review document | Enter programme mode |\n| User asks for a programme or several tracks (\"programme\", \"several tracks\", \"N tracks\") | request or list | Enter programme mode |\n| Description or conversation lists 3+ distinct items | request or list | Enter programme mode |\n| This conversation holds grilling or design-review output (`engineering:grilling`, `grill-with-docs`, `improve-codebase-architecture`, or a handoff's settled list) that settles 3+ items or names 2+ tracks | grilling | Enter programme mode |\n| Otherwise | none | Continue to §2.1c, then the single-track flow (§2.2) |\n\n**Programme mode protocol:**\n\nSteps 1 and 2 apply only when the source is a review document. For any other source, skip both and say so in one line: \"Programme from \u003Csource>; no review to validate.\"\n\n1. Resolve and read the review document via **Reviews Directory** (Universal File Resolution).\n2. Check for validation addendum (`\u003Creview-stem>_validation.md`) or validation section. If missing, announce: \"Run `\u002Fconductor:conductor-validate-review` first\" and use the **User Prompt Protocol** — opt out only if user explicitly accepts unvalidated programme.\n3. Load `templates\u002Fprogramme-planning-guide.md` from **Plugin Template Path**, then run **§2.1c Settled decisions** so nothing below re-asks what is already decided.\n4. Count the findings or items and classify axes (trust, lifecycle, registry, docs, architecture).\n5. **Split vs monolith** — **User Prompt Protocol**:\n   - **header:** \"Programme split\"\n   - **type:** choice\n   - **options:** Split into N tracks (recommended when 3+ items or 2+ axes) | Single monolith track | Custom split (user describes)\n   - When the **Settled decisions** list already fixes the split, skip this prompt and state the split in one line.\n   - **Single monolith track** leaves programme mode: continue with the single-track flow (§2.2), keeping the **Settled decisions** list and its shortcut rule, and skipping §2.2 step 3 (the user just chose one track), so the design is still approved before any spec.\n6. If ARCH-N findings block future refactors, include a **decision track** (see §2.5b).\n7. Optional: suggest `\u002Fengineering:improve-codebase-architecture` (engineering plugin) for architecture deepening before split.\n8. Skip §2.2–2.4 single-track loops; use **§2.3p Programme specs**, **§2.4p Programme plans**, **§2.4b Programme synthesis**, then **§2.5p Programme artifacts**.\n\n### 2.1c Settled decisions\n\nBefore any brainstorm question, collect what is already decided: decisions made in this conversation (a grilling session, a design discussion, the user's own answers), in `{{args}}`, in a handoff's notes, or in an `.adr\u002Fdecisions\u002F` concept the description names. Write each as one line in chat:\n\n```\n- \u003Cdecision> — \u003Csource>\n```\n\nThen use the **User Prompt Protocol** once: **Use these (Recommended)** \u002F **Revise** (the user corrects, adds or drops lines). An empty list skips this step silently.\n\nThe approved list is the **Settled decisions** list. A brainstorm or spec question whose answer is on it is not asked. In the single-track flow, when the list covers purpose, approach and success criteria, go straight to the design approval: run §2.2 steps 2–3 and the Triage exit check, skip the clarifying questions and approaches, then present §2.2 step 6 (or the summary in the lightweight flow). In programme mode this step returns to programme step 4.\n\n### 2.2 Brainstorm and Design\n\n**HARD-GATE:** Do NOT draft `spec.md`, create a plan, or write implementation code until the user has approved the design for this track.\n\n1.  **State Your Goal:** One line: \"Brainstorm: I'll ask only what the Settled decisions list leaves open.\" (No multi-paragraph intro.)\n\n2.  **Explore Context:** Read **Product Definition**, **Tech Stack**, and relevant codebase areas related to the track description.\n\n3.  **Scope Decomposition:** If the description spans multiple independent subsystems, immediately use the **User Prompt Protocol** to propose splitting into separate tracks before continuing.\n\n**This section is the brainstorm.** Do not load a separate brainstorming or planning skill on top of it.\n\n**Triage exit.** When the user asks only to evaluate an item (\"should we build this?\", \"look at these backlog items\"), or the brainstorm concludes the work should not be built now, stop before §2.3: write the verdict into the backlog item (what was decided, why, and what would reopen it, e.g. `- [x] **\u003Ctitle>** — decided 2026-09-08: not building; reopen if \u003Ccondition>.`), and create no track. When the real question is a choice between architectures or build-versus-don't, offer a **decision track** instead (§2.5b applies to a standalone track too).\n\n#### If FEATURE (full brainstorm flow)\n\n4.  **Clarifying Questions:** Ask **one question per **User Prompt Protocol** call** (do not batch during brainstorm). Focus on purpose, constraints, and success criteria. Prefer multiple-choice when possible.\n5.  **Approaches:** Propose **2–3 options** with trade-offs and your recommendation.\n6.  **Design Summary:** Present the whole design (architecture, data flow, error handling, testing approach) as chat text in one reply, one short section each: the new or changed types and functions by name, the behaviour, the edge cases, and every decision you made that the user did not choose. Working a section out in your reasoning is not presenting it; the user never sees your reasoning. Then use the **User Prompt Protocol** once, listing each section's two or three key decisions in the question so it can be answered on its own. Options: **Approve (Recommended)** \u002F **Revise** (the user names the section and change) \u002F **Section by section** (present and approve each section in turn, as its own reply and prompt). Never ask to approve a section the chat does not show.\n7.  **YAGNI Gate:** Even \"simple\" tracks get a design — it may be brief, but must be presented and approved.\n8.  **Transition:** Proceed to §2.3 (the design was shown and approved in step 6; do not restate it).\n\n#### If SOMETHING ELSE (Bug, Chore, Refactor — lightweight flow)\n\nSkip multi-approach design. Use **one question per **User Prompt Protocol** call**, skipping what the **Settled decisions** list answers, to cover: reproduction\u002Fscope, root-cause hypothesis (bugs), proposed fix approach, success criteria, and out-of-scope. Summarize and get approval via the **User Prompt Protocol**, then proceed to §2.3.\n\n### 2.3 Interactive Specification Generation (`spec.md`)\n\n1.  **State Your Goal:** One line: \"Drafting `spec.md` from the approved design.\"\n\n    **Drafts live on disk.** Run §2.5 steps 1–2 now (name check, track id). Write each draft straight to its final path (`conductor\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md`, then the plan file) and review it there. The registry entry, metadata, and index are written only after approval (§2.5), so an abandoned draft never shows up as a track. Printing a whole spec or plan in chat and then writing it again doubles the cost and buries the decision.\n\n2.  **Questioning Phase (if gaps remain):** Ask follow-up questions using the **User Prompt Protocol**, only on gaps the approved design and the **Settled decisions** list leave open; with no gaps, ask none and go to step 3. You may batch up to 4 related questions in a single tool call. Tailor questions based on the track type (Feature or Other).\n    *   **CRITICAL:** Wait for the user's response after each **User Prompt Protocol** tool call.\n    *   **General Guidelines:**\n        *   Refer to information in **Product Definition**, **Tech Stack**, etc., to ask context-aware questions.\n        *   Provide a brief explanation and clear examples for each question.\n        *   **Strongly Recommendation:** Whenever possible, present 2-3 plausible options for the user to choose from.\n\n        *   **1. Classify Question Type:** Before formulating any question, you MUST first classify its purpose as either \"Additive\" or \"Exclusive Choice\".\n            *   Use **Additive** for brainstorming and defining scope (e.g., users, goals, features, project guidelines). These questions allow for multiple answers.\n            *   Use **Exclusive Choice** for foundational, singular commitments (e.g., selecting a primary technology, a specific workflow rule). These questions require a single answer.\n        \n        *   **2. Formulate the Question:** Use the **User Prompt Protocol**: Adhere to the following for each question in the `questions` array:\n            - **header:** Very short label (max 16 chars).\n            - **type:** \"choice\", \"text\", or \"yesno\".\n            - **multiSelect:** (Required for type: \"choice\") Set to `true` for multi-select (additive) or `false` for single-choice (exclusive).\n            - **options:** (Required for type: \"choice\") Provide 2-4 options, each with a `label` and `description`. Note that \"Other\" is automatically added.\n            - **placeholder:** (For type: \"text\") Provide a hint.\n\n        *   **3. Interaction Flow:**\n            *   Wait for the user's response after each **User Prompt Protocol** tool call.\n            *   If the user selects \"Other\", use a subsequent **User Prompt Protocol** tool call with `type: \"text\"` to get their input if necessary.\n            *   Confirm your understanding of the answers given in this phase by summarizing them before moving on to drafting.\n\n    *   **If FEATURE:**\n        *   **Ask up to 3-4 relevant questions** to clarify the feature request using the **User Prompt Protocol**.\n        *   Examples include clarifying questions about the feature, how it should be implemented, interactions, inputs\u002Foutputs, etc.\n        *   Tailor the questions to the specific feature request (e.g., if the user didn't specify the UI, ask about it; if they didn't specify the logic, ask about it).\n\n    *   **If SOMETHING ELSE (Bug, Chore, etc.):**\n        *   **Ask up to 2-3 relevant questions** to obtain necessary details using the **User Prompt Protocol**.\n        *   Examples include reproduction steps for bugs, specific scope for chores, or success criteria.\n        *   Tailor the questions to the specific request.\n\n3.  **Draft `spec.md`:** Draft the content for the track's `spec.md` file from the approved design, including sections like Overview, **Decisions** (the relevant **Settled decisions** lines, with their sources; omit when the list is empty), Functional Requirements, Non-Functional Requirements (if any), Acceptance Criteria, and Out of Scope.\n\n4.  **Spec Self-Review:** Before user confirmation, review the draft with fresh eyes and fix inline:\n    - **Placeholder scan:** No TBD, TODO, incomplete sections, or vague requirements.\n    - **Internal consistency:** No contradicting sections; architecture matches feature descriptions.\n    - **Scope check:** Focused enough for a single implementation plan, or needs decomposition.\n    - **Ambiguity check:** Requirements interpretable only one way; make implicit choices explicit.\n    - **Decisions check:** The **Decisions** section carries every relevant **Settled decisions** line as approved, and no requirement contradicts one.\n\n5.  **User Confirmation:**\n    -   **Ask for Approval:** Use the **User Prompt Protocol** with the draft's path and a summary: the goal in one line, each functional requirement in one line, the number of acceptance criteria, and what is out of scope. Embed the full text only when it is under ~80 lines. On **Revise**, edit the file and show only what changed.\n        - **questions:**\n            - **header:** \"Confirm Spec\"\n            - **question:**\n                Spec draft: `conductor\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md`. Does this capture the requirements?\n\n                ---\n\n                \u003CSummary, or the full spec when under ~80 lines>\n            - **type:** \"choice\"\n            - **multiSelect:** false\n            - **options:**\n                - Label: \"Approve\", Description: \"The specification looks correct, proceed to planning.\"\n                - Label: \"Revise\", Description: \"I want to make changes to the requirements.\"\n    Await user feedback and revise the `spec.md` content until confirmed.\n\n### 2.4 Interactive Plan Generation (Conductor plan file)\n\n1.  **State Your Goal:** One line: \"Drafting the Conductor plan from the approved spec.\"\n\n2.  **Load Plan Authoring Guide:** Resolve and read `templates\u002Fplan-authoring-guide.md` from the **Plugin Template Path**. Follow it for plan quality, mandatory sync todos, and plan body structure.\n\n3.  **Generate Plan:**\n    *   Read the confirmed `spec.md` content for this track.\n    *   Resolve and read the **Workflow** file (via the **Universal File Resolution Protocol** using the project's index file).\n    *   Generate a Conductor plan file at `conductor\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md` with frontmatter `todos` (see Conductor Plan Format above and **Plan Authoring Guide**).\n    *   **CRITICAL:** Each todo must have `id`, `content`, and `status: pending`.\n    *   **CRITICAL:** The plan structure MUST adhere to the **Workflow** file (TDD: one todo per behaviour, carrying its own failing test and landing as one green commit; `kind: refactor` for structure-only todos. See **One todo, one green commit** in the Workflow).\n    *   **CRITICAL: Mandatory sync bookends.** First todo MUST be `conductor-sync-in-progress`; last todo MUST be `conductor-sync-complete`. Do NOT inject git-isolation todos unless the user explicitly requested one during planning.\n    *   **CRITICAL: Inject Phase Completion Tasks.** If workflow defines \"Phase Completion Verification and Checkpointing Protocol\", add a todo per phase: `id: verify-p\u003CN>`, `phase: \u003CN>`, `blocked_by` listing the phase's other todos, `content: \"Conductor - User Manual Verification '\u003CPhase Name>' (Protocol in workflow.md)\"`. A plan without phases is one phase and gets one such todo before `conductor-sync-complete`. When todos carry `phase`, the script also holds a verify todo back until the rest of its phase is done; without phases, `blocked_by` is the only guard.\n    *   **CRITICAL: Guidance, not code.** Each todo body gives Files, Change, Test, and Verify in prose that meets the guide's detail bar; code blocks only for signatures, types, schemas, commands, and literal expected values. Never write function or test bodies, and never run probes or the implementation while planning (see **Guidance, not code** in the Plan Authoring Guide).\n    *   **CRITICAL: Declare edges.** Every implementation todo gets `files`; `blocked_by` only for real data dependencies (see **Dependencies are data edges** in the Plan Authoring Guide).\n    *   **CRITICAL: Path verification** via `python3 \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fconductor_state.py\" verify-paths \u003Cplan> --create-ok` (Plan Authoring Guide checklist). Record the Path verification subsection; present the fix table and **halt on exit code 2** before user confirmation.\n    *   **CRITICAL: Plan self-review by a fresh verifier** per the **Independent Verification Protocol** in templates\u002Fconductor-protocol.md: dispatch a read-only subagent with the plan, the spec, the self-review checklist, and the `verify-paths` output. Fix rejected items; after 2 rounds escalate to the user. Do not grade your own draft.\n\n4.  **User Confirmation:**\n    -   **Ask for Approval:** Use the **User Prompt Protocol** with the plan's path and a summary: the phase map, every todo as `id — content` (grouped by phase), probe and prerequisite todos called out, and the verifier and `verify-paths` results in one line each. On **Revise**, edit the file and show only what changed.\n        - **questions:**\n            - **header:** \"Confirm Plan\"\n            - **question:**\n                Plan draft: `conductor\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md`. Does this cover the work?\n\n                ---\n\n                \u003CPhase map and todo list>\n            - **type:** \"choice\"\n            - **multiSelect:** false\n            - **options:**\n                - Label: \"Approve\", Description: \"The plan looks solid, proceed to implementation.\"\n                - Label: \"Revise\", Description: \"I want to modify the implementation steps.\"\n    Await user feedback and revise the Conductor plan file content until confirmed.\n\n### 2.3p Programme specification generation\n\nFor each track in the approved programme split:\n\n1. Draft `spec.md` from its assigned findings or items (cite review paths and IDs when the source is a review). Include a **Decisions** section with the **Settled decisions** lines relevant to this track; do not ask anything they answer.\n2. Decision tracks: use `templates\u002Fdecision-track-spec.md` as skeleton.\n3. Run spec self-review (§2.3 step 4) per track.\n4. **Programme spec review:** one **User Prompt Protocol** call covering every spec: per track, the path, the goal in one line, the FR count, the AC count and what is out of scope. Options: **Approve all (Recommended)** \u002F **Revise** (the user names the track and change) \u002F **Track by track** (the §2.3 step 5 prompt per spec).\n\n### 2.4p Programme plan generation\n\nFor each approved spec:\n\n1. Load **Plan Authoring Guide** and **Workflow**.\n2. Draft plan with sync bookends, path verification, phases when >12 todos.\n3. Decision track plans MUST include todos invoking engineering skills:\n   - `\u002Fengineering:grilling` — stress-test options\n   - `\u002Fengineering:research` — evidence gathering\n   - `\u002Fconductor:conductor-prototype` — spike on `spike\u002F\u003Cslug>` branch\n   - `\u002Fengineering:grill-with-docs` — write OKF decision concept at `.adr\u002Fdecisions\u002F\u003Cslug>.md`\n4. Do **not** ask Confirm Plan per track yet — proceed to §2.4b synthesis first.\n\n### 2.4b Programme synthesis pass\n\n**CRITICAL:** Run once all draft plans exist, before any Confirm Plan or Confirm Programme.\n\n1. Load `templates\u002Fprogramme-planning-guide.md`.\n2. **Cross-track dedup matrix** — assign single owner per file\u002Ffunction\u002Fnamespace concern; add **Removed — owned by Track X** stubs to non-owner plans.\n3. **Sequencing edges** — set `programme_id`, `order`, `depends_on`, `blocks`, `track_role` on each track metadata draft.\n4. **Prerequisite scan** — insert `PREREQUISITE:` todos where tests would be vacuous.\n5. **Path verification** — run checklist on every plan; aggregate fix table.\n6. **Sequencing table** — draft programme header from `templates\u002Ftracks-programme-header.md`.\n7. **Confirm Programme** — single **User Prompt Protocol** embedding sequencing table, dedup matrix, path fixes, decision\u002Fbacklog summary.\n8. Revise until approved.\n\n### 2.5b Decision track scaffold (local decision bundle)\n\nWhen the track is a decision track (inside a programme, or standalone from the triage exit), at artifact write time:\n\n1. **Scaffold the decision bundle** if `.adr\u002F` does not exist, per **Decision Bundle** in templates\u002Fconductor-protocol.md: copy `templates\u002Fadr\u002F` to `.adr\u002F` at the repo root, writing `templates\u002Fadr\u002Fgitignore` as `.adr\u002F.gitignore` first (it holds `*`), then `index.md`, an empty `log.md` and `decisions\u002Findex.md`.\n2. **Never stage `.adr\u002F`**: it is not covered by standing commit approval; commit a file there only when the user asks (`git add -f \u003Cpath>`).\n3. Note the decision's package, if any, as `scope: \u003Cpkg path>` in its frontmatter (resolve it as **Knowledge Bundle Resolution** would).\n4. Set `metadata.json`: `\"track_role\": \"decision\"`, `\"deliverable\": \".adr\u002Fdecisions\u002F\u003Cslug>.md\"`.\n5. Add proposed entry to `.adr\u002Fdecisions\u002Findex.md` and `.adr\u002Flog.md`.\n6. Append backlog gating from `templates\u002Fbacklog-gating-snippet.md`.\n\nUse `templates\u002Fknowledge\u002Fdecision-concept.md` for the OKF deliverable shape (`type: Architecture Decision`).\n\n### 2.5 Create Track Artifacts and Update Main Plan\n\n1.  **Check for existing track name** (done at the start of §2.3; skip if so): Before generating a new Track ID, resolve the **Specs Directory** using the **Universal File Resolution Protocol**. List all existing track directories in that resolved path. Extract the short names from these track IDs (e.g., ``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.\n2.  **Generate Track ID:** Create a unique Track ID (e.g., ``shortname_YYYYMMDD``).\n3.  **Create Directory:** `conductor\u002Fspecs\u002F\u003Ctrack_id>\u002F` (already created when the spec draft was written in §2.3).\n4.  **Create `metadata.json`:** Create a metadata file at `conductor\u002Fspecs\u002F\u003Ctrack_id>\u002Fmetadata.json` with content like:\n    ```json\n    {\n      \"track_id\": \"\u003Ctrack_id>\",\n      \"type\": \"feature\",\n      \"status\": \"new\",\n      \"created_at\": \"YYYY-MM-DDTHH:MM:SSZ\",\n      \"updated_at\": \"YYYY-MM-DDTHH:MM:SSZ\",\n      \"description\": \"\u003CInitial user description>\",\n      \"programme_id\": \"\u003Coptional programme slug>\",\n      \"order\": 1,\n      \"depends_on\": [],\n      \"blocks\": [],\n      \"track_role\": \"implementation\",\n      \"deliverable\": null\n    }\n    ```\n    *   Populate fields with actual values. Use the current timestamp. Omit programme fields for single tracks.\n5.  **Write Files:**\n    *   The approved spec and plan are already on disk from §2.3–2.4.\n    *   Write the index file to `conductor\u002Fspecs\u002F\u003Ctrack_id>\u002Findex.md` with content:\n        ```markdown\n        # Track \u003Ctrack_id> Context\n\n        - [Specification](.\u002Fspec.md)\n        - [Plan](..\u002F..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md)\n        - [Metadata](.\u002Fmetadata.json)\n        ```\n\n\n7.  **Update Tracks Registry:**\n    -   **Announce:** Inform the user you are updating the **Tracks Registry**.\n    -   **Programme:** Insert programme header (§2.4b) once, then append each track with inline order hint: `— _order N; \u003Chint>_`\n    -   **Single track:** Append section:\n        ```markdown\n\n        ---\n\n        - [ ] **Track: \u003CTrack Description>**\n          *Spec: [..\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md](..\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md)*\n          *Plan: [..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md](..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md)*\n        ```\n7b. **Promote the backlog items** (when the track came from any): rewrite every promoted item's line as ``- [x] **\u003Ctitle>** — promoted YYYY-MM-DD to track `\u003Ctrack_id>`.`` For a heading-style backlog, append ``_(promoted YYYY-MM-DD to `\u003Ctrack_id>`)_`` to the heading. Keep the item's body; it records why the track exists.\n8.  **Commit Conductor Files (only when Conductor files is `committed`):**\n    -   Follow **Working Agreements** and the **Git Write Policy** in templates\u002Fconductor-protocol.md for all files created or modified in this workflow (spec, plan, index, metadata, **Tracks Registry**, backlog). An OKF knowledge scaffold outside `conductor\u002F` is committed in either mode.\n    -   Suggested message: `conductor(track): Add track '\u003Ctrack_description>'` or `conductor(track): Add programme '\u003Cprogramme_id>'`.\n    -   When `local`, skip silently.\n9.  **Announce Completion and offer to start:** One line: \"Track `\u003Ctrack_id>` ready.\" Then use the **User Prompt Protocol**: **Start implementing now (Recommended)** runs `\u002Fconductor:conductor-implement \u003Ctrack_id>` in this session; **Later** ends with the command to run. For programmes: list track order and the first implementable track (lowest `order` with satisfied `depends_on`).\n\n### 2.5p Programme artifacts write loop\n\nAfter Confirm Programme, for each track in sequence:\n\n1. Run §2.5 steps 1–5 (check name, track ID, directory, metadata with programme fields, write files).\n2. Run §2.5b if decision track.\n3. Append track entry under programme header in `tracks.md`.\n3b. Mark each promoted backlog item with the track that took it (§2.5 step 7b format).\n4. Single commit for entire programme preferred (Git Write Policy applies once).\n\n\n","Follow `${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002Fconductor-protocol.md` for file resolution, git policy, and output style.\n\n# Conductor New Track\n\n## Claude Tool Mapping\n\n- **User Prompt Protocol** for structured user prompts (AskUserQuestion tool when available, else numbered options in chat; wait for reply)\n- **Read** \u002F **Write** \u002F **Edit** for file operations\n- **Bash** for shell commands\n- **Grep** \u002F **Glob** for search\n- Use relative paths under `conductor\u002F` for all Conductor artifacts\n\n## Output Style\n\nFollow **Agent Output Style** in `templates\u002Fconductor-protocol.md` and `templates\u002Foutput-style.md`.\n\n**New-track-specific:** Line 1 = current phase (brainstorm | spec | plan) and the one thing the user should do. Show the whole design once (§2.2 step 6); do not restate it before drafting the spec. On completion: \"Run `\u002Fconductor:conductor-implement` on `\u003Ctrack_id>`.\"\n\n## Plugin Template Path\n\nLocate plugin templates in this order:\n1. `${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002F`\n2. Fallback (local dev): `.\u002Fplugins\u002Fconductor\u002Ftemplates\u002F` from claudekit repo root\n\n## Conductor Plan Format\n\nWhen creating or updating implementation plans, write to `conductor\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md` with this frontmatter:\n\n```yaml\n---\nname: Track Title\noverview: One-paragraph summary derived from spec\ntodos:\n  - id: kebab-case-id\n    content: \"Task description\"\n    status: pending\nisProject: true\n---\n```\n\n- `status` values: `pending`, `in_progress`, `completed`, `deferred` (a phase hand check the user postponed; it blocks nothing), and `blocked` (waiting on something outside the plan; `blocked_on` says what)\n- On task completion, set `status: completed` and append commit SHA to `content`\n- Markdown body below frontmatter carries phases, goals, architecture\n- Register plan path in `conductor\u002Fcontext\u002Ftracks.md`\n\n## Tracks Registry Format\n\nUse this format in `conductor\u002Fcontext\u002Ftracks.md`:\n\n```markdown\n- [ ] **Track: Description**\n  *Spec: [..\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md](..\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md)*\n  *Plan: [..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md](..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md)*\n```\n\nStatus markers: `[ ]` pending, `[~]` in progress, `[x]` complete.\n\n\n## 1.0 SYSTEM DIRECTIVE\nYou 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 (Conductor plan file) files, and organize them within a dedicated track directory.\n\nCRITICAL: Validate the result of every tool call. On failure, classify it with the **Failure Policy** in templates\u002Fconductor-protocol.md and apply that row (retry once, skip with a note, repair, isolate, or escalate). Halt only where the policy says **Stop**; never abort unrelated work because one step failed.\n\n\n---\n\n## 1.1 SETUP CHECK\n**PROTOCOL: Verify that the Conductor environment is properly set up.**\n\n1.  **Verify Core Context:** Using the **Universal File Resolution Protocol**, resolve and verify the existence of:\n    -   **Product Definition**\n    -   **Tech Stack**\n    -   **Workflow**\n\n2.  **Handle Failure:**\n    -   If ANY of these files are missing, you MUST halt the operation immediately.\n    -   Announce: \"Conductor is not set up. Please run `\u002Fconductor:conductor-setup` to set up the environment.\"\n    -   Do NOT proceed to New Track Initialization.\n\n---\n\n## 2.0 NEW TRACK INITIALIZATION\n**PROTOCOL: Follow this sequence precisely.**\n\n### 2.1 Get Track Description and Determine Type\n\n1.  **Load Project Context, narrowly:** Read **Working Agreements** (per the **Working Agreements Protocol**), then only what this track needs: the **Product Definition** summary, the **Tech Stack** sections relevant to the description (grep, don't read the whole file), and the backlog item when there is one. Survey the codebase with a read-only Explore subagent that returns a short summary rather than reading whole components into this context. Trust facts the user or a handoff marks as verified, and re-check only those marked unverified.\n2.  **Get Track Description & Enter Plan Mode:**\n    *   **If `{{args}}` is empty:** run `python3 \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fconductor_state.py\" backlog`.\n        1. If its `open` count is above 0, use the **User Prompt Protocol** to offer up to 3 items with `status: open` (label = title, description = one line on why now; put the one you recommend first, marked `(Recommended)`), plus **Something else**. A picked item is the description; continue as for `backlog:\u003Cslug>` below.\n        2. Otherwise, or on **Something else**, ask the user using the **User Prompt Protocol** (do not repeat the question in the chat):\n            - **questions:**\n                - **header:** \"Description\"\n                - **type:** \"text\"\n                - **question:** \"Please provide a brief description of the track (feature, bug fix, chore, etc.) you wish to start.\"\n                - **placeholder:** \"e.g., Implement user authentication\"\n            Await the user's response and use it as the track description.\n        3. If `duplicates` is non-empty, mention it in one line (\"backlog.md repeats N items; want me to dedupe it?\") and offer the cleanup once.\n    *   **If `{{args}}` is `backlog:\u003Cslug>[,\u003Cslug>...]` or names a backlog item:** find each item in the `backlog` output (slug first, then title). Their titles and bodies, joined, are the description, and any \"Notes for next session\" under them are verified context. One or two items form one track; three or more are a list of 3+ items and enter programme mode (§2.1b). If the items sit under one programme section, or their text names one programme, inherit that `programme_id` and set `order` to the programme's highest `order` + 1 (new tracks join that programme; several new tracks take consecutive orders from there, or share one when they can run in parallel). Items from different programmes, or from none, inherit nothing. Remember every item's line for promotion (§2.5 step 7b, or §2.5p in programme mode).\n    *   **If `{{args}}` contains a description:**\n        1. Use the content of `{{args}}` as the track description.\n        2. **Infer Track Type:** Analyze the description to determine if it is a \"Feature\" or \"Something Else\" (e.g., Bug, Chore, Refactor). Do NOT ask the user to classify it.\n\n### 2.1b Programme detection\n\nAfter loading the track description, check for **programme mode**:\n\n| Signal | Source | Action |\n| ------ | ------ | ------ |\n| User references `conductor\u002Freviews\u002F*.md` | review document | Enter programme mode |\n| Paste includes numbered findings (§3.x, ARCH-N, Addendum) | review document | Enter programme mode |\n| Description mentions \"remediation\" or \"review findings\" | review document | Enter programme mode |\n| User asks for a programme or several tracks (\"programme\", \"several tracks\", \"N tracks\") | request or list | Enter programme mode |\n| Description or conversation lists 3+ distinct items | request or list | Enter programme mode |\n| This conversation holds grilling or design-review output (`engineering:grilling`, `grill-with-docs`, `improve-codebase-architecture`, or a handoff's settled list) that settles 3+ items or names 2+ tracks | grilling | Enter programme mode |\n| Otherwise | none | Continue to §2.1c, then the single-track flow (§2.2) |\n\n**Programme mode protocol:**\n\nSteps 1 and 2 apply only when the source is a review document. For any other source, skip both and say so in one line: \"Programme from \u003Csource>; no review to validate.\"\n\n1. Resolve and read the review document via **Reviews Directory** (Universal File Resolution).\n2. Check for validation addendum (`\u003Creview-stem>_validation.md`) or validation section. If missing, announce: \"Run `\u002Fconductor:conductor-validate-review` first\" and use the **User Prompt Protocol** — opt out only if user explicitly accepts unvalidated programme.\n3. Load `templates\u002Fprogramme-planning-guide.md` from **Plugin Template Path**, then run **§2.1c Settled decisions** so nothing below re-asks what is already decided.\n4. Count the findings or items and classify axes (trust, lifecycle, registry, docs, architecture).\n5. **Split vs monolith** — **User Prompt Protocol**:\n   - **header:** \"Programme split\"\n   - **type:** choice\n   - **options:** Split into N tracks (recommended when 3+ items or 2+ axes) | Single monolith track | Custom split (user describes)\n   - When the **Settled decisions** list already fixes the split, skip this prompt and state the split in one line.\n   - **Single monolith track** leaves programme mode: continue with the single-track flow (§2.2), keeping the **Settled decisions** list and its shortcut rule, and skipping §2.2 step 3 (the user just chose one track), so the design is still approved before any spec.\n6. If ARCH-N findings block future refactors, include a **decision track** (see §2.5b).\n7. Optional: suggest `\u002Fengineering:improve-codebase-architecture` (engineering plugin) for architecture deepening before split.\n8. Skip §2.2–2.4 single-track loops; use **§2.3p Programme specs**, **§2.4p Programme plans**, **§2.4b Programme synthesis**, then **§2.5p Programme artifacts**.\n\n### 2.1c Settled decisions\n\nBefore any brainstorm question, collect what is already decided: decisions made in this conversation (a grilling session, a design discussion, the user's own answers), in `{{args}}`, in a handoff's notes, or in an `.adr\u002Fdecisions\u002F` concept the description names. Write each as one line in chat:\n\n```\n- \u003Cdecision> — \u003Csource>\n```\n\nThen use the **User Prompt Protocol** once: **Use these (Recommended)** \u002F **Revise** (the user corrects, adds or drops lines). An empty list skips this step silently.\n\nThe approved list is the **Settled decisions** list. A brainstorm or spec question whose answer is on it is not asked. In the single-track flow, when the list covers purpose, approach and success criteria, go straight to the design approval: run §2.2 steps 2–3 and the Triage exit check, skip the clarifying questions and approaches, then present §2.2 step 6 (or the summary in the lightweight flow). In programme mode this step returns to programme step 4.\n\n### 2.2 Brainstorm and Design\n\n**HARD-GATE:** Do NOT draft `spec.md`, create a plan, or write implementation code until the user has approved the design for this track.\n\n1.  **State Your Goal:** One line: \"Brainstorm: I'll ask only what the Settled decisions list leaves open.\" (No multi-paragraph intro.)\n\n2.  **Explore Context:** Read **Product Definition**, **Tech Stack**, and relevant codebase areas related to the track description.\n\n3.  **Scope Decomposition:** If the description spans multiple independent subsystems, immediately use the **User Prompt Protocol** to propose splitting into separate tracks before continuing.\n\n**This section is the brainstorm.** Do not load a separate brainstorming or planning skill on top of it.\n\n**Triage exit.** When the user asks only to evaluate an item (\"should we build this?\", \"look at these backlog items\"), or the brainstorm concludes the work should not be built now, stop before §2.3: write the verdict into the backlog item (what was decided, why, and what would reopen it, e.g. `- [x] **\u003Ctitle>** — decided 2026-09-08: not building; reopen if \u003Ccondition>.`), and create no track. When the real question is a choice between architectures or build-versus-don't, offer a **decision track** instead (§2.5b applies to a standalone track too).\n\n#### If FEATURE (full brainstorm flow)\n\n4.  **Clarifying Questions:** Ask **one question per **User Prompt Protocol** call** (do not batch during brainstorm). Focus on purpose, constraints, and success criteria. Prefer multiple-choice when possible.\n5.  **Approaches:** Propose **2–3 options** with trade-offs and your recommendation.\n6.  **Design Summary:** Present the whole design (architecture, data flow, error handling, testing approach) as chat text in one reply, one short section each: the new or changed types and functions by name, the behaviour, the edge cases, and every decision you made that the user did not choose. Working a section out in your reasoning is not presenting it; the user never sees your reasoning. Then use the **User Prompt Protocol** once, listing each section's two or three key decisions in the question so it can be answered on its own. Options: **Approve (Recommended)** \u002F **Revise** (the user names the section and change) \u002F **Section by section** (present and approve each section in turn, as its own reply and prompt). Never ask to approve a section the chat does not show.\n7.  **YAGNI Gate:** Even \"simple\" tracks get a design — it may be brief, but must be presented and approved.\n8.  **Transition:** Proceed to §2.3 (the design was shown and approved in step 6; do not restate it).\n\n#### If SOMETHING ELSE (Bug, Chore, Refactor — lightweight flow)\n\nSkip multi-approach design. Use **one question per **User Prompt Protocol** call**, skipping what the **Settled decisions** list answers, to cover: reproduction\u002Fscope, root-cause hypothesis (bugs), proposed fix approach, success criteria, and out-of-scope. Summarize and get approval via the **User Prompt Protocol**, then proceed to §2.3.\n\n### 2.3 Interactive Specification Generation (`spec.md`)\n\n1.  **State Your Goal:** One line: \"Drafting `spec.md` from the approved design.\"\n\n    **Drafts live on disk.** Run §2.5 steps 1–2 now (name check, track id). Write each draft straight to its final path (`conductor\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md`, then the plan file) and review it there. The registry entry, metadata, and index are written only after approval (§2.5), so an abandoned draft never shows up as a track. Printing a whole spec or plan in chat and then writing it again doubles the cost and buries the decision.\n\n2.  **Questioning Phase (if gaps remain):** Ask follow-up questions using the **User Prompt Protocol**, only on gaps the approved design and the **Settled decisions** list leave open; with no gaps, ask none and go to step 3. You may batch up to 4 related questions in a single tool call. Tailor questions based on the track type (Feature or Other).\n    *   **CRITICAL:** Wait for the user's response after each **User Prompt Protocol** tool call.\n    *   **General Guidelines:**\n        *   Refer to information in **Product Definition**, **Tech Stack**, etc., to ask context-aware questions.\n        *   Provide a brief explanation and clear examples for each question.\n        *   **Strongly Recommendation:** Whenever possible, present 2-3 plausible options for the user to choose from.\n\n        *   **1. Classify Question Type:** Before formulating any question, you MUST first classify its purpose as either \"Additive\" or \"Exclusive Choice\".\n            *   Use **Additive** for brainstorming and defining scope (e.g., users, goals, features, project guidelines). These questions allow for multiple answers.\n            *   Use **Exclusive Choice** for foundational, singular commitments (e.g., selecting a primary technology, a specific workflow rule). These questions require a single answer.\n        \n        *   **2. Formulate the Question:** Use the **User Prompt Protocol**: Adhere to the following for each question in the `questions` array:\n            - **header:** Very short label (max 16 chars).\n            - **type:** \"choice\", \"text\", or \"yesno\".\n            - **multiSelect:** (Required for type: \"choice\") Set to `true` for multi-select (additive) or `false` for single-choice (exclusive).\n            - **options:** (Required for type: \"choice\") Provide 2-4 options, each with a `label` and `description`. Note that \"Other\" is automatically added.\n            - **placeholder:** (For type: \"text\") Provide a hint.\n\n        *   **3. Interaction Flow:**\n            *   Wait for the user's response after each **User Prompt Protocol** tool call.\n            *   If the user selects \"Other\", use a subsequent **User Prompt Protocol** tool call with `type: \"text\"` to get their input if necessary.\n            *   Confirm your understanding of the answers given in this phase by summarizing them before moving on to drafting.\n\n    *   **If FEATURE:**\n        *   **Ask up to 3-4 relevant questions** to clarify the feature request using the **User Prompt Protocol**.\n        *   Examples include clarifying questions about the feature, how it should be implemented, interactions, inputs\u002Foutputs, etc.\n        *   Tailor the questions to the specific feature request (e.g., if the user didn't specify the UI, ask about it; if they didn't specify the logic, ask about it).\n\n    *   **If SOMETHING ELSE (Bug, Chore, etc.):**\n        *   **Ask up to 2-3 relevant questions** to obtain necessary details using the **User Prompt Protocol**.\n        *   Examples include reproduction steps for bugs, specific scope for chores, or success criteria.\n        *   Tailor the questions to the specific request.\n\n3.  **Draft `spec.md`:** Draft the content for the track's `spec.md` file from the approved design, including sections like Overview, **Decisions** (the relevant **Settled decisions** lines, with their sources; omit when the list is empty), Functional Requirements, Non-Functional Requirements (if any), Acceptance Criteria, and Out of Scope.\n\n4.  **Spec Self-Review:** Before user confirmation, review the draft with fresh eyes and fix inline:\n    - **Placeholder scan:** No TBD, TODO, incomplete sections, or vague requirements.\n    - **Internal consistency:** No contradicting sections; architecture matches feature descriptions.\n    - **Scope check:** Focused enough for a single implementation plan, or needs decomposition.\n    - **Ambiguity check:** Requirements interpretable only one way; make implicit choices explicit.\n    - **Decisions check:** The **Decisions** section carries every relevant **Settled decisions** line as approved, and no requirement contradicts one.\n\n5.  **User Confirmation:**\n    -   **Ask for Approval:** Use the **User Prompt Protocol** with the draft's path and a summary: the goal in one line, each functional requirement in one line, the number of acceptance criteria, and what is out of scope. Embed the full text only when it is under ~80 lines. On **Revise**, edit the file and show only what changed.\n        - **questions:**\n            - **header:** \"Confirm Spec\"\n            - **question:**\n                Spec draft: `conductor\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md`. Does this capture the requirements?\n\n                ---\n\n                \u003CSummary, or the full spec when under ~80 lines>\n            - **type:** \"choice\"\n            - **multiSelect:** false\n            - **options:**\n                - Label: \"Approve\", Description: \"The specification looks correct, proceed to planning.\"\n                - Label: \"Revise\", Description: \"I want to make changes to the requirements.\"\n    Await user feedback and revise the `spec.md` content until confirmed.\n\n### 2.4 Interactive Plan Generation (Conductor plan file)\n\n1.  **State Your Goal:** One line: \"Drafting the Conductor plan from the approved spec.\"\n\n2.  **Load Plan Authoring Guide:** Resolve and read `templates\u002Fplan-authoring-guide.md` from the **Plugin Template Path**. Follow it for plan quality, mandatory sync todos, and plan body structure.\n\n3.  **Generate Plan:**\n    *   Read the confirmed `spec.md` content for this track.\n    *   Resolve and read the **Workflow** file (via the **Universal File Resolution Protocol** using the project's index file).\n    *   Generate a Conductor plan file at `conductor\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md` with frontmatter `todos` (see Conductor Plan Format above and **Plan Authoring Guide**).\n    *   **CRITICAL:** Each todo must have `id`, `content`, and `status: pending`.\n    *   **CRITICAL:** The plan structure MUST adhere to the **Workflow** file (TDD: one todo per behaviour, carrying its own failing test and landing as one green commit; `kind: refactor` for structure-only todos. See **One todo, one green commit** in the Workflow).\n    *   **CRITICAL: Mandatory sync bookends.** First todo MUST be `conductor-sync-in-progress`; last todo MUST be `conductor-sync-complete`. Do NOT inject git-isolation todos unless the user explicitly requested one during planning.\n    *   **CRITICAL: Inject Phase Completion Tasks.** If workflow defines \"Phase Completion Verification and Checkpointing Protocol\", add a todo per phase: `id: verify-p\u003CN>`, `phase: \u003CN>`, `blocked_by` listing the phase's other todos, `content: \"Conductor - User Manual Verification '\u003CPhase Name>' (Protocol in workflow.md)\"`. A plan without phases is one phase and gets one such todo before `conductor-sync-complete`. When todos carry `phase`, the script also holds a verify todo back until the rest of its phase is done; without phases, `blocked_by` is the only guard.\n    *   **CRITICAL: Guidance, not code.** Each todo body gives Files, Change, Test, and Verify in prose that meets the guide's detail bar; code blocks only for signatures, types, schemas, commands, and literal expected values. Never write function or test bodies, and never run probes or the implementation while planning (see **Guidance, not code** in the Plan Authoring Guide).\n    *   **CRITICAL: Declare edges.** Every implementation todo gets `files`; `blocked_by` only for real data dependencies (see **Dependencies are data edges** in the Plan Authoring Guide).\n    *   **CRITICAL: Path verification** via `python3 \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fconductor_state.py\" verify-paths \u003Cplan> --create-ok` (Plan Authoring Guide checklist). Record the Path verification subsection; present the fix table and **halt on exit code 2** before user confirmation.\n    *   **CRITICAL: Plan self-review by a fresh verifier** per the **Independent Verification Protocol** in templates\u002Fconductor-protocol.md: dispatch a read-only subagent with the plan, the spec, the self-review checklist, and the `verify-paths` output. Fix rejected items; after 2 rounds escalate to the user. Do not grade your own draft.\n\n4.  **User Confirmation:**\n    -   **Ask for Approval:** Use the **User Prompt Protocol** with the plan's path and a summary: the phase map, every todo as `id — content` (grouped by phase), probe and prerequisite todos called out, and the verifier and `verify-paths` results in one line each. On **Revise**, edit the file and show only what changed.\n        - **questions:**\n            - **header:** \"Confirm Plan\"\n            - **question:**\n                Plan draft: `conductor\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md`. Does this cover the work?\n\n                ---\n\n                \u003CPhase map and todo list>\n            - **type:** \"choice\"\n            - **multiSelect:** false\n            - **options:**\n                - Label: \"Approve\", Description: \"The plan looks solid, proceed to implementation.\"\n                - Label: \"Revise\", Description: \"I want to modify the implementation steps.\"\n    Await user feedback and revise the Conductor plan file content until confirmed.\n\n### 2.3p Programme specification generation\n\nFor each track in the approved programme split:\n\n1. Draft `spec.md` from its assigned findings or items (cite review paths and IDs when the source is a review). Include a **Decisions** section with the **Settled decisions** lines relevant to this track; do not ask anything they answer.\n2. Decision tracks: use `templates\u002Fdecision-track-spec.md` as skeleton.\n3. Run spec self-review (§2.3 step 4) per track.\n4. **Programme spec review:** one **User Prompt Protocol** call covering every spec: per track, the path, the goal in one line, the FR count, the AC count and what is out of scope. Options: **Approve all (Recommended)** \u002F **Revise** (the user names the track and change) \u002F **Track by track** (the §2.3 step 5 prompt per spec).\n\n### 2.4p Programme plan generation\n\nFor each approved spec:\n\n1. Load **Plan Authoring Guide** and **Workflow**.\n2. Draft plan with sync bookends, path verification, phases when >12 todos.\n3. Decision track plans MUST include todos invoking engineering skills:\n   - `\u002Fengineering:grilling` — stress-test options\n   - `\u002Fengineering:research` — evidence gathering\n   - `\u002Fconductor:conductor-prototype` — spike on `spike\u002F\u003Cslug>` branch\n   - `\u002Fengineering:grill-with-docs` — write OKF decision concept at `.adr\u002Fdecisions\u002F\u003Cslug>.md`\n4. Do **not** ask Confirm Plan per track yet — proceed to §2.4b synthesis first.\n\n### 2.4b Programme synthesis pass\n\n**CRITICAL:** Run once all draft plans exist, before any Confirm Plan or Confirm Programme.\n\n1. Load `templates\u002Fprogramme-planning-guide.md`.\n2. **Cross-track dedup matrix** — assign single owner per file\u002Ffunction\u002Fnamespace concern; add **Removed — owned by Track X** stubs to non-owner plans.\n3. **Sequencing edges** — set `programme_id`, `order`, `depends_on`, `blocks`, `track_role` on each track metadata draft.\n4. **Prerequisite scan** — insert `PREREQUISITE:` todos where tests would be vacuous.\n5. **Path verification** — run checklist on every plan; aggregate fix table.\n6. **Sequencing table** — draft programme header from `templates\u002Ftracks-programme-header.md`.\n7. **Confirm Programme** — single **User Prompt Protocol** embedding sequencing table, dedup matrix, path fixes, decision\u002Fbacklog summary.\n8. Revise until approved.\n\n### 2.5b Decision track scaffold (local decision bundle)\n\nWhen the track is a decision track (inside a programme, or standalone from the triage exit), at artifact write time:\n\n1. **Scaffold the decision bundle** if `.adr\u002F` does not exist, per **Decision Bundle** in templates\u002Fconductor-protocol.md: copy `templates\u002Fadr\u002F` to `.adr\u002F` at the repo root, writing `templates\u002Fadr\u002Fgitignore` as `.adr\u002F.gitignore` first (it holds `*`), then `index.md`, an empty `log.md` and `decisions\u002Findex.md`.\n2. **Never stage `.adr\u002F`**: it is not covered by standing commit approval; commit a file there only when the user asks (`git add -f \u003Cpath>`).\n3. Note the decision's package, if any, as `scope: \u003Cpkg path>` in its frontmatter (resolve it as **Knowledge Bundle Resolution** would).\n4. Set `metadata.json`: `\"track_role\": \"decision\"`, `\"deliverable\": \".adr\u002Fdecisions\u002F\u003Cslug>.md\"`.\n5. Add proposed entry to `.adr\u002Fdecisions\u002Findex.md` and `.adr\u002Flog.md`.\n6. Append backlog gating from `templates\u002Fbacklog-gating-snippet.md`.\n\nUse `templates\u002Fknowledge\u002Fdecision-concept.md` for the OKF deliverable shape (`type: Architecture Decision`).\n\n### 2.5 Create Track Artifacts and Update Main Plan\n\n1.  **Check for existing track name** (done at the start of §2.3; skip if so): Before generating a new Track ID, resolve the **Specs Directory** using the **Universal File Resolution Protocol**. List all existing track directories in that resolved path. Extract the short names from these track IDs (e.g., ``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.\n2.  **Generate Track ID:** Create a unique Track ID (e.g., ``shortname_YYYYMMDD``).\n3.  **Create Directory:** `conductor\u002Fspecs\u002F\u003Ctrack_id>\u002F` (already created when the spec draft was written in §2.3).\n4.  **Create `metadata.json`:** Create a metadata file at `conductor\u002Fspecs\u002F\u003Ctrack_id>\u002Fmetadata.json` with content like:\n    ```json\n    {\n      \"track_id\": \"\u003Ctrack_id>\",\n      \"type\": \"feature\",\n      \"status\": \"new\",\n      \"created_at\": \"YYYY-MM-DDTHH:MM:SSZ\",\n      \"updated_at\": \"YYYY-MM-DDTHH:MM:SSZ\",\n      \"description\": \"\u003CInitial user description>\",\n      \"programme_id\": \"\u003Coptional programme slug>\",\n      \"order\": 1,\n      \"depends_on\": [],\n      \"blocks\": [],\n      \"track_role\": \"implementation\",\n      \"deliverable\": null\n    }\n    ```\n    *   Populate fields with actual values. Use the current timestamp. Omit programme fields for single tracks.\n5.  **Write Files:**\n    *   The approved spec and plan are already on disk from §2.3–2.4.\n    *   Write the index file to `conductor\u002Fspecs\u002F\u003Ctrack_id>\u002Findex.md` with content:\n        ```markdown\n        # Track \u003Ctrack_id> Context\n\n        - [Specification](.\u002Fspec.md)\n        - [Plan](..\u002F..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md)\n        - [Metadata](.\u002Fmetadata.json)\n        ```\n\n\n7.  **Update Tracks Registry:**\n    -   **Announce:** Inform the user you are updating the **Tracks Registry**.\n    -   **Programme:** Insert programme header (§2.4b) once, then append each track with inline order hint: `— _order N; \u003Chint>_`\n    -   **Single track:** Append section:\n        ```markdown\n\n        ---\n\n        - [ ] **Track: \u003CTrack Description>**\n          *Spec: [..\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md](..\u002Fspecs\u002F\u003Ctrack_id>\u002Fspec.md)*\n          *Plan: [..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md](..\u002Fplans\u002F\u003Cslug>_\u003Cshortid>.plan.md)*\n        ```\n7b. **Promote the backlog items** (when the track came from any): rewrite every promoted item's line as ``- [x] **\u003Ctitle>** — promoted YYYY-MM-DD to track `\u003Ctrack_id>`.`` For a heading-style backlog, append ``_(promoted YYYY-MM-DD to `\u003Ctrack_id>`)_`` to the heading. Keep the item's body; it records why the track exists.\n8.  **Commit Conductor Files (only when Conductor files is `committed`):**\n    -   Follow **Working Agreements** and the **Git Write Policy** in templates\u002Fconductor-protocol.md for all files created or modified in this workflow (spec, plan, index, metadata, **Tracks Registry**, backlog). An OKF knowledge scaffold outside `conductor\u002F` is committed in either mode.\n    -   Suggested message: `conductor(track): Add track '\u003Ctrack_description>'` or `conductor(track): Add programme '\u003Cprogramme_id>'`.\n    -   When `local`, skip silently.\n9.  **Announce Completion and offer to start:** One line: \"Track `\u003Ctrack_id>` ready.\" Then use the **User Prompt Protocol**: **Start implementing now (Recommended)** runs `\u002Fconductor:conductor-implement \u003Ctrack_id>` in this session; **Later** ends with the command to run. For programmes: list track order and the first implementable track (lowest `order` with satisfied `depends_on`).\n\n### 2.5p Programme artifacts write loop\n\nAfter Confirm Programme, for each track in sequence:\n\n1. Run §2.5 steps 1–5 (check name, track ID, directory, metadata with programme fields, write files).\n2. Run §2.5b if decision track.\n3. Append track entry under programme header in `tracks.md`.\n3b. Mark each promoted backlog item with the track that took it (§2.5 step 7b format).\n4. Single commit for entire programme preferred (Git Write Policy applies once).\n\n\n",{},"main","37782d73f0da5e452ba50cd173c0901aac87e01c","plugins\u002Fconductor\u002Fskills\u002Fconductor-new-track",0,"https:\u002F\u002Fgithub.com\u002Fnewtonmunene99\u002Fclaudekit","https:\u002F\u002Fgithub.com\u002Fnewtonmunene99","https:\u002F\u002Fwww.newtonmunene.bio\u002F","The Variable Man","2026-11-05 20:30:27",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add newtonmunene99\u002Fclaudekit --skill conductor-new-track",{"tool":38,"command":39},"bunx","bunx skills add newtonmunene99\u002Fclaudekit --skill conductor-new-track",{"tool":41,"command":42},"pnpm","pnpm dlx skills add newtonmunene99\u002Fclaudekit --skill conductor-new-track","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnewtonmunene99\u002Fclaudekit\u002Fblob\u002Fmain\u002Fplugins\u002Fconductor\u002Fskills\u002Fconductor-new-track\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M79R86JA5GHFV6HCJ19N3CRR","research","Investigate a question against high-trust primary sources and capture the findings as a Markdown file in the repo. Use when the user wants a topic researched, docs or API facts gathered, or reading legwork delegated to a background agent.","https:\u002F\u002Fgithub.com\u002Fnewtonmunene99\u002Fclaudekit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering\u002Fskills\u002Fresearch\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M79R84KDM38DBBTBFEZ4N3XT","prototype","Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.","https:\u002F\u002Fgithub.com\u002Fnewtonmunene99\u002Fclaudekit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering\u002Fskills\u002Fprototype\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M79R82P2NZ6ZKQ5ARM9DE8EC","improve-codebase-architecture","Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.","https:\u002F\u002Fgithub.com\u002Fnewtonmunene99\u002Fclaudekit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering\u002Fskills\u002Fimprove-codebase-architecture\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M79R810215AGSDJ1WW781QGK","grilling","Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.","https:\u002F\u002Fgithub.com\u002Fnewtonmunene99\u002Fclaudekit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering\u002Fskills\u002Fgrilling\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M79R7ZMHKENESB4171DGNXAV","grill-with-docs","A relentless interview to sharpen a plan or design, which also creates OKF repo knowledge as we go.","https:\u002F\u002Fgithub.com\u002Fnewtonmunene99\u002Fclaudekit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering\u002Fskills\u002Fgrill-with-docs\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M79R7W3FC384BJG49443YYBD","domain-modeling","Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing the glossary (conductor\u002Fcontext\u002Fproduct.md or a GLOSSARY.md), or recording or editing a decision concept.","https:\u002F\u002Fgithub.com\u002Fnewtonmunene99\u002Fclaudekit\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering\u002Fskills\u002Fdomain-modeling\u002FSKILL.md",[],[]]