Skip to content

Conversation

@alexeyv
Copy link
Contributor

@alexeyv alexeyv commented Oct 20, 2025

Summary

Removes the creation and copying logic for empty tasks/ directories in the Claude Code installer
that served no purpose.

What Changed

In tools/cli/installers/lib/ide/claude-code.js:

  • Removed creation of empty tasks/ subdirectories under .claude/commands/bmad/{module}/
  • Removed task copying block that attempted to copy .md files from bmad/{module}/tasks/
  • Removed task count from console output
  • Removed tasks property from installer return value

Why

Tasks are utility files referenced by agents via
exec="{project-root}/bmad/core/tasks/workflow.xml". They live in the bmad/ directory and are
NOT meant to be slash commands in Claude Code.

Testing

  1. Run installer: npm run install:bmad
  2. Verify no empty tasks directories: find .claude/commands/bmad -type d -name "tasks" (should
    return nothing)
  3. Verify agents installed: ls -la .claude/commands/bmad/bmm/agents/
  4. Verify tasks still exist: ls -la bmad/core/tasks/
  5. Test agent workflow execution (e.g., /pm*prd)

Notes

  • This only affects the Claude Code installer
  • Other IDE installers may need similar cleanup if they have the same issue
  • bmad-artifacts.js remains unchanged as it's shared across installers

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 <[email protected]>
@bmadcode bmadcode merged commit 69d1f75 into v6-alpha Oct 20, 2025
5 checks passed
@alexeyv alexeyv deleted the feature/cleanup-empty-tasks-dirs branch October 21, 2025 00:22
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 <[email protected]>
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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants