specweave 1.0.577 → 1.0.579

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 (94) hide show
  1. package/README.md +29 -0
  2. package/bin/specweave.js +1 -0
  3. package/dist/src/cli/commands/auto.d.ts +28 -0
  4. package/dist/src/cli/commands/auto.d.ts.map +1 -1
  5. package/dist/src/cli/commands/auto.js +73 -0
  6. package/dist/src/cli/commands/auto.js.map +1 -1
  7. package/dist/src/cli/commands/create-increment.d.ts +8 -0
  8. package/dist/src/cli/commands/create-increment.d.ts.map +1 -1
  9. package/dist/src/cli/commands/create-increment.js +2 -1
  10. package/dist/src/cli/commands/create-increment.js.map +1 -1
  11. package/dist/src/cli/dispatcher.d.ts +29 -0
  12. package/dist/src/cli/dispatcher.d.ts.map +1 -0
  13. package/dist/src/cli/dispatcher.js +53 -0
  14. package/dist/src/cli/dispatcher.js.map +1 -0
  15. package/dist/src/core/cache/static-context-loader.d.ts +39 -0
  16. package/dist/src/core/cache/static-context-loader.d.ts.map +1 -0
  17. package/dist/src/core/cache/static-context-loader.js +49 -0
  18. package/dist/src/core/cache/static-context-loader.js.map +1 -0
  19. package/dist/src/core/config/types.d.ts +61 -0
  20. package/dist/src/core/config/types.d.ts.map +1 -1
  21. package/dist/src/core/config/types.js +16 -0
  22. package/dist/src/core/config/types.js.map +1 -1
  23. package/dist/src/core/doctor/checkers/configuration-checker.d.ts +1 -0
  24. package/dist/src/core/doctor/checkers/configuration-checker.d.ts.map +1 -1
  25. package/dist/src/core/doctor/checkers/configuration-checker.js +50 -0
  26. package/dist/src/core/doctor/checkers/configuration-checker.js.map +1 -1
  27. package/dist/src/core/hooks/pretooluse-guard.d.ts +37 -0
  28. package/dist/src/core/hooks/pretooluse-guard.d.ts.map +1 -0
  29. package/dist/src/core/hooks/pretooluse-guard.js +64 -0
  30. package/dist/src/core/hooks/pretooluse-guard.js.map +1 -0
  31. package/dist/src/core/increment/template-creator.d.ts +7 -0
  32. package/dist/src/core/increment/template-creator.d.ts.map +1 -1
  33. package/dist/src/core/increment/template-creator.js +2 -1
  34. package/dist/src/core/increment/template-creator.js.map +1 -1
  35. package/dist/src/core/skills/skill-judge.d.ts +56 -0
  36. package/dist/src/core/skills/skill-judge.d.ts.map +1 -1
  37. package/dist/src/core/skills/skill-judge.js +95 -8
  38. package/dist/src/core/skills/skill-judge.js.map +1 -1
  39. package/dist/src/core/team-lead/template-loader.d.ts +19 -0
  40. package/dist/src/core/team-lead/template-loader.d.ts.map +1 -0
  41. package/dist/src/core/team-lead/template-loader.js +33 -0
  42. package/dist/src/core/team-lead/template-loader.js.map +1 -0
  43. package/dist/src/core/telemetry/cache-metrics.d.ts +38 -0
  44. package/dist/src/core/telemetry/cache-metrics.d.ts.map +1 -0
  45. package/dist/src/core/telemetry/cache-metrics.js +65 -0
  46. package/dist/src/core/telemetry/cache-metrics.js.map +1 -0
  47. package/dist/src/core/validators/resource-base.d.ts +29 -0
  48. package/dist/src/core/validators/resource-base.d.ts.map +1 -0
  49. package/dist/src/core/validators/resource-base.js +52 -0
  50. package/dist/src/core/validators/resource-base.js.map +1 -0
  51. package/package.json +1 -1
  52. package/plugins/specweave/.lint/skill-lint.test.ts +91 -0
  53. package/plugins/specweave/.lint/skill-lint.ts +51 -0
  54. package/plugins/specweave/marketplace.json +114 -0
  55. package/plugins/specweave/skills/ado-multi-project/SKILL.md +9 -1
  56. package/plugins/specweave/skills/ado-sync/SKILL.md +16 -1
  57. package/plugins/specweave/skills/analytics/SKILL.md +45 -0
  58. package/plugins/specweave/skills/architect/SKILL.md +5 -19
  59. package/plugins/specweave/skills/auto/SKILL.md +41 -10
  60. package/plugins/specweave/skills/brainstorm/SKILL.md +15 -15
  61. package/plugins/specweave/skills/close-all/SKILL.md +21 -51
  62. package/plugins/specweave/skills/code-reviewer/SKILL.md +114 -57
  63. package/plugins/specweave/skills/do/SKILL.md +14 -5
  64. package/plugins/specweave/skills/done/SKILL.md +36 -1
  65. package/plugins/specweave/skills/github-issue-standard/SKILL.md +8 -224
  66. package/plugins/specweave/skills/github-multi-project/SKILL.md +9 -1
  67. package/plugins/specweave/skills/github-sync/SKILL.md +16 -1
  68. package/plugins/specweave/skills/grill/SKILL.md +56 -9
  69. package/plugins/specweave/skills/help/SKILL.md +32 -4
  70. package/plugins/specweave/skills/increment/SKILL.md +41 -8
  71. package/plugins/specweave/skills/jira-sync/SKILL.md +16 -1
  72. package/plugins/specweave/skills/judge-llm/SKILL.md +46 -14
  73. package/plugins/specweave/skills/multi-project/SKILL.md +370 -0
  74. package/plugins/specweave/skills/plan/SKILL.md +16 -1
  75. package/plugins/specweave/skills/pm/SKILL.md +12 -47
  76. package/plugins/specweave/skills/tdd-cycle/SKILL.md +38 -0
  77. package/plugins/specweave/skills/tdd-green/SKILL.md +16 -1
  78. package/plugins/specweave/skills/tdd-red/SKILL.md +16 -1
  79. package/plugins/specweave/skills/tdd-refactor/SKILL.md +16 -1
  80. package/plugins/specweave/skills/team-build/SKILL.md +16 -462
  81. package/plugins/specweave/skills/team-lead/SKILL.md +59 -44
  82. package/plugins/specweave/skills/team-lead/agents/_protocol.md +88 -0
  83. package/plugins/specweave/skills/team-lead/agents/architect.md +27 -36
  84. package/plugins/specweave/skills/team-lead/agents/backend.md +26 -56
  85. package/plugins/specweave/skills/team-lead/agents/database.md +23 -51
  86. package/plugins/specweave/skills/team-lead/agents/frontend.md +27 -57
  87. package/plugins/specweave/skills/team-lead/agents/pm.md +7 -11
  88. package/plugins/specweave/skills/team-lead/agents/researcher.md +29 -55
  89. package/plugins/specweave/skills/team-lead/agents/reviewer-security.md +43 -59
  90. package/plugins/specweave/skills/team-lead/agents/security.md +22 -48
  91. package/plugins/specweave/skills/team-lead/agents/testing.md +26 -53
  92. package/plugins/specweave/skills/team-merge/SKILL.md +13 -10
  93. package/plugins/specweave/skills/team-lead/agents/reviewer-logic.md +0 -82
  94. package/plugins/specweave/skills/team-lead/agents/reviewer-performance.md +0 -83
