Skip to content

Commit 161d8c8

Browse files
authored
Merge pull request #3741 from liam-hq/add_claude_command
Add Claude Code slash commands for GitHub issue workflow
2 parents 3a9216d + 5cb46f5 commit 161d8c8

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.claude/commands/fix-issue.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
description: Fetch and read a GitHub issue, then implement and verify the fix
3+
---
4+
5+
## Task
6+
7+
Use the `gh` command to fetch the GitHub issue specified in the arguments, analyze the problem, implement the necessary changes, and verify the fix is complete.
8+
9+
### Steps
10+
1. Extract the issue number from the arguments (format: `#123` or just `123`)
11+
2. Use `gh issue view <issue-number>` to fetch the issue details
12+
3. Understand the problem described in the issue
13+
4. Search the codebase for relevant files related to the issue
14+
5. Implement the necessary changes to fix the issue
15+
6. Write and run tests to verify the fix
16+
7. Ensure code passes linting and type checking (use `pnpm lint`)
17+
8. Create a descriptive commit message following the project's commit conventions
18+
19+
### Arguments
20+
The command accepts an issue number (e.g., `123` or `#123`)

.claude/commands/read-issue.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
description: Fetch and read a GitHub issue using gh command
3+
---
4+
5+
## Task
6+
7+
Use the `gh` command to fetch the GitHub issue specified in the arguments and present its contents for analysis.
8+
9+
### Steps
10+
1. Extract the issue number from the arguments (format: `#123` or just `123`)
11+
2. Use `gh issue view <issue-number>` to fetch the issue details
12+
3. Understand the problem described in the issue
13+
4. Search the codebase for relevant files related to the issue
14+
5. Present the issue information and relevant code context in a clear, readable format
15+
16+
### Arguments
17+
The command accepts an issue number (e.g., `123` or `#123`)

0 commit comments

Comments
 (0)