@sylix/coworker 1.3.0 → 1.4.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 (84) hide show
  1. package/dist/cli/index.d.ts.map +1 -1
  2. package/dist/cli/index.js +184 -292
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/commands/slash/advanced.d.ts +3 -0
  5. package/dist/commands/slash/advanced.d.ts.map +1 -0
  6. package/dist/commands/slash/advanced.js +225 -0
  7. package/dist/commands/slash/advanced.js.map +1 -0
  8. package/dist/commands/slash/config.d.ts +3 -0
  9. package/dist/commands/slash/config.d.ts.map +1 -0
  10. package/dist/commands/slash/config.js +161 -0
  11. package/dist/commands/slash/config.js.map +1 -0
  12. package/dist/commands/slash/context.d.ts +3 -0
  13. package/dist/commands/slash/context.d.ts.map +1 -0
  14. package/dist/commands/slash/context.js +127 -0
  15. package/dist/commands/slash/context.js.map +1 -0
  16. package/dist/commands/slash/core.d.ts +3 -0
  17. package/dist/commands/slash/core.d.ts.map +1 -0
  18. package/dist/commands/slash/core.js +112 -0
  19. package/dist/commands/slash/core.js.map +1 -0
  20. package/dist/commands/slash/developer.d.ts +3 -0
  21. package/dist/commands/slash/developer.d.ts.map +1 -0
  22. package/dist/commands/slash/developer.js +174 -0
  23. package/dist/commands/slash/developer.js.map +1 -0
  24. package/dist/commands/slash/files.d.ts +3 -0
  25. package/dist/commands/slash/files.d.ts.map +1 -0
  26. package/dist/commands/slash/files.js +216 -0
  27. package/dist/commands/slash/files.js.map +1 -0
  28. package/dist/commands/slash/registry.d.ts +36 -0
  29. package/dist/commands/slash/registry.d.ts.map +1 -0
  30. package/dist/commands/slash/registry.js +69 -0
  31. package/dist/commands/slash/registry.js.map +1 -0
  32. package/dist/commands/slash/session.d.ts +3 -0
  33. package/dist/commands/slash/session.d.ts.map +1 -0
  34. package/dist/commands/slash/session.js +144 -0
  35. package/dist/commands/slash/session.js.map +1 -0
  36. package/dist/core/CoWorkerAgent.d.ts +8 -5
  37. package/dist/core/CoWorkerAgent.d.ts.map +1 -1
  38. package/dist/core/CoWorkerAgent.js +171 -52
  39. package/dist/core/CoWorkerAgent.js.map +1 -1
  40. package/dist/session/SessionManager.js +10 -5
  41. package/dist/session/SessionManager.js.map +1 -1
  42. package/dist/skills/HookAndSkillManager.d.ts +7 -2
  43. package/dist/skills/HookAndSkillManager.d.ts.map +1 -1
  44. package/dist/skills/HookAndSkillManager.js +35 -8
  45. package/dist/skills/HookAndSkillManager.js.map +1 -1
  46. package/dist/skills/defaults/brainstorming.md +43 -0
  47. package/dist/skills/defaults/commit.md +37 -0
  48. package/dist/skills/defaults/executing-plans.md +41 -0
  49. package/dist/skills/defaults/finishing-a-development-branch.md +35 -0
  50. package/dist/skills/defaults/receiving-code-review.md +40 -0
  51. package/dist/skills/defaults/requesting-code-review.md +43 -0
  52. package/dist/skills/defaults/review.md +50 -0
  53. package/dist/skills/defaults/subagent-driven-development.md +55 -0
  54. package/dist/skills/defaults/systematic-debugging.md +93 -0
  55. package/dist/skills/defaults/test-driven-development.md +97 -0
  56. package/dist/skills/defaults/using-git-worktrees.md +36 -0
  57. package/dist/skills/defaults/verification-before-completion.md +47 -0
  58. package/dist/skills/defaults/writing-plans.md +84 -0
  59. package/dist/skills/defaults/writing-skills.md +46 -0
  60. package/dist/tools/NativeTools.d.ts +0 -4
  61. package/dist/tools/NativeTools.d.ts.map +1 -1
  62. package/dist/tools/NativeTools.js +50 -10
  63. package/dist/tools/NativeTools.js.map +1 -1
  64. package/dist/utils/conversations.d.ts +14 -0
  65. package/dist/utils/conversations.d.ts.map +1 -0
  66. package/dist/utils/conversations.js +100 -0
  67. package/dist/utils/conversations.js.map +1 -0
  68. package/dist/utils/inputbar.d.ts +87 -0
  69. package/dist/utils/inputbar.d.ts.map +1 -0
  70. package/dist/utils/inputbar.js +263 -0
  71. package/dist/utils/inputbar.js.map +1 -0
  72. package/dist/utils/output.d.ts +48 -42
  73. package/dist/utils/output.d.ts.map +1 -1
  74. package/dist/utils/output.js +245 -186
  75. package/dist/utils/output.js.map +1 -1
  76. package/dist/utils/palette.d.ts +25 -0
  77. package/dist/utils/palette.d.ts.map +1 -0
  78. package/dist/utils/palette.js +92 -0
  79. package/dist/utils/palette.js.map +1 -0
  80. package/dist/utils/welcome.d.ts +2 -0
  81. package/dist/utils/welcome.d.ts.map +1 -0
  82. package/dist/utils/welcome.js +130 -0
  83. package/dist/utils/welcome.js.map +1 -0
  84. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"HookAndSkillManager.js","sourceRoot":"","sources":["../../src/skills/HookAndSkillManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAsC;AACtC,gDAAkC;AAClC,2CAA6B;AAC7B,iDAAyC;AAqBzC;;;;;;;;;GASG;AACH,MAAa,mBAAmB;IAS9B;QARQ,WAAM,GAAG,IAAI,qBAAY,EAAE,CAAC;QAC7B,iBAAY,GAAuB,IAAI,GAAG,EAAE,CAAC;QAC7C,iBAAY,GAAuB,EAAE,CAAC;QACtC,kBAAa,GAAuB,EAAE,CAAC;QAE9C,yEAAyE;QAClE,mBAAc,GAA4B,IAAI,CAAC;QAGpD,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC/B,CAAC;IAEO,qBAAqB;QAC3B,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,QAAgB,EAAE,IAAyB,EAAE,OAAmB,EAAE,MAA0B,EAAE,EAAE;YAClI,MAAM,aAAa,GAAG,GAAG,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;YAE7D,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;gBACpC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;oBACpC,OAAO,CAAC,GAAG,CAAC,sCAAsC,QAAQ,2BAA2B,IAAI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YAAY,CAAC,OAAO,EAAE,EAAE,CAAC;YACxD,OAAO,IAAI,MAAM,IAAI,KAAK,KAAK,CAAC,WAAW,IAAI,CAAC;QAClD,CAAC;QACD,OAAO,IAAI,oJAAoJ,CAAC;QAChK,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AArSD,kDAqSC"}
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: brainstorming
3
+ description: "You MUST use this before any creative work - creating features, building components, or adding functionality. Explores requirements and design before implementation."
4
+ ---
5
+
6
+ # Brainstorming — CoWorker Edition
7
+
8
+ ## Overview
9
+
10
+ Help turn ideas into fully formed designs and specs through collaborative dialogue.
11
+
12
+ **Announce at start:** "I'm using the brainstorming skill to explore this idea."
13
+
14
+ ## The Process
15
+
16
+ ### 1. Explore Context
17
+ - Check existing files, docs, and recent commits using `executeLS`, `executeRead`, and `gitDiff`.
18
+
19
+ ### 2. Enter Plan Mode
20
+ - **MANDATORY:** Call `enterPlanMode()` to safely brainstorm without accidental edits.
21
+
22
+ ### 3. Collaborative Refinement
23
+ - Ask clarifying questions one at a time.
24
+ - Propose 2-3 different approaches with trade-offs.
25
+ - Present the design in sections and get user approval.
26
+
27
+ ### 4. Write Design Doc (Spec)
28
+ - Once the design is approved, use `executeWrite` to save to `.coworker/specs/YYYY-MM-DD-<topic>-design.md`.
29
+ - **Self-Review:** Check the spec for placeholders (TBD, TODO) or ambiguities.
30
+
31
+ ### 5. Transition to Planning
32
+ - Call `exitPlanMode()` once the design is finalized and approved.
33
+ - Invoke the `writing-plans` skill to create a detailed implementation plan.
34
+
35
+ ## Hard Gate
36
+
37
+ **Do NOT** write any implementation code or take any mutation action (except writing the spec) until the design is approved by the user.
38
+
39
+ ## Key Principles
40
+ - **One question at a time.**
41
+ - **YAGNI ruthlessly.**
42
+ - **Explore alternatives before settling.**
43
+ - **Incremental validation.**
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: commit
3
+ description: Generate a conventional commit message from the current git diff using AI.
4
+ ---
5
+
6
+ # /commit — AI Commit Message Generator
7
+
8
+ Generates a conventional commit message from your staged or unstaged changes.
9
+
10
+ ## What it does
11
+ 1. Checks `git diff --staged` for staged changes
12
+ 2. Falls back to `git diff HEAD` if nothing is staged
13
+ 3. Sends the diff to the AI with instructions to generate a conventional commit message
14
+ 4. Shows the suggested message in a styled commit box
15
+ 5. Asks you to confirm, edit, or reject
16
+
17
+ ## Usage
18
+ ```
19
+ /commit
20
+ ```
21
+
22
+ ## Commit Format
23
+ Uses conventional commits: `type(scope): description`
24
+
25
+ Types: `feat`, `fix`, `refactor`, `docs`, `style`, `test`, `chore`, `build`, `ci`, `perf`
26
+
27
+ ## Flow
28
+ ```
29
+ ┌─ suggested commit ───────────────────╮
30
+ │ │
31
+ │ feat(auth): add OAuth device flow │
32
+ │ │
33
+ ╰──────────────────────────────────────╯
34
+
35
+ use this commit? › y
36
+ ✓ Committed successfully
37
+ ```
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: executing-plans
3
+ description: Use when you have a written implementation plan to execute with review checkpoints.
4
+ ---
5
+
6
+ # Executing Plans — CoWorker Edition
7
+
8
+ ## Overview
9
+
10
+ Load the plan, review critically, execute all tasks sequentially, and report when complete.
11
+
12
+ **Announce at start:** "I'm using the executing-plans skill to implement this plan."
13
+
14
+ **Note:** CoWorker works much better with sub-agents. If possible, use `subagent-driven-development` instead of this skill to maintain high quality through independent reviews.
15
+
16
+ ## The Process
17
+
18
+ ### Step 1: Load and Review Plan
19
+ 1. Read the plan file from `.coworker/plans/` using `executeRead`.
20
+ 2. Review critically for gaps or architectural concerns.
21
+ 3. If concerns: Raise them with your human partner using `executeAskUserQuestion`.
22
+ 4. If no concerns: Create a `todoWrite` with all tasks.
23
+
24
+ ### Step 2: Execute Tasks
25
+ For each task:
26
+ 1. Mark as `in_progress` in `todoWrite`.
27
+ 2. Follow each step exactly using CoWorker tools (`executeEdit`, `executeWrite`, `executeBash`, `diagnostics`).
28
+ 3. Run all verifications specified in the plan.
29
+ 4. Mark as `completed`.
30
+
31
+ ### Step 3: Complete Development
32
+ After all tasks are complete:
33
+ - Use `gitCommit` to save the final state.
34
+ - Run `codeReview` to ensure overall quality.
35
+
36
+ ## When to STOP
37
+ - Hit a blocker (missing dependency, test failure, logic error).
38
+ - Verification fails repeatedly.
39
+ - Plan has critical gaps.
40
+
41
+ **Ask for clarification rather than guessing.** Use `executeAskUserQuestion`.
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: finishing-a-development-branch
3
+ description: Use when implementation is complete, all tests pass, and you need to integrate the work.
4
+ ---
5
+
6
+ # Finishing a Development Branch — CoWorker Edition
7
+
8
+ ## Overview
9
+
10
+ Verify tests, present options, execute choice, and clean up.
11
+
12
+ **Announce at start:** "I'm using the finishing-a-development-branch skill to complete this work."
13
+
14
+ ## The Process
15
+
16
+ ### 1. Verify Tests
17
+ - Run `executeBash('npm test')`.
18
+ - **If tests fail:** Stop and fix them. Do not proceed.
19
+
20
+ ### 2. Present 4 Options
21
+ Ask the user:
22
+ 1. **Merge back to base branch locally.**
23
+ 2. **Push and create a Pull Request.**
24
+ 3. **Keep the branch as-is (I'll handle it later).**
25
+ 4. **Discard this work (permanently delete).**
26
+
27
+ ### 3. Execute Choice
28
+ - **Option 1 (Merge):** `git checkout main`, `git merge <branch>`, `git branch -d <branch>`. Cleanup worktree.
29
+ - **Option 2 (PR):** `git push -u origin <branch>`, `executeBash('gh pr create ...')`.
30
+ - **Option 4 (Discard):** **Require typed "discard" confirmation.** `git checkout main`, `git branch -D <branch>`. Cleanup worktree.
31
+
32
+ ### 4. Cleanup
33
+ - If using a worktree, run: `executeBash('git worktree remove <path>')`.
34
+
35
+ **NEVER delete work without explicit "discard" confirmation.**
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: receiving-code-review
3
+ description: Use when receiving code review feedback, before implementing suggestions.
4
+ ---
5
+
6
+ # Receiving Code Review — CoWorker Edition
7
+
8
+ ## Overview
9
+
10
+ Code review requires technical evaluation, not emotional performance.
11
+
12
+ **Core principle:** Verify before implementing. Ask before assuming. Technical correctness over social comfort.
13
+
14
+ ## The Response Pattern
15
+
16
+ 1. **READ:** Complete feedback without reacting.
17
+ 2. **UNDERSTAND:** Use `executeRead` to verify the context of the feedback.
18
+ 3. **VERIFY:** Check if suggested changes break existing logic using `executeBash('npm test')`.
19
+ 4. **RESPOND:** Provide technical acknowledgment or reasoned pushback.
20
+ 5. **IMPLEMENT:** One item at a time using `executeEdit`. Test each one.
21
+
22
+ ## Forbidden Responses (Performative)
23
+
24
+ **NEVER** use phrases like:
25
+ - "You're absolutely right!"
26
+ - "Great point!" / "Excellent feedback!"
27
+ - "Thanks for catching that!"
28
+
29
+ **INSTEAD:**
30
+ - Restate the technical requirement.
31
+ - "Fixed in [file:line]."
32
+ - "Checking... the current implementation is required for backward compatibility because [X]."
33
+
34
+ ## Implementation Order
35
+ 1. **Clarify** anything unclear FIRST using `executeAskUserQuestion`.
36
+ 2. **Fix** blocking issues (bugs, security).
37
+ 3. **Refactor** (style, optimization).
38
+ 4. **Verify** no regressions after each fix.
39
+
40
+ **External feedback = suggestions to evaluate, not orders to follow. Technical rigor always.**
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: requesting-code-review
3
+ description: Use when completing tasks, implementing major features, or before merging.
4
+ ---
5
+
6
+ # Requesting Code Review — CoWorker Edition
7
+
8
+ ## Overview
9
+
10
+ Dispatch the `code-reviewer` agent to catch issues before they cascade. The reviewer gets precisely crafted context—never your full session history.
11
+
12
+ **Core principle:** Review early, review often.
13
+
14
+ ## How to Request
15
+
16
+ ### 1. Get Context
17
+ - Use `gitStatus` and `gitDiff` to identify what was changed.
18
+ - Determine the `BASE_SHA` and `HEAD_SHA`.
19
+
20
+ ### 2. Dispatch Reviewer
21
+ Use the `agent` tool with `subagentType="code-reviewer"`. Provide the following details in the description:
22
+
23
+ **Template:**
24
+ - **What was implemented:** [Brief summary]
25
+ - **Requirements/Plan:** [Reference to the plan in .coworker/plans/]
26
+ - **Git Range:** `git diff <BASE_SHA>..<HEAD_SHA>`
27
+ - **Checklist:**
28
+ - [ ] Clean separation of concerns?
29
+ - [ ] Proper error handling?
30
+ - [ ] Edge cases covered?
31
+ - [ ] Tests passing?
32
+
33
+ ### 3. Reviewer Instructions (Passed to Agent)
34
+ The `code-reviewer` agent should categorize issues by severity:
35
+ - **🔴 Critical (Must Fix):** Bugs, security, broken functionality.
36
+ - **🟡 Important (Should Fix):** Architecture, missing features, test gaps.
37
+ - **🟣 Minor (Nice to Have):** Style, minor optimizations.
38
+
39
+ ## Success Criteria
40
+ - **Ready to merge?** [Yes/No/With fixes]
41
+ - **Reasoning:** [Technical assessment]
42
+
43
+ **NEVER skip review because "it's simple". Catch issues before they become technical debt.**
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: review
3
+ description: Run a full code review on the current branch, analyzing all changed files for bugs, security issues, and style violations.
4
+ ---
5
+
6
+ # /review — Code Review
7
+
8
+ Run a comprehensive code review on your current git branch.
9
+
10
+ ## What it does
11
+ 1. Detects the current branch and base branch (main/master)
12
+ 2. Computes the git diff of all changed files
13
+ 3. Loads `REVIEW.md` and `COWORKER.md` for project-specific guidance
14
+ 4. Analyzes each file for:
15
+ - 🔴 **Bugs**: Logic errors, security vulnerabilities, SQL injection, hardcoded secrets
16
+ - 🟡 **Nits**: Style issues, console.log in production, empty catch blocks
17
+ - 🟣 **Pre-existing**: Issues in the codebase not introduced by this PR
18
+ 5. Deduplicates and severity-sorts all findings
19
+ 6. Outputs a formatted review report
20
+
21
+ ## Usage
22
+ ```
23
+ /review
24
+ /review --base develop
25
+ ```
26
+
27
+ ## Customizing Reviews
28
+
29
+ ### COWORKER.md
30
+ Add a `COWORKER.md` file to your project root. Violations of guidelines here are flagged as nit-level findings.
31
+
32
+ ### REVIEW.md
33
+ Add a `REVIEW.md` file to your project root for review-specific rules:
34
+
35
+ ```markdown
36
+ # Code Review Guidelines
37
+
38
+ ## Always check
39
+ - New API endpoints have corresponding integration tests
40
+ - Database migrations are backward-compatible
41
+ - Error messages don't leak internal details
42
+
43
+ ## Style
44
+ - Prefer match statements over chained instanceof checks
45
+ - Use structured logging, not f-string interpolation
46
+
47
+ ## Skip
48
+ - Generated files under src/gen/
49
+ - Formatting-only changes in *.lock files
50
+ ```
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: subagent-driven-development
3
+ description: Use when executing implementation plans with independent tasks using sub-agents.
4
+ ---
5
+
6
+ # Subagent-Driven Development — CoWorker Edition
7
+
8
+ Execute plan by dispatching fresh sub-agents per task using the `agent` tool, with two-stage review after each: spec compliance review first, then code quality review.
9
+
10
+ **Core principle:** Fresh sub-agent per task + two-stage reviews = high quality, fast iteration.
11
+
12
+ ## The Process
13
+
14
+ ### 1. Initialize
15
+ - Read the plan from `.coworker/plans/<filename>.md` using `executeRead`.
16
+ - Create a `todoWrite` with all tasks from the plan.
17
+
18
+ ### 2. Dispatch Task Implementer
19
+ For each task:
20
+ - Use the `agent` tool with `subagentType="general-purpose"`.
21
+ - Provide the FULL task text from the plan and the context (relevant files, previous task outcomes).
22
+ - **Implementer Goal:** Follow TDD to implement, test, and commit the task.
23
+
24
+ ### 3. Dispatch Spec Reviewer
25
+ Once the implementer returns "DONE":
26
+ - Use the `agent` tool with `subagentType="code-reviewer"`.
27
+ - **Reviewer Goal:** Compare the implementation against the original spec/plan.
28
+ - **SUCCESS:** Spec compliant. Proceed to Quality Review.
29
+ - **FAILURE:** Implementation gaps found. Implementer fix and re-review.
30
+
31
+ ### 4. Dispatch Code Quality Reviewer
32
+ Once spec-compliant:
33
+ - Use the `agent` tool with `subagentType="code-reviewer"`.
34
+ - **Reviewer Goal:** Analyze for bugs, security, style, and pattern consistency.
35
+ - **SUCCESS:** Approved. Mark task as `completed` in `todoWrite`.
36
+ - **FAILURE:** Quality issues found. Implementer fix and re-review.
37
+
38
+ ## Model Selection
39
+
40
+ CoWorker allows different models. For "mechanical" implementation, use a faster model if available. For complex architecture or review, use the most capable model.
41
+
42
+ ## Advantages in CoWorker
43
+
44
+ - **Isolation:** Sub-agents don't pollute your main conversation history.
45
+ - **Precision:** You curate exactly what the agent sees, reducing noise.
46
+ - **Speed:** Specializing agents allows for faster, parallel-style progress (even if executed sequentially).
47
+
48
+ ## Red Flags
49
+
50
+ - Skip any review stage (Spec or Quality).
51
+ - Proceed while a review has open issues.
52
+ - Accept "close enough" on spec compliance.
53
+ - Let an agent self-review replace an independent review.
54
+
55
+ **Move to the next task ONLY when both reviews are ✅.**
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: systematic-debugging
3
+ description: Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
4
+ ---
5
+
6
+ # Systematic Debugging — CoWorker Edition
7
+
8
+ ## Overview
9
+
10
+ Random fixes waste time and create new bugs. Quick patches mask underlying issues.
11
+
12
+ **Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
13
+
14
+ **Violating the letter of this process is violating the spirit of debugging.**
15
+
16
+ ## The Iron Law
17
+
18
+ ```
19
+ NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
20
+ ```
21
+
22
+ If you haven't completed Phase 1, you cannot propose fixes.
23
+
24
+ ## The Four Phases
25
+
26
+ ### Phase 1: Root Cause Investigation
27
+
28
+ **BEFORE attempting ANY fix:**
29
+
30
+ 1. **Read Error Messages Carefully**
31
+ - Note line numbers, file paths, error codes.
32
+ - Use `executeRead` to examine the failing lines.
33
+
34
+ 2. **Reproduce Consistently**
35
+ - Can you trigger it reliably using `executeBash`?
36
+ - What are the exact steps?
37
+
38
+ 3. **Check Recent Changes**
39
+ - Use `gitDiff` or `executeBash('git log -p')` to see what changed recently.
40
+
41
+ 4. **Trace Data Flow (Backward Tracing)**
42
+ **MANDATORY:** Trace backward through the call chain until you find the original trigger.
43
+ - What code directly causes the error?
44
+ - What called that code? Use `executeGrep` to find call sites.
45
+ - What value was passed? Add `console.error()` using `executeEdit` if the flow is unclear.
46
+ - NEVER fix just where the error appears. Fix at the source.
47
+
48
+ ### Phase 2: Pattern Analysis
49
+
50
+ 1. **Find Working Examples**
51
+ - Use `executeGlob` to find similar working code in the codebase.
52
+ - Compare using `executeRead`.
53
+
54
+ 2. **Identify Differences**
55
+ - What's different between working and broken code? List every detail.
56
+
57
+ ### Phase 3: Hypothesis and Testing
58
+
59
+ 1. **Form Single Hypothesis**
60
+ - State clearly: "I think X is the root cause because Y."
61
+
62
+ 2. **Test Minimally**
63
+ - Make the SMALLEST possible change using `executeEdit` to test your hypothesis.
64
+ - One variable at a time.
65
+
66
+ ### Phase 4: Implementation
67
+
68
+ 1. **Create Failing Test Case**
69
+ - Use the `superpowers:test-driven-development` skill.
70
+ - MUST have a failing test before fixing.
71
+
72
+ 2. **Implement Single Fix**
73
+ - Address the root cause identified. One change at a time. No "while I'm here" changes.
74
+
75
+ 3. **Verify Fix**
76
+ - Test passes? `diagnostics` passed? No other regressions?
77
+
78
+ ---
79
+
80
+ ## When to Question Architecture
81
+
82
+ If you have tried 3+ fixes and they all failed or revealed new problems:
83
+ - **STOP.** The issue is likely architectural (e.g., tight coupling, race conditions).
84
+ - Discuss with your human partner before attempting more fixes.
85
+
86
+ ## Red Flags - STOP and Return to Phase 1
87
+
88
+ - "Just try changing X and see if it works."
89
+ - "Quick fix for now, investigate later."
90
+ - Proposing solutions before tracing data flow.
91
+ - "One more fix attempt" (when already tried 2+).
92
+
93
+ **ALL of these mean: STOP. Return to Phase 1.**
@@ -0,0 +1,97 @@
1
+ ---
2
+ name: test-driven-development
3
+ description: Use when implementing any feature or bugfix, before writing implementation code.
4
+ ---
5
+
6
+ # Test-Driven Development (TDD) — CoWorker Edition
7
+
8
+ ## Overview
9
+
10
+ Write the test first. Watch it fail. Write minimal code to pass.
11
+
12
+ **Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.
13
+
14
+ **Violating the letter of the rules is violating the spirit of the rules.**
15
+
16
+ ## The Iron Law
17
+
18
+ ```
19
+ NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
20
+ ```
21
+
22
+ Write code before the test? Delete it using `executeEdit` or `executeWrite`. Start over.
23
+ Implement fresh from tests. Period.
24
+
25
+ ## Red-Green-Refactor
26
+
27
+ ### RED - Write Failing Test
28
+
29
+ Write one minimal test showing what should happen. Use `executeWrite` to create a new `*.test.ts` file or `executeEdit` to add to an existing one.
30
+
31
+ **Requirements:**
32
+ - One behavior per test.
33
+ - Clear name describing the expectation.
34
+ - Real code path (avoid mocks if the real logic is accessible).
35
+
36
+ ### Verify RED - Watch It Fail (MANDATORY)
37
+
38
+ Run the test using `executeBash`.
39
+ ```bash
40
+ npm test path/to/file.test.ts
41
+ ```
42
+ Confirm:
43
+ - Test fails (not a syntax error).
44
+ - Failure message matches the missing logic.
45
+ - **If it passes:** You are testing existing behavior or the test is flawed. Fix the test.
46
+
47
+ ### GREEN - Minimal Code
48
+
49
+ Write the simplest code to pass the test using `executeEdit` or `executeWrite`.
50
+ Don't add extra features ("YAGNI").
51
+
52
+ ### Verify GREEN - Watch It Pass (MANDATORY)
53
+
54
+ Run the test again using `executeBash`.
55
+ Confirm:
56
+ - Test passes.
57
+ - Run `diagnostics` to ensure no linting/type errors.
58
+ - Other tests still pass.
59
+
60
+ ### REFACTOR - Clean Up
61
+
62
+ After green, improve the code structure:
63
+ - Remove duplication.
64
+ - Improve variable names.
65
+ - Extract helpers.
66
+ Keep tests green throughout.
67
+
68
+ ## Testing Anti-Patterns (Deep Detail)
69
+
70
+ ### 1. Testing Mock Behavior
71
+ **NEVER** assert that a mock was called if you can assert on the result of the real code. Tests must verify *what* the code does, not *how* the mock was used.
72
+ **Fix:** Test real behavior or don't mock the component.
73
+
74
+ ### 2. Test-Only Methods in Production
75
+ **NEVER** add methods like `cleanup()` or `reset()` to production classes if they are only used for tests.
76
+ **Fix:** Move cleanup logic to test utilities or `afterEach` hooks using internal state exposure if necessary.
77
+
78
+ ### 3. Mocking Without Understanding
79
+ **NEVER** mock a high-level module (like `ToolCatalog`) if the test depends on its side effects. This leads to tests that pass for the wrong reasons.
80
+ **Fix:** Mock only the slow or external boundary (e.g., a network call or process execution).
81
+
82
+ ### 4. Incomplete Mocks
83
+ **ALWAYS** match the real API schema completely. Partial mocks hide structural assumptions and lead to downstream failures.
84
+ **Fix:** Use `executeRead` to verify the real data structure before creating a mock.
85
+
86
+ ---
87
+
88
+ ## Verification Checklist
89
+
90
+ - [ ] Every new function/method has a test.
91
+ - [ ] Watched each test fail before implementing.
92
+ - [ ] Failed for the expected reason (feature missing).
93
+ - [ ] Wrote minimal code to pass.
94
+ - [ ] `diagnostics` passed with zero errors.
95
+ - [ ] Edge cases (empty inputs, errors) are covered.
96
+
97
+ **If you can't check all boxes, start over. No production code without a failing test.**
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: using-git-worktrees
3
+ description: Use when starting feature work that needs isolation or before executing implementation plans.
4
+ ---
5
+
6
+ # Using Git Worktrees — CoWorker Edition
7
+
8
+ ## Overview
9
+
10
+ Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously.
11
+
12
+ **Announce at start:** "I'm using the using-git-worktrees skill to set up an isolated workspace."
13
+
14
+ ## Process
15
+
16
+ ### 1. Identify Location
17
+ - Prefer `.worktrees/` directory in the project root.
18
+ - **Safety Check:** Use `executeBash('git check-ignore .worktrees')` to ensure it is ignored. If not, use `executeEdit` to add it to `.gitignore` and `gitCommit`.
19
+
20
+ ### 2. Create Worktree
21
+ - Detect project name and determine branch name.
22
+ - Run: `executeBash('git worktree add .worktrees/<branch-name> -b <branch-name>')`.
23
+ - Switch context to the new path.
24
+
25
+ ### 3. Setup & Verify Baseline
26
+ - Auto-detect project type (e.g., `package.json` exists? Run `npm install`).
27
+ - Run the test suite: `executeBash('npm test')`.
28
+ - Ensure a clean baseline (0 failures) before starting work.
29
+
30
+ ## Quick Reference
31
+ - **Check Location:** `executeLS`.
32
+ - **Verify Ignore:** `executeBash('git check-ignore .worktrees')`.
33
+ - **Create:** `git worktree add`.
34
+ - **Verify Baseline:** `npm test`.
35
+
36
+ **NEVER start implementation on main/master without explicit user consent.**
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: verification-before-completion
3
+ description: Use when about to claim work is complete, fixed, or passing, before committing.
4
+ ---
5
+
6
+ # Verification Before Completion — CoWorker Edition
7
+
8
+ ## Overview
9
+
10
+ Claiming work is complete without verification is dishonesty, not efficiency.
11
+
12
+ **Core principle:** Evidence before claims, always.
13
+
14
+ **Violating the letter of this rule is violating the spirit of this rule.**
15
+
16
+ ## The Iron Law
17
+
18
+ ```
19
+ NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
20
+ ```
21
+
22
+ If you haven't run the verification command in this message, you cannot claim it passes.
23
+
24
+ ## The Gate Function
25
+
26
+ BEFORE claiming any status or expressing satisfaction:
27
+
28
+ 1. **IDENTIFY:** What command proves this claim? (e.g., `npm test`, `diagnostics`).
29
+ 2. **RUN:** Execute the FULL command using `executeBash` or the specific tool.
30
+ 3. **READ:** Analyze the full output for failures or warnings.
31
+ 4. **VERIFY:** Does the output confirm the claim?
32
+ 5. **ONLY THEN:** Make the claim.
33
+
34
+ ## Red Flags - STOP
35
+
36
+ - Using "should", "probably", "seems to".
37
+ - Expressing satisfaction before verification ("Great!", "Done!").
38
+ - Relying on partial verification.
39
+ - Trusting previous run results.
40
+
41
+ ## Key Patterns in CoWorker
42
+
43
+ - **Tests:** Run `executeBash('npm test')`. See "0 failures".
44
+ - **Lints:** Run `diagnostics(filePath)`. See "0 errors".
45
+ - **Git:** Use `gitStatus` and `gitDiff` to verify what actually changed vs what was planned.
46
+
47
+ **No shortcuts. Run the command. Read the output. THEN claim success.**