@brainervirus/workit-cursor 4.0.0 → 6.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.
Files changed (57) hide show
  1. package/.cursor-plugin/plugin.json +1 -1
  2. package/README.md +8 -8
  3. package/assets/templates/workit-contract.md +3 -2
  4. package/commands/wk-bdd.md +1 -3
  5. package/commands/wk-continue.md +5 -0
  6. package/commands/wk-debug.md +1 -3
  7. package/commands/wk-deslop.md +1 -3
  8. package/commands/wk-fanout.md +5 -0
  9. package/commands/wk-implement.md +1 -3
  10. package/commands/wk-review.md +1 -3
  11. package/commands/wk-shape.md +5 -0
  12. package/commands/wk-ship.md +5 -0
  13. package/commands/wk-test-audit.md +1 -3
  14. package/commands/wk-verify-app.md +5 -0
  15. package/dist/cursor-session-start.js +2729 -4438
  16. package/dist/mcp-server.js +2214 -3944
  17. package/dist/workit-hook.js +2442 -4190
  18. package/package.json +3 -3
  19. package/rules/workit-contract.mdc +17 -8
  20. package/skills/workit-bdd/SKILL.md +35 -29
  21. package/skills/workit-continue/SKILL.md +53 -0
  22. package/skills/workit-debug/SKILL.md +41 -36
  23. package/skills/workit-deslop/SKILL.md +35 -25
  24. package/skills/workit-fanout/SKILL.md +62 -0
  25. package/skills/workit-fanout/references/brief.md +56 -0
  26. package/skills/workit-implement/SKILL.md +48 -44
  27. package/skills/workit-review/SKILL.md +42 -51
  28. package/skills/workit-review/references/impact.md +24 -0
  29. package/skills/workit-shape/SKILL.md +71 -0
  30. package/skills/workit-shape/references/diagrams.md +17 -0
  31. package/skills/workit-shape/references/knowledge.md +58 -0
  32. package/skills/workit-shape/references/mockups.md +15 -0
  33. package/skills/workit-shape/references/slicing.md +42 -0
  34. package/skills/workit-ship/SKILL.md +52 -0
  35. package/skills/workit-test-audit/SKILL.md +10 -2
  36. package/skills/workit-verify-app/SKILL.md +63 -0
  37. package/skills/workit-verify-app/references/template.md +49 -0
  38. package/commands/wk-babysit.md +0 -7
  39. package/commands/wk-blast-radius.md +0 -7
  40. package/commands/wk-challenge.md +0 -7
  41. package/commands/wk-diagram.md +0 -7
  42. package/commands/wk-green-run.md +0 -7
  43. package/commands/wk-handoff.md +0 -7
  44. package/commands/wk-mockup.md +0 -7
  45. package/commands/wk-plan.md +0 -7
  46. package/commands/wk-steer.md +0 -7
  47. package/commands/wk-tdd.md +0 -7
  48. package/skills/workit-babysit/SKILL.md +0 -37
  49. package/skills/workit-behavioral-tdd/SKILL.md +0 -56
  50. package/skills/workit-blast-radius/SKILL.md +0 -26
  51. package/skills/workit-challenge/SKILL.md +0 -47
  52. package/skills/workit-diagram/SKILL.md +0 -27
  53. package/skills/workit-green-run/SKILL.md +0 -24
  54. package/skills/workit-handoff/SKILL.md +0 -37
  55. package/skills/workit-mockup/SKILL.md +0 -23
  56. package/skills/workit-plan/SKILL.md +0 -45
  57. package/skills/workit-steer/SKILL.md +0 -39
@@ -2,7 +2,7 @@
2
2
  "name": "workit",
3
3
  "displayName": "Workit",
4
4
  "description": "Adaptive Workit workflow with shared MCP tools and native Cursor hooks",
5
- "version": "4.0.0",
5
+ "version": "6.0.0",
6
6
  "author": {
7
7
  "name": "Cristhofer Pincetti"
8
8
  },
