v0.4.2 - Critical Installation Hotfix
🔥 Critical Installation Hotfix
This is a HOTFIX release that addresses a critical installation bug that made the plugin completely non-functional for new users.
🐛 Bugs Fixed
Bug #1: Incorrect Paths in install.js (CRITICAL)
- Problem:
install.jswas looking forcommands/,agents/, andskills/directories at the package root, but actual files are in.claude/subdirectory - Impact: Commands, agents, and skills were NEVER installed to
~/.claude-code/directories - Result: Plugin appeared to install but was completely broken - all slash commands returned "command not found"
- Fix: Updated all three path definitions in
install.js:commands/→.claude/commands/(install.js:150)agents/→.claude/agents/(install.js:167)skills/→.claude/skills/(install.js:184)
- Verification:
- ✅ 25 commands now install correctly to
~/.claude-code/commands/ - ✅ 17 agents now install correctly to
~/.claude-code/agents/ - ✅ 17 skills now install correctly to
~/.claude-code/skills/
- ✅ 25 commands now install correctly to
Bug #2: Outdated Version Metadata
- Problem: All markdown files showed hardcoded version "1.2.0" or "2.x.x" from legacy branch
- Impact:
/plugin-versioncommand showed incorrect version, confusion about what's installed - Fix:
- Created automated version update script (
scripts/update-version.js) - Updated 17 files across commands/agents/skills to v0.4.2
- Added
prepublishOnlyscript to auto-update versions before npm publish
- Created automated version update script (
- Future-proof: Version metadata now automatically syncs with package.json on every release
Issue #3: Missing Error Handling
- Problem: Silent failures during installation if directories had permission issues
- Impact: Users couldn't diagnose installation problems
- Fix: Added try-catch blocks with descriptive error messages for:
- Directory copying operations
- Commands installation
- Agents installation
- Skills installation
- Now shows clear warnings: "
⚠️ Failed to install commands: [error message]"
🛠️ Improvements
- Better Installation Feedback: Install script now shows clear success/failure for each component
- Version Automation: New
npm run prepublishOnlyscript ensures versions stay in sync - Developer Experience: Added error context to help diagnose issues faster
📋 Migration Guide
For existing users (v0.4.1 → v0.4.2):
npm update -g claude-prd-workflow
# Plugin will automatically reinstall files to correct locationsFor new users:
npm install -g claude-prd-workflow
# Installation now works correctly out of the boxVerification:
ls ~/.claude-code/commands/ | wc -l # Should show 25+ files
ls ~/.claude-code/agents/ | wc -l # Should show 17 files
ls ~/.claude-code/skills/ | wc -l # Should show 17 files🙏 Credits
Special thanks to the Watchora Development Team for:
- Comprehensive bug report with root cause analysis
- Detailed reproduction steps and proof of failure
- Proposed fixes with code diffs
- Testing and verification scripts
This release would not have been possible without their thorough investigation.
📊 Impact Assessment
- Before v0.4.2: 100% of new installations were broken
- After v0.4.2: Plugin fully functional for all users
- Recovery time: Immediate for users who run
npm update -g
📦 Installation
npm install -g claude-prd-workflowPackage: https://www.npmjs.com/package/claude-prd-workflow
Documentation: https://github.com/Yassinello/claude-prd-workflow#readme
Full Changelog: https://github.com/Yassinello/claude-prd-workflow/blob/main/CHANGELOG.md