|
| 1 | +# claude-git-native-issue |
| 2 | + |
| 3 | +Claude Code plugin that replaces internal task management with [git-native-issue](https://github.com/remenoscodes/git-native-issue). Distributed, offline-first issue tracking stored as Git refs. |
| 4 | + |
| 5 | +## What it does |
| 6 | + |
| 7 | +This plugin teaches Claude to **autonomously** manage issues using `git issue` commands: |
| 8 | + |
| 9 | +- **Auto-create** issues when multi-step work begins, plans are approved, or bugs are discovered |
| 10 | +- **Auto-update** issues with progress comments and status labels |
| 11 | +- **Auto-close** issues when tasks complete successfully |
| 12 | +- **Skip tracking** for trivial changes, questions, and exploratory work |
| 13 | + |
| 14 | +It also provides slash commands for manual issue management. |
| 15 | + |
| 16 | +## Prerequisites |
| 17 | + |
| 18 | +- [git-native-issue](https://github.com/remenoscodes/git-native-issue) installed: |
| 19 | + ```bash |
| 20 | + brew install remenoscodes/git-native-issue/git-native-issue |
| 21 | + ``` |
| 22 | +- A git repository (issues are stored as git refs) |
| 23 | + |
| 24 | +## Installation |
| 25 | + |
| 26 | +```bash |
| 27 | +# Add the marketplace |
| 28 | +/plugin marketplace add remenoscodes/claude-git-native-issue |
| 29 | + |
| 30 | +# Install the plugin |
| 31 | +/plugin install claude-git-native-issue |
| 32 | +``` |
| 33 | + |
| 34 | +## Setup |
| 35 | + |
| 36 | +After installing, run the setup skill in any git repository: |
| 37 | + |
| 38 | +``` |
| 39 | +/claude-git-native-issue:setup |
| 40 | +``` |
| 41 | + |
| 42 | +This will: |
| 43 | +1. Initialize git-native-issue in the repo |
| 44 | +2. Optionally configure auto-sync for issue refs |
| 45 | +3. Optionally add task management instructions to your CLAUDE.md |
| 46 | + |
| 47 | +## Slash Commands |
| 48 | + |
| 49 | +| Command | Description | |
| 50 | +|---------|-------------| |
| 51 | +| `/claude-git-native-issue:setup` | Initialize git-issue in repo and configure integration | |
| 52 | +| `/claude-git-native-issue:create` | Create a new issue | |
| 53 | +| `/claude-git-native-issue:issues` | List issues with filtering | |
| 54 | +| `/claude-git-native-issue:show` | Show issue details and comments | |
| 55 | +| `/claude-git-native-issue:close` | Close an issue | |
| 56 | +| `/claude-git-native-issue:sync` | Sync issues with remote or platform | |
| 57 | + |
| 58 | +### Examples |
| 59 | + |
| 60 | +```bash |
| 61 | +# Create an issue |
| 62 | +/claude-git-native-issue:create "Fix auth bug" -l bug -p high |
| 63 | + |
| 64 | +# List in-progress issues |
| 65 | +/claude-git-native-issue:issues in-progress |
| 66 | + |
| 67 | +# Show issue details |
| 68 | +/claude-git-native-issue:show a7f3b2c |
| 69 | + |
| 70 | +# Close with message |
| 71 | +/claude-git-native-issue:close a7f3b2c -m "All tests passing" |
| 72 | + |
| 73 | +# Sync with GitHub |
| 74 | +/claude-git-native-issue:sync github:owner/repo |
| 75 | +``` |
| 76 | + |
| 77 | +## How It Works |
| 78 | + |
| 79 | +### Architecture |
| 80 | + |
| 81 | +Three-layer activation (same pattern as [claude-language-coach](https://github.com/remenoscodes/claude-language-coach)): |
| 82 | + |
| 83 | +1. **UserPromptSubmit hook** — injects context on every prompt, reminding Claude to use `git issue` and defining autonomous trigger rules |
| 84 | +2. **Ambient skill** (`git-issue-tracker`) — full CLI reference, autonomous decision rules, status conventions, error handling |
| 85 | +3. **User-invocable skills** — slash commands for convenience |
| 86 | + |
| 87 | +### Autonomous Behavior |
| 88 | + |
| 89 | +Claude creates, updates, and closes issues without being asked: |
| 90 | + |
| 91 | +| Trigger | Action | |
| 92 | +|---------|--------| |
| 93 | +| User starts multi-step work | Create tracking issue | |
| 94 | +| Plan approved | Create issue(s) per work stream | |
| 95 | +| Bug discovered during work | Create bug issue | |
| 96 | +| Starting work on an issue | Add `in-progress` label | |
| 97 | +| Progress milestone | Add comment | |
| 98 | +| Task completed | Close issue | |
| 99 | + |
| 100 | +### Status Convention |
| 101 | + |
| 102 | +| Status | git-issue Representation | |
| 103 | +|--------|--------------------------| |
| 104 | +| Pending | `[open]` (no in-progress label) | |
| 105 | +| In Progress | `[open]` + `in-progress` label | |
| 106 | +| Completed | `[closed]` | |
| 107 | +| Blocked | `[open]` + `blocked` label | |
| 108 | + |
| 109 | +## Why git-native-issue? |
| 110 | + |
| 111 | +- **Distributed** — Issues travel with `git clone`, no central server needed |
| 112 | +- **Offline-first** — Works without network, syncs when ready |
| 113 | +- **No pollution** — Stored in `refs/issues/`, not in the working tree |
| 114 | +- **Auditable** — Full history via `git log refs/issues/<uuid>` |
| 115 | +- **AI-friendly** — Structured metadata, no rate limits, no API keys |
| 116 | +- **Standard tools** — Uses `git log`, `git for-each-ref`, standard trailers |
| 117 | + |
| 118 | +## License |
| 119 | + |
| 120 | +GPL-2.0 — same as git-native-issue. |
0 commit comments