From partme-ai-full-stack-skills
Registers a new command in a VS Code extension by updating package.json contributes.commands and src/extension.ts activate function. Useful for adding functional commands like text formatting, code generation, or UI actions.
npx claudepluginhub partme-ai/full-stack-skills --plugin t2ui-skillsThis skill uses the workspace's default tool permissions.
Use this skill when the user wants to add a new functional command (e.g., "Hello World", "Format Text") to the extension.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Use this skill when the user wants to add a new functional command (e.g., "Hello World", "Format Text") to the extension.
Adding a command requires updates to two files: package.json and src/extension.ts.
package.jsonAdd the command definition to the contributes.commands array.
// package.json
{
"contributes": {
"commands": [
{
"command": "extension.myCommand", // Unique ID
"title": "My Extension: Do Something" // Display Name
}
]
}
}
src/extension.tsRegister the command in the activate function.
// src/extension.ts
import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) {
// ... existing code ...
let disposable = vscode.commands.registerCommand('extension.myCommand', () => {
// Implementation logic here
vscode.window.showInformationMessage('Command executed!');
});
context.subscriptions.push(disposable);
}
extensionName.actionName format to avoid conflicts.async () => { await ... }.