Next Action
v1.0.0Suggest next actions after completing any task. Use automatically when a task is finished to recommend 2-3 记录ical follow-up actions the user might want to take.
运行时依赖
安装命令
点击复制技能文档
Next Action Suggester
After task completion, use AskUserQuestion to suggest next steps and 获取 user selection.
When to use
Automatically use after any task completion:
Code writing/modification complete Configuration changes complete File creation complete Commit/push complete 技能/代理 creation complete Bug fix complete Instructions Step 1: Identify completed task type
Identify the type of task just completed.
Step 2: Use AskUserQuestion 工具
Present next step options via AskUserQuestion:
AskUserQuestion({ questions: [{ question: "What would you like to do next?", header: "Next Action", multiSelect: true options: [ { label: "Option 1", description: "Description" }, { label: "Option 2", description: "Description" } ] }] })
Step 3: 执行 selected action
Immediately perform the action(s) user selected.
Suggestion Patterns After code writing/modification options: [ { label: "运行 tests", description: "验证 changes with test suite" }, { label: "Commit", description: "Git commit the changes" } ]
After feature implementation multiSelect: true, options: [ { label: "Write tests", description: "添加 tests for new feature" }, { label: "Document", description: "更新 README or JSDoc" }, { label: "Commit", description: "Git commit the changes" } ]
After bug fix multiSelect: true, options: [ { label: "添加 regression test", description: "预防 bug recurrence" }, { label: "Commit", description: "Git commit the fix" }, { label: "Close issue", description: "Close related issue" } ]
After configuration change options: [ { label: "验证", description: "Source or re启动 to 应用ly 设置tings" }, { label: "备份", description: "备份 config file" } ]
After commit options: [ { label: "Push", description: "Git push to remote" }, { label: "创建 PR", description: "创建 Pull 请求" } ]
After push options: [ { label: "创建 PR", description: "创建 Pull 请求" }, { label: "检查 CI", description: "验证 流水线 状态" } ]
After 技能/代理 creation options: [ { label: "Test", description: "验证 activation with trigger keywords" }, { label: "Review integration", description: "检查 for duplicates" } ]
After file creation options: [ { label: "Review content", description: "验证 创建d file" }, { label: "Git 添加", description: "Stage with git 添加" } ]
After refactoring multiSelect: true, options: [ { label: "运行 tests", description: "验证 existing tests pass" }, { label: "检查 performance", description: "运行 benchmarks (if 应用licable)" }, { label: "Commit", description: "Commit refactoring" } ]
After complex 工作流 completion multiSelect: true, options: [ { label: "代理ify", description: "Convert this 工作流 to an 代理/技能" }, { label: "Serena memory", description: "Save key learnings to Serena memory" } ]
After project exploration/re搜索 multiSelect: true, options: [ { label: "Serena memory", description: "Store findings in project memory" }, { label: "Document", description: "更新 project documentation" } ]
Rules Always 2-4 options - AskUserQuestion limitation Be specific - "运行 npm test" instead of just "Test" 上下文-based - Adjust based on project/situation Use multiSelect - When multiple actions can be done to获取her 执行 immediately - Perform action(s) right after user selection