@friedbotstudio/create-baseline 0.1.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 (197) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +222 -0
  3. package/bin/cli.js +247 -0
  4. package/obj/template/.claude/agents/swarm-worker.md +52 -0
  5. package/obj/template/.claude/bin/LICENSE +201 -0
  6. package/obj/template/.claude/bin/NOTICE +48 -0
  7. package/obj/template/.claude/commands/approve-spec.md +29 -0
  8. package/obj/template/.claude/commands/approve-swarm.md +27 -0
  9. package/obj/template/.claude/commands/grant-commit.md +19 -0
  10. package/obj/template/.claude/commands/init-project.md +191 -0
  11. package/obj/template/.claude/hooks/artifact_template_guard.sh +141 -0
  12. package/obj/template/.claude/hooks/consent_gate_grant.sh +89 -0
  13. package/obj/template/.claude/hooks/destructive_cmd_guard.sh +42 -0
  14. package/obj/template/.claude/hooks/env_guard.sh +36 -0
  15. package/obj/template/.claude/hooks/git_commit_guard.sh +93 -0
  16. package/obj/template/.claude/hooks/harness_continuation.sh +121 -0
  17. package/obj/template/.claude/hooks/lib/__pycache__/resume_writer.cpython-314.pyc +0 -0
  18. package/obj/template/.claude/hooks/lib/common.sh +328 -0
  19. package/obj/template/.claude/hooks/lib/resume_writer.py +341 -0
  20. package/obj/template/.claude/hooks/lint_runner.sh +55 -0
  21. package/obj/template/.claude/hooks/memory_pre_compact.sh +36 -0
  22. package/obj/template/.claude/hooks/memory_session_start.sh +244 -0
  23. package/obj/template/.claude/hooks/memory_stop.sh +173 -0
  24. package/obj/template/.claude/hooks/plantuml_syntax_guard.sh +161 -0
  25. package/obj/template/.claude/hooks/process_lifecycle_guard.sh +89 -0
  26. package/obj/template/.claude/hooks/setup_guard.sh +50 -0
  27. package/obj/template/.claude/hooks/spec_approval_guard.sh +81 -0
  28. package/obj/template/.claude/hooks/spec_design_calls_guard.sh +183 -0
  29. package/obj/template/.claude/hooks/spec_diagram_presence_guard.sh +141 -0
  30. package/obj/template/.claude/hooks/swarm_approval_guard.sh +39 -0
  31. package/obj/template/.claude/hooks/swarm_boundary_guard.sh +136 -0
  32. package/obj/template/.claude/hooks/tdd_order_guard.sh +176 -0
  33. package/obj/template/.claude/hooks/test_runner.sh +75 -0
  34. package/obj/template/.claude/hooks/tests/fixtures/ac008_byte_equal_reference.txt +12 -0
  35. package/obj/template/.claude/hooks/tests/memory_session_start_test.sh +285 -0
  36. package/obj/template/.claude/hooks/track_guard.sh +127 -0
  37. package/obj/template/.claude/hooks/verify_pass_guard.sh +88 -0
  38. package/obj/template/.claude/memory/README.md +108 -0
  39. package/obj/template/.claude/memory/_pending.md +15 -0
  40. package/obj/template/.claude/memory/_resume.md +12 -0
  41. package/obj/template/.claude/memory/conventions.md +26 -0
  42. package/obj/template/.claude/memory/decisions.md +29 -0
  43. package/obj/template/.claude/memory/landmarks.md +26 -0
  44. package/obj/template/.claude/memory/landmines.md +27 -0
  45. package/obj/template/.claude/memory/libraries.md +27 -0
  46. package/obj/template/.claude/memory/pending-questions.md +28 -0
  47. package/obj/template/.claude/project.json +221 -0
  48. package/obj/template/.claude/settings.json +110 -0
  49. package/obj/template/.claude/skills/archive/SKILL.md +48 -0
  50. package/obj/template/.claude/skills/archive/archive.sh +145 -0
  51. package/obj/template/.claude/skills/audit-baseline/SKILL.md +80 -0
  52. package/obj/template/.claude/skills/audit-baseline/audit.sh +919 -0
  53. package/obj/template/.claude/skills/brd/SKILL.md +44 -0
  54. package/obj/template/.claude/skills/brd/template.md +83 -0
  55. package/obj/template/.claude/skills/chore/SKILL.md +99 -0
  56. package/obj/template/.claude/skills/claude-automation-recommender/LICENSE +202 -0
  57. package/obj/template/.claude/skills/claude-automation-recommender/NOTICE +69 -0
  58. package/obj/template/.claude/skills/claude-automation-recommender/SKILL.md +358 -0
  59. package/obj/template/.claude/skills/claude-automation-recommender/references/hooks-patterns.md +226 -0
  60. package/obj/template/.claude/skills/claude-automation-recommender/references/mcp-servers.md +263 -0
  61. package/obj/template/.claude/skills/claude-automation-recommender/references/plugins-reference.md +98 -0
  62. package/obj/template/.claude/skills/claude-automation-recommender/references/skills-reference.md +408 -0
  63. package/obj/template/.claude/skills/claude-automation-recommender/references/subagent-templates.md +181 -0
  64. package/obj/template/.claude/skills/code-structure/SKILL.md +204 -0
  65. package/obj/template/.claude/skills/commit/SKILL.md +21 -0
  66. package/obj/template/.claude/skills/copywriting/SKILL.md +252 -0
  67. package/obj/template/.claude/skills/copywriting/evals/evals.json +111 -0
  68. package/obj/template/.claude/skills/copywriting/references/ai-writing-detection.md +200 -0
  69. package/obj/template/.claude/skills/copywriting/references/copy-frameworks.md +344 -0
  70. package/obj/template/.claude/skills/copywriting/references/natural-transitions.md +272 -0
  71. package/obj/template/.claude/skills/design-ui/SKILL.md +175 -0
  72. package/obj/template/.claude/skills/design-ui/references/design-vs-development.md +89 -0
  73. package/obj/template/.claude/skills/design-ui/references/intent-table.md +64 -0
  74. package/obj/template/.claude/skills/design-ui/references/orchestration.md +121 -0
  75. package/obj/template/.claude/skills/design-ui/references/state-machine.md +125 -0
  76. package/obj/template/.claude/skills/document/SKILL.md +66 -0
  77. package/obj/template/.claude/skills/documentation/SKILL.md +50 -0
  78. package/obj/template/.claude/skills/harness/SKILL.md +169 -0
  79. package/obj/template/.claude/skills/humanizer/SKILL.md +489 -0
  80. package/obj/template/.claude/skills/humanizer/references/ai-writing-detection.md +208 -0
  81. package/obj/template/.claude/skills/impeccable/PROJECT_NOTES.md +22 -0
  82. package/obj/template/.claude/skills/impeccable/SKILL.md +153 -0
  83. package/obj/template/.claude/skills/impeccable/agents/openai.yaml +4 -0
  84. package/obj/template/.claude/skills/impeccable/reference/adapt.md +190 -0
  85. package/obj/template/.claude/skills/impeccable/reference/animate.md +173 -0
  86. package/obj/template/.claude/skills/impeccable/reference/audit.md +134 -0
  87. package/obj/template/.claude/skills/impeccable/reference/bolder.md +113 -0
  88. package/obj/template/.claude/skills/impeccable/reference/brand.md +104 -0
  89. package/obj/template/.claude/skills/impeccable/reference/clarify.md +174 -0
  90. package/obj/template/.claude/skills/impeccable/reference/cognitive-load.md +106 -0
  91. package/obj/template/.claude/skills/impeccable/reference/color-and-contrast.md +105 -0
  92. package/obj/template/.claude/skills/impeccable/reference/colorize.md +154 -0
  93. package/obj/template/.claude/skills/impeccable/reference/craft.md +138 -0
  94. package/obj/template/.claude/skills/impeccable/reference/critique.md +213 -0
  95. package/obj/template/.claude/skills/impeccable/reference/delight.md +302 -0
  96. package/obj/template/.claude/skills/impeccable/reference/distill.md +111 -0
  97. package/obj/template/.claude/skills/impeccable/reference/document.md +427 -0
  98. package/obj/template/.claude/skills/impeccable/reference/extract.md +70 -0
  99. package/obj/template/.claude/skills/impeccable/reference/harden.md +347 -0
  100. package/obj/template/.claude/skills/impeccable/reference/heuristics-scoring.md +234 -0
  101. package/obj/template/.claude/skills/impeccable/reference/interaction-design.md +195 -0
  102. package/obj/template/.claude/skills/impeccable/reference/layout.md +141 -0
  103. package/obj/template/.claude/skills/impeccable/reference/live.md +513 -0
  104. package/obj/template/.claude/skills/impeccable/reference/motion-design.md +99 -0
  105. package/obj/template/.claude/skills/impeccable/reference/onboard.md +234 -0
  106. package/obj/template/.claude/skills/impeccable/reference/optimize.md +258 -0
  107. package/obj/template/.claude/skills/impeccable/reference/overdrive.md +130 -0
  108. package/obj/template/.claude/skills/impeccable/reference/personas.md +178 -0
  109. package/obj/template/.claude/skills/impeccable/reference/polish.md +232 -0
  110. package/obj/template/.claude/skills/impeccable/reference/product.md +62 -0
  111. package/obj/template/.claude/skills/impeccable/reference/quieter.md +99 -0
  112. package/obj/template/.claude/skills/impeccable/reference/responsive-design.md +114 -0
  113. package/obj/template/.claude/skills/impeccable/reference/shape.md +136 -0
  114. package/obj/template/.claude/skills/impeccable/reference/spatial-design.md +100 -0
  115. package/obj/template/.claude/skills/impeccable/reference/teach.md +137 -0
  116. package/obj/template/.claude/skills/impeccable/reference/typeset.md +124 -0
  117. package/obj/template/.claude/skills/impeccable/reference/typography.md +159 -0
  118. package/obj/template/.claude/skills/impeccable/reference/ux-writing.md +107 -0
  119. package/obj/template/.claude/skills/impeccable/scripts/cleanup-deprecated.mjs +284 -0
  120. package/obj/template/.claude/skills/impeccable/scripts/command-metadata.json +94 -0
  121. package/obj/template/.claude/skills/impeccable/scripts/design-parser.mjs +820 -0
  122. package/obj/template/.claude/skills/impeccable/scripts/detect-csp.mjs +198 -0
  123. package/obj/template/.claude/skills/impeccable/scripts/is-generated.mjs +69 -0
  124. package/obj/template/.claude/skills/impeccable/scripts/live-accept.mjs +465 -0
  125. package/obj/template/.claude/skills/impeccable/scripts/live-browser.js +4684 -0
  126. package/obj/template/.claude/skills/impeccable/scripts/live-inject.mjs +436 -0
  127. package/obj/template/.claude/skills/impeccable/scripts/live-poll.mjs +187 -0
  128. package/obj/template/.claude/skills/impeccable/scripts/live-server.mjs +679 -0
  129. package/obj/template/.claude/skills/impeccable/scripts/live-wrap.mjs +395 -0
  130. package/obj/template/.claude/skills/impeccable/scripts/live.mjs +247 -0
  131. package/obj/template/.claude/skills/impeccable/scripts/load-context.mjs +93 -0
  132. package/obj/template/.claude/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
  133. package/obj/template/.claude/skills/impeccable/scripts/pin.mjs +214 -0
  134. package/obj/template/.claude/skills/implement/SKILL.md +83 -0
  135. package/obj/template/.claude/skills/intake/SKILL.md +46 -0
  136. package/obj/template/.claude/skills/intake/template.md +61 -0
  137. package/obj/template/.claude/skills/integrate/SKILL.md +62 -0
  138. package/obj/template/.claude/skills/memory-flush/SKILL.md +172 -0
  139. package/obj/template/.claude/skills/memory-flush/sweep.py +286 -0
  140. package/obj/template/.claude/skills/memory-flush/tests/run.sh +327 -0
  141. package/obj/template/.claude/skills/prose/SKILL.md +119 -0
  142. package/obj/template/.claude/skills/rca/SKILL.md +42 -0
  143. package/obj/template/.claude/skills/rca/template.md +83 -0
  144. package/obj/template/.claude/skills/research/SKILL.md +75 -0
  145. package/obj/template/.claude/skills/scenario/SKILL.md +64 -0
  146. package/obj/template/.claude/skills/scout/SKILL.md +72 -0
  147. package/obj/template/.claude/skills/security/SKILL.md +75 -0
  148. package/obj/template/.claude/skills/simplify/SKILL.md +67 -0
  149. package/obj/template/.claude/skills/spec/SKILL.md +69 -0
  150. package/obj/template/.claude/skills/spec/template.md +274 -0
  151. package/obj/template/.claude/skills/spec-diagram-review/SKILL.md +81 -0
  152. package/obj/template/.claude/skills/spec-lint/SKILL.md +55 -0
  153. package/obj/template/.claude/skills/spec-lint/lint.sh +218 -0
  154. package/obj/template/.claude/skills/spec-render/SKILL.md +45 -0
  155. package/obj/template/.claude/skills/spec-render/render.sh +109 -0
  156. package/obj/template/.claude/skills/spec-traceability-review/SKILL.md +72 -0
  157. package/obj/template/.claude/skills/swarm-dispatch/SKILL.md +212 -0
  158. package/obj/template/.claude/skills/swarm-dispatch/swarm_merge.sh +154 -0
  159. package/obj/template/.claude/skills/swarm-plan/SKILL.md +90 -0
  160. package/obj/template/.claude/skills/swarm-plan/validate.sh +181 -0
  161. package/obj/template/.claude/skills/tdd/SKILL.md +100 -0
  162. package/obj/template/.claude/skills/technical-tutorials/SKILL.md +569 -0
  163. package/obj/template/.claude/skills/technical-tutorials/references/audience-context-README.md +53 -0
  164. package/obj/template/.claude/skills/technical-tutorials/references/audience-context.md +246 -0
  165. package/obj/template/.claude/skills/technical-tutorials/references/audience-example.md +175 -0
  166. package/obj/template/.claude/skills/technical-tutorials/references/audience-template.md +152 -0
  167. package/obj/template/.claude/skills/triage/SKILL.md +55 -0
  168. package/obj/template/.claude/skills/verify/SKILL.md +74 -0
  169. package/obj/template/.mcp.json +24 -0
  170. package/obj/template/CLAUDE.md +327 -0
  171. package/obj/template/docs/init/seed.md +585 -0
  172. package/obj/template/manifest.json +214 -0
  173. package/package.json +48 -0
  174. package/src/.mcp.template.json +24 -0
  175. package/src/.npmrc.template +2 -0
  176. package/src/CLAUDE.template.md +327 -0
  177. package/src/agents/swarm-worker.template.md +51 -0
  178. package/src/cli/conflict.js +31 -0
  179. package/src/cli/doctor.js +152 -0
  180. package/src/cli/install.js +93 -0
  181. package/src/cli/io.js +27 -0
  182. package/src/cli/manifest.js +38 -0
  183. package/src/cli/mcp.js +54 -0
  184. package/src/cli/merge.js +107 -0
  185. package/src/cli/plantuml.js +121 -0
  186. package/src/cli/util.js +10 -0
  187. package/src/memory/_pending.template.md +15 -0
  188. package/src/memory/_resume.template.md +12 -0
  189. package/src/memory/conventions.template.md +26 -0
  190. package/src/memory/decisions.template.md +29 -0
  191. package/src/memory/landmarks.template.md +26 -0
  192. package/src/memory/landmines.template.md +27 -0
  193. package/src/memory/libraries.template.md +27 -0
  194. package/src/memory/pending-questions.template.md +28 -0
  195. package/src/project.template.json +221 -0
  196. package/src/seed.template.md +585 -0
  197. package/src/settings.template.json +110 -0
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: brd
3
+ owner: baseline
4
+ description: Draft a Business Requirements Document (BRD) for cross-functional or stakeholder-heavy work that needs more structure than an intake. Use after `/intake` when the request spans multiple systems/teams, carries regulatory weight, or needs formal sign-off. Output lives at `docs/brd/<slug>.md`.
5
+ ---
6
+
7
+ # BRD — Business Requirements Document
8
+
9
+ You are drafting a BRD. BRDs are heavier than intakes — they exist when a request needs explicit sign-off from named business stakeholders, and when the **why** and the **what** must survive independently of the **how** (the spec).
10
+
11
+ **Use a BRD when:**
12
+ - Multiple teams or external stakeholders need to align.
13
+ - Regulatory, legal, or compliance concerns shape the requirements.
14
+ - Business milestones or contractual dates are tied to the work.
15
+ - Budget or headcount implications warrant an approved scope.
16
+
17
+ **Don't use a BRD for:** single-team feature work, quickfixes, or internal refactors. Those need an intake + spec, nothing more.
18
+
19
+ ## Prerequisite
20
+
21
+ Either `/intake` has completed (there's a corresponding `docs/intake/<slug>.md`), OR the user is starting directly at BRD because the intake exists upstream (e.g., in Linear/Jira) and they want to formalize it here.
22
+
23
+ ## Inputs
24
+
25
+ - The intake document (if any) — it supplies **Problem** and **Goal**.
26
+ - The user's additional context about stakeholders, timelines, and compliance.
27
+ - `template.md` in this skill directory.
28
+
29
+ ## Steps
30
+
31
+ 1. If a corresponding intake exists at `docs/intake/<slug>.md`, read it. Map **Problem → Business objective** and **Goal → Executive summary**.
32
+ 2. Read `template.md`. Every heading must appear in the output.
33
+ 3. For each section, write content that answers the questions in the template comments. If unknown, list the gap under **Open questions** — never fabricate stakeholder names, dates, or dollar amounts.
34
+ 4. Name every requirement with an ID: `BR-001`, `BR-002`, … for business reqs; `FR-001`, … for functional; `NFR-001`, … for non-functional. Downstream spec AC will reference these IDs.
35
+ 5. Write to `docs/brd/<slug>.md` (same slug as the intake, if one exists).
36
+ 6. Tell the user: "BRD drafted at `docs/brd/<slug>.md`. Sign-offs required from: <list>. Open questions: N. Next: `/scout` (or get sign-offs first if you want to freeze scope)."
37
+
38
+ ## Drafting rules
39
+
40
+ - **Requirements are testable, not aspirational.** "The system shall support peak traffic" is aspirational. "The system shall sustain 500 RPS with P95 < 200ms" is testable.
41
+ - **Separate business from functional from non-functional.** A mixed list becomes unactionable.
42
+ - **Risks must have owners.** "Risk: the vendor API could change" with no owner is noise. Either name who monitors it or delete it.
43
+ - **Sign-offs are names, not titles.** "Head of Compliance" can't sign — their replacement, who is a specific person, can.
44
+ - **Do not write the solution.** The BRD says what must be true; the spec says how. If you catch yourself writing "we'll use Kafka", stop — that belongs in `/spec`.
@@ -0,0 +1,83 @@
1
+ # <BRD title — business outcome, not implementation>
2
+
3
+ <!--
4
+ Business Requirements Document. Produced by the `brd` skill.
5
+ Required sections (enforced by artifact_template_guard): Business objective,
6
+ Scope, Business requirements.
7
+ -->
8
+
9
+ ## Executive summary
10
+
11
+ <Two to four sentences. What business problem are we solving, why now, and
12
+ what changes when we're done? A reader who sees only this paragraph should
13
+ know whether to care.>
14
+
15
+ ## Business objective
16
+
17
+ <The outcome in business terms: revenue, cost, risk, compliance, customer
18
+ satisfaction. Tie to a specific metric where possible.>
19
+
20
+ ## Scope
21
+
22
+ ### In scope
23
+ - <item>
24
+ - <item>
25
+
26
+ ### Out of scope
27
+ - <item — explicit exclusions that the spec cannot later quietly include>
28
+
29
+ ## Business requirements
30
+
31
+ <The "what must be true for this to succeed" statements. Each has an ID so
32
+ the spec and tests can reference it.>
33
+
34
+ - **BR-001** — <requirement statement>. Rationale: <why>.
35
+ - **BR-002** — <requirement statement>. Rationale: <why>.
36
+
37
+ ## Functional requirements
38
+
39
+ <How the system must behave to satisfy the business requirements. Each ties
40
+ back to a BR.>
41
+
42
+ - **FR-001** — <behaviour>. Satisfies: BR-001.
43
+ - **FR-002** — <behaviour>. Satisfies: BR-001, BR-002.
44
+
45
+ ## Non-functional requirements
46
+
47
+ <Performance, security, availability, observability, compliance. Must be
48
+ measurable.>
49
+
50
+ - **NFR-001** — <e.g., P95 latency < 200ms at 500 RPS>. Rationale: BR-00X.
51
+ - **NFR-002** — <e.g., data at rest encrypted with AES-256-GCM>. Rationale:
52
+ regulatory (specify regulation).
53
+
54
+ ## Stakeholders and sign-offs
55
+
56
+ | Name | Role | Sign-off required | Status |
57
+ |------|------|-------------------|--------|
58
+ | <name> | <business owner> | yes | pending |
59
+ | <name> | <eng lead> | yes | pending |
60
+ | <name> | <compliance> | yes | pending |
61
+
62
+ ## Dependencies
63
+
64
+ <External systems, teams, vendors, or pre-existing work this BRD depends on.>
65
+
66
+ - <dependency — owner — blocking? yes/no>
67
+
68
+ ## Risks
69
+
70
+ <Named risks, each with owner and mitigation.>
71
+
72
+ - **R-01** — <description>. Owner: <name>. Mitigation: <what we'll do>.
73
+
74
+ ## Timeline / milestones
75
+
76
+ <Dates tied to named deliverables. Avoid false precision — if the date is a
77
+ target, mark it "target"; if it's a commitment, mark it "committed".>
78
+
79
+ - <date> — <milestone> — target | committed
80
+
81
+ ## Open questions
82
+
83
+ - <question>
@@ -0,0 +1,99 @@
1
+ ---
2
+ name: chore
3
+ owner: baseline
4
+ description: Workflow track for tasks that need no TDD — documentation edits, governance count bumps, vendored-skill content updates, configuration tweaks, formatting, typo fixes, dependency bumps where no project code changes. Skips `/scenario` and `/implement` (no failing test to drive) and runs the work directly. `verify`, `archive`, `/grant-commit`, and `/commit` remain mandatory. `simplify`, `integrate`, and `document` are conditional — required when the diff hits one of the listed triggers, optional otherwise. Chore is a stripped-down pipeline, not a bypass; never silently skip a conditional phase whose triggers apply.
5
+ argument-hint: "<one-line description of the chore>"
6
+ ---
7
+
8
+ # chore — workflow for tasks that don't need TDD
9
+
10
+ This skill runs a stripped-down workflow for tasks where nothing is meaningfully driven by a failing test. The full `/tdd` RALPH cycle is theatre when the change is "fix a typo", "update a count", "remap a vendored path", or "tighten a description" — there is no test that catches a typo, and the project audit (or a downstream lint) serves as the regression check.
11
+
12
+ The chore workflow exists so this class of work can move with the **right** ceremony — real verification of "did I break anything" without the scenario+implement loop, and conditional simplify/integrate/document passes when the diff actually warrants them.
13
+
14
+ ## Definition: when is a task a chore?
15
+
16
+ A task is a **chore** if and only if **it has no code changes that need TDD**. Concretely, a chore is anything from this list:
17
+
18
+ - Documentation edits — `README.md`, `CLAUDE.md` prose, `docs/init/seed.md` prose, governance count refreshes, skill SKILL.md descriptions, reference docs.
19
+ - Vendored-skill content updates — path remaps (e.g. `.agents/` → `.claude/skills/`), count refreshes, "Related Skills" annotations, license-required modification notices.
20
+ - Configuration tweaks — `project.json`, `.mcp.json`, `settings.json` edits whose behavioural effect is config-driven (a new declaration, a flipped flag) rather than code-driven.
21
+ - Formatting / typo fixes anywhere in the repo.
22
+ - Dependency bumps where no project code changes alongside.
23
+ - Skill consolidation moves — collapsing a single-consumer skill into its consumer's `references/` directory.
24
+ - File renames or path remaps with no behavioural change.
25
+
26
+ A task is **not a chore** if any of:
27
+
28
+ - New runtime behaviour is being added — the failing test is the only way to drive it correctly.
29
+ - A bug is being fixed and regressing to that bug would be undetectable without a test — the fix SHALL come with a test.
30
+ - A refactor changes behaviour under specific inputs — TDD captures the boundary.
31
+
32
+ The classification rule is: *if there is no failing test that should exist for this work, it is a chore. Otherwise it is `/tdd` (or higher).*
33
+
34
+ `/triage` decides the classification; this skill confirms it on entry.
35
+
36
+ ## Prereq
37
+
38
+ `.claude/state/workflow.json` exists with `entry_phase: "chore"` (written by `/triage`). If the prereq is not met, refuse and surface the mismatch.
39
+
40
+ ## Phase shape
41
+
42
+ ### Mandatory phases (always run)
43
+
44
+ 1. **Edit** — apply the change directly. No `/scenario`, no `/implement` — there is no failing test to drive.
45
+ 2. **`verify`** — run the project test command and stamp `.claude/state/last_test_result`. FAIL means stop, surface, and route the user to `/triage` for a proper bugfix track. The verdict is binding (the `verify_pass_guard` hook reads this file).
46
+ 3. **`archive`** — empty bundle is fine; `/commit`'s prereq requires `archive` in `completed`.
47
+ 4. **`/grant-commit` then `/commit`** — user-required consent + commit. Same as every other workflow.
48
+
49
+ ### Conditional phases (required when triggers apply, optional otherwise)
50
+
51
+ 5. **`simplify`** — required when **any** of:
52
+ - Diff exceeds ~30 lines OR touches more than 3 files.
53
+ - The change includes refactor-like moves (renames, restructuring, file relocations).
54
+ - The chore creates duplication that future cleanup will need to consolidate.
55
+ - More than one file in the diff would benefit from a reuse / structure pass.
56
+ Otherwise skip — and say so in your end-of-chore summary so the choice is auditable.
57
+
58
+ 6. **`integrate`** — required when **any** of:
59
+ - The diff touches the test surface — test command, fixtures, hook scripts, `settings.json` hook wiring, `project.json → test/lint` keys.
60
+ - The diff alters MCP server declarations or runtime config that affects how the harness behaves.
61
+ - The diff could plausibly break unrelated downstream phases (e.g. editing an audit script's `EXPECTED_*` set).
62
+ Otherwise the mandatory `verify` stamp is sufficient — note the skip in the summary.
63
+
64
+ 7. **`document`** — required when **any** of:
65
+ - User-facing prose changes — `README.md`, `CLAUDE.md` prose, `docs/init/seed.md` prose, skill `SKILL.md` `description:` lines, public-facing reference docs.
66
+ - Counts or inventories change — skill count, hook count, command count, MCP server count, alternate-track count.
67
+ - New conventions are introduced — a new helper file, a new reference doc, a new directory.
68
+ - The `seed.md §16` follow-ups list needs an entry resolved or added.
69
+ - The chore touches `src/` templates (the templates are user-facing once `npx @friedbotstudio/create-baseline` runs).
70
+ Otherwise skip — note in the summary.
71
+
72
+ If a conditional phase is required, run it **before** `/grant-commit`. If you skip one, the end-of-chore summary SHALL state which conditional phases were skipped and why. Silent skips are not allowed.
73
+
74
+ ## Steps
75
+
76
+ 1. Read `.claude/state/workflow.json`. Confirm `entry_phase == "chore"`. If not, stop and surface the mismatch — the user reached this skill without the correct triage classification.
77
+ 2. Restate the intended edits inline: file paths, brief description per file, estimated total diff size. Confirm with the user if anything is ambiguous.
78
+ 3. Apply the edits via `Edit` / `MultiEdit` / `Write`. Honour the engineering rules from CLAUDE.md Article VI (no stubs, no commented-out code, no `TODO` / `FIXME` / `HACK` / `XXX`).
79
+ 4. **Run the binding test command and stamp the verdict (inlined verify).** Per `.claude/skills/verify/SKILL.md` (the contract doc): read `.claude/project.json → test.cmd`; run via Bash from project root (capture stdout, stderr, exit code; no retry); apply verdict rules (`PASS` iff exit 0 AND at least one test executed AND no failed/errored test; otherwise `FAIL`); atomically write `.claude/state/last_test_result` with the canonical four-line format. The `verify_pass_guard` hook reads line 1 as the binding verdict. If the verdict is `FAIL`, stop — the user investigates; chore does not loop. Write `.claude/state/harness_state` with `state: "yielded"` and `reason: "chore verify FAIL"` so the Stop hook stays silent.
80
+ 5. Walk the conditional triggers in order. For each:
81
+ - **Required** → invoke the phase skill and append it to `workflow.json → completed`.
82
+ - **Skipped** → record the rationale in your end-of-chore summary; do not append to `completed`.
83
+ 6. Invoke `Skill(archive)` — mandatory.
84
+ 7. Append `"chore"`, `"archive"`, and any conditional phases that ran to `workflow.json → completed`. Update `updated_at` to the current epoch.
85
+ 8. **Marker op FIRST, then write `harness_state`, then emit end-of-chore summary.** On `state: "continue"` (more phases follow, e.g. archive is still pending): `echo "<slug>" > .claude/state/.harness_active` to refresh the active marker, then write `.claude/state/harness_state` with `{state: "continue", slug, reason}`. On `state: "done"` (archive just appended and no further phases remain): `rm -f .claude/state/.harness_active`, then write `harness_state` with `{state: "done", slug, reason}`. The state file carries exactly three keys; no `written_at`, no `tick_count`. Then tell the user:
86
+ - "Chore green."
87
+ - Files changed.
88
+ - Conditional phases run (and why).
89
+ - Conditional phases skipped (and why).
90
+ - "Run `/grant-commit`, then `/commit` to finalize." *(omit this line on non-git projects where commit is excepted; instead say "Workflow ends after `/archive` on this non-git project.")*
91
+
92
+ ## Constraints
93
+
94
+ - The `verify` stamp is binding. `verify_pass_guard` reads `.claude/state/last_test_result`; that file is the truth.
95
+ - No subagent delegation — Article II applies to chore the same as every other phase skill.
96
+ - A `FAIL` from `verify` is non-recoverable inside this skill — chore does not loop. If the audit reveals a real bug, the user runs `/triage` for a proper bugfix track.
97
+ - Conditional phases are *conditional*, not *forbidden*. **If in doubt, run them.** The cost of running a `simplify` or `document` pass that turned out unnecessary is small; the cost of skipping one whose triggers actually applied is shipping drift.
98
+ - The end-of-chore summary SHALL document every conditional-phase skip. Silent skips defeat the auditability the chore workflow is designed for.
99
+ - Chore is **not** a bypass for the canonical workflow's quality gates. It is a stripped-down ordering of the same gates, with the test-first phases removed because there is nothing to test-first.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,69 @@
1
+ claude-automation-recommender
2
+ ==============================
3
+
4
+ This skill is vendored from the `claude-code-setup` plugin published by
5
+ Anthropic and is redistributed here under the terms of the Apache License,
6
+ Version 2.0 (see LICENSE in this directory).
7
+
8
+ Upstream:
9
+ Plugin name: claude-code-setup
10
+ Upstream version: 1.0.0
11
+ Author: Anthropic <support@anthropic.com>
12
+ Vendored into: .claude/skills/claude-automation-recommender/
13
+ Vendored on: 2026-04-25
14
+
15
+ Modifications:
16
+ See "Local changes" below.
17
+
18
+ Local changes:
19
+ - 2026-04-25: Added "Working with the baseline" section to SKILL.md.
20
+ Lists the 14 hooks / 8 subagents / 26 skills / 4 commands / 2 MCPs the
21
+ baseline already provides, instructing the recommender to surface
22
+ *gaps* and project-specific tailoring rather than duplicate baseline
23
+ components. Also added a JSON output schema for /init-project to
24
+ consume the recommender's findings programmatically.
25
+ - 2026-04-28: Refreshed "Working with the baseline" counts in SKILL.md
26
+ to match the current shape: 14 → 17 hooks (the 3 lifecycle hooks
27
+ `memory_session_start`, `memory_stop`, `memory_pre_compact` were
28
+ added between 2026-04-25 and now), 34 → 36 skills (the `chore`
29
+ alternate track and `memory-flush` memory-curation skill were added).
30
+ The historical 2026-04-25 entry above is preserved verbatim as a
31
+ record of the snapshot at that date.
32
+ - 2026-04-28 (later): 36 → 37 skills — the user added a vendored
33
+ `developer-audience-context` skill that `technical-tutorials` now
34
+ references as its audience-loader. Updated SKILL.md skill count and
35
+ breakdown; added the new mandatory-sub-skill chain
36
+ (`technical-tutorials` → `developer-audience-context`) to the
37
+ bullet's "Several skills mandatorily invoke another skill" list.
38
+ - 2026-04-28 (final): 37 → 36 skills — consolidated the standalone
39
+ `developer-audience-context` skill into `technical-tutorials` per the
40
+ user's call ("not generic enough; exists solely for technical-tutorials").
41
+ Audience-context content moved into `technical-tutorials/references/`
42
+ as `audience-context.md`, `audience-template.md`, `audience-example.md`,
43
+ and `audience-context-README.md`. Apache 2.0 attribution preserved via
44
+ the consolidated README in that references directory. Updated SKILL.md
45
+ skill count + breakdown; removed the mandatory-sub-skill chain
46
+ (`technical-tutorials` no longer invokes a separate skill — the
47
+ audience reference is local).
48
+ - 2026-05-12: Refreshed the "Working with the baseline" hook count in
49
+ SKILL.md to match the current shape: 17 → 22 hooks. The breakdown is
50
+ now "17 write/run-boundary guards plus 4 lifecycle hooks plus 1
51
+ input-boundary hook". The list of write/run-boundary guards was
52
+ completed (previously omitted `swarm_approval_guard`,
53
+ `spec_design_calls_guard`, and `process_lifecycle_guard`); the
54
+ lifecycle list now includes `harness_continuation` (the workflow
55
+ auto-continuation Stop hook added by the `harness-auto-continuation`
56
+ workflow at `docs/archive/2026-05-12/harness-auto-continuation/`);
57
+ `consent_gate_grant` is named as the input-boundary hook. Skill count
58
+ unchanged at 36. No upstream behavior was modified; only the local
59
+ baseline-inventory paragraph was updated.
60
+ - References/ directory unchanged from upstream.
61
+
62
+ License:
63
+ Apache License 2.0. Full text in ./LICENSE.
64
+
65
+ Why vendored:
66
+ The recommender is a mandatory first step in this baseline (see
67
+ docs/init/seed.md §0). Vendoring removes the runtime dependency on
68
+ having the `claude-code-setup` plugin installed and ensures the
69
+ capability travels with the repository.