If you keep typing the same "read issue 123, find the cause, fix it, add a test" prompt into Claude Code, turn it into a custom slash command. The $ARGUMENTS placeholder lets you pass the issue number each time.
Create the command
Project commands live in .claude/commands/ . The file name becomes the command name.
.claude/commands/fix-issue.md :
--- description : " Fix a GitHub issue by number" argument-hint : <issue-number> allowed-tools : Bash(gh issue view:*), Bash(git diff:*), Read, Edit, Grep ---
Fix GitHub issue #$ARGUMENTS. 1. Run `gh issue view $ARGUMENTS` and summarize the problem in two lines. 2. Find the relevant code with Grep before editing anything. 3. Make the smallest change that fixes it. 4. Add or update a test that fails without the fix. 5. Show `git diff` and stop. Do not commit.
Enter fullscreen mode
Exit fullscreen mode
Use it
/fix-issue 123
Enter fullscreen mode
Exit fullscreen mode
Claude Code replaces $ARGUMENTS with 123 . Need several values?…