fix: remove empty tasks directories from Claude Code installer#776
Merged
fix: remove empty tasks directories from Claude Code installer#776
Conversation
Previously, the installer created empty tasks/ directories under
.claude/commands/bmad/{module}/ and attempted to copy task files.
Since getTasksFromDir() filters for .md files only and all actual
tasks are .xml files, these directories remained empty.
Tasks are utility files referenced by agents via exec attributes
(e.g., exec="{project-root}/bmad/core/tasks/workflow.xml") and
should remain in the bmad/ directory - they are not slash commands.
Changes:
- Removed tasks directory creation in module setup
- Removed tasks copying logic (15 lines)
- Removed taskCount from console output
- Removed tasks property from return value
- Removed unused getTasksFromBmad and getTasksFromDir imports
- Updated comment to clarify agents-only installation
Verified: No tasks/ directories created in .claude/commands/bmad/
while task files remain accessible in bmad/core/tasks/
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
bmadcode
approved these changes
Oct 20, 2025
davedittrich
pushed a commit
to davedittrich/BMAD-METHOD
that referenced
this pull request
Oct 27, 2025
…code-org#776) Previously, the installer created empty tasks/ directories under .claude/commands/bmad/{module}/ and attempted to copy task files. Since getTasksFromDir() filters for .md files only and all actual tasks are .xml files, these directories remained empty. Tasks are utility files referenced by agents via exec attributes (e.g., exec="{project-root}/bmad/core/tasks/workflow.xml") and should remain in the bmad/ directory - they are not slash commands. Changes: - Removed tasks directory creation in module setup - Removed tasks copying logic (15 lines) - Removed taskCount from console output - Removed tasks property from return value - Removed unused getTasksFromBmad and getTasksFromDir imports - Updated comment to clarify agents-only installation Verified: No tasks/ directories created in .claude/commands/bmad/ while task files remain accessible in bmad/core/tasks/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
davedittrich
pushed a commit
to davedittrich/BMAD-METHOD
that referenced
this pull request
Nov 12, 2025
…code-org#776) Previously, the installer created empty tasks/ directories under .claude/commands/bmad/{module}/ and attempted to copy task files. Since getTasksFromDir() filters for .md files only and all actual tasks are .xml files, these directories remained empty. Tasks are utility files referenced by agents via exec attributes (e.g., exec="{project-root}/bmad/core/tasks/workflow.xml") and should remain in the bmad/ directory - they are not slash commands. Changes: - Removed tasks directory creation in module setup - Removed tasks copying logic (15 lines) - Removed taskCount from console output - Removed tasks property from return value - Removed unused getTasksFromBmad and getTasksFromDir imports - Updated comment to clarify agents-only installation Verified: No tasks/ directories created in .claude/commands/bmad/ while task files remain accessible in bmad/core/tasks/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the creation and copying logic for empty
tasks/directories in the Claude Code installerthat served no purpose.
What Changed
In
tools/cli/installers/lib/ide/claude-code.js:tasks/subdirectories under.claude/commands/bmad/{module}/.mdfiles frombmad/{module}/tasks/tasksproperty from installer return valueWhy
Tasks are utility files referenced by agents via
exec="{project-root}/bmad/core/tasks/workflow.xml". They live in thebmad/directory and areNOT meant to be slash commands in Claude Code.
Testing
npm run install:bmadfind .claude/commands/bmad -type d -name "tasks"(shouldreturn nothing)
ls -la .claude/commands/bmad/bmm/agents/ls -la bmad/core/tasks//pm→*prd)Notes
bmad-artifacts.jsremains unchanged as it's shared across installers