generate-run-commands

Generates and modifies tasks.json run commands for the session Run button.

Updated Sep 3, 2026
One-click install
npx skills add https://github.com/az0512124155azz-sys/CodeForge --skill generate-run-commands-az0512124155azz-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-run-commands
Source: https://github.com/az0512124155azz-sys/CodeForge/tree/main/src/vs/sessions/skills/generate-run-commands
Command: npx skills add https://github.com/az0512124155azz-sys/CodeForge --skill generate-run-commands-az0512124155azz-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up run commands for an Agent Session workspace requires manually editing .vscode/tasks.json with the correct schema, which is error-prone and easy to misconfigure. ## Core Features & Use Cases - Automatic command inference: Detects the project stack from files like package.json, Makefile, pyproject.toml, Cargo.toml, and go.mod to propose appropriate setup and run commands. - Schema-correct task generation: Writes tasks with "inAgents": true so they appear in the session's Run button, and optionally "runOptions": { "runOn": "worktreeCreated" } for setup commands that run when a worktree is created. - Safe merging: Reads the existing .vscode/tasks.json first and merges new commands without overwriting unrelated tasks. - Use Case: A developer opens a Node.js workspace in a new Agent Session and wants a one-click dev server. The Skill detects package.json, adds an npm install setup task and an npm run dev run task, and both appear in the Run button. ## Quick Start Ask the assistant to set up run commands for this workspace so they appear in the session's Run button.

Frequently Asked Questions about generate-run-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add run commands to the session Run button?

Add a task to .vscode/tasks.json with "inAgents": true, which makes it appear in the session's Run button. The Skill can generate these tasks automatically by inspecting your project files.

How do I run a setup command automatically when a worktree is created?

Add "runOptions": { "runOn": "worktreeCreated" } to the task in tasks.json. This is typically used for install commands like npm install or pip install -r requirements.txt.

Does generating run commands overwrite my existing tasks.json?

No. The Skill reads the existing .vscode/tasks.json first and merges new run commands into it, leaving unrelated tasks untouched.

Which project types are detected for run command inference?

The Skill inspects package.json, Makefile, pyproject.toml, Cargo.toml, go.mod, and .nvmrc to infer the stack. If the project structure is ambiguous or non-standard, it asks the user before writing commands.

When should I modify run commands instead of generating new ones?

If tasks with "inAgents": true already exist in tasks.json, the request is treated as a modification. The Skill will ask whether you want to add, remove, or update an existing command.