@brainervirus/workit-claude-code 6.0.0 → 7.0.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-plugin/plugin.json +1 -1
- package/README.md +8 -5
- package/bin/workit-hook.mjs +62 -4
- package/dist/workit-hook.js +69 -60
- package/dist/workit.js +58190 -57713
- package/hooks/hooks.json +12 -3
- package/package.json +3 -3
- package/skills/deslop/SKILL.md +1 -1
- package/skills/implement/SKILL.md +9 -4
- package/skills/review/SKILL.md +2 -0
- package/skills/shape/SKILL.md +1 -1
- package/skills/ship/SKILL.md +1 -1
package/hooks/hooks.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "Workit host hooks: task context on session start (incl. compaction restore and forks) and when it changes per turn, branch policy on git shell commands, and worktree guidance for subagents. Only events that change Claude's behavior are registered.",
|
|
2
|
+
"description": "Workit host hooks: task context on session start (incl. compaction restore and forks) and when it changes per turn, branch policy on git shell commands, the before-write gate on file edits and shell writes, and worktree guidance for subagents. Only events that change Claude's behavior are registered.",
|
|
3
3
|
"hooks": {
|
|
4
4
|
"SessionStart": [
|
|
5
5
|
{
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"hooks": [
|
|
33
33
|
{
|
|
34
34
|
"type": "command",
|
|
35
|
-
"if": "Bash(git *)",
|
|
36
35
|
"command": "node",
|
|
37
36
|
"args": ["${CLAUDE_PLUGIN_ROOT}/bin/workit-hook.mjs"],
|
|
38
37
|
"timeout": 5
|
|
@@ -44,7 +43,17 @@
|
|
|
44
43
|
"hooks": [
|
|
45
44
|
{
|
|
46
45
|
"type": "command",
|
|
47
|
-
"
|
|
46
|
+
"command": "node",
|
|
47
|
+
"args": ["${CLAUDE_PLUGIN_ROOT}/bin/workit-hook.mjs"],
|
|
48
|
+
"timeout": 5
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"matcher": "Edit|Write|MultiEdit|NotebookEdit",
|
|
54
|
+
"hooks": [
|
|
55
|
+
{
|
|
56
|
+
"type": "command",
|
|
48
57
|
"command": "node",
|
|
49
58
|
"args": ["${CLAUDE_PLUGIN_ROOT}/bin/workit-hook.mjs"],
|
|
50
59
|
"timeout": 5
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-claude-code",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit Claude Code plugin — session and per-turn task context, branch policy on git shell commands, workit method skills, and verifier/reviewer/implementer agents",
|
|
6
6
|
"keywords": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"build": "bun scripts/build.ts"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@brainervirus/workit-cli": "^
|
|
43
|
-
"@brainervirus/workit-core": "^
|
|
42
|
+
"@brainervirus/workit-cli": "^7.0.0",
|
|
43
|
+
"@brainervirus/workit-core": "^7.0.0"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=24"
|
package/skills/deslop/SKILL.md
CHANGED
|
@@ -22,7 +22,7 @@ behavior. A change that wants new behavior is its own change.
|
|
|
22
22
|
validator that changes behavior is not deslop.
|
|
23
23
|
5. **Re-run the checks** and report lines removed, not lines written. Nothing
|
|
24
24
|
to clean is a valid result: say what you checked ("0 removals; ran knip and
|
|
25
|
-
read the diff"). When a tracked task lists a `pre-pr-cleanup` requirement,
|
|
25
|
+
read the diff"). When a tracked task lists a `pre-pr-cleanup` requirement (≤6.x tasks),
|
|
26
26
|
record this result as its evidence.
|
|
27
27
|
|
|
28
28
|
## Example
|
|
@@ -11,6 +11,9 @@ description: Build a requested change in small verified steps - follow local pat
|
|
|
11
11
|
neighbour that already does something similar. Copy its patterns, names and
|
|
12
12
|
error handling. Repo rules (AGENTS.md, CLAUDE.md, lint config) win.
|
|
13
13
|
2. On the default branch? Branch first: `workit git branch --kind feature --slug <s>`.
|
|
14
|
+
Tracking it? Judge once: `workit policy assess --judge risk=normal
|
|
15
|
+
behavior=yes product-choice=no plan=no` (trivial and no for a mechanical
|
|
16
|
+
fix); Workit derives what close needs.
|
|
14
17
|
3. Small steps that each leave the tree green. Behavior change: write the
|
|
15
18
|
acceptance as Given/When/Then and see a test fail first (workit-bdd).
|
|
16
19
|
Mechanical change: the existing checks are enough.
|
|
@@ -24,10 +27,12 @@ description: Build a requested change in small verified steps - follow local pat
|
|
|
24
27
|
PR (`workit git push`, `workit pr create --fill`, then workit-ship) only when
|
|
25
28
|
that was requested, or the request implies delivery and `workit grant show`
|
|
26
29
|
reports `defaultEndpoint` `pr`; otherwise the endpoint is `commit`.
|
|
27
|
-
7.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
7. Verify. Normal risk: after `workit check test` passes, record your own
|
|
31
|
+
`workit ledger verdict tests-verified --self --how "<what you ran>"`; it
|
|
32
|
+
reads self-reviewed, never verified. High risk, a workspace with
|
|
33
|
+
`verification: independent` (`workit grant show`) or a verified merge needs
|
|
34
|
+
a fresh verifier with its own session (`WORKIT_SESSION_ID=<yours>-v1`;
|
|
35
|
+
Claude Code: the `verifier` agent). Before saying done, reconcile
|
|
31
36
|
every named deliverable against the target checkout and observe it (for a push:
|
|
32
37
|
`workit verify-delivery push`).
|
|
33
38
|
|
package/skills/review/SKILL.md
CHANGED
|
@@ -8,6 +8,8 @@ description: Independent review of a diff, branch or PR - intent fidelity and st
|
|
|
8
8
|
Review the candidate, never the author's summary of it. A session that wrote a
|
|
9
9
|
commit on the branch cannot record a passing verdict: if that is you, hand the
|
|
10
10
|
review to a fresh agent (Claude Code: the `reviewer` or `verifier` agent).
|
|
11
|
+
An author's `--self` verdict reads self-reviewed and never counts as
|
|
12
|
+
independent; `type-check-only` never proves a behavior change.
|
|
11
13
|
|
|
12
14
|
1. Pin the candidate: `git rev-parse HEAD`, the base, `git diff <base>...HEAD`;
|
|
13
15
|
for a PR, `workit pr status --json` (checks, unresolved threads).
|
package/skills/shape/SKILL.md
CHANGED
|
@@ -43,7 +43,7 @@ a choice that is hard to reverse, surprising and a real trade-off; a glossary
|
|
|
43
43
|
entry for a term you had to resolve; `.out-of-scope/<concept>.md` for a rejected
|
|
44
44
|
request that will come back. A one-file mechanical fix gets none. Formats and
|
|
45
45
|
triggers: `references/knowledge.md`. Record each settled choice once:
|
|
46
|
-
`workit ledger decision "<what>" --why "<why>"
|
|
46
|
+
`workit ledger decision "<what>" --why "<why>"`; cite a plan: `workit policy assess --ref <path>`.
|
|
47
47
|
|
|
48
48
|
## 5. Slice as tracer bullets
|
|
49
49
|
|
package/skills/ship/SKILL.md
CHANGED
|
@@ -33,7 +33,7 @@ merge: Stop at PR-ready unless the user set merge as the endpoint.
|
|
|
33
33
|
`workit ci rerun --failed --reason flake` (once per head). Real: reproduce
|
|
34
34
|
with `workit check`, fix the root cause, batch fixes into one push.
|
|
35
35
|
6. **Verified.** After the last push a non-author records a verdict
|
|
36
|
-
(workit-review). Land only when granted: `workit stack land` (the
|
|
36
|
+
(workit-review); `pr status` showing self-reviewed is not verified. Land only when granted: `workit stack land` (the
|
|
37
37
|
contiguous verified run from the root) or `workit pr merge`.
|
|
38
38
|
7. **Observe it landed:** `workit verify-delivery pr` or `merge`.
|
|
39
39
|
|