mayurpise/draft/new-track

Claude Code and agent skill by mayurpise/draft

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Start a new feature or bug track. Collaborative intake process with structured questions, AI guidance, and progressive refinement before generating spec.md and plan.md. Use when the user asks to 'start a new track', 'create a feature track', 'add a bug fix track', or says 'I want to build X', 'fix the Y bug', 'plan a refactor'.

Install

npx vskill@latest install mayurpise/draft/new-track

SKILL.md

The same SKILL.md was published earlier as mayurpise/draft/new-track.

Create New Track

Create a new track (feature, bug fix, or refactor) for Context-Driven Development. This is a collaborative process — be an active participant providing guidance, fact-checking, and expertise grounded in vetted sources.

Feature Description: $ARGUMENTS

Red Flags - STOP if you're

  • Creating a track without reading existing Draft context (product.md, tech-stack.md, .ai-context.md)
  • Asking questions without contributing expertise or trade-off analysis
  • Rushing through intake without probing deeper with "why"
  • Generating spec/plan without user confirmation at checkpoints
  • Skipping risk identification
  • Not citing sources when giving architectural advice

Collaborative understanding, not speed.


Pre-Check

  1. Verify Draft is initialized:
bash
ls draft/product.md draft/tech-stack.md draft/workflow.md draft/tracks.md 2>/dev/null

