@brainervirus/workit-core 0.11.0 → 1.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 (150) hide show
  1. package/README.md +5 -3
  2. package/package.json +8 -3
  3. package/scripts/analyze-release-scope.ts +4 -1
  4. package/scripts/doctor-check.ts +3 -1
  5. package/scripts/install-codex-plugin.sh +28 -0
  6. package/scripts/install-cursor-plugin.sh +1 -0
  7. package/scripts/install-opencode-plugin.sh +1 -0
  8. package/scripts/install-pi-package.sh +56 -0
  9. package/scripts/rewrite-workspace-deps.ts +22 -5
  10. package/scripts/sync-release-manifests.ts +8 -5
  11. package/scripts/sync-runtime.sh +7 -3
  12. package/scripts/validate-cursor-marketplace.ts +16 -62
  13. package/skills/workit-babysit/SKILL.md +33 -0
  14. package/skills/workit-behavioral-tdd/SKILL.md +53 -0
  15. package/skills/workit-blast-radius/SKILL.md +31 -0
  16. package/skills/workit-challenge/SKILL.md +62 -0
  17. package/skills/workit-debug/SKILL.md +61 -0
  18. package/skills/workit-deslop/SKILL.md +36 -0
  19. package/skills/workit-diagram/SKILL.md +32 -0
  20. package/skills/workit-green-run/SKILL.md +29 -0
  21. package/skills/workit-handoff/SKILL.md +43 -0
  22. package/skills/workit-implement/SKILL.md +46 -0
  23. package/skills/workit-mockup/SKILL.md +28 -0
  24. package/skills/workit-plan/SKILL.md +66 -0
  25. package/skills/workit-review/SKILL.md +60 -0
  26. package/skills/workit-steer/SKILL.md +32 -0
  27. package/src/core/authority.ts +918 -0
  28. package/src/core/boundary.ts +29 -0
  29. package/src/core/branch.ts +26 -255
  30. package/src/core/changelog.ts +95 -18
  31. package/src/core/commit-flavors.ts +65 -0
  32. package/src/core/config-conversion.ts +183 -0
  33. package/src/core/config.ts +42 -0
  34. package/src/core/cutover.ts +721 -0
  35. package/src/core/detect-hosts.ts +107 -0
  36. package/src/core/doctor.ts +428 -18
  37. package/src/core/external-action-effects.ts +1171 -0
  38. package/src/core/external-action.ts +541 -0
  39. package/src/core/init.ts +83 -32
  40. package/src/core/methods.ts +125 -0
  41. package/src/core/policy-resolver.ts +523 -0
  42. package/src/core/pr-create.ts +7 -1
  43. package/src/core/registration.ts +69 -4
  44. package/src/core/repo-context.ts +59 -1
  45. package/src/core/setup.ts +28 -0
  46. package/src/core/skill-manifests.ts +40 -42
  47. package/src/core/support-matrix.ts +8 -3
  48. package/src/core/sync-runtime.ts +15 -3
  49. package/src/core/task-context.ts +179 -0
  50. package/src/core/task-contract.ts +1136 -0
  51. package/src/core/task-engine.ts +2562 -0
  52. package/src/core/task-evaluation.ts +679 -0
  53. package/src/core/task-store.ts +1071 -0
  54. package/src/core/tracker-issues.ts +237 -0
  55. package/src/core/uninstall.ts +67 -3
  56. package/src/core/vcs-config.ts +53 -22
  57. package/src/core/workers.ts +166 -0
  58. package/src/core/workspaces.ts +3 -1
  59. package/src/core/youtrack-tools.ts +2 -0
  60. package/src/core/youtrack.ts +145 -10
  61. package/src/core.ts +126 -0
  62. package/templates/execution-contract.md +17 -50
  63. package/templates/plan-template.md +3 -3
  64. package/templates/spec-template.md +15 -3
  65. package/templates/workit-contract.md +12 -0
  66. package/commands/wk-changelog.md +0 -2
  67. package/commands/wk-commit.md +0 -2
  68. package/commands/wk-docs-refresh.md +0 -2
  69. package/commands/wk-handoff.md +0 -2
  70. package/commands/wk-implement.md +0 -2
  71. package/commands/wk-init.md +0 -2
  72. package/commands/wk-issue-update.md +0 -2
  73. package/commands/wk-meetings.md +0 -2
  74. package/commands/wk-pr.md +0 -2
  75. package/commands/wk-release-notes.md +0 -2
  76. package/commands/wk-status.md +0 -2
  77. package/commands/wk-verify.md +0 -2
  78. package/scripts/update-superpowers.sh +0 -82
  79. package/scripts/vendor-assets.ts +0 -37
  80. package/skills/wk-changelog/SKILL.md +0 -15
  81. package/skills/wk-commit/SKILL.md +0 -16
  82. package/skills/wk-docs-refresh/SKILL.md +0 -15
  83. package/skills/wk-handoff/SKILL.md +0 -20
  84. package/skills/wk-implement/SKILL.md +0 -47
  85. package/skills/wk-init/SKILL.md +0 -31
  86. package/skills/wk-issue-update/SKILL.md +0 -27
  87. package/skills/wk-issue-update/references/youtrack-update-style.md +0 -81
  88. package/skills/wk-meetings/SKILL.md +0 -17
  89. package/skills/wk-pr/SKILL.md +0 -27
  90. package/skills/wk-release-notes/SKILL.md +0 -15
  91. package/skills/wk-status/SKILL.md +0 -16
  92. package/skills/wk-verify/SKILL.md +0 -16
  93. package/src/core/detector.ts +0 -239
  94. package/src/core/flow-state.ts +0 -3308
  95. package/src/core/handoff-context.ts +0 -136
  96. package/src/core/handoff-tools.ts +0 -133
  97. package/src/core/menu.ts +0 -70
  98. package/src/core/plan-tasks.ts +0 -43
  99. package/src/core/reminder.ts +0 -124
  100. package/src/core/sdd.ts +0 -353
  101. package/src/state.ts +0 -22
  102. package/templates/superpowers-doc-contract.md +0 -75
  103. package/vendor/superpowers/skills/brainstorming/SKILL.md +0 -159
  104. package/vendor/superpowers/skills/brainstorming/scripts/frame-template.html +0 -213
  105. package/vendor/superpowers/skills/brainstorming/scripts/helper.js +0 -167
  106. package/vendor/superpowers/skills/brainstorming/scripts/server.cjs +0 -723
  107. package/vendor/superpowers/skills/brainstorming/scripts/start-server.sh +0 -209
  108. package/vendor/superpowers/skills/brainstorming/scripts/stop-server.sh +0 -120
  109. package/vendor/superpowers/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
  110. package/vendor/superpowers/skills/brainstorming/visual-companion.md +0 -291
  111. package/vendor/superpowers/skills/dispatching-parallel-agents/SKILL.md +0 -185
  112. package/vendor/superpowers/skills/executing-plans/SKILL.md +0 -70
  113. package/vendor/superpowers/skills/finishing-a-development-branch/SKILL.md +0 -241
  114. package/vendor/superpowers/skills/receiving-code-review/SKILL.md +0 -213
  115. package/vendor/superpowers/skills/requesting-code-review/SKILL.md +0 -103
  116. package/vendor/superpowers/skills/requesting-code-review/code-reviewer.md +0 -172
  117. package/vendor/superpowers/skills/subagent-driven-development/SKILL.md +0 -428
  118. package/vendor/superpowers/skills/subagent-driven-development/implementer-prompt.md +0 -139
  119. package/vendor/superpowers/skills/subagent-driven-development/scripts/review-package +0 -44
  120. package/vendor/superpowers/skills/subagent-driven-development/scripts/sdd-workspace +0 -22
  121. package/vendor/superpowers/skills/subagent-driven-development/scripts/task-brief +0 -40
  122. package/vendor/superpowers/skills/subagent-driven-development/task-reviewer-prompt.md +0 -188
  123. package/vendor/superpowers/skills/systematic-debugging/CREATION-LOG.md +0 -119
  124. package/vendor/superpowers/skills/systematic-debugging/SKILL.md +0 -296
  125. package/vendor/superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +0 -158
  126. package/vendor/superpowers/skills/systematic-debugging/condition-based-waiting.md +0 -115
  127. package/vendor/superpowers/skills/systematic-debugging/defense-in-depth.md +0 -122
  128. package/vendor/superpowers/skills/systematic-debugging/find-polluter.sh +0 -63
  129. package/vendor/superpowers/skills/systematic-debugging/root-cause-tracing.md +0 -169
  130. package/vendor/superpowers/skills/systematic-debugging/test-academic.md +0 -14
  131. package/vendor/superpowers/skills/systematic-debugging/test-pressure-1.md +0 -58
  132. package/vendor/superpowers/skills/systematic-debugging/test-pressure-2.md +0 -68
  133. package/vendor/superpowers/skills/systematic-debugging/test-pressure-3.md +0 -69
  134. package/vendor/superpowers/skills/test-driven-development/SKILL.md +0 -371
  135. package/vendor/superpowers/skills/test-driven-development/testing-anti-patterns.md +0 -299
  136. package/vendor/superpowers/skills/using-git-worktrees/SKILL.md +0 -202
  137. package/vendor/superpowers/skills/using-superpowers/SKILL.md +0 -62
  138. package/vendor/superpowers/skills/using-superpowers/references/antigravity-tools.md +0 -23
  139. package/vendor/superpowers/skills/using-superpowers/references/codex-tools.md +0 -39
  140. package/vendor/superpowers/skills/using-superpowers/references/pi-tools.md +0 -16
  141. package/vendor/superpowers/skills/verification-before-completion/SKILL.md +0 -139
  142. package/vendor/superpowers/skills/writing-plans/SKILL.md +0 -174
  143. package/vendor/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
  144. package/vendor/superpowers/skills/writing-skills/SKILL.md +0 -689
  145. package/vendor/superpowers/skills/writing-skills/anthropic-best-practices.md +0 -1150
  146. package/vendor/superpowers/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -189
  147. package/vendor/superpowers/skills/writing-skills/graphviz-conventions.dot +0 -172
  148. package/vendor/superpowers/skills/writing-skills/persuasion-principles.md +0 -187
  149. package/vendor/superpowers/skills/writing-skills/render-graphs.js +0 -168
  150. package/vendor/superpowers/skills/writing-skills/testing-skills-with-subagents.md +0 -384
