claude-dev-env 1.86.1 → 1.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +4 -0
- package/agents/CLAUDE.md +1 -1
- package/agents/pr-description-writer.md +1 -1
- package/bin/install.mjs +1 -0
- package/hooks/blocking/CLAUDE.md +1 -1
- package/hooks/blocking/pr_description_enforcer.py +1 -1
- package/hooks/blocking/pr_description_readability.py +22 -24
- package/package.json +1 -1
- package/skills/CLAUDE.md +2 -0
- package/skills/advisor/SKILL.md +137 -0
- package/skills/advisor-refresh/SKILL.md +25 -0
- package/skills/autoconverge/SKILL.md +10 -3
- package/skills/autoconverge/reference/convergence.md +25 -5
- package/skills/autoconverge/workflow/converge.clean-audit.test.mjs +2 -2
- package/skills/autoconverge/workflow/converge.contract.test.mjs +176 -6
- package/skills/autoconverge/workflow/converge.copilot-gate.test.mjs +13 -13
- package/skills/autoconverge/workflow/converge.mjs +131 -83
- package/skills/bugteam/CONSTRAINTS.md +1 -1
- package/skills/bugteam/SKILL.md +1 -1
- package/skills/pr-loop-lifecycle/SKILL.md +2 -2
- package/skills/pr-loop-lifecycle/reference/teardown-publish-permissions.md +3 -16
- package/skills/qbug/SKILL.md +1 -1
|
@@ -35,26 +35,13 @@ When the run exits (any reason), run these steps in order from **this** session
|
|
|
35
35
|
|
|
36
36
|
After teardown and before permission revoke, the lead rewrites the PR body to the PR's **final cumulative state** — what the change delivers, not the loop's process. This is the **only** PR-write the lead performs (audit and fix comments stay with the agents that produced them).
|
|
37
37
|
|
|
38
|
-
The lead
|
|
39
|
-
|
|
40
|
-
`pr-description-writer` comes from the global git-workflow rule in `claude-code-config`. Invoke with `Agent`:
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
Agent(
|
|
44
|
-
subagent_type="pr-description-writer",
|
|
45
|
-
mode="bypassPermissions",
|
|
46
|
-
description="Rewrite PR <number> body from cumulative diff",
|
|
47
|
-
prompt="<brief from steps below>"
|
|
48
|
-
)
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
If that subagent is missing, fall back to `general-purpose` with the same brief — the hook treats agent-authored bodies the same. If neither exists, log a warning and skip this step.
|
|
38
|
+
The lead composes the body text directly against `docs/PR_DESCRIPTION_GUIDE.md` — no agent spawn — so the body passes the `pr_description_enforcer` hook's style audit on the `gh pr edit` that follows.
|
|
52
39
|
|
|
53
40
|
**Steps:**
|
|
54
41
|
|
|
55
42
|
1. Capture cumulative diff: `pull_request_read(method="get_diff", pullNumber=N, owner=O, repo=R)` → write the response text to `.<caller>-final.diff` using the `Write` tool.
|
|
56
43
|
2. Capture original body: `pull_request_read(method="get", pullNumber=N, owner=O, repo=R)` → extract `.body` from the response, write it to `.<caller>-original-body.md` using the `Write` tool.
|
|
57
|
-
3.
|
|
44
|
+
3. Compose the new body from those inputs:
|
|
58
45
|
- **Inputs:** diff path, original body path, head branch, base branch.
|
|
59
46
|
- **Constraint:** describe what the PR delivers from the cumulative diff — behavior, user-visible effect, merge rationale. Process metadata (loops, fix counts, findings) stays in review comments.
|
|
60
47
|
- **Preservation rule:** if the original body has manually curated sections (linked issues, screenshots, test plan, "Risk Assessment", etc.), preserve them verbatim and only rewrite narrative around them.
|
|
@@ -63,7 +50,7 @@ If that subagent is missing, fall back to `general-purpose` with the same brief
|
|
|
63
50
|
5. Publish the new body: `update_pull_request(pullNumber=N, owner=O, repo=R, body=<contents of .<caller>-final-body.md>)`.
|
|
64
51
|
6. Remove `.<caller>-final.diff`, `.<caller>-original-body.md`, `.<caller>-final-body.md`.
|
|
65
52
|
|
|
66
|
-
If this step fails (
|
|
53
|
+
If this step fails (hook block, network), report in the final report and continue to the revoke. The original PR body remains; commits and comments are unaffected.
|
|
67
54
|
|
|
68
55
|
## Revoke project permissions (mandatory, always)
|
|
69
56
|
|
package/skills/qbug/SKILL.md
CHANGED
|
@@ -326,7 +326,7 @@ comment body via `INLINE_COMMENT_BODY_TEMPLATE`):
|
|
|
326
326
|
|
|
327
327
|
## Step 3: PR description refresh (lead)
|
|
328
328
|
|
|
329
|
-
|
|
329
|
+
Compose the body directly against `docs/PR_DESCRIPTION_GUIDE.md` — no agent spawn — from the final PR diff and the original body. Apply via `update_pull_request(pullNumber=<number>, owner=<owner>, repo=<repo>, body=<new_body>)`.
|
|
330
330
|
|
|
331
331
|
On error exit paths: best-effort; log the failure in the final report and continue.
|
|
332
332
|
|