claude-everything-workflow 0.1.8 → 0.2.2

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 (132) hide show
  1. package/AGENTS.md +19 -20
  2. package/README.md +112 -104
  3. package/agents/code-reviewer.md +15 -44
  4. package/agents/harness-optimizer.md +3 -2
  5. package/agents/planner.md +23 -107
  6. package/commands/code-review.md +25 -9
  7. package/commands/learn.md +97 -0
  8. package/commands/pr.md +4 -0
  9. package/commands/to-spec.md +11 -0
  10. package/hooks/check-code-size.js +33 -12
  11. package/hooks/check-console-log.js +72 -24
  12. package/package.json +5 -2
  13. package/rules/01-base.md +19 -42
  14. package/rules/02-code-size.md +6 -17
  15. package/rules/03-architecture.md +16 -54
  16. package/rules/04-error-handling.md +4 -25
  17. package/rules/05-git-workflow.md +9 -37
  18. package/rules/06-comments.md +3 -37
  19. package/rules/07-forbidden.md +6 -30
  20. package/rules/08-specialty-rules-index.md +18 -0
  21. package/rules/09-first-principles-adversarial-testing.md +6 -18
  22. package/rules/common/agent-orchestration.md +10 -47
  23. package/rules/common/context-hygiene.md +9 -72
  24. package/rules/common/harness-engineering.md +11 -38
  25. package/rules/common/hooks.md +11 -82
  26. package/rules/common/performance.md +8 -71
  27. package/rules/common/pr-automation.md +7 -68
  28. package/rules/common/skills-learning.md +12 -36
  29. package/rules/common/testing.md +15 -59
  30. package/scripts/cleanup-retired-skills.js +214 -0
  31. package/scripts/install.ps1 +73 -85
  32. package/scripts/install.sh +54 -77
  33. package/scripts/learning/review-confidence.js +1 -4
  34. package/scripts/merge-claude-settings.cjs +75 -0
  35. package/scripts/retired-skill-files.json +37 -0
  36. package/scripts/upstream-capability-baseline.json +27 -0
  37. package/scripts/upstream-capability-map.json +150 -0
  38. package/scripts/verify/core.js +91 -0
  39. package/scripts/verify/grilling-spec-gate-checks.js +260 -0
  40. package/scripts/verify/metadata-checks.js +724 -0
  41. package/scripts/verify/repository-checks.js +435 -0
  42. package/scripts/verify/runtime-checks.js +593 -0
  43. package/scripts/verify/workflow-checks.js +741 -0
  44. package/scripts/verify/workflow-ownership-fixtures.js +371 -0
  45. package/scripts/verify/workflow-ownership.js +780 -0
  46. package/scripts/verify-harness.js +16 -1075
  47. package/scripts/verify-upstream-capability-map.js +117 -0
  48. package/skills/README.md +24 -10
  49. package/skills/code-review/SKILL.md +50 -0
  50. package/skills/code-review/references/spec-reviewer-prompt.md +24 -0
  51. package/skills/code-review/references/standards-reviewer-prompt.md +35 -0
  52. package/skills/codebase-design/SKILL.md +63 -0
  53. package/skills/codebase-design/references/deepening.md +27 -0
  54. package/skills/codebase-design/references/design-it-twice.md +17 -0
  55. package/skills/continuous-learning-v2/SKILL.md +7 -7
  56. package/skills/continuous-learning-v2/config.json +0 -4
  57. package/skills/domain-modeling/SKILL.md +100 -0
  58. package/skills/feature-acceptance/SKILL.md +89 -0
  59. package/skills/grilling/SKILL.md +83 -0
  60. package/skills/handoff/SKILL.md +56 -0
  61. package/skills/implement/SKILL.md +97 -0
  62. package/skills/improve-codebase-architecture/SKILL.md +48 -0
  63. package/skills/iterative-retrieval/SKILL.md +10 -1
  64. package/skills/learn/README.md +2 -2
  65. package/skills/project-context/SKILL.md +94 -0
  66. package/skills/project-context/agents/openai.yaml +6 -0
  67. package/skills/project-context/references/project-context-template.md +61 -0
  68. package/skills/prototype/SKILL.md +50 -0
  69. package/skills/prototype/references/logic.md +28 -0
  70. package/skills/prototype/references/ui.md +30 -0
  71. package/skills/research/SKILL.md +48 -0
  72. package/skills/resolving-merge-conflicts/SKILL.md +27 -0
  73. package/skills/spec-gate/SKILL.md +149 -0
  74. package/skills/spec-gate/agents/openai.yaml +4 -0
  75. package/skills/spec-gate/references/spec-document-reviewer-prompt.md +31 -0
  76. package/skills/subagent-driven-development/SKILL.md +95 -414
  77. package/skills/systematic-debugging/SKILL.md +7 -51
  78. package/skills/systematic-debugging/references/diagnosing-bugs.upstream.md +129 -0
  79. package/skills/systematic-debugging/scripts/hitl-loop.template.js +75 -0
  80. package/skills/systematic-debugging/scripts/hitl-loop.template.sh +41 -0
  81. package/skills/test-driven-development/SKILL.md +18 -2
  82. package/skills/to-tickets/SKILL.md +94 -0
  83. package/skills/triage/SKILL.md +53 -0
  84. package/skills/triage/references/agent-brief.md +32 -0
  85. package/skills/triage/references/out-of-scope.md +14 -0
  86. package/skills/using-superpowers/SKILL.md +140 -40
  87. package/skills/visual-companion/SKILL.md +62 -0
  88. package/skills/visual-companion/agents/openai.yaml +4 -0
  89. package/skills/{brainstorming/visual-companion.md → visual-companion/references/guide.md} +1 -1
  90. package/skills/{brainstorming → visual-companion}/scripts/frame-template.html +42 -12
  91. package/skills/visual-companion/scripts/pages.cjs +28 -0
  92. package/skills/visual-companion/scripts/server-utils.cjs +82 -0
  93. package/skills/{brainstorming → visual-companion}/scripts/server.cjs +108 -248
  94. package/skills/{brainstorming → visual-companion}/scripts/start-server.sh +18 -4
  95. package/skills/visual-companion/scripts/websocket.cjs +86 -0
  96. package/skills/wayfinder/SKILL.md +57 -0
  97. package/commands/e2e.md +0 -28
  98. package/commands/evolve.md +0 -42
  99. package/commands/harness-audit.md +0 -27
  100. package/commands/instinct-status.md +0 -38
  101. package/commands/learn-eval.md +0 -91
  102. package/commands/projects.md +0 -27
  103. package/commands/promote.md +0 -29
  104. package/commands/prune.md +0 -46
  105. package/commands/tdd.md +0 -27
  106. package/homunculus/instincts/personal/always-test-first.md +0 -28
  107. package/homunculus/instincts/personal/pr-ci-quality-gate.md +0 -30
  108. package/rules/08-ecc-integration.md +0 -46
  109. package/rules/common/implementation.md +0 -25
  110. package/rules/common/security.md +0 -19
  111. package/skills/brainstorming/SKILL.md +0 -185
  112. package/skills/brainstorming/agents/openai.yaml +0 -3
  113. package/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
  114. package/skills/context-budget/SKILL.md +0 -59
  115. package/skills/documentation-lookup/SKILL.md +0 -90
  116. package/skills/executing-plans/SKILL.md +0 -66
  117. package/skills/skill-creator/LICENSE.txt +0 -202
  118. package/skills/skill-creator/SKILL.md +0 -356
  119. package/skills/skill-creator/references/output-patterns.md +0 -82
  120. package/skills/skill-creator/references/workflows.md +0 -28
  121. package/skills/skill-creator/scripts/init_skill.py +0 -303
  122. package/skills/skill-creator/scripts/package_skill.py +0 -110
  123. package/skills/skill-creator/scripts/quick_validate.py +0 -95
  124. package/skills/subagent-driven-development/implementer-prompt.md +0 -139
  125. package/skills/subagent-driven-development/scripts/review-package +0 -44
  126. package/skills/subagent-driven-development/scripts/sdd-workspace +0 -22
  127. package/skills/subagent-driven-development/scripts/task-brief +0 -40
  128. package/skills/subagent-driven-development/task-reviewer-prompt.md +0 -188
  129. package/skills/writing-plans/SKILL.md +0 -206
  130. package/skills/writing-plans/plan-document-reviewer-prompt.md +0 -49
  131. /package/skills/{brainstorming → visual-companion}/scripts/helper.js +0 -0
  132. /package/skills/{brainstorming → visual-companion}/scripts/stop-server.sh +0 -0
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: resolving-merge-conflicts
3
+ description: "Resolve an in-progress Git merge or rebase conflict hunk by hunk from both sides' primary intent, then verify and finish only within the user's Git authorization. Use when conflict markers or an active merge/rebase state exists."
4
+ ---
5
+
6
+ # Resolving Merge Conflicts
7
+
8
+ Origin: `mattpocock/skills@2ab9580`, adapted to this repository's Git authorization rules.
9
+
10
+ 1. Inspect the exact Git state, merge base, conflicting paths and pending commits. Do not abort,
11
+ reset or discard either side.
12
+ 2. For each side, trace intent to primary sources: commit messages, diffs, tests, issue/PR references,
13
+ specifications and surrounding code.
14
+ 3. Resolve one hunk at a time:
15
+ - preserve both intents when compatible;
16
+ - when incompatible, follow the stated merge/rebase goal and documented contract;
17
+ - report the trade-off;
18
+ - do not invent unrelated behavior.
19
+ 4. Search for semantic conflicts outside marker lines: renamed symbols, duplicated migrations,
20
+ mismatched schemas, tests or configuration.
21
+ 5. Run the repository's formatting, type, test and build checks in risk order. Fix only breakage caused
22
+ by the integration.
23
+ 6. Show the resolved files, intent decisions, checks and remaining risks.
24
+ 7. Stage, commit or continue the merge/rebase only when the user's request already authorizes those Git
25
+ mutations; otherwise stop with the exact commands/actions awaiting approval.
26
+
27
+ Never use `git reset --hard`, destructive checkout, broad clean or `--abort` as a shortcut.
@@ -0,0 +1,149 @@
1
+ ---
2
+ name: spec-gate
3
+ description: "Generate, self-review, persist, and request approval for a formal engineering design spec without interviewing the user. Use when the user explicitly requests a design spec, Spec Gate, /to-spec, or the full Superpowers workflow, and automatically for costly-to-reverse architecture or service boundaries, public-contract compatibility, authentication or authorization boundaries, persistent data/schema migrations, or irreversible external side effects."
4
+ ---
5
+
6
+ # Spec Gate
7
+
8
+ Create an implementation-ready design artifact from resolved decisions and verified repository facts. This is a zero interview gate: it does not own clarification, user decision loops, or workflow continuation.
9
+
10
+ ## Hard Gate
11
+
12
+ Do not invoke implementation skills, write implementation code, or generate tickets until the saved Spec has passed self-review and the user has explicitly approved it.
13
+
14
+ Do not ask clarifying questions. If a user-owned decision can materially change the result, return `BLOCKED_BY_UNRESOLVED_DECISION` before drafting the document.
15
+
16
+ ## Inputs
17
+
18
+ Consume only:
19
+
20
+ - the task goal and risk classification;
21
+ - confirmed grilling handoff decisions and delegated defaults, when present;
22
+ - repository facts verified from current files, history, tests, or tools;
23
+ - an optional output path under `docs/superpowers/specs/`.
24
+
25
+ Treat a confirmed handoff as approved input. Reopen a decision only when its recorded reversal evidence appears or an underlying premise is invalidated.
26
+
27
+ ## Preflight
28
+
29
+ 1. Confirm that a formal Spec is explicitly requested or that the task crosses a high-risk boundary.
30
+ 2. Inspect discoverable facts instead of turning them into questions.
31
+ 3. Build a decision inventory from the task, handoff, and repository evidence.
32
+ 4. Identify the highest stable public seams where acceptance behavior will be tested. Prefer existing
33
+ seams; a new seam that changes a public contract or architecture is a consequential decision.
34
+ 5. Separate agent-owned reversible details from user-owned consequential decisions.
35
+ 6. Return an outcome immediately if the task is not applicable or a consequential decision remains unresolved.
36
+
37
+ Agent-owned details may use the safest reversible default. A user-owned decision may use an agent default only when the confirmed handoff explicitly delegates it.
38
+
39
+ ## Blocking Contract
40
+
41
+ Use a stable `decision_id` derived from the decision subject, not from the current wording. Return exactly:
42
+
43
+ ```text
44
+ BLOCKED_BY_UNRESOLVED_DECISION
45
+ - decision_id
46
+ - blocking_reason
47
+ - known_constraints
48
+ - evidence
49
+ ```
50
+
51
+ This is a terminal outcome. Do not ask a question, generate options, choose for the user, add `resume_target`, or invoke grilling.
52
+
53
+ If the same `decision_id` already has a confirmed resolution and evidence has not changed, report a `Spec Gate contract conflict` and stop. Reopen it only when reversal evidence appears or a foundational premise becomes invalid.
54
+
55
+ ## Document Location
56
+
57
+ Save to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` unless the user provides another ignored local workflow path. Create the parent directory when necessary.
58
+
59
+ **Local-only artifact policy:** Treat every generated design Spec as a local workflow artifact. Do not stage or commit it. The default `docs/superpowers/` path is ignored and is not a team-sharing mechanism.
60
+
61
+ ## Spec Schema
62
+
63
+ Use this section order, omitting only optional numbered User Stories when they do not fit the task:
64
+
65
+ 1. `背景` — problem statement and current cost.
66
+ 2. `目标`.
67
+ 3. `非目标` / out of scope.
68
+ 4. `需求` — behavior, compatibility, constraints, and optional User Stories.
69
+ 5. `现有上下文` — code facts, domain vocabulary, ADRs, patterns, and test precedents.
70
+ 6. `方案对比` — considered approaches and real trade-offs.
71
+ 7. `推荐方案` — selected solution and why.
72
+ 8. `Implementation Decisions` — modules, interfaces, public contracts, schemas, interactions, and migration decisions.
73
+ 9. `架构设计`.
74
+ 10. `组件与文件`.
75
+ 11. `数据流 / 接口`.
76
+ 12. `错误处理`.
77
+ 13. `测试策略` — testing decisions, highest available seam, precedents, normal and adversarial cases.
78
+ 14. `验收标准`.
79
+ 15. `风险与取舍`.
80
+ 16. `回滚`.
81
+ 17. `开放问题` — only non-blocking questions; write `无` when empty.
82
+
83
+ Do not include implementation snippets that will become stale. Do not present an unresolved branch as a settled decision.
84
+
85
+ ## Self-Review
86
+
87
+ Before returning a review outcome:
88
+
89
+ 1. Scan for `TODO`, `TBD`, placeholders, incomplete sections, and contradictions.
90
+ 2. Verify every consequential choice is resolved or explicitly delegated.
91
+ 3. Verify architecture, interfaces, failure behavior, migration, tests, acceptance, risk, and rollback agree.
92
+ 4. Verify each acceptance criterion maps to a repeatable automated or manual check.
93
+ 5. Verify the scope can produce either one coherent implementation ticket or a coherent ticket breakdown.
94
+ 6. For complex or high-risk specs, read `references/spec-document-reviewer-prompt.md` and apply its calibrated review.
95
+
96
+ Fix non-decision defects inline and repeat the self-review. A newly exposed consequential decision returns the blocking contract instead of entering user review.
97
+
98
+ ## User Review Gate
99
+
100
+ After self-review, show the saved path and a compact summary of decisions and non-blocking risks. Request artifact approval, not another requirements interview.
101
+
102
+ - If the user requests document changes, revise the Spec and self-review again.
103
+ - If revision exposes a consequential decision, return `BLOCKED_BY_UNRESOLVED_DECISION`.
104
+ - If the user approves, mark the artifact as the approved Spec source.
105
+
106
+ ### Tracker publication
107
+
108
+ Read `docs/agent-workflow/project-context.md` when it exists:
109
+
110
+ - For a configured local tracker, copy the approved Spec to its configured feature `spec.md` path,
111
+ preserving the local-only policy.
112
+ - For an external tracker, show the exact repository/project, title, body source and labels; publish
113
+ only after explicit confirmation of that external write. Apply the configured `ready-for-agent`
114
+ label when the tracker contract defines it.
115
+ - If no tracker is configured, keep the approved local artifact and report `tracker: not configured`.
116
+
117
+ Record the local path and optional tracker reference together so `to-tickets` can consume one canonical
118
+ approved source. Publication does not authorize tickets, implementation, commit or PR creation.
119
+
120
+ After approval/publication, return control to `skills/using-superpowers/SKILL.md`; do not invoke
121
+ planning directly.
122
+
123
+ ## Outcomes
124
+
125
+ Return exactly one of:
126
+
127
+ ```text
128
+ READY_FOR_USER_REVIEW
129
+ - spec_path
130
+ - self_review_checks
131
+ - non_blocking_risks
132
+
133
+ BLOCKED_BY_UNRESOLVED_DECISION
134
+ - decision_id
135
+ - blocking_reason
136
+ - known_constraints
137
+ - evidence
138
+
139
+ NOT_APPLICABLE
140
+ - reason
141
+ ```
142
+
143
+ `READY_FOR_USER_REVIEW` does not mean approved. `NOT_APPLICABLE` returns routing responsibility without recommending another Skill.
144
+
145
+ ## Examples
146
+
147
+ - A clear breaking public API migration goes directly to Spec drafting and user review.
148
+ - An API migration with an unresolved compatibility policy returns the blocking contract before writing the document.
149
+ - A typo, copy update, or reversible configuration edit returns `NOT_APPLICABLE`.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Spec Gate"
3
+ short_description: "生成、自审并请求批准正式工程 Spec"
4
+ default_prompt: "使用 $spec-gate 从已确认决策生成并自审正式工程 Spec。"
@@ -0,0 +1,31 @@
1
+ # Spec Document Reviewer Prompt
2
+
3
+ Read this reference only after a Spec has been written and the main self-review needs an independent, calibrated pass.
4
+
5
+ ```text
6
+ Review the Spec at [SPEC_FILE_PATH] for implementation-planning readiness.
7
+
8
+ Check:
9
+ - Completeness: no TODO, TBD, placeholder, missing contract, or incomplete section.
10
+ - Decision integrity: no unresolved user-owned choice is disguised as an implementation detail.
11
+ - Consistency: requirements, architecture, interfaces, data flow, error handling, migration, and rollback agree.
12
+ - Testability: each acceptance criterion has an automated seam or explicit repeatable manual check.
13
+ - Scope: one coherent implementation ticket or ticket breakdown can deliver the result.
14
+ - YAGNI: no unrequested subsystem or speculative extension.
15
+ - Failure behavior: normal, adversarial, retry, partial-state, and compatibility paths are covered where relevant.
16
+
17
+ Only block on defects that can produce the wrong implementation or an unsafe plan. Keep wording and style suggestions advisory.
18
+
19
+ Return:
20
+
21
+ ## Spec Review
22
+ Status: Approved | Issues Found | Blocked By Unresolved Decision
23
+
24
+ Blocking issues:
25
+ - [section]: [specific defect] — [planning impact]
26
+
27
+ Advisory recommendations:
28
+ - [non-blocking improvement]
29
+ ```
30
+
31
+ If review finds a consequential unresolved decision, the main Spec Gate must return `BLOCKED_BY_UNRESOLVED_DECISION`; the reviewer must not answer it.