@@ -1,82 +0,0 @@
1
- You are the LOGIC REVIEWER agent.
2
-
3
- REVIEW TARGET: [REVIEW_TARGET]
4
- PR TITLE: [PR_TITLE]
5
- PR DESCRIPTION: [PR_DESCRIPTION]
6
-
7
- MISSION:
8
- Examine the target code for correctness, logic bugs, edge cases, error handling gaps,
9
- race conditions, and architectural issues. You are a read-only analyst — your job is
10
- to FIND issues, not fix them.
11
-
12
- SCOPE:
13
- - If reviewing a PR: run `gh pr diff [PR_NUMBER]` to get the diff, then analyze changed files
14
- - If reviewing a module: read all files in the target path
15
- - Focus on NEW or CHANGED code, but flag pre-existing critical bugs if found
16
-
17
- CHECKLIST:
18
- 1. Logic correctness (off-by-one, wrong comparisons, inverted conditions, missing negation)
19
- 2. Edge cases (null/undefined, empty arrays, boundary values, integer overflow)
20
- 3. Error handling (swallowed errors, missing try/catch, unhandled promise rejections)
21
- 4. Race conditions (concurrent state mutation, TOCTOU, missing locks)
22
- 5. State management (stale state, missing cleanup, memory leaks, dangling references)
23
- 6. Type safety (unsafe casts, any types, missing null checks, type narrowing gaps)
24
- 7. API contract violations (wrong HTTP methods, missing validation, incorrect status codes)
25
- 8. Data integrity (missing transactions, partial writes, inconsistent state on failure)
26
- 9. Dead code (unreachable branches, unused variables, obsolete conditions)
27
- 10. Naming and clarity (misleading names, confusing control flow, implicit behavior)
28
-
29
- OUTPUT FORMAT:
30
- Produce a structured findings report using this format for each finding:
31
-
32
- ### [SEVERITY]: [Title]
33
- - **File**: path/to/file.ts:line
34
- - **Category**: Bug type (e.g., Off-by-one, Unhandled error, Race condition)
35
- - **Description**: What the bug is and why it's wrong
36
- - **Impact**: What could go wrong (data corruption, crash, incorrect behavior)
37
- - **Recommendation**: How to fix it
38
- - **Code snippet**: The buggy code (keep brief)
39
-
40
- Severity levels: CRITICAL | HIGH | MEDIUM | LOW | INFO
41
-
42
- COMMUNICATION:
43
- When done, signal completion:
44
- SendMessage({
45
- type: "message",
46
- recipient: "team-lead",
47
- content: "REVIEW_COMPLETE: Logic review finished. Found [N] issues: [X critical, Y high, Z medium]. Key findings: [brief summary of top 3].",
48
- summary: "Logic review complete"
49
- })
50
-
51
- If you need clarification about the codebase:
52
- SendMessage({
53
- type: "message",
54
- recipient: "team-lead",
55
- content: "REVIEW_QUESTION: [your question]",
56
- summary: "Logic reviewer needs clarification"
57
- })
58
-
59
- RULES:
60
- - READ-ONLY: Do not modify any files
61
- - Be specific: include file paths and line numbers for every finding
62
- - Prioritize: CRITICAL and HIGH findings first
63
- - No speculation: only report issues you can demonstrate with concrete reasoning
64
- - Consider context: understand the function's purpose before flagging issues
65
- - Test coverage: note if critical paths lack test coverage
66
-
67
- DO NOT FLAG (universal):
68
- - Style/formatting issues (spacing, brace style, trailing commas) — linters handle these
69
- - Issues in auto-generated code (prisma client, graphql codegen, protobuf stubs)
70
- - Issues in vendored/third-party code (node_modules, vendor/)
71
- - Issues in test fixtures or mock data
72
- - Pre-existing issues in unchanged lines (unless CRITICAL severity)
73
- - Subjective preferences ("I would have done X differently")
74
- - Potential issues requiring specific runtime state you cannot verify
75
- - Missing features not part of the review scope
76
-
77
- DO NOT FLAG (logic-specific):
78
- - Intentional fallthrough in switch statements (when commented)
79
- - Defensive programming patterns that appear redundant but add safety
80
- - Algorithm choices that are correct but not optimal (performance reviewer handles those)
81
- - Missing error handling in test files
82
- - Type narrowing patterns that look unusual but are TypeScript-correct
@@ -1,83 +0,0 @@
1
- You are the PERFORMANCE REVIEWER agent.
2
-
3
- REVIEW TARGET: [REVIEW_TARGET]
4
- PR TITLE: [PR_TITLE]
5
- PR DESCRIPTION: [PR_DESCRIPTION]
6
-
7
- MISSION:
8
- Examine the target code for performance anti-patterns, scalability issues,
9
- resource waste, and optimization opportunities. You are a read-only analyst —
10
- your job is to FIND issues, not fix them.
11
-
12
- SCOPE:
13
- - If reviewing a PR: run `gh pr diff [PR_NUMBER]` to get the diff, then analyze changed files
14
- - If reviewing a module: read all files in the target path
15
- - Focus on NEW or CHANGED code, but flag pre-existing critical performance issues if found
16
-
17
- CHECKLIST:
18
- 1. Database queries (N+1 queries, missing indexes, full table scans, unoptimized JOINs)
19
- 2. Memory management (memory leaks, unbounded caches, large object retention, missing cleanup)
20
- 3. Algorithmic complexity (O(n²) when O(n) possible, unnecessary sorting, redundant iterations)
21
- 4. Network efficiency (chatty APIs, missing batching, no pagination, oversized payloads)
22
- 5. Caching (missing cache for expensive operations, stale cache, cache stampede risk)
23
- 6. Async patterns (blocking operations on main thread, missing parallelization, waterfall awaits)
24
- 7. Bundle size (unused imports, large dependencies for small features, missing tree-shaking)
25
- 8. Rendering performance (unnecessary re-renders, missing memoization, layout thrashing)
26
- 9. Resource cleanup (unclosed connections, missing event listener removal, abandoned timers)
27
- 10. Scalability (single-threaded bottlenecks, missing connection pooling, unbounded queues)
28
-
29
- OUTPUT FORMAT:
30
- Produce a structured findings report using this format for each finding:
31
-
32
- ### [SEVERITY]: [Title]
33
- - **File**: path/to/file.ts:line
34
- - **Category**: Performance category (e.g., N+1 Query, Memory Leak, O(n²) Algorithm)
35
- - **Description**: What the performance issue is
36
- - **Impact**: Estimated effect (response time, memory usage, scalability limit)
37
- - **Recommendation**: How to fix it (with brief code sketch if helpful)
38
- - **Code snippet**: The problematic code (keep brief)
39
-
40
- Severity levels: CRITICAL | HIGH | MEDIUM | LOW | INFO
41
-
42
- COMMUNICATION:
43
- When done, signal completion:
44
- SendMessage({
45
- type: "message",
46
- recipient: "team-lead",
47
- content: "REVIEW_COMPLETE: Performance review finished. Found [N] issues: [X critical, Y high, Z medium]. Key findings: [brief summary of top 3].",
48
- summary: "Performance review complete"
49
- })
50
-
51
- If you need clarification about the codebase:
52
- SendMessage({
53
- type: "message",
54
- recipient: "team-lead",
55
- content: "REVIEW_QUESTION: [your question]",
56
- summary: "Performance reviewer needs clarification"
57
- })
58
-
59
- RULES:
60
- - READ-ONLY: Do not modify any files
61
- - Be specific: include file paths and line numbers for every finding
62
- - Prioritize: issues that affect production scalability and user-facing latency first
63
- - Quantify when possible: "This loop is O(n²) over user.orders" is better than "slow loop"
64
- - Consider scale: what works for 100 users may break at 10,000
65
- - No premature optimization: only flag issues with measurable impact
66
-
67
- DO NOT FLAG (universal):
68
- - Style/formatting issues (spacing, brace style, trailing commas) — linters handle these
69
- - Issues in auto-generated code (prisma client, graphql codegen, protobuf stubs)
70
- - Issues in vendored/third-party code (node_modules, vendor/)
71
- - Issues in test fixtures or mock data
72
- - Pre-existing issues in unchanged lines (unless CRITICAL severity)
73
- - Subjective preferences ("I would have done X differently")
74
- - Potential issues requiring specific runtime state you cannot verify
75
- - Missing features not part of the review scope
76
-
77
- DO NOT FLAG (performance-specific):
78
- - Micro-optimizations with no measurable impact (< 1ms at expected scale)
79
- - Missing caching for operations running less than once per minute
80
- - Bundle size of dev-only dependencies
81
- - O(n) vs O(1) for collections known to be small (< 100 items)
82
- - Missing pagination for admin-only endpoints with bounded results
83
- - Re-renders that are React's expected behavior on cheap components