track-roadmap

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Track Roadmap

路线图跟踪

Roadmap tracking activated - I'll use ROADMAP.md to capture and manage the high-level feature plan for this project.
路线图跟踪已激活 - 我将使用ROADMAP.md来记录和管理本项目的高层级功能规划。

Overview

概述

Use ROADMAP.md in the project root to plan and track high-level project features. Think through what to build, keep the plan current, and periodically audit whether the roadmap still reflects reality.
Core principle: Maintain a living document of what the project should become, so decisions about what to build next are intentional, not reactive.
使用项目根目录下的ROADMAP.md来规划和跟踪项目的高层级功能。仔细规划待开发内容,保持计划的时效性,并定期审核路线图是否仍符合实际情况。
核心原则: 维护一份关于项目未来形态的动态文档,确保后续开发决策是主动规划的,而非被动应对的。

Usage Modes

使用模式

This skill supports three modes via optional arguments:
ModeCommandWhat it doesUse when
Generate
/track-roadmap
or
/track-roadmap generate
Interactive feature discovery and ROADMAP.md creationStarting a project or first-time roadmap
Update
/track-roadmap update
Add, remove, or modify features in existing roadmapScope changes, new ideas, completed work
Audit
/track-roadmap audit
Check progress against codebase and re-evaluate relevancePeriodic review, before planning next sprint
本Skill支持三种模式,可通过可选参数触发:
模式命令功能适用场景
生成
/track-roadmap
/track-roadmap generate
交互式功能探索并创建ROADMAP.md启动新项目或首次创建路线图
更新
/track-roadmap update
在现有路线图中添加、移除或修改功能范围变更、产生新想法、完成工作内容
审核
/track-roadmap audit
对照代码库检查进度并重新评估功能相关性定期评审、规划下一个迭代之前

When to Use

适用场景

Always use when:
  • Starting a new project and need to plan features
  • User asks "what should we build?" or "what's the plan?"
  • Project has grown organically and needs direction
  • Before a major planning session or milestone
Useful for:
  • Capturing feature ideas before they're lost
  • Communicating project scope to collaborators
  • Deciding what to work on next
  • Tracking what's been built vs. what's planned
Avoid when:
  • Tracking granular task-level work (use
    track-session
    instead)
  • Single-feature implementation (just build it)
  • Project is a one-off script or throwaway prototype

以下场景务必使用:
  • 启动新项目并需要规划功能时
  • 用户询问「我们应该开发什么?」或「计划是什么?」时
  • 项目自然发展后需要明确方向时
  • 重大规划会议或里程碑之前
以下场景适用:
  • 在想法遗忘前记录功能构思
  • 向协作人员传达项目范围
  • 决定下一步工作内容
  • 跟踪已开发内容与规划内容的差异