package/README.md CHANGED
@@ -45,13 +45,13 @@ npx @brainervirus/workit-cli init
45
45
 
46
46
  ## What it provides
47
47
 
48
- - MCP server exposing exactly the eight shared operation families: `workit_task`, `workit_policy`, `workit_evidence`, `workit_finding`, `workit_decision`, `workit_worker`, `workit_writer`, and `workit_state`.
48
+ - MCP server exposing the seven shared operation families: `workit_task`, `workit_policy`, `workit_evidence`, `workit_finding`, `workit_decision`, `workit_worker`, and `workit_state` (read-only for unattested callers; mutations run through `node_modules/.bin/workit <family> <action> --json [--actor <session-id>]`).
49
49
  - One bounded native hook executable for session context, recognized product-write and shell interception, and native subagent lifecycle observations.
50
- - Sixteen canonical `workit-*` method skills and the `workit-contract` rule.
50
+ - Eleven canonical `workit-*` method skills and the `workit-contract` rule.
51
51
 
52
52
  ## Host limitations
53
53
 
54
- Cursor maps shared Workit operations through the shared MCP transport. AskQuestion remains policy-only (`agent_guided`), session start and compaction are non-blocking, and arbitrary shell writes, Tab edits, and exact subagent stop identity are unavailable. Known Write/Edit/Delete targets are enforced only when the documented Cursor hook inputs prove them. Native subagent delegation is read-only for reviewer/investigator assignments; implementer delegation is unavailable because Cursor exposes no attested writer identity or stable child-stop identity.
54
+ Cursor maps shared Workit operations through the shared MCP transport. AskQuestion remains policy-only (`agent_guided`), session start and compaction are non-blocking, and arbitrary shell writes, Tab edits, and exact subagent stop identity are unavailable. Known Write/Edit/Delete targets are enforced only when the documented Cursor hook inputs prove them. Native subagent delegation is read-only for reviewer/investigator assignments; implementer delegation is unavailable because Cursor exposes no stable child-stop identity.
55
55
 
56
56
  ## Configuration
57
57
 
@@ -59,7 +59,7 @@ Cursor maps shared Workit operations through the shared MCP transport. AskQuesti
59
59
  - MCP server: `mcp.json`.
60
60
  - Session-start hook: `hooks/hooks-cursor.json`.
61
61
  - Rule: `rules/workit-contract.mdc`.
62
- - Skills: `skills/` (sixteen canonical Workit methods).
62
+ - Skills: `skills/` (eleven canonical Workit methods).
63
63
 
64
64
  ## Runtime
65
65
 
@@ -73,8 +73,8 @@ The runtime runs from `@latest` with `--prefer-online` and `--min-release-age=0`
73
73
 
74
74
  ## Capability boundaries
75
75
 
76
- - Authority-sensitive MCP mutations require an attested caller. A standalone or ordinary Cursor launch stays usable for read-only inspection and reports `capability_unavailable` for authority mutations.
77
- - Native hook enforcement is limited to documented inputs and blocking behavior. The plugin does not claim a `beforeMCPExecution` hook, cross-process receipts, delegation tokens, or automatic compaction restoration.
76
+ - MCP is read-only for unattested callers: a standalone or ordinary Cursor launch stays usable for inspection and reports `capability_unavailable` for mutations, which run through the CLI instead.
77
+ - Native hook enforcement is limited to documented inputs and blocking behavior. The plugin does not claim a `beforeMCPExecution` hook, delegation tokens, or automatic compaction restoration.
78
78
 
79
79
  ## Plugin layout
80
80
 
@@ -83,13 +83,13 @@ The runtime runs from `@latest` with `--prefer-online` and `--min-release-age=0`
83
83
  | `mcp/` + `dist/mcp-server.js` | MCP server entry (built). |
84
84
  | `hooks/` | session-start hook manifest. |
