feat(kvb-git): add pr-create, pr-label and issue-solve; rename close-issues to issue-close

kvb-git-pr-create opens a pull request for the current branch: it assesses the branch, hands the push to the operator (gipsn) and waits until git ls-remote shows the head, writes a body with one Closes line per verified issue, confirms once, and opens it ready at the kvb-org-split bar or as a draft below it, then runs kvb-git-pr-label. kvb-git-pr-label sets hotfix on a pull request that targets the default branch and fixes a failure there, and 90/5 once it meets the split bar, each with its evidence, creating the labels once and marking a draft ready when it gains 90/5. kvb-git-issue-solve solves open issues one sidetree each through kvb-org-split, skipping fixed ones and those a peer already works on, and opens one pull request per issue.

kvb-git-close-issues becomes kvb-git-issue-close, following the kvb-git-<object>-<verb> scheme: with a pull request it works as before; without one it covers every open issue, and the new done.py lists the default-branch commits that reference each (one git log, foreign repositories excluded). tests/test_close_issues.py moves to tests/test_issue_close.py and gains TestDone on a temporary repository. Six skill descriptions are shortened, keeping their triggers, so the listing stays within its 1500-word budget (1517 to 1493).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-04 17:07:22 +01:00
1 parent 32f58712e5
commit f815060584
16 files changed
+399 -134

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
---
name: kvb-git-pr-label
description: >
Label pull requests `hotfix` and `90/5` from evidence. Trigger on
/kvb-git-pr-label [pr]; kvb-git-pr-create runs it.
---
Two labels, each set only with its evidence and removed when it no longer
holds:
- **`hotfix`**: the pull request targets the default branch and fixes a
failure on it, a red default-branch run or an issue that reproduces there;
name the run or issue.
- **`90/5`**: the pull request meets the bar of the `kvb-org-split` skill (fix
confidence of at least 90 %, break risk under 5 %), from the
`kvb-check-confidence` numbers in its body or freshly assessed.
## Procedure
1. Target: the pull request named, else the current branch's (`gh pr view
--json number,baseRefName,headRefName,isDraft,labels,body`); the default
branch from `gh repo view --json defaultBranchRef`.
2. Judge both labels with their evidence.
3. A missing label is created once: `gh label create hotfix --color B60205
--description "Fixes a failure on the default branch"`, `gh label create
90/5 --color 0E8A16 --description "Fix confidence >= 90 %, break risk < 5 %"`.
4. Standalone, confirm the changes with one `AskUserQuestion`; from
`kvb-git-pr-create`, its confirmation covers them.
5. `gh pr edit <pr> --add-label <l>` or `--remove-label <l>`. A draft that
gains `90/5` also gets `gh pr ready <pr>`.
## Output
| PR | Label | Change | Evidence |