When to use this skill
Use this skill when the user wants to start a new VS Code extension project. This is the first step in the development workflow.
How to use this skill
- Ask for Project Name: If the user hasn't provided a name, ask for it (e.g., "my-awesome-extension").
- Execute Initialization Command: Run the following command to scaffold the project non-interactively.
# Replace <project-name> with the actual name
npx --package yo --package generator-code -- yo code <project-name> --template typescript --quick
- Post-Initialization:
- Change directory into the new project:
cd <project-name> - Explain the structure briefly:
src/extension.ts: Main entry point.package.json: Manifest file.
- Run
npm install(if not already done by the generator, though--quickusually handles it).
- Change directory into the new project:
Example Interaction
User: "Create a new vscode extension named helper"
Agent:
"I'll initialize the project for you.
Running: npx --package yo --package generator-code -- yo code helper --template typescript --quick
...
Project created! You can now start adding features."