帮助用户为当前会话生成或更新运行命令,便于一键启动与调试项目。
复制安装指令,让 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.
帮助你编写 Hook 配置文件,以执行策略校验并自动化代理生命周期事件。
帮助用户更新 GitHub Copilot 的 CLI 或 SDK 到较新版本。
分析 V8 堆快照,定位内存泄漏、对象滞留与 GC 后存活原因
将当前会话分支的修改合并回基础分支,便于整合开发成果。
在隔离环境启动 VS Code OSS,便于联动自动化操作与多进程调试。
用于在聊天自定义编辑器中配置和管理智能体、技能、提示词及集成组件。
根据当前会话中的代码改动,快速创建可提交的拉取请求。
帮助排查当前 Amplifier 会话中的配置错误、调用失败与异常行为。
为当前会话中的代码改动快速创建草稿拉取请求,便于协作评审。
为 AI 编码助手生成或更新聊天定制配置文件,统一协作与开发体验
为已暂存或未暂存代码创建提交,并自动生成符合仓库风格的提交信息
根据当前会话中提交的用户反馈,整理并执行针对性修改建议。