generate-run-commands

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

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/voidful/Aixlarity --skill generate-run-commands-voidful
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-run-commands
Source: https://github.com/voidful/Aixlarity/tree/main/aixlarity-ide/src/vs/sessions/skills/generate-run-commands
Command: npx skills add https://github.com/voidful/Aixlarity --skill generate-run-commands-voidful

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 get wrong. This Skill inspects the project and writes the right task entries so commands appear in the session's Run button. ## Core Features & Use Cases - Automatic command inference: Reads package.json, Makefile, pyproject.toml, Cargo.toml, go.mod, and similar files to detect the project's stack and common commands. - Schema-correct task generation: Writes tasks with "inAgents": true so they appear in the Run button, and optionally "runOptions": { "runOn": "worktreeCreated" } for setup commands that run when a worktree is created. - Safe merging: Merges new tasks into an existing .vscode/tasks.json without overwriting unrelated tasks, and asks the user only when commands are ambiguous. - Use Case: In a Node.js project, the Skill detects package.json and adds an "npm install" task that auto-runs on worktree creation plus an "npm run dev" task available from the Run button. ## Quick Start Ask the agent to set up run commands for this workspace so the install and dev commands appear in the session 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 tasks to .vscode/tasks.json with "inAgents": true, which makes them appear in the session's Run button. This Skill generates those entries automatically by inspecting your project files.

How do I run a task automatically when a worktree is created?

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

Does this work with existing tasks.json files?

Yes. The Skill reads the existing .vscode/tasks.json first and merges new run commands into it without overwriting unrelated tasks. If run commands already exist, it treats the request as a modification.

Which project types are detected for run command generation?

The Skill checks package.json, Makefile, pyproject.toml, Cargo.toml, go.mod, and .nvmrc to infer the stack. It asks the user only when commands are ambiguous or no recognizable project structure exists.

Where are the generated run commands written?

Commands are always written to .vscode/tasks.json in the workspace root. After writing, the Skill confirms what was added and how to trigger it from the Run button.