Add Claude Code slash commands for GitHub issue workflow#3741
Conversation
Add two new slash commands to streamline GitHub issue handling: - /read-issue: Fetches and analyzes a GitHub issue - /fix-issue: Fetches issue, implements fix, and verifies completion These commands use gh CLI to fetch issue details and guide the implementation process. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Unexpected error on running flow
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Updates to Preview Branch (add_claude_command) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
WalkthroughAdds two new Markdown command guides under .claude/commands: read-issue.md and fix-issue.md. They define CLI workflows using gh to parse an issue number, view details, identify related code, implement fixes, write/run tests, and run lint/type checks with pnpm. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant CLI as Terminal
participant GH as gh CLI
participant Repo as Codebase
Note over Dev,CLI: Read Issue Workflow
Dev->>CLI: read-issue <issue-id>
CLI->>CLI: Parse issue number (#123 or 123)
CLI->>GH: gh issue view <issue-number>
GH-->>CLI: Issue details (title, body, labels)
CLI->>Repo: Search related files/contexts
Repo-->>CLI: Matches/snippets
CLI-->>Dev: Present issue + code context
sequenceDiagram
autonumber
actor Dev as Developer
participant CLI as Terminal
participant GH as gh CLI
participant Repo as Codebase
participant Tests as Test Runner
Note over Dev,CLI: Fix Issue Workflow
Dev->>CLI: fix-issue <issue-id>
CLI->>CLI: Extract issue number
CLI->>GH: gh issue view <issue-number>
GH-->>CLI: Issue details
CLI->>Repo: Locate related code
Dev->>Repo: Implement changes
Dev->>Tests: Run tests
Tests-->>Dev: Results (pass/fail)
Dev->>CLI: Run lint/type checks (pnpm lint, etc.)
CLI-->>Dev: Validation results
Dev->>Repo: Commit with descriptive message
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Check changeset necessityStatus: NOT REQUIRED Reason:
Changeset (copy & paste):# No changeset required for this PR (development tooling only) |
Issue
Why is this change needed?
This PR adds two new Claude Code slash commands to streamline GitHub issue handling workflow:
Commands Added
/read-issue - Fetches and analyzes a GitHub issue
gh issue viewto fetch issue details/fix-issue - Complete issue resolution workflow
Benefits
🤖 Generated with Claude Code
Summary by CodeRabbit