帮助用户为当前会话生成或更新运行命令,便于一键启动与调试项目。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "generate-run-commands" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode/main/src/vs/sessions/skills/generate-run-commands/SKILL.md 2. 保存为 ~/.claude/skills/generate-run-commands/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为当前 Node.js 项目生成运行命令,让 Run 按钮执行开发服务器启动,优先使用 package.json 里的 scripts。
返回适合当前项目的启动命令,例如 npm run dev,并可写入会话运行配置。
把当前运行命令改成先激活虚拟环境再启动应用,项目入口是 app.py,请给出适合 Run 按钮的命令。
返回更新后的 Python 运行命令,包含虚拟环境激活与应用启动步骤。
当前仓库包含前端和后端,请生成可用于 Run 按钮的运行命令,能够同时启动两个服务,并尽量使用现有脚本。
返回适合全栈项目的联合运行方案,说明使用的命令或脚本,并可更新当前会话配置。
Help the user set up run commands for the current Agent Session workspace. Run commands appear in the session's Run button in the title bar.
A run command is a tasks.json task with:
"inAgents": true — required: makes the task appear in the Agents run button"runOptions": { "runOn": "worktreeCreated" } — optional: auto-runs the task whenever a new worktree is created (use for setup/install commands){
"tasks": [
{
"label": "Install dependencies",
"type": "shell",
"command": "npm install",
"inAgents": true,
"runOptions": { "runOn": "worktreeCreated" }
},
{
"label": "Start dev server",
"type": "shell",
"command": "npm run dev",
"inAgents": true
}
]
}
First, read the existing .vscode/tasks.json to check for existing run commands (inAgents: true tasks).
If run commands already exist: treat this as a modify request — ask the user what they'd like to change (add, remove, or update a command).
If no run commands exist: try to infer the right commands from the workspace:
package.json, Makefile, pyproject.toml, Cargo.toml, go.mod, .nvmrc, or other project files to understand the stack and common commands.npm install, pip install -r requirements.txt), add it with "runOptions": { "runOn": "worktreeCreated" } — no need to ask.npm run dev, cargo run), add it with just "inAgents": true.Always write to .vscode/tasks.json in the workspace root. If the file already exists, merge — do not overwrite unrelated tasks.
After writing, briefly confirm what was added and how to trigger it from the Run button.
帮助开发者验证 Azure DevOps 流水线改动,快速排查构建与 YAML 配置问题。
为当前会话中的代码改动快速创建草稿拉取请求,便于协作评审。