close
npx machina-cli add skill remenoscodes/claude-git-native-issue/close --openclawFiles (1)
SKILL.md
1.3 KB
git-native-issue — Close Issue
Close an issue, optionally with a closing message and reason.
Arguments
Parse $ARGUMENTS:
- First argument: issue ID (required, or interactive if empty)
-m "message": closing message (optional, defaults to "Completed")--reason <reason>: closing reason —completed,duplicate,wontfix,invalid--fixed-by <sha>: commit SHA that fixed the issue
If $ARGUMENTS is empty, run git issue ls -l in-progress to show current work and ask which to close. If no in-progress issues, fall back to git issue ls and ask.
Steps
- Verify prerequisites (git repo, git-issue installed).
- Parse the issue ID, message, and reason from
$ARGUMENTS. - Run
git issue state <id> --close -m "<message>"with optional--reasonand--fixed-by. - Confirm closure to the user with the issue title and ID.
Examples
/claude-git-native-issue:close a7f3b2c -m "All tests passing"
/claude-git-native-issue:close a7f3b2c --reason duplicate
/claude-git-native-issue:close a7f3b2c --fixed-by abc1234
/claude-git-native-issue:close → interactive selection from open issues
Source
git clone https://github.com/remenoscodes/claude-git-native-issue/blob/main/skills/close/SKILL.mdView on GitHub Overview
Close a git-native-issue by ID, optionally adding a closing message and reason. If no ID is provided, it can prompt you to select from in-progress issues. You can also record the fixing commit with --fixed-by for traceability.
How This Skill Works
Arguments are parsed to extract the issue ID, optional message (-m), and --reason. The command runs git issue state <id> --close with the provided message and optional --reason and --fixed-by, then confirms the closure by showing the issue title and ID.
When to Use It
- Close a specific issue by ID with a custom message.
- Mark an issue as a duplicate and reference its original.
- Record the fixing commit SHA using --fixed-by during closure.
- Omit the ID to trigger an interactive selection from in-progress issues.
- Close with the default message 'Completed' by providing only the issue ID.
Quick Start
- Step 1: Verify prerequisites (git repo, git-issue installed).
- Step 2: Provide or parse the issue ID, message, and reason from ARGUMENTS.
- Step 3: Run git issue state <id> --close -m \"<message>\" [--reason <reason>] [--fixed-by <sha>] and confirm the closure.
Best Practices
- Verify you’re in a git repo and have git-issue installed.
- Provide a meaningful -m message; if omitted, the default is 'Completed'.
- Always use --reason to categorize the closure (completed, duplicate, wontfix, invalid).
- Include --fixed-by <sha> when you want to reference the commit that fixed the issue.
- After closing, confirm the closure by showing the issue title and ID.
Example Use Cases
- /claude-git-native-issue:close a7f3b2c -m \"All tests passing\"
- /claude-git-native-issue:close a7f3b2c --reason duplicate
- /claude-git-native-issue:close a7f3b2c --fixed-by abc1234
- /claude-git-native-issue:close → interactive selection from open issues
- /claude-git-native-issue:close a7f3b2c
Frequently Asked Questions
Add this skill to your agents