在开发任务完成后,智能推荐最合适的下一步实施工作。
复制安装指令,让 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>为软件架构图提供设计与审查建议,提升文档中的图示清晰度与规范性
用于统一项目 Markdown 文档的格式、结构与写作风格规范。
帮助你创建、切换并检查代码分支,确保实现前遵循正确分支策略。
基于代码差异生成规范化 Git 提交信息,并支持按逻辑分组提交
用于初始化项目或校验并生成 SDD 文档模板,确保规范齐全且为最新版本。
系统化排查测试失败、构建中断与异常运行问题,帮助快速恢复开发进度
在开始处理 GitHub 或 Azure 工作项前,核对负责人、依赖、优先级与产能。
在实现完成后协助提交代码、推送分支并发起拉取请求与自动审查。
审查实现计划中的遗漏、假设与步骤顺序,降低后续开发返工风险
将 Notion 规格说明转为实施计划、任务拆解与进度跟踪。
帮助你规范创建 GitHub Issues 或 Azure DevOps 的任务、需求与史诗条目。
用标签驱动的问题分诊流程,规范状态流转并生成可追溯分诊记录。