diff --git a/.changeset/lemon-deer-hide.md b/.changeset/lemon-deer-hide.md index 2a5d4b9c..b63641b1 100644 --- a/.changeset/lemon-deer-hide.md +++ b/.changeset/lemon-deer-hide.md @@ -4,13 +4,13 @@ Added comprehensive rule profile management: -- **New Profile Support**: Added comprehensive IDE profile support with seven specialized profiles: Claude Code, Cline, Codex, Cursor, Roo, Trae, and Windsurf. Each profile is optimized for its respective IDE with appropriate mappings and configuration. -- **Initialization**: You can now specify which rule profiles to include at project initialization using `--rules ` or `-r ` (e.g., `task-master init -r cursor,roo`). Only the selected profiles and configuration are included. -- **Add/Remove Commands**: `task-master rules add ` and `task-master rules remove ` let you manage specific rule profiles and MCP config after initialization, supporting multiple profiles at once. -- **Interactive Setup**: `task-master rules setup` launches an interactive prompt to select which rule profiles to add to your project. This does **not** re-initialize your project or affect shell aliases; it only manages rules. -- **Selective Removal**: Rules removal intelligently preserves existing non-Task Master rules and files and only removes Task Master-specific rules. Profile directories are only removed when completely empty and all conditions are met (no existing rules, no other files/folders, MCP config completely removed). -- **Safety Features**: Confirmation messages clearly explain that only Task Master-specific rules and MCP configurations will be removed, while preserving existing custom rules and other files. -- **Robust Validation**: Includes comprehensive checks for array types in MCP config processing and error handling throughout the rules management system. +**New Profile Support**: Added comprehensive IDE profile support with eight specialized profiles: Claude Code, Cline, Codex, Cursor, Roo, Trae, VS Code, and Windsurf. Each profile is optimized for its respective IDE with appropriate mappings and configuration. +**Initialization**: You can now specify which rule profiles to include at project initialization using `--rules ` or `-r ` (e.g., `task-master init -r cursor,roo`). Only the selected profiles and configuration are included. +**Add/Remove Commands**: `task-master rules add ` and `task-master rules remove ` let you manage specific rule profiles and MCP config after initialization, supporting multiple profiles at once. +**Interactive Setup**: `task-master rules setup` launches an interactive prompt to select which rule profiles to add to your project. This does **not** re-initialize your project or affect shell aliases; it only manages rules. +**Selective Removal**: Rules removal intelligently preserves existing non-Task Master rules and files and only removes Task Master-specific rules. Profile directories are only removed when completely empty and all conditions are met (no existing rules, no other files/folders, MCP config completely removed). +**Safety Features**: Confirmation messages clearly explain that only Task Master-specific rules and MCP configurations will be removed, while preserving existing custom rules and other files. +**Robust Validation**: Includes comprehensive checks for array types in MCP config processing and error handling throughout the rules management system. This enables more flexible, rule-specific project setups with intelligent cleanup that preserves user customizations while safely managing Task Master components. diff --git a/.cursor/rules/taskmaster.mdc b/.cursor/rules/taskmaster.mdc index 7f82731b..4abd9aaa 100644 --- a/.cursor/rules/taskmaster.mdc +++ b/.cursor/rules/taskmaster.mdc @@ -24,7 +24,7 @@ This document provides a detailed reference for interacting with Taskmaster, cov * `--name `: `Set the name for your project in Taskmaster's configuration.` * `--description `: `Provide a brief description for your project.` * `--version `: `Set the initial version for your project, e.g., '0.1.0'.` - * `--rules ` or `-r `: `Comma-separated list of rule sets to apply at initialization (e.g., 'cursor,windsurf,roo'). If not specified, all rule profiles are initialized by default.` + * `--rules ` or `-r `: `Comma-separated list of rule sets to apply at initialization (e.g., 'cursor,windsurf,roo,vscode'). If not specified, all rule profiles are initialized by default.` * `-y, --yes`: `Initialize Taskmaster quickly using default settings without interactive prompts.` * **Usage:** Run this once at the beginning of a new project. * **Rules Examples:** @@ -65,7 +65,7 @@ This document provides a detailed reference for interacting with Taskmaster, cov * `add `: `Add one or more rule sets to your project (e.g., 'windsurf,roo').` * `remove `: `Remove one or more rule sets from your project (e.g., 'windsurf').` * **Key Parameters:** - * ``: `Comma-separated list of rule sets to add or remove (e.g., 'cursor', 'windsurf', 'roo', 'cline', 'trae').` + * ``: `Comma-separated list of rule sets to add or remove (e.g., 'cursor', 'windsurf', 'roo', 'cline', 'trae', 'vscode').` * **Usage Examples:** * `task-master rules add windsurf,roo`: `Add Windsurf and Roo rule sets to your project.` * `task-master rules remove windsurf`: `Remove the Windsurf rule set from your project.` diff --git a/README.md b/README.md index 1380fdfc..699a7768 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ task-master init npx task-master init # Initialize project with specific rules -task-master init --rules cursor,windsurf +task-master init --rules cursor,windsurf,vscode ``` This will prompt you for project details and set up a new project with the necessary files and structure. @@ -186,7 +186,7 @@ task-master next task-master generate # Add rules after initialization -task-master rules add windsurf,roo +task-master rules add windsurf,roo,vscode ``` ## Documentation diff --git a/assets/rules/taskmaster.mdc b/assets/rules/taskmaster.mdc index 2fdcf02f..6eeea19e 100644 --- a/assets/rules/taskmaster.mdc +++ b/assets/rules/taskmaster.mdc @@ -24,7 +24,7 @@ This document provides a detailed reference for interacting with Taskmaster, cov * `--name `: `Set the name for your project in Taskmaster's configuration.` * `--description `: `Provide a brief description for your project.` * `--version `: `Set the initial version for your project, e.g., '0.1.0'.` - * `--rules ` or `-r `: `Comma-separated list of rule sets to apply at initialization (e.g., 'cursor,windsurf,roo'). If not specified, all rule profiles are initialized by default.` + * `--rules ` or `-r `: `Comma-separated list of rule sets to apply at initialization (e.g., 'cursor,windsurf,roo,vscode'). If not specified, all rule profiles are initialized by default.` * `-y, --yes`: `Initialize Taskmaster quickly using default settings without interactive prompts.` * **Usage:** Run this once at the beginning of a new project. * **Rules Examples:** @@ -65,7 +65,7 @@ This document provides a detailed reference for interacting with Taskmaster, cov * `add `: `Add one or more rule sets to your project (e.g., 'windsurf,roo').` * `remove `: `Remove one or more rule sets from your project (e.g., 'windsurf').` * **Key Parameters:** - * ``: `Comma-separated list of rule sets to add or remove (e.g., 'cursor', 'windsurf', 'roo', 'cline', 'trae').` + * ``: `Comma-separated list of rule sets to add or remove (e.g., 'cursor', 'windsurf', 'roo', 'cline', 'trae', 'vscode').` * **Usage Examples:** * `task-master rules add windsurf,roo`: `Add Windsurf and Roo rule sets to your project.` * `task-master rules remove windsurf`: `Remove the Windsurf rule set from your project.` diff --git a/docs/command-reference.md b/docs/command-reference.md index 129a9594..14c7a054 100644 --- a/docs/command-reference.md +++ b/docs/command-reference.md @@ -236,11 +236,11 @@ task-master add-task --prompt="Description" --priority=high task-master init # Initialize a new project applying specific rules -task-master init --rules cursor,windsurf +task-master init --rules cursor,windsurf,vscode ``` - The `--rules` flag allows you to specify one or more rule profiles (e.g., `cursor`, `roo`, `windsurf`, `cline`) to apply during initialization. -- If omitted, all available rule profiles are installed by default (cursor, windsurf, roo, cline). +- If omitted, all available rule profiles are installed by default (claude, cline, codex, cursor, roo, trae, vscode, windsurf). - You can use multiple comma-separated profiles in a single command. ## Manage Rules @@ -270,7 +270,7 @@ task-master rules setup **Examples:** ```bash -task-master rules add windsurf,roo +task-master rules add windsurf,roo,vscode task-master rules remove windsurf task-master rules setup ```