在开发任务完成后,智能推荐最合适的下一步实施工作。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "next-task" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/devsquad-copilot/main/.github/plugins/devsquad/skills/next-task/SKILL.md 2. 保存为 ~/.claude/skills/next-task/SKILL.md 3. 装好后重载技能,告诉我可以用了
我刚完成用户登录接口和基础单元测试。请根据这个进度,推荐我现在最应该做的下一个开发任务,并说明原因与优先级。
给出一项或数项紧接着应做的开发任务建议,并附带优先级与简要理由。
支付回调逻辑、订单状态更新和错误日志记录都已完成。请推荐下一项最合理的实现任务,避免跳到过早的规划层面。
输出贴近当前实施阶段的下一任务建议,例如补测试、接前端、补监控或处理异常路径。
我已经完成本次需求的核心代码提交并通过本地验证。请直接建议下一步最值得做的任务,要求具体、可执行,并简要说明依赖关系。
返回明确可执行的下一项任务,包含任务内容、执行依据及可能前置条件。
After completing implementation (PR created or push performed):
Task completed! Would you like a suggestion for the next task?
[Y] Yes, suggest next task
[N] No, end session
type:task, no assignee, state open| Criterion | Weight | Description |
|---|---|---|
| Priority | High | P1 > P2 > P3 |
| Dependencies satisfied | High | Tasks without blockers first |
| Same User Story | Medium | Context continuity |
| Same feature | Medium | Domain continuity |
| Sequential phase | Low | Setup → Foundation → Core → Integration |
Before presenting suggestions, check if there are open PRs in the repository that haven't been merged yet. The dependency is about code that is not in main, regardless of who opened the PR.
# List open PRs in the repository
# GitHub: github/list_pull_requests(owner, repo, state: "open")
# Azure DevOps: ado/repo_pull_request(action: "list", status: "active")
If there are open PRs, check if the suggested tasks depend on the code in those PRs (same user story, later phase, or explicit dependency in tasks.md).
Recommended next tasks:
1. #[number]: [title]
Priority: P1 | Feature: [name] | Phase: [phase]
Reason: Highest priority, same feature
2. #[number]: [title]
Priority: P1 | Feature: [name] | Phase: [phase]
Reason: Dependency from previous task satisfied
3. #[number]: [title]
Priority: P2 | Feature: [name] | Phase: [phase]
Reason: User Story continuity
[1/2/3] Select task
[O] See other options
[N] End session
If the selected task depends on code from an open PR (not merged), alert:
Warning: this task depends on code from PR #[number] ([title]), which has not been merged yet.
If you create the branch from the main branch, the code from the previous task will not be available.
[W] Wait for PR merge and continue later
[B] Create branch from the previous branch ([branch-name]) — stacked branch
[I] Ignore and create from the main branch anyway
Note: Option [B] (stacked branch) works, but requires rebase after the previous PR is merged. Alert the dev about this implication.
If the user selects a task:
git status
git log origin/$(git branch --show-current)..HEAD --oneline 2>/dev/null
If there are uncommitted changes:
You have uncommitted changes on the current branch:
[modified files]
[C] Commit changes and continue
[S] Stash and continue (not recommended)
[A] Abort and continue on the current task
If there are unpushed commits:
You have local commits not pushed to remote:
[list of commits]
[P] Push and continue
[A] Abort and continue on the current task
If the current branch is not main/master/develop:
You are on branch: [branch-name]
To keep branches short-lived, I recommend:
[M] Return to main/develop and create a new branch
[C] Continue on the current branch (not recommended for different tasks)
After ensuring a clean branch:
cat .memory/git-config.md 2>/dev/nullgit symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'git checkout <integration-branch>git pull origin <integration-branch>用于初始化项目时检查并创建社区治理所需的标准仓库文件。
帮助你规范创建 GitHub Issues 或 Azure DevOps 的任务、需求与史诗条目。
记录代理执行中的决策依据,并在代理交接时传递结构化上下文。
在开始处理 GitHub 或 Azure 工作项前,核对负责人、依赖、优先级与产能。
提取并维护领域术语表,统一规范术语、识别歧义并校验文档一致性。
用标签驱动的问题分诊流程,规范状态流转并生成可追溯分诊记录。
同步当前工作任务并补全项目记忆,快速发现遗漏、过期与待办事项。
在实现完成后协助提交代码、推送分支并发起拉取请求与自动审查。
审查实现计划中的遗漏、假设与步骤顺序,降低后续开发返工风险
将 Notion 规格说明转为实施计划、任务拆解与进度跟踪。
为工程师生成分步实施计划,帮助在陌生代码库中快速落地任务。
用于在当前会话中拆分并并行推进独立实现任务,加快开发执行效率。