85
85
  | `rules/workit-contract.mdc` | Adaptive task contract and truthful Cursor capability limits. |
86
- | `skills/` | Sixteen canonical adaptive Workit method skills. |
86
+ | `skills/` | Eleven canonical adaptive Workit method skills. |
87
87
  | `.cursor-plugin/plugin.json` | authoritative plugin manifest. |
88
88
 
89
89
  ## Package scripts
90
90
 
91
91
  ```bash
92
- bun run build # bundle MCP + native hook entries and copy sixteen method skills
92
+ bun run build # bundle MCP + native hook entries and copy eleven method skills
93
93
  ```
94
94
 
95
95
  From the repository root, `bun run validate:cursor-marketplace` validates the tracked Marketplace artifact against the official Cursor JSON schemas and clean-checkout invariants (component paths, frontmatter, logo, sanitized vendor parity, no ignored-`dist` runtime references).
@@ -2,9 +2,10 @@
2
2
 
3
3
  Workit keeps one accountable lead and one shared task state. Inspect current
4
4
  task state before acting; use only the shared operations for task, policy,
5
- evidence, finding, decision, worker, writer, and state changes. Authority is
5
+ evidence, finding, decision, worker, and state changes. Authority is
6
6
  bounded by the requested scope, current revision, caller/session provenance, and
7
- observed capabilities. Never claim host enforcement or evidence that the host
7
+ observed capabilities; delivery is bounded by the workspace autonomy grants
8
+ (`workit grant show`). Never claim host enforcement or evidence that the host
8
9
  cannot provide. Preserve unresolved requirements, gaps, and uncertain workers.
9
10
 
10
11
  Focused methods are loaded only when the resolved policy requires them. A method
@@ -1,7 +1,5 @@
1
1
  # /wk-bdd
2
2
 
3
- Load and apply the bundled `workit-bdd` skill to turn the requirement into Given/When/Then scenarios, agreed seams and test names.
4
-
5
- Write scenarios first, test at the highest agreed seam, run each slice RED then GREEN with `workit check test` (workit-behavioral-tdd), mock only at system boundaries, and take expected values from the scenario.
3
+ Load and apply the bundled `workit-bdd` skill. Turn requirements into Given/When/Then scenarios, agree the test seam, and work test-first in vertical RED/GREEN slices. Use for BDD, TDD, acceptance criteria, scenarios, Given/When/Then, write a test first.
6
4
 
7
5
  Extra context: $ARGUMENTS
@@ -0,0 +1,5 @@
1
+ # /wk-continue
2
+
3
+ Load and apply the bundled `workit-continue` skill. Keep work on track across interruptions and sessions - sort new input, checkpoint, hand off with a resume brief, and pick up by verifying inherited claims. Use for resume, pick up, handoff, new session, interruption, change of direction.
4
+
5
+ Extra context: $ARGUMENTS
@@ -1,7 +1,5 @@
1
1
  # /wk-debug
2
2
 
3
- Load and apply the bundled `workit-debug` skill to the failing behavior.
4
-
5
- Build a loop that goes red on the exact failure before hypothesizing, trace to the root cause, fix at the shared root, and leave a regression test at the seam.
3
+ Load and apply the bundled `workit-debug` skill. Find a root cause before patching - start from a red-capable deterministic repro, rank hypotheses, bisect regressions, fix at the root with a regression test. Use for bug, broken, failing, flaky, regression, error, why does.
6
4
 
7
5
  Extra context: $ARGUMENTS
@@ -1,7 +1,5 @@
1
1
  # /wk-deslop
2
2
 
3
- Load and apply the bundled `workit-deslop` skill before opening a PR or after implementation.
4
-
5
- Remove AI slop from code and prose with a minimal diff: delete dead weight and filler, keep real symbol names and numbers, never refactor behavior.
3
+ Load and apply the bundled `workit-deslop` skill. Remove AI slop before a PR - dead code, comments that restate the code, filler prose - with a minimal diff and identical behavior. Use for deslop, clean up, slop, tidy before PR, remove dead code, trim the PR body.
6
4
 
7
5
  Extra context: $ARGUMENTS
@@ -0,0 +1,5 @@
1
+ # /wk-fanout
2
+
3
+ Load and apply the bundled `workit-fanout` skill. Run independent slices in parallel - one worker per isolated worktree with a fixed brief and file-scope manifest, a non-author verifier per slice, results in the ledger. Use for fan out, parallelize, parallel agents, split the work, delegate, swarm.
4
+
5
+ Extra context: $ARGUMENTS
@@ -1,7 +1,5 @@
1
1
  # /wk-implement
2
2
 
3
- Load and apply the bundled `workit-implement` skill to carry out the scoped task.
4
-
5
- Implement the smallest change behind the agreed scope, verify behavior with the relevant checks, and reconcile task state, evidence, and findings when done.
3
+ Load and apply the bundled `workit-implement` skill. Build a requested change in small verified steps - follow local patterns, run real checks with workit check, prove it on the running app, hand verification to a non-author. Use for implement, build, add a feature, make the change, code it.
6
4
 
7
5
  Extra context: $ARGUMENTS
@@ -1,7 +1,5 @@
1
1
  # /wk-review
2
2
 
3
- Load and apply the bundled `workit-review` skill to the current candidate.
4
-
5
- Review the real diff on two axes (standards + spec fidelity) with proof-required findings, then fix, dismiss with evidence, or escalate — never relabel self-review as independent.
3
+ Load and apply the bundled `workit-review` skill. Independent review of a diff, branch or PR - intent fidelity and standards as separate axes, test quality, blast radius - recorded as a non-author verdict. Use for review, code review, check this PR or MR, is this safe, blast radius.
6
4
 
7
5
  Extra context: $ARGUMENTS
@@ -0,0 +1,5 @@
1
+ # /wk-shape
2
+
3
+ Load and apply the bundled `workit-shape` skill. Shape work before building - brainstorm, grill open choices with a recommended answer, challenge weak premises, slice into PRs, propose a spec/ADR only when it pays. Use for brainstorm, plan, spec, design, options, should we, grill me.
4
+
5
+ Extra context: $ARGUMENTS
@@ -0,0 +1,5 @@
1
+ # /wk-ship
2
+
3
+ Load and apply the bundled `workit-ship` skill. Drive pushed work to its endpoint - open or stack PRs, fix red CI, answer PR threads, land verified PRs when granted. Use for ship, open a PR, babysit, CI failing, checks red, address comments, stack, merge, land.
4
+
5
+ Extra context: $ARGUMENTS
@@ -1,7 +1,5 @@
1
1
  # /wk-test-audit
2
2
 
3
- Load and apply the bundled `workit-test-audit` skill to find tautological and low-value tests.
4
-
5
- Run `workit test-audit`, triage each finding with "Name the Break" (replace with an independent oracle proven on a planted bug, keep with a reason, or remove only assertion-free/duplicate tests), check with `workit test-audit --mutate --diff`, and finish with `workit check test` green.
3
+ Load and apply the bundled `workit-test-audit` skill. Find tautological, low-value or noisy tests and replace them with ones that catch real breaks. Use before trusting a green suite, for agent-written tests, test audit, tautology, weak tests, prune or strengthen tests.
6
4
 
7
5
  Extra context: $ARGUMENTS
@@ -0,0 +1,5 @@
1
+ # /wk-verify-app
2
+
3
+ Load and apply the bundled `workit-verify-app` skill. Generate or maintain the project's own verify-<app> skill that launches, drives and observes the real app (CLI, web, API) so agents prove features work. Use for verify the app, run it, smoke test, prove it works, set up verification.
4
+
5
+ Extra context: $ARGUMENTS