feat: ship slash commands with GitHub Action#381
Conversation
- Created /slash-commands/ directory to store bundled slash commands - Added code-review.md slash command for automated PR reviews - Modified setup-claude-code-settings.ts to copy slash commands to ~/.claude/ - Added test coverage for slash command installation - Commands are automatically installed when the GitHub Action runs
|
Claude finished @km-anthropic's task —— View job PR Review: Slash Commands InfrastructureI've completed my review of the PR that adds slash command bundling and installation infrastructure. Here's my comprehensive analysis: Todo List
Overall AssessmentThis is a well-implemented feature that adds valuable functionality by bundling and auto-installing slash commands with the GitHub Action. The implementation is clean, well-tested, and follows the project's architectural patterns. Code Quality & Best Practices✅ Strong Points:
Architecture & Design✅ Good Design Decisions:
Detailed Code Review1. Slash Command Implementation (
|
- Reverted to using Bun's $ shell syntax consistently with the rest of the codebase - Simplified slash command copying to basic shell commands - Removed unnecessary fs/promises complexity - Maintained all functionality and test coverage - More appropriate for GitHub Action context where inputs are trusted
base-action/action.yml
Outdated
| description: "Timeout in minutes for Claude Code execution" | ||
| required: false | ||
| default: "10" | ||
| slash_commands_dir: |
There was a problem hiding this comment.
ah yeah nice catch
… into km/ship-slash-commands
- Added 'experimental' prefix as suggested by Ashwin - Updated all references in action.yml and base-action - Restored accidentally removed code-review.md file
Summary
/code-reviewslash command for automated PR reviews~/.claude/during action setupChanges
/slash-commands/directory to store bundled commands/code-reviewcommand with multi-agent review logicsetup-claude-code-settings.tsto copy slash commands after settings setupBenefits
override_prompt: '/code-review ...'Next Steps
/gh-code-review)🤖 Generated with Claude Code