360 Secure SkillHub
360 安全技能中心

Next Action

在任务完成后自动通过 AskUserQuestion 向用户展示 2-4 个后续动作选项,选项按代码编写、功能实现、缺陷修复、配置变更、提交推送、Skill 创建、文件创建、重构等场景分组,并在用户选择后立即执行相应动作。

分类:自动化
drumrobot
drumrobot
热度 1.64
最近更新 2026-05-16 01:21:48

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add drumrobot/next-action
兼容性
Claude Code 专属
联网要求
联网要求未确认
数据出网
数据出网未确认
Metadata
name
next-action
metadata
{"author":"es6kr","version":"0.1.0"}
description
Suggest next actions after completing any task. Use automatically when a task is finished to recommend 2-3 logical follow-up actions the user might want to take.

Next Action Suggester

After task completion, use AskUserQuestion to suggest next steps and get user selection.

When to use

Automatically use after any task completion:

  • Code writing/modification complete
  • Configuration changes complete
  • File creation complete
  • Commit/push complete
  • Skill/agent creation complete
  • Bug fix complete

Instructions

Step 1: Identify completed task type

Identify the type of task just completed.

Step 2: Use AskUserQuestion tool

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: Execute selected action

Immediately perform the action(s) user selected.

Suggestion Patterns

After code writing/modification

options: [
  { label: "Run tests", description: "Verify changes with test suite" },
  { label: "Commit", description: "Git commit the changes" }
]

After feature implementation

multiSelect: true,
options: [
  { label: "Write tests", description: "Add tests for new feature" },
  { label: "Document", description: "Update README or JSDoc" },
  { label: "Commit", description: "Git commit the changes" }
]

After bug fix

multiSelect: true,
options: [
  { label: "Add regression test", description: "Prevent bug recurrence" },
  { label: "Commit", description: "Git commit the fix" },
  { label: "Close issue", description: "Close related issue" }
]

After configuration change

options: [
  { label: "Verify", description: "Source or restart to apply settings" },
  { label: "Backup", description: "Backup config file" }
]

After commit

options: [
  { label: "Push", description: "Git push to remote" },
  { label: "Create PR", description: "Create Pull Request" }
]

After push

options: [
  { label: "Create PR", description: "Create Pull Request" },
  { label: "Check CI", description: "Verify pipeline status" }
]

After skill/agent creation

options: [
  { label: "Test", description: "Verify activation with trigger keywords" },
  { label: "Review integration", description: "Check for duplicates" }
]

After file creation

options: [
  { label: "Review content", description: "Verify created file" },
  { label: "Git add", description: "Stage with git add" }
]

After refactoring

multiSelect: true,
options: [
  { label: "Run tests", description: "Verify existing tests pass" },
  { label: "Check performance", description: "Run benchmarks (if applicable)" },
  { label: "Commit", description: "Commit refactoring" }
]

After complex workflow completion

multiSelect: true,
options: [
  { label: "Agentify", description: "Convert this workflow to an agent/skill" },
  { label: "Serena memory", description: "Save key learnings to Serena memory" }
]

After project exploration/research

multiSelect: true,
options: [
  { label: "Serena memory", description: "Store findings in project memory" },
  { label: "Document", description: "Update project documentation" }
]

Rules

  1. Always 2-4 options - AskUserQuestion limitation
  2. Be specific - "Run npm test" instead of just "Test"
  3. Context-based - Adjust based on project/situation
  4. Use multiSelect - When multiple actions can be done together
  5. Execute immediately - Perform action(s) right after user selection