以下场景避免使用:
  • 跟踪细粒度任务(改用
    track-session
  • 单一功能的实现阶段(直接开发即可)
  • 项目为一次性脚本或临时原型

Mode: Generate

模式:生成

Command:
/track-roadmap
or
/track-roadmap generate
Creates a new ROADMAP.md through an interactive process.
命令:
/track-roadmap
/track-roadmap generate
通过交互式流程创建新的ROADMAP.md。

Phase 1: Discovery

阶段1:探索

Step 1 - Optional codebase scan:
Ask the user if they want a codebase scan to inform the roadmap:
"Would you like me to scan the project to understand what exists before we plan features?"
If yes, examine:
  • README.md, CLAUDE.md, or any project description files
  • Directory structure and existing features
  • TODO/FIXME comments in source files
  • Package dependencies (package.json, requirements.txt, etc.)
  • Existing issues or task lists
Summarize findings briefly to the user before proceeding.
Step 2 - Interactive questioning:
Ask the user about their vision using AskUserQuestion. Adapt questions to what you learned from the codebase scan (if performed). Core questions:
  1. "What is the core purpose of this project?" - Understand the project's reason to exist.
  2. "What are the must-have features you already know about?" - Capture what's already in the user's head.
  3. "Who is the target user and what workflows should the project support?" - Uncover features the user hasn't thought of yet.
  4. "Are there any technical capabilities you know you'll need?" - Infrastructure, integrations, platform support, etc.
After gathering answers, propose a draft feature list and ask the user to confirm, add, or remove items before writing ROADMAP.md.
步骤1 - 可选代码库扫描:
询问用户是否希望扫描代码库以辅助路线图规划:
"是否需要我先扫描项目,了解现有内容后再规划功能?"
如果用户同意,检查以下内容:
  • README.md、CLAUDE.md或任何项目描述文件
  • 目录结构和现有功能
  • 源代码中的TODO/FIXME注释
  • 包依赖文件(package.json、requirements.txt等)
  • 现有问题或任务列表
在继续前向用户简要总结扫描结果。
步骤2 - 交互式提问:
使用AskUserQuestion询问用户关于项目愿景的问题。根据代码库扫描结果(若已执行)调整问题。核心问题:
  1. 「本项目的核心目标是什么?」 - 理解项目存在的意义。
  2. 「你已经确定的必备功能有哪些?」 - 记录用户已有的想法。
  3. 「目标用户是谁?项目需要支持哪些工作流程?」 - 挖掘用户尚未想到的功能。
  4. 「你知道项目需要哪些技术能力?」 - 基础设施、集成能力、平台支持等。
收集答案后,提出一份功能列表草案,并请用户确认、添加或移除内容,之后再编写ROADMAP.md。

Phase 2: Organize and Write

阶段2:整理与编写

Group features into logical categories. Write ROADMAP.md using the format below.
Verification before writing:
  • User confirmed the feature list
  • Features are grouped logically
  • Each feature has a clear description (see Format Rules)
  • No duplicate or overlapping features

将功能分组为逻辑类别。使用以下格式编写ROADMAP.md。
编写前验证:
  • 用户已确认功能列表
  • 功能已按逻辑分组
  • 每个功能都有清晰的描述(参考格式规则)
  • 无重复或重叠的功能

Mode: Update

模式:更新

Command:
/track-roadmap update
Modifies an existing ROADMAP.md.
命令:
/track-roadmap update
修改现有的ROADMAP.md。

Process

流程

  1. Read the current ROADMAP.md
  2. Ask the user what changed:
    • New features to add?
    • Features to remove or deprioritize?
    • Features that are now complete?
    • Features that need rewording?
  3. Apply changes and present the updated roadmap for confirmation
  4. Write the updated ROADMAP.md
  1. 读取 当前的ROADMAP.md
  2. 询问用户 变更内容:
    • 是否需要添加新功能?
    • 是否需要移除或降低优先级的功能?
    • 是否有已完成的功能?
    • 是否有需要重新表述的功能?
  3. 应用变更 并向用户展示更新后的路线图以确认
  4. 写入 更新后的ROADMAP.md

Update Rules

更新规则

  • When marking features complete, move them to the "Completed" section
  • When adding features, ask which category they belong to
  • All rules in the Rules section apply (especially: user confirms all changes)

  • 标记功能为已完成时,将其移至「已完成」章节
  • 添加功能时,询问其所属类别
  • 需遵守「规则」章节中的所有规则(尤其是:所有变更需经用户确认)

Mode: Audit

模式:审核

Command:
/track-roadmap audit
Performs a combined progress check and relevance review.
命令:
/track-roadmap audit
执行进度检查与相关性评审的组合操作。

Part 1: Progress Check

第1部分:进度检查

Scan the codebase to assess each roadmap feature:
  • Read project files to determine what's actually been built
  • Compare against ROADMAP.md features
  • Categorize each feature:
    • Done - Feature exists and works
    • In Progress - Partially implemented
    • Not Started - No evidence of implementation
    • Unclear - Can't determine status from code alone
扫描代码库以评估每个路线图功能的状态:
  • 读取项目文件 以确定实际已开发内容
  • 与ROADMAP.md中的功能对比
  • 为每个功能分类:
    • 已完成 - 功能已存在且可正常工作
    • 进行中 - 部分已实现
    • 未开始 - 无实现痕迹
    • 不明确 - 仅通过代码无法确定状态

Part 2: Relevance Review

第2部分:相关性评审

For each feature, ask whether it's still relevant:
  • Present the audit findings to the user
  • Ask: "Are there features that are no longer needed?"
  • Ask: "Are there new features that should be added?"
  • Ask: "Should any priorities change based on what we've learned?"
针对每个功能,询问其是否仍具相关性:
  • 向用户展示审核结果
  • 询问:「是否有不再需要的功能?」
  • 询问:「是否需要添加新功能?」
  • 询问:「根据我们了解到的情况,是否需要调整优先级?」

Part 3: Update

第3部分:更新

Apply any changes from the review and write the updated ROADMAP.md. See the Audit example below for output format.

应用评审中的所有变更并写入更新后的ROADMAP.md。以下为审核输出格式示例。

ROADMAP.md Format

ROADMAP.md格式

markdown
undefined
markdown
undefined

Roadmap

Roadmap

Project purpose in one sentence.
一句话描述项目目标。

Core Features

核心功能

  • Feature Name - Short description of what it does and why it matters.
  • Feature Name - Short description.
  • 功能名称 - 简要描述功能作用及其重要性。
  • 功能名称 - 简要描述。

User Experience

用户体验

  • Feature Name - Short description.
  • Feature Name - Short description.
  • 功能名称 - 简要描述。
  • 功能名称 - 简要描述。

Technical Infrastructure

技术基础设施

  • Feature Name - Short description.
  • 功能名称 - 简要描述。

Future Ideas

未来构想

  • Feature Name - Short description. (Not committed, just captured.)
  • 功能名称 - 简要描述。(未承诺开发,仅作为记录。)

Completed

已完成

  • Feature Name - Short description. (Completed: YYYY-MM-DD)
undefined
  • 功能名称 - 简要描述。 (完成时间:YYYY-MM-DD)
undefined

Format Rules

格式规则

  1. Categories are flexible - Use whatever groupings make sense for the project (the above are suggestions)
  2. One line per feature - Title in bold + 1-2 sentence description
  3. Future Ideas section is a parking lot for uncommitted ideas
  4. Completed section preserves history of what's been built
  5. Keep it scannable - The whole file should be readable in under 2 minutes

  1. 类别可灵活调整 - 使用符合项目需求的分组方式(以上为建议)
  2. 每个功能占一行 - 加粗标题 + 1-2句话描述
  3. 未来构想 章节用于存放未承诺开发的想法
  4. 已完成 章节保留已开发内容的历史记录
  5. 保持易读性 - 整个文件应在2分钟内读完

Rules

规则

  1. User drives the roadmap - Never add features without user confirmation
  2. Keep it high-level - Features, not tasks. "User authentication" not "Add bcrypt to hash passwords"
  3. ROADMAP.md is the source of truth - If it's not in the file, it's not on the roadmap
  4. Audit regularly - Roadmaps drift. Audit catches the drift.
  5. Don't over-plan - 5-15 features is a healthy roadmap. 50 features means the project needs splitting.
  6. Completed features stay - Move to Completed section, don't delete. History matters.
  1. 用户主导路线图 - 未经用户确认,不得添加任何功能
  2. 保持高层级 - 聚焦功能而非任务。例如「用户认证」而非「添加bcrypt哈希密码」
  3. ROADMAP.md为唯一可信源 - 未写入文件的内容不属于路线图
  4. 定期审核 - 路线图会偏离实际情况,审核可及时发现偏差
  5. 避免过度规划 - 健康的路线图包含5-15个已承诺功能。若有50个功能,说明项目需要拆分
  6. 已完成功能保留 - 移至「已完成」章节,不得删除。历史记录至关重要

Examples

示例

Example: Generating a Roadmap

示例:生成路线图

<Good> ```markdown
<Good> ```markdown

Roadmap

Roadmap

A personal task manager that syncs across devices.
一款可跨设备同步的个人任务管理器。

Core Features

核心功能

  • Task CRUD - Create, read, update, and delete tasks with title, description, and due date.
  • Task lists - Organize tasks into named lists (e.g., Work, Personal, Shopping).
  • Due date reminders - Notify users when tasks are approaching their due date.
  • 任务CRUD - 创建、读取、更新和删除任务,支持标题、描述和截止日期。
  • 任务列表 - 将任务组织到命名列表中(如工作、个人、购物)。
  • 截止日期提醒 - 在任务截止日期临近时通知用户。

User Experience

用户体验

  • Dark mode - Support system-level dark/light theme preference.
  • Keyboard shortcuts - Power users can manage tasks without touching the mouse.
  • Drag-and-drop reordering - Reorder tasks within and across lists.
  • 深色模式 - 支持系统级深色/浅色主题偏好。
  • 键盘快捷键 - 高级用户无需使用鼠标即可管理任务。
  • 拖放重排 - 在列表内部和列表之间重新排序任务。

Technical Infrastructure

技术基础设施

  • Cloud sync - Sync tasks across devices via a backend API.
  • Offline support - App works without internet, syncs when reconnected.
  • 云同步 - 通过后端API跨设备同步任务。
  • 离线支持 - 应用可在无网络时使用,联网后自动同步。

Future Ideas

未来构想

  • Shared lists - Collaborate on task lists with other users.
  • Recurring tasks - Tasks that repeat on a schedule.
  • 共享列表 - 与其他用户协作管理任务列表。
  • 重复任务 - 按计划重复的任务。

Completed

已完成


**Why this is good:** Clear project purpose, logical groupings, each feature is one line with a concise description, Future Ideas captures uncommitted work, Completed section ready for use.
</Good>

<Bad>
```markdown

**优秀原因:** 清晰的项目目标,逻辑分组,每个功能为一行并配有简洁描述,未来构想章节记录未承诺的想法,已完成章节准备就绪。
</Good>

<Bad>
```markdown

Roadmap

Roadmap

  • tasks
  • lists
  • dark mode
  • sync
  • make it look good
  • fix bugs
  • add tests
  • deploy somewhere
  • maybe sharing?

**Why this is bad:** No descriptions, no groupings, mixes features with tasks ("fix bugs", "add tests"), vague items ("make it look good"), no project purpose, no structure.
</Bad>
  • tasks
  • lists
  • dark mode
  • sync
  • make it look good
  • fix bugs
  • add tests
  • deploy somewhere
  • maybe sharing?

**糟糕原因:** 无描述,无分组,混合了功能与任务(「修复bug」「添加测试」),模糊条目(「让它看起来更好」),无项目目标,无结构。
</Bad>

Example: Auditing a Roadmap

示例:审核路线图

<Good> ```markdown
<Good> ```markdown

Audit Results

审核结果

Progress

进度

FeatureStatusEvidence
Task CRUDDonesrc/components/TaskForm, TaskList, API routes
Task listsDonesrc/models/List.ts, list management UI
Due date remindersNot StartedNo notification system found
Dark modeIn ProgressTheme context exists but only light theme defined
Cloud syncNot StartedNo backend API or sync logic
功能状态依据
任务CRUD已完成src/components/TaskForm、TaskList、API路由
任务列表已完成src/models/List.ts、列表管理UI
截止日期提醒未开始未找到通知系统
深色模式进行中主题上下文已存在,但仅定义了浅色主题
云同步未开始无后端API或同步逻辑

Recommendations

建议

  • Move "Task CRUD" and "Task lists" to Completed
  • "Dark mode" is close - just needs dark theme CSS variables
  • Consider deprioritizing "Cloud sync" until core UX is solid
  • New: "Search/filter tasks" came up in TODO comments (src/App.tsx:42)

**Why this is good:** Every feature checked, evidence cited with file paths, actionable recommendations, surfaced a new feature from codebase discovery.
</Good>

<Bad>
```markdown
  • 将「任务CRUD」和「任务列表」移至已完成章节
  • 「深色模式」接近完成 - 只需添加深色主题CSS变量
  • 考虑在核心用户体验完善前降低「云同步」的优先级
  • 新增:「任务搜索/筛选」在TODO注释中被提及(src/App.tsx:42)

**优秀原因:** 检查了每个功能,引用了文件路径作为依据,提出可操作建议,从代码库探索中发现了新功能。
</Good>

<Bad>
```markdown

Audit

审核

Looks like some stuff is done. Maybe we should build more things.

**Why this is bad:** No specifics, no evidence, no per-feature assessment, no actionable recommendations.
</Bad>
看起来有些内容已经完成。也许我们应该开发更多功能。

**糟糕原因:** 无具体内容,无依据,无逐个功能的评估,无可操作建议。
</Bad>

Example: Updating a Roadmap

示例:更新路线图

User says: "We decided not to do offline support, and I want to add calendar integration."
<Good> ```markdown
用户需求:「我们决定不做离线支持,并且我想添加日历集成功能。」
<Good> ```markdown

Before:

更新前:

Technical Infrastructure

技术基础设施

  • Cloud sync - Sync tasks across devices via a backend API.
  • Offline support - App works without internet, syncs when reconnected.
  • 云同步 - 通过后端API跨设备同步任务。
  • 离线支持 - 应用可在无网络时使用,联网后自动同步。

User Experience

用户体验

  • Dark mode - Support system-level dark/light theme preference.
  • 深色模式 - 支持系统级深色/浅色主题偏好。

After (confirmed with user):

更新后(已获用户确认):

Technical Infrastructure

技术基础设施

  • Cloud sync - Sync tasks across devices via a backend API.
  • 云同步 - 通过后端API跨设备同步任务。

User Experience

用户体验

  • Dark mode - Support system-level dark/light theme preference.
  • Calendar integration - Show tasks with due dates in a calendar view.

**Why this is good:** Confirms removal before acting, places new feature in appropriate category with description, only changes what the user asked for.
</Good>

<Bad>
```markdown
  • 深色模式 - 支持系统级深色/浅色主题偏好。
  • 日历集成 - 在日历视图中显示带截止日期的任务。

**优秀原因:** 操作前确认移除内容,将新功能放在合适的类别并配有描述,仅修改用户要求的内容。
</Good>

<Bad>
```markdown

User asked to remove offline support.

用户要求移除离线支持。

Agent removes offline support AND cloud sync AND dark mode

Agent移除了离线支持、云同步和深色模式

because it decided they weren't important either.

因为它认为这些功能不重要。


**Why this is bad:** Removed features the user didn't ask about. Never make unilateral roadmap decisions.
</Bad>

**糟糕原因:** 移除了用户未要求删除的功能。绝不能单方面修改路线图决策。
</Bad>

Troubleshooting

故障排除

Problem: ROADMAP.md has too many features (30+)

问题:ROADMAP.md包含过多功能(30+)

Cause: Roadmap has become a wish list instead of a plan.
Solution:
  • Run
    /track-roadmap audit
    to review relevance
  • Move speculative items to "Future Ideas"
  • Consider splitting into multiple projects or milestones
  • A healthy roadmap has 5-15 committed features
原因: 路线图已变成愿望清单而非实际计划。
解决方案:
  • 运行
    /track-roadmap audit
    评审相关性
  • 将推测性条目移至「未来构想」章节
  • 考虑拆分为多个项目或里程碑
  • 健康的路线图包含5-15个已承诺功能

Problem: Roadmap doesn't match what's actually being built

问题:路线图与实际开发内容不符

Cause: Roadmap wasn't updated as priorities shifted.
Solution:
  • Run
    /track-roadmap audit
    to reconcile plan vs. reality
  • Update the roadmap to reflect actual direction
  • Set a habit: audit after every major feature completion
原因: 优先级变更时未更新路线图。
解决方案:
  • 运行
    /track-roadmap audit
    协调计划与实际情况
  • 更新路线图以反映实际方向
  • 养成习惯:每个主要功能完成后进行审核

Problem: Features are too granular

问题:功能过于细粒度

Cause: Mixing task-level work with feature-level planning.
Solution:
  • Features should be user-visible capabilities, not implementation steps
  • Bad: "Add bcrypt", "Create user table", "Build login form"
  • Good: "User authentication"
  • Use
    track-session
    for task-level tracking within a feature
原因: 将任务级工作与功能级规划混合。
解决方案:
  • 功能应为用户可见的能力,而非实现步骤
  • 错误示例:「添加bcrypt」「创建用户表」「构建登录表单」
  • 正确示例:「用户认证」
  • 在功能内部使用
    track-session
    跟踪任务级工作

Problem: Codebase scan suggests irrelevant features

问题:代码库扫描提出不相关功能

Cause: Discovery picked up on implementation details, not user features.
Solution:
  • Treat scan results as suggestions, not requirements
  • Always confirm with user before adding to roadmap
  • Focus on user-facing capabilities, not internal architecture
原因: 探索过程中捕获了实现细节而非用户功能。
解决方案:
  • 将扫描结果视为建议而非要求
  • 添加到路线图前务必与用户确认
  • 聚焦用户可见的功能,而非内部架构

Problem: User can't decide on features

问题:用户无法确定功能

Cause: Too many options or unclear project direction.
Solution:
  • Start with the core question: "What problem does this project solve?"
  • Ask: "If you could only build 3 features, what would they be?"
  • Use the "Future Ideas" section as a pressure valve for uncommitted items
原因: 选项过多或项目方向不明确。
解决方案:
  • 从核心问题开始:「本项目解决什么问题?」
  • 询问:「如果只能开发3个功能,你会选哪3个?」
  • 使用「未来构想」章节存放未承诺的想法,缓解决策压力

Integration

集成

This skill works with:
  • track-session - After choosing a feature from the roadmap, use
    track-session
    to plan and track the implementation work
  • generate-skill - Use the roadmap to identify features that could become reusable skills
  • git-worktree - Work on multiple roadmap features in parallel across worktrees
Workflow pattern:
/track-roadmap generate  →  Pick a feature  →  /track-session  →  Build it
/track-roadmap audit     →  Review progress  →  /track-roadmap update  →  Adjust plan
Pairs with:
  • Sprint planning and milestone reviews
  • Project kickoff and scope definition
  • Periodic retrospectives
本Skill可与以下功能配合使用:
  • track-session - 从路线图中选择功能后,使用
    track-session
    规划和跟踪实现工作
  • generate-skill - 使用路线图识别可成为可复用Skill的功能
  • git-worktree - 通过工作树并行开发路线图中的多个功能
工作流模式:
/track-roadmap generate  →  选择功能  →  /track-session  →  开发实现
/track-roadmap audit     →  评审进度  →  /track-roadmap update  →  调整计划
适用场景:
  • 迭代规划和里程碑评审
  • 项目启动和范围定义
  • 定期回顾会议