-
Notifications
You must be signed in to change notification settings - Fork 0
chore: conciv-issue skill — backlog burndown lane methodology #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| --- | ||
| name: conciv-issue | ||
| description: Use when asked to pick up a GitHub issue, work the issue backlog down, triage open tickets, groom an issue for an agent, or dispatch an agent to fix a ticket and open a PR that closes it. | ||
| --- | ||
|
|
||
| # Working the conciv issue backlog | ||
|
|
||
| ## Overview | ||
|
|
||
| Goal: open-issue count trends to zero. The unit of work is one lane: pick one issue, groom it, dispatch one agent in one worktree, verify, open one PR whose merge auto-closes the issue. Never batch several issues into one PR, and never merge — the user merges. | ||
|
|
||
| The orchestrator (this session) picks, grooms, verifies, and reports. Agents implement. The orchestrator never edits product code. | ||
|
|
||
| ## Step 0: pick one issue | ||
|
|
||
| ```bash | ||
| gh issue list --state open --limit 60 --json number,title,labels | ||
| ``` | ||
|
|
||
| Selection order: | ||
|
|
||
| 1. `ready-for-agent` and unassigned, smallest first — these are pre-groomed and grabbable. | ||
| 2. Ungroomed issues with a clear defect and reproduction. | ||
| 3. Everything else needs grooming first (that grooming is itself a valid lane outcome). | ||
|
|
||
| Skip: `agent:blocked-external`, `agent:needs-info`, `agent:in-progress`, `agent:implemented-in-pr`, epics/RFCs (`epic-*`, "RFC:"), and anything already linked to an open PR (`gh pr list --search "NNN in:body"`). If every remaining issue is blocked, say so and stop; do not force a lane. | ||
|
|
||
| ## Step 1: classify and groom | ||
|
|
||
| Read the full issue and comments (`gh issue view NNN --comments`). Verify every claim in the body against current `origin/main` — issues go stale; file:line citations rot. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Refresh Line 30 requires the current 🤖 Prompt for AI Agents |
||
|
|
||
| | Issue type | Required shape before dispatch | | ||
| | ---------------- | ------------------------------------------------------------------------------------------------------------------------------- | | ||
| | Bug | RCA plan first: evidence-only Phase 1, reproduce before fix. No repro = comment findings, label `agent:needs-info`, next issue. | | ||
| | Flake | Reproduce-before-fix is HARD. A fix without a reproduction or a mechanism is not dispatchable. | | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
| | Feature/refactor | Acceptance criteria enumerable as greps/tests. If not, groom: write them into the body via `gh issue edit`. | | ||
| | Question | Answer with evidence in a comment, label `agent:answered`, close if resolved. | | ||
|
|
||
| If grooming reveals the issue is already fixed on main, prove it (grep/test), comment, label `agent:already-resolved`, close. That counts as a completed lane. | ||
|
|
||
| ## Step 2: dispatch one agent | ||
|
|
||
| - Worktree per issue: flat name `issue-NNN` (no `+` in path), pinned base `origin/main`. Remind the agent: Bash cwd snaps back to repo root — pin absolute worktree paths in every command. | ||
| - Agent type by shape: `conciv-frontend` (Solid/ui-kit/widget UI), `conciv-implementer` (server/core, judgment needed), `conciv-mechanic` (fully-specced mechanical). Model per global rules: sonnet default; opus only for adversarial review or design-heavy contract work. State the model in the dispatch. | ||
| - Dispatch is definition-of-done shaped: acceptance criteria verbatim from the groomed issue, gates to run (`pnpm typecheck`, `turbo run test --filter=<pkg>` per touched package, `pnpm lint`, fallow audit), branch name, and: open a PR with `Fixes #NNN` in the body, never merge it. | ||
| - Label the issue `agent:in-progress` at dispatch; run in background, no blocking waits. | ||
|
|
||
| ## Step 3: verify and hand off | ||
|
|
||
| 1. Review the agent's full diff yourself. Judge mechanism, not just correctness. | ||
| 2. Re-run gates with `--force` (turbo cache greens are claims about old inputs). | ||
| 3. Non-trivial diff → run the conciv-review skill on the branch before calling it done. | ||
| 4. Confirm PR body carries `Fixes #NNN`, CI is green, then label the issue `agent:implemented-in-pr` and report the PR link to the user. The user merges; merge auto-closes the issue. | ||
|
|
||
| ## Red flags — stop the lane | ||
|
|
||
| - "I'll fix these three related issues in one PR" — one issue, one PR. | ||
| - "The bug is obvious, skip the reproduction" — no repro, no fix. | ||
| - "CI is green, I'll merge it" — user merges. Always. | ||
| - "The issue body says the code does X" — verify against main first; bodies rot. | ||
| - Closing an issue by hand when a PR exists — `Fixes #NNN` closes it on merge; manual close loses the audit trail. | ||
| - Working in the main repo checkout — every lane gets its own worktree. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Make the issue query support the stated selection order.
Line 17 does not return
assignees, so the orchestrator cannot identify unassigned issues. The limit of 60 and lack of explicit numeric ordering can also hide the smallest eligible issue when the backlog exceeds 60. Include assignment data, then retrieve and sort the complete candidate set before selecting an issue.🤖 Prompt for AI Agents