cmd-speckit-taskstoissues
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/speckit.taskstoissues
/speckit.taskstoissues
Agent skill wrapper for the Claude command .
/speckit.taskstoissuesWhen the original command text references , , or named arguments, map them from the user's current request.
{{INPUT}}$1Claude命令的Agent技能封装。
/speckit.taskstoissues当原始命令文本引用、或命名参数时,从用户当前请求中映射对应的值。
{{INPUT}}$1Command Instructions
命令说明
Create GitHub issues from the tasks in , in dependency order. Skips already-completed tasks.
tasks.md按照依赖顺序将中的任务创建为GitHub Issues。跳过已完成的任务。
tasks.mdSafety rules (enforce strictly)
安全规则(严格执行)
- Never create issues in a repository that does not match the current .
git remote origin - Confirm with the user before creating any issues.
owner/repo - Skip completed tasks (marked ) silently and note the count.
[x] - Escape special characters in issue titles and bodies.
- 绝不在与当前不匹配的仓库中创建Issues。
git remote origin - 在创建任何Issues之前,与用户确认信息。
owner/repo - 静默跳过已完成的任务(标记为)并记录数量。
[x] - 对Issue标题和正文中的特殊字符进行转义。
Steps
步骤
-
Locate tasks.md:
- If input names a feature or file path, use it.
- Otherwise check ; if multiple, ask which.
.specify/specs/*/tasks.md - Fall back to in the project root.
tasks.md
-
Validate GitHub remote: Run. Verify it returns a
git config --get remote.origin.urlURL. If not, stop: "This command requires a GitHub remote. The current remote is not a GitHub URL."github.com -
Identify the repository: Parse the remote URL to extract. Display it and ask the user to confirm before creating any issues.
owner/repo -
Parse tasks: Extract all tasks from, preserving:
tasks.md- Phase name and number
- Task ID (T001, T002, ...)
- Parallelizable flag ()
[P] - User story reference ()
[USn] - Task description and any file paths
-
Create issues for each incomplete task (not marked), in phase and ID order:
[x]- Title:
[Phase N] [T0XX] <task description> - Body: Phase name, user story reference (if present), link to the feature spec file, task description.
- Labels: Create a label (color
speckit) if absent. Add#6366f1label. Addphase-Nlabel ifparallelizable.[P]
- Title:
-
Report a summary table:
Task ID | Issue # | Title | Labels T001 | #42 | [Phase 1] [T001] Create database models | speckit, phase-1, parallelizable T003 | SKIPPED | Already completed | —
{{INPUT}}
-
定位tasks.md:
- 如果输入指定了功能或文件路径,则使用该路径。
- 否则检查;如果存在多个,询问用户选择哪一个。
.specify/specs/*/tasks.md - 最后回退到项目根目录下的。
tasks.md
-
验证GitHub远程仓库: 运行。验证返回的是
git config --get remote.origin.url的URL。如果不是,则停止操作:“此命令需要GitHub远程仓库。当前远程仓库不是GitHub URL。”github.com -
识别仓库: 解析远程URL以提取信息。在创建任何Issues之前,显示该信息并请求用户确认。
owner/repo -
解析任务: 从中提取所有任务,保留以下信息:
tasks.md- 阶段名称和编号
- 任务ID(T001、T002等)
- 可并行标记()
[P] - 用户故事引用()
[USn] - 任务描述和所有文件路径
-
创建Issues: 按照阶段和ID顺序,为每个未完成的任务(未标记)创建Issues:
[x]- 标题:
[Phase N] [T0XX] <任务描述> - 正文: 阶段名称、用户故事引用(如果存在)、功能规格文件链接、任务描述。
- 标签: 如果不存在标签(颜色
speckit)则创建该标签。添加#6366f1标签。如果任务带有phase-N标记,添加[P]标签。parallelizable
- 标题:
-
生成报告: 输出汇总表格:
Task ID | Issue # | Title | Labels T001 | #42 | [Phase 1] [T001] Create database models | speckit, phase-1, parallelizable T003 | SKIPPED | Already completed | —
{{INPUT}}