If missing, tell user: "Project not initialized. Run /draft:init first."

  1. Check for --quick flag in $ARGUMENTS:
  • If present: strip `--quick` from `$ARGUMENTS` now (before Step 1) and store the cleaned text as the working description for all subsequent steps. Proceed to Step 1, then go directly to Step 1.5: Quick Mode.
  • Quick mode is for: hotfixes, tiny isolated changes, work scoped to 1-3 hours
  1. Load full project context (these documents ARE the big picture — every track must be grounded in them):
  • Read draft/product.md — product vision, users, goals, constraints, guidelines (optional section)
  • Read draft/tech-stack.md — languages, frameworks, patterns, code style, accepted patterns
  • Read draft/.ai-context.md (if exists) — system map, modules, data flows, invariants, security architecture. Falls back to draft/architecture.md for legacy projects.
  • Read draft/workflow.md — TDD preference, commit conventions, review process
  • Read draft/guardrails.md (if exists) — hard guardrails, learned conventions, learned anti-patterns
  • Read draft/tracks.md — existing tracks to check for overlap or dependencies
  • Scan recent track impact memory (overlap detection): for each completed track in draft/tracks/*/metadata.json updated within the last 30 days, read the impact block (if present). Build a map module → [recent_track_ids]. After Step 4 (scope distillation), once the candidate modules for the new track are known, intersect them with this map. If overlap exists, surface it in the intake summary:

``text Overlap warning: track <id> recently touched modules <A>, <B>. Review draft/tracks/<id>/metadata.json#impact before proceeding. ``

This is informational, not blocking — the user decides whether to proceed, depend on the prior track, or rebase scope.

  1. Load guidance references:
  • Read core/templates/intake-questions.md — structured questions for intake
  • Read core/knowledge-base.md — vetted sources for AI guidance

Step 1: Generate Track ID

Create a short, kebab-case ID from the description (use the stripped description if --quick was present):

  • "Add user authentication" → add-user-auth
  • "Fix login bug" → fix-login-bug

Check if draft/tracks/<track_id>/ already exists. If collision detected, append -<ISO-date> suffix (e.g., feature-auth-2026-02-21). Verify the suffixed path is also free before proceeding.

Branch Creation (Toolchain-Aware)

See core/shared/vcs-commands.md for command conventions.

bash
git checkout -b <track_id>

Step 1.5: Quick Mode Path (--quick only)

Skip if: --quick was not present in $ARGUMENTS.

Skip all intake conversation. Ask only two questions:

  1. "What exactly needs to change? (1-2 sentences)"
  2. "How will you know it's done? (list acceptance criteria)"

Then generate both files directly:

bash
mkdir -p draft/tracks/<track_id>

`draft/tracks/<track_id>/spec.md` (minimal — no YAML frontmatter needed):

markdown
# Spec: [Title]
**Track ID:** <track_id>
**Type:** quick
## What
[description from question 1]
## Acceptance Criteria
-[ ] [from question 2, one per line]
## Non-Goals
-No scope expansion beyond what's described above

`draft/tracks/<track_id>/plan.md` (flat — single phase, no phases ceremony):

markdown
# Plan: [Title]
**Track ID:** <track_id>
## Phase 1: Complete
**Goal:** [one-line summary from spec]
**Verification:** [how to confirm ACs are met — run tests / manual check]
### Tasks
-[ ] **Task 1:** [derived from AC 1]
-[ ] **Task N:** Verify — [run tests or check from AC]

Then execute Step 8 (Create Metadata & Update Tracks) with these overrides for quick tracks:

  • "type": "quick" (not feature|bugfix|refactor)
  • "phases": {"total": 1, "completed": 0} (plan has exactly 1 phase)

Skip Steps 2–7.

After Step 8 completes, announce:

text
Quick track created: <track_id>
Files: spec.md (minimal), plan.md (flat)
Next: /draft:implement

Step 2: Create Draft Files

Create the track directory and draft files immediately with skeleton structure:

Create draft/tracks/<track_id>/spec-draft.md

MANDATORY: Include YAML frontmatter with git metadata. Gather git info first:

bash
git branch --show-current # LOCAL_BRANCH
git rev-parse --abbrev-ref @{upstream} 2>/dev/null || echo "none" # REMOTE/BRANCH
git rev-parse HEAD # FULL_SHA
git rev-parse --short HEAD # SHORT_SHA
git log -1 --format=%ci HEAD # COMMIT_DATE
git log -1 --format=%s HEAD # COMMIT_MESSAGE
git status --porcelain | head -1 | wc -l # 0 = clean, >0 = dirty
markdown
---
project: "{PROJECT_NAME}"
module: "root"
track_id: "<track_id>"
generated_by: "draft:new-track"
generated_at: "{ISO_TIMESTAMP}"
git:
branch: "{LOCAL_BRANCH}"
remote: "{REMOTE/BRANCH}"
commit: "{FULL_SHA}"
commit_short: "{SHORT_SHA}"
commit_date: "{COMMIT_DATE}"
commit_message: "{COMMIT_MESSAGE}"
dirty: {true|false}
synced_to_commit: "{FULL_SHA}"
---
# Specification Draft: [Title]
| Field | Value |
|-------|-------|
| **Branch** | `{LOCAL_BRANCH}` → `{REMOTE/BRANCH}` |
| **Commit** | `{SHORT_SHA}` — {COMMIT_MESSAGE} |
| **Generated** | {ISO_TIMESTAMP} |
| **Synced To** | `{FULL_SHA}` |
**Track ID:** <track_id>
**Status:** [ ] Drafting
> This is a working draft. Content will evolve through conversation.
## Context References
-**Product:** `draft/product.md` — [pending]
-**Tech Stack:** `draft/tech-stack.md` — [pending]
-**Architecture:** `draft/.ai-context.md` — [pending]
## Problem Statement
[To be developed through intake conversation]
## Background & Why Now
[To be developed through intake conversation]
## Requirements
### Functional
[To be developed through intake conversation]
### Non-Functional
[To be developed through intake conversation]
## Acceptance Criteria
[To be developed through intake conversation]
## Non-Goals
[To be developed through intake conversation]
## Technical Approach
[To be developed through intake conversation]
## Success Metrics
<!-- Remove metrics that don't apply -->
| Category | Metric | Target | Measurement |
|----------|--------|--------|-------------|
| Performance | [e.g., API response time] | [e.g., <200ms p95] | [e.g., APM dashboard] |
| Quality | [e.g., Test coverage] | [e.g., >90%] | [e.g., CI coverage report] |
| Business | [e.g., User adoption rate] | [e.g., 50% in 30 days] | [e.g., Analytics] |
| UX | [e.g., Task completion rate] | [e.g., >95%] | [e.g., User testing] |
## Stakeholders & Approvals
<!-- Add roles relevant to your organization -->
| Role | Name | Approval Required | Status |
|------|------|-------------------|--------|
| Product Owner | [name] | Spec sign-off | [ ] |
| Tech Lead | [name] | Architecture review | [ ] |
| Security | [name] | Security review (if applicable) | [ ] |
| QA | [name] | Test plan review | [ ] |
### Approval Gates
-[ ] Spec approved by Product Owner
-[ ] Architecture reviewed by Tech Lead
-[ ] Security review completed (if touching auth, data, or external APIs)
-[ ] Test plan reviewed by QA
## Risk Assessment
<!-- Score: Probability (1-5) × Impact (1-5). Risks scoring ≥9 require mitigation plans. -->
| Risk | Probability | Impact | Score | Mitigation |
|------|-------------|--------|-------|------------|
| [e.g., Third-party API instability] | 3 | 4 | 12 | [e.g., Circuit breaker + fallback cache] |
| [e.g., Data migration failure] | 2 | 5 | 10 | [e.g., Dry-run migration + rollback script] |
| [e.g., Scope creep] | 3 | 3 | 9 | [e.g., Strict non-goals enforcement] |
## Deployment Strategy
<!-- Define rollout approach for production delivery. For bug fixes and minor refactors, this section may be removed or marked N/A. -->
### Rollout Phases
1.**Canary** (1-5% traffic) — Validate core flows, monitor error rates
2.**Limited GA** (25%) — Expand to subset, watch performance metrics
3.**Full GA** (100%) — Complete rollout
### Feature Flags
-Flag name: `[feature_flag_name]`
-Default: `off`
-Kill switch: [yes/no]
### Rollback Plan
-Trigger: [e.g., error rate >1%, latency >500ms p95]
-Process: [e.g., disable feature flag, revert deployment]
-Data rollback: [e.g., migration revert script, N/A]
### Monitoring
-Dashboard: [link or name]
-Alerts: [e.g., PagerDuty rule for error rate spike]
-Key metrics: [e.g., error rate, latency, throughput]
## Open Questions
[Tracked during conversation]
## Conversation Log
> Key decisions and reasoning captured during intake.
[Conversation summary will be added here]
Create draft/tracks/<track_id>/plan-draft.md

MANDATORY: Include YAML frontmatter with git metadata (same git info as spec-draft.md):

markdown
---
project: "{PROJECT_NAME}"
module: "root"
track_id: "<track_id>"
generated_by: "draft:new-track"
generated_at: "{ISO_TIMESTAMP}"
git:
branch: "{LOCAL_BRANCH}"
remote: "{REMOTE/BRANCH}"
commit: "{FULL_SHA}"
commit_short: "{SHORT_SHA}"
commit_date: "{COMMIT_DATE}"
commit_message: "{COMMIT_MESSAGE}"
dirty: {true|false}
synced_to_commit: "{FULL_SHA}"
---
# Plan Draft: [Title]
| Field | Value |
|-------|-------|
| **Branch** | `{LOCAL_BRANCH}` → `{REMOTE/BRANCH}` |
| **Commit** | `{SHORT_SHA}` — {COMMIT_MESSAGE} |
| **Generated** | {ISO_TIMESTAMP} |
| **Synced To** | `{FULL_SHA}` |
**Track ID:** <track_id>
**Spec:** ./spec.md
**Status:** [ ] Drafting
> This is a working draft. Phases will be defined after spec is finalized.
## Overview
[To be developed after spec finalization]
## Phases
[To be developed after spec finalization]
## Notes
[Tracked during conversation]

Announce: "Created draft files. Let's build out the specification through conversation."


Step 3: Collaborative Intake

Follow the structured intake from core/templates/intake-questions.md. You are an active collaborator, not just a questioner.

Your Role as AI Collaborator

For each question:

  1. Ask the question clearly
  2. Listen to the user's response
  3. Contribute your expertise:
  • Pattern recognition from industry experience
  • Trade-off analysis with citations from knowledge-base.md
  • Risk identification the user may not see
  • Fact-checking against project context (.ai-context.md, tech-stack.md)
  • Alternative approaches with pros/cons
  1. Update spec-draft.md with what's been established
  2. Summarize periodically: "Here's what we have so far..."
Citation Style

Ground advice in vetted sources:

  • "Consider CQRS here (DDIA, Ch. 11) — separates read/write concerns."
  • "This could violate the Dependency Rule (Clean Architecture)."
  • "Circuit breaker pattern (Release It!) would help prevent cascade failures."
  • "Watch for OWASP A01:2021 — Broken Access Control."
Red Flags - STOP if you're

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
40
Repository forks
4
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mayurpise/draft/new-track/badge)](https://verified-skill.com/skills/mayurpise/draft/new-track)

Something wrong with this skill or its page? Tell us.