@@ -1,103 +0,0 @@
1
- ---
2
- name: requesting-code-review
3
- description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements
4
- ---
5
-
6
- # Requesting Code Review
7
-
8
- Dispatch a code reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.
9
-
10
- **Core principle:** Review early, review often.
11
-
12
- ## When to Request Review
13
-
14
- **Mandatory:**
15
- - After each task in subagent-driven development
16
- - After completing major feature
17
- - Before merge to main
18
-
19
- **Optional but valuable:**
20
- - When stuck (fresh perspective)
21
- - Before refactoring (baseline check)
22
- - After fixing complex bug
23
-
24
- ## How to Request
25
-
26
- **1. Get git SHAs:**
27
- ```bash
28
- BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
29
- HEAD_SHA=$(git rev-parse HEAD)
30
- ```
31
-
32
- **2. Dispatch code reviewer subagent:**
33
-
34
- Dispatch a `general-purpose` subagent, filling the template at [code-reviewer.md](code-reviewer.md)
35
-
36
- **Placeholders:**
37
- - `{DESCRIPTION}` - Brief summary of what you built
38
- - `{PLAN_OR_REQUIREMENTS}` - What it should do
39
- - `{BASE_SHA}` - Starting commit
40
- - `{HEAD_SHA}` - Ending commit
41
-
42
- **3. Act on feedback:**
43
- - Fix Critical issues immediately
44
- - Fix Important issues before proceeding
45
- - Note Minor issues for later
46
- - Push back if reviewer is wrong (with reasoning)
47
-
48
- ## Example
49
-
50
- ```
51
- [Just completed Task 2: Add verification function]
52
-
53
- You: Let me request code review before proceeding.
54
-
55
- BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
56
- HEAD_SHA=$(git rev-parse HEAD)
57
-
58
- [Dispatch code reviewer subagent]
59
- DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
60
- PLAN_OR_REQUIREMENTS: Task 2 from docs/deployment-plan/plan.md
61
- BASE_SHA: a7981ec
62
- HEAD_SHA: 3df7661
63
-
64
- [Subagent returns]:
65
- Strengths: Clean architecture, real tests
66
- Issues:
67
- Important: Missing progress indicators
68
- Minor: Magic number (100) for reporting interval
69
- Assessment: Ready to proceed
70
-
71
- You: [Fix progress indicators]
72
- [Continue to Task 3]
73
- ```
74
-
75
- ## Integration with Workflows
76
-
77
- **Subagent-Driven Development:**
78
- - Review after EACH task
79
- - Catch issues before they compound
80
- - Fix before moving to next task
81
-
82
- **Executing Plans:**
83
- - Review after each task or at natural checkpoints
84
- - Get feedback, apply, continue
85
-
86
- **Ad-Hoc Development:**
87
- - Review before merge
88
- - Review when stuck
89
-
90
- ## Red Flags
91
-
92
- **Never:**
93
- - Skip review because "it's simple"
94
- - Ignore Critical issues
95
- - Proceed with unfixed Important issues
96
- - Argue with valid technical feedback
97
-
98
- **If reviewer wrong:**
99
- - Push back with technical reasoning
100
- - Show code/tests that prove it works
101
- - Request clarification
102
-
103
- See template at: [code-reviewer.md](code-reviewer.md)
@@ -1,172 +0,0 @@
1
- # Code Reviewer Prompt Template
2
-
3
- Use this template when dispatching a code reviewer subagent.
4
-
5
- **Purpose:** Review completed work against requirements and code quality standards before it cascades into more work.
6
-
7
- ```
8
- Subagent (general-purpose):
9
- description: "Review code changes"
10
- prompt: |
11
- You are a Senior Code Reviewer with expertise in software architecture,
12
- design patterns, and best practices. Your job is to review completed work
13
- against its plan or requirements and identify issues before they cascade.
14
-
15
- ## What Was Implemented
16
-
17
- [DESCRIPTION]
18
-
19
- ## Requirements / Plan
20
-
21
- [PLAN_OR_REQUIREMENTS]
22
-
23
- ## Git Range to Review
24
-
25
- **Base:** [BASE_SHA]
26
- **Head:** [HEAD_SHA]
27
-
28
- ```bash
29
- git diff --stat [BASE_SHA]..[HEAD_SHA]
30
- git diff [BASE_SHA]..[HEAD_SHA]
31
- ```
32
-
33
- ## Read-Only Review
34
-
35
- Your review is read-only on this checkout. Do not mutate the working tree, the index, HEAD, or branch state in any way. Use tools like `git show`, `git diff`, and `git log` to inspect history. If you need a working copy of a different revision, check it out into a separate temporary directory (e.g. `git worktree add /tmp/review-[SHA] [SHA]`) — never move HEAD on this checkout.
36
-
37
- ## What to Check
38
-
39
- **Plan alignment:**
40
- - Does the implementation match the plan / requirements?
41
- - Are deviations justified improvements, or problematic departures?
42
- - Is all planned functionality present?
43
-
44
- **Code quality:**
45
- - Clean separation of concerns?
46
- - Proper error handling?
47
- - Type safety where applicable?
48
- - DRY without premature abstraction?
49
- - Edge cases handled?
50
-
51
- **Architecture:**
52
- - Sound design decisions?
53
- - Reasonable scalability and performance?
54
- - Security concerns?
55
- - Integrates cleanly with surrounding code?
56
-
57
- **Testing:**
58
- - Tests verify real behavior, not mocks?
59
- - Edge cases covered?
60
- - Integration tests where they matter?
61
- - All tests passing?
62
-
63
- **Production readiness:**
64
- - Migration strategy if schema changed?
65
- - Backward compatibility considered?
66
- - Documentation complete?
67
- - No obvious bugs?
68
-
69
- ## Calibration
70
-
71
- Categorize issues by actual severity. Not everything is Critical.
72
- Acknowledge what was done well before listing issues — accurate praise
73
- helps the implementer trust the rest of the feedback.
74
-
75
- If you find significant deviations from the plan, flag them specifically
76
- so the implementer can confirm whether the deviation was intentional.
77
- If you find issues with the plan itself rather than the implementation,
78
- say so.
79
-
80
- ## Output Format
81
-
82
- ### Strengths
83
- [What's well done? Be specific.]
84
-
85
- ### Issues
86
-
87
- #### Critical (Must Fix)
88
- [Bugs, security issues, data loss risks, broken functionality]
89
-
90
- #### Important (Should Fix)
91
- [Architecture problems, missing features, poor error handling, test gaps]
92
-
93
- #### Minor (Nice to Have)
94
- [Code style, optimization opportunities, documentation polish]
95
-
96
- For each issue:
97
- - File:line reference
98
- - What's wrong
99
- - Why it matters
100
- - How to fix (if not obvious)
101
-
102
- ### Recommendations
103
- [Improvements for code quality, architecture, or process]
104
-
105
- ### Assessment
106
-
107
- **Ready to merge?** [Yes | No | With fixes]
108
-
109
- **Reasoning:** [1-2 sentence technical assessment]
110
-
111
- ## Critical Rules
112
-
113
- **DO:**
114
- - Categorize by actual severity
115
- - Be specific (file:line, not vague)
116
- - Explain WHY each issue matters
117
- - Acknowledge strengths
118
- - Give a clear verdict
119
-
120
- **DON'T:**
121
- - Say "looks good" without checking
122
- - Mark nitpicks as Critical
123
- - Give feedback on code you didn't actually read
124
- - Be vague ("improve error handling")
125
- - Avoid giving a clear verdict
126
- ```
127
-
128
- **Placeholders:**
129
- - `[DESCRIPTION]` — brief summary of what was built
130
- - `[PLAN_OR_REQUIREMENTS]` — what it should do (plan file path, task text, or requirements)
131
- - `[BASE_SHA]` — starting commit
132
- - `[HEAD_SHA]` — ending commit
133
-
134
- **Reviewer returns:** Strengths, Issues (Critical / Important / Minor), Recommendations, Assessment
135
-
136
- ## Example Output
137
-
138
- ```
139
- ### Strengths
140
- - Clean database schema with proper migrations (db.ts:15-42)
141
- - Comprehensive test coverage (18 tests, all edge cases)
142
- - Good error handling with fallbacks (summarizer.ts:85-92)
143
-
144
- ### Issues
145
-
146
- #### Important
147
- 1. **Missing help text in CLI wrapper**
148
- - File: index-conversations:1-31
149
- - Issue: No --help flag, users won't discover --concurrency
150
- - Fix: Add --help case with usage examples
151
-
152
- 2. **Date validation missing**
153
- - File: search.ts:25-27
154
- - Issue: Invalid dates silently return no results
155
- - Fix: Validate ISO format, throw error with example
156
-
157
- #### Minor
158
- 1. **Progress indicators**
159
- - File: indexer.ts:130
160
- - Issue: No "X of Y" counter for long operations
161
- - Impact: Users don't know how long to wait
162
-
163
- ### Recommendations
164
- - Add progress reporting for user experience
165
- - Consider config file for excluded projects (portability)
166
-
167
- ### Assessment
168
-
169
- **Ready to merge: With fixes**
170
-
171
- **Reasoning:** Core implementation is solid with good architecture and tests. Important issues (help text, date validation) are easily fixed and don't affect core functionality.
172
- ```