@kennethsolomon/shipkit 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +321 -0
  2. package/bin/shipkit.js +146 -0
  3. package/commands/sk/brainstorm.md +63 -0
  4. package/commands/sk/branch.md +35 -0
  5. package/commands/sk/config.md +96 -0
  6. package/commands/sk/execute-plan.md +85 -0
  7. package/commands/sk/features.md +238 -0
  8. package/commands/sk/finish-feature.md +154 -0
  9. package/commands/sk/help.md +103 -0
  10. package/commands/sk/hotfix.md +61 -0
  11. package/commands/sk/plan.md +30 -0
  12. package/commands/sk/release.md +72 -0
  13. package/commands/sk/security-check.md +188 -0
  14. package/commands/sk/set-profile.md +71 -0
  15. package/commands/sk/status.md +25 -0
  16. package/commands/sk/update-task.md +35 -0
  17. package/commands/sk/write-plan.md +72 -0
  18. package/package.json +23 -0
  19. package/skills/sk:accessibility/LICENSE.txt +177 -0
  20. package/skills/sk:accessibility/SKILL.md +150 -0
  21. package/skills/sk:api-design/LICENSE.txt +177 -0
  22. package/skills/sk:api-design/SKILL.md +158 -0
  23. package/skills/sk:brainstorming/SKILL.md +124 -0
  24. package/skills/sk:debug/SKILL.md +252 -0
  25. package/skills/sk:debug/debug_conductor.py +177 -0
  26. package/skills/sk:debug/lib/__init__.py +1 -0
  27. package/skills/sk:debug/lib/bug_gatherer.py +55 -0
  28. package/skills/sk:debug/lib/context_reader.py +139 -0
  29. package/skills/sk:debug/lib/findings_writer.py +76 -0
  30. package/skills/sk:debug/lib/lessons_writer.py +165 -0
  31. package/skills/sk:debug/lib/step_runner.py +326 -0
  32. package/skills/sk:features/SKILL.md +238 -0
  33. package/skills/sk:frontend-design/LICENSE.txt +177 -0
  34. package/skills/sk:frontend-design/SKILL.md +191 -0
  35. package/skills/sk:laravel-init/SKILL.md +37 -0
  36. package/skills/sk:laravel-new/SKILL.md +68 -0
  37. package/skills/sk:lint/SKILL.md +113 -0
  38. package/skills/sk:perf/LICENSE.txt +177 -0
  39. package/skills/sk:perf/SKILL.md +188 -0
  40. package/skills/sk:release/SKILL.md +113 -0
  41. package/skills/sk:release/references/android-checklist.md +269 -0
  42. package/skills/sk:release/references/ios-checklist.md +339 -0
  43. package/skills/sk:release/release.sh +378 -0
  44. package/skills/sk:review/SKILL.md +346 -0
  45. package/skills/sk:review/references/security-checklist.md +223 -0
  46. package/skills/sk:schema-migrate/SKILL.md +125 -0
  47. package/skills/sk:schema-migrate/orms/drizzle.md +546 -0
  48. package/skills/sk:schema-migrate/orms/laravel.md +367 -0
  49. package/skills/sk:schema-migrate/orms/prisma.md +357 -0
  50. package/skills/sk:schema-migrate/orms/rails.md +351 -0
  51. package/skills/sk:schema-migrate/orms/sqlalchemy.md +385 -0
  52. package/skills/sk:schema-migrate/references/detection.md +110 -0
  53. package/skills/sk:setup-claude/SKILL.md +365 -0
  54. package/skills/sk:setup-claude/references/detection.md +6 -0
  55. package/skills/sk:setup-claude/references/templates.md +11 -0
  56. package/skills/sk:setup-claude/scripts/apply_setup_claude.py +443 -0
  57. package/skills/sk:setup-claude/scripts/detect_arch_changes.py +437 -0
  58. package/skills/sk:setup-claude/templates/.claude/docs/arch-changelog-guide.md.template +6 -0
  59. package/skills/sk:setup-claude/templates/.claude/docs/changelog-guide.md.template +12 -0
  60. package/skills/sk:setup-claude/templates/CHANGELOG.md.template +21 -0
  61. package/skills/sk:setup-claude/templates/CLAUDE.md.template +299 -0
  62. package/skills/sk:setup-claude/templates/arch-changelog-guide.md.template +3 -0
  63. package/skills/sk:setup-claude/templates/changelog-guide.md.template +3 -0
  64. package/skills/sk:setup-claude/templates/commands/brainstorm.md.template +74 -0
  65. package/skills/sk:setup-claude/templates/commands/execute-plan.md.template +57 -0
  66. package/skills/sk:setup-claude/templates/commands/features.md.template +238 -0
  67. package/skills/sk:setup-claude/templates/commands/finish-feature.md.template +155 -0
  68. package/skills/sk:setup-claude/templates/commands/plan.md.template +30 -0
  69. package/skills/sk:setup-claude/templates/commands/re-setup.md.template +38 -0
  70. package/skills/sk:setup-claude/templates/commands/release.md.template +74 -0
  71. package/skills/sk:setup-claude/templates/commands/security-check.md.template +172 -0
  72. package/skills/sk:setup-claude/templates/commands/status.md.template +17 -0
  73. package/skills/sk:setup-claude/templates/commands/write-plan.md.template +34 -0
  74. package/skills/sk:setup-claude/templates/finish-feature.md.template +3 -0
  75. package/skills/sk:setup-claude/templates/plan.md.template +3 -0
  76. package/skills/sk:setup-claude/templates/status.md.template +3 -0
  77. package/skills/sk:setup-claude/templates/tasks/findings.md.template +19 -0
  78. package/skills/sk:setup-claude/templates/tasks/lessons.md.template +26 -0
  79. package/skills/sk:setup-claude/templates/tasks/progress.md.template +20 -0
  80. package/skills/sk:setup-claude/templates/tasks/security-findings.md.template +5 -0
  81. package/skills/sk:setup-claude/templates/tasks/todo.md.template +26 -0
  82. package/skills/sk:setup-claude/templates/tasks/workflow-status.md.template +31 -0
  83. package/skills/sk:setup-claude/templates/tasks-findings.md.template +3 -0
  84. package/skills/sk:setup-claude/templates/tasks-lessons.md.template +3 -0
  85. package/skills/sk:setup-claude/templates/tasks-progress.md.template +3 -0
  86. package/skills/sk:setup-claude/templates/tasks-todo.md.template +3 -0
  87. package/skills/sk:setup-claude/tests/test_apply_setup_claude.py +193 -0
  88. package/skills/sk:setup-optimizer/SKILL.md +184 -0
  89. package/skills/sk:setup-optimizer/lib/__init__.py +24 -0
  90. package/skills/sk:setup-optimizer/lib/detect.py +205 -0
  91. package/skills/sk:setup-optimizer/lib/discover.py +221 -0
  92. package/skills/sk:setup-optimizer/lib/enrich.py +163 -0
  93. package/skills/sk:setup-optimizer/lib/merge.py +277 -0
  94. package/skills/sk:setup-optimizer/lib/sidecar.py +129 -0
  95. package/skills/sk:setup-optimizer/optimize_claude.py +174 -0
  96. package/skills/sk:setup-optimizer/templates/CLAUDE.md.template +105 -0
  97. package/skills/sk:skill-creator/LICENSE.txt +202 -0
  98. package/skills/sk:skill-creator/SKILL.md +479 -0
  99. package/skills/sk:skill-creator/agents/analyzer.md +274 -0
  100. package/skills/sk:skill-creator/agents/comparator.md +202 -0
  101. package/skills/sk:skill-creator/agents/grader.md +223 -0
  102. package/skills/sk:skill-creator/assets/eval_review.html +146 -0
  103. package/skills/sk:skill-creator/eval-viewer/generate_review.py +471 -0
  104. package/skills/sk:skill-creator/eval-viewer/viewer.html +1325 -0
  105. package/skills/sk:skill-creator/references/schemas.md +430 -0
  106. package/skills/sk:skill-creator/scripts/aggregate_benchmark.py +401 -0
  107. package/skills/sk:skill-creator/scripts/generate_report.py +326 -0
  108. package/skills/sk:skill-creator/scripts/improve_description.py +248 -0
  109. package/skills/sk:skill-creator/scripts/package_skill.py +136 -0
  110. package/skills/sk:skill-creator/scripts/quick_validate.py +103 -0
  111. package/skills/sk:skill-creator/scripts/run_eval.py +310 -0
  112. package/skills/sk:skill-creator/scripts/run_loop.py +332 -0
  113. package/skills/sk:skill-creator/scripts/utils.py +47 -0
  114. package/skills/sk:smart-commit/SKILL.md +175 -0
  115. package/skills/sk:test/SKILL.md +171 -0
  116. package/skills/sk:write-tests/SKILL.md +195 -0
  117. package/skills/sk:write-tests/references/patterns.md +209 -0
@@ -0,0 +1,238 @@
1
+ ---
2
+ name: sk:features
3
+ description: "Sync docs/sk:features/ specs with the current codebase. Auto-detects changed areas and updates only affected specs. Creates the spec system from scratch if it doesn't exist."
4
+ ---
5
+
6
+ <!-- Generated by /sk:setup-claude -->
7
+
8
+ # /sk:features
9
+
10
+ Keep feature specifications in `docs/sk:features/` in sync with the actual codebase.
11
+ Works with **any project** — framework-agnostic, auto-discovers source structure.
12
+
13
+ ## What This Does
14
+
15
+ Maintains `docs/sk:features/` as a platform-agnostic feature specification system —
16
+ the single source of truth shared between web, mobile, and any other platform
17
+ that uses the same backend. Each spec covers: DB schema, business logic, API
18
+ contract, permissions, edge cases, error states, web/mobile UI behavior, and
19
+ platform divergences.
20
+
21
+ ---
22
+
23
+ ## Steps
24
+
25
+ ### Step 1: Detect Project State
26
+
27
+ Check what exists:
28
+
29
+ ```bash
30
+ ls docs/sk:features/ 2>/dev/null && echo "EXISTS" || echo "MISSING"
31
+ ls docs/FEATURES.md 2>/dev/null && echo "INDEX_EXISTS" || echo "INDEX_MISSING"
32
+ ```
33
+
34
+ **If `docs/sk:features/` does not exist:**
35
+ Ask the user: "No feature specification system found. Create one from scratch?"
36
+ - Yes → jump to **[Create From Scratch](#create-from-scratch)** below
37
+ - No → stop
38
+
39
+ **If `docs/sk:features/` exists:**
40
+ Continue to Step 2.
41
+
42
+ ---
43
+
44
+ ### Step 2: Determine Update Scope
45
+
46
+ Present three options:
47
+
48
+ > **What would you like to update?**
49
+ > **A. Auto-detect** *(recommended)* — scan recent git changes, update only affected specs
50
+ > **B. Select features** — pick which specs to update from the list
51
+ > **C. Refresh all** — update every spec from current source code
52
+
53
+ Wait for the user's choice.
54
+
55
+ ---
56
+
57
+ ### Step 3A: Auto-detect Changed Features
58
+
59
+ ```bash
60
+ git log --since="7 days ago" --name-only --pretty=format: | grep -v '^$' | sort -u
61
+ ```
62
+
63
+ Map changed file paths to feature specs using these rules:
64
+
65
+ 1. **Read `docs/FEATURES.md`** to get the list of all spec files and their names.
66
+ 2. For each changed file, determine which spec it belongs to:
67
+ - Match by **feature name similarity**: if the spec is `expenses.md`, look for changed files containing `expense` in their path.
68
+ - Match by **directory**: if the spec is `budgets.md`, match files under any `budgets/` or `budget/` directory.
69
+ - Match by **schema files**: if any migration file, `schema.sql`, `schema.prisma`, `database.ts`, or similar schema file changed → mark ALL specs as potentially affected (schema changes ripple everywhere).
70
+ 3. Deduplicate the affected spec list.
71
+ 4. Report which specs will be updated and ask for confirmation.
72
+
73
+ ---
74
+
75
+ ### Step 3B: User Selects Features
76
+
77
+ List all `.md` files in `docs/sk:features/` (excluding `_template.md`).
78
+ Let the user pick which ones to update.
79
+
80
+ ---
81
+
82
+ ### Step 3C: Refresh All
83
+
84
+ Set update list = all `.md` files in `docs/sk:features/` (excluding `_template.md`).
85
+
86
+ ---
87
+
88
+ ### Step 4: Update Each Affected Spec
89
+
90
+ For each spec file to update, follow this sequence:
91
+
92
+ #### 4a. Read the existing spec
93
+ Understand its current content and section structure.
94
+
95
+ #### 4b. Discover relevant source files
96
+
97
+ Use a three-step lookup — no hardcoded paths:
98
+
99
+ 1. **Name-based search**: the feature name from the spec filename (e.g., `expenses.md` → feature name `expenses`). Search the repo:
100
+ ```bash
101
+ # Find files whose name contains the feature keyword
102
+ find . -type f \( -name "*expense*" -o -name "*expenses*" \) \
103
+ ! -path "*/node_modules/*" ! -path "*/.git/*" ! -path "*/docs/*" \
104
+ 2>/dev/null | head -30
105
+ ```
106
+ Adjust the keyword to match the feature name.
107
+
108
+ 2. **Related Docs in spec**: read the `## Related Docs` section of the existing spec — it lists previously referenced files. Read those files too.
109
+
110
+ 3. **DB schema hint**: read the `## Database Schema` section — it names tables. Search migrations and schema files for those table names.
111
+
112
+ #### 4c. Read the source files
113
+ Read all discovered source files to understand the current implementation.
114
+
115
+ #### 4d. Identify what changed
116
+ Compare the current source code against what the spec describes:
117
+ - New or removed DB columns / tables / constraints
118
+ - Changed business logic rules or state transitions
119
+ - New/changed API payloads or query patterns
120
+ - Updated permission keys or tier requirements
121
+ - New edge cases, error codes, or recovery paths
122
+
123
+ #### 4e. Update only changed sections
124
+ Rewrite only the sections that are out of date. **Preserve all unchanged sections verbatim.**
125
+ Update the `> Status` block if the implementation status on either platform changed.
126
+
127
+ ---
128
+
129
+ ### Step 5: Handle New Features
130
+
131
+ If source code has a clear new feature (new hook, new route group, new major component) with no corresponding spec:
132
+
133
+ 1. Create `docs/sk:features/<feature-name>.md` using `docs/sk:features/_template.md` as base.
134
+ If `_template.md` doesn't exist, use this 11-section structure:
135
+ ```
136
+ Status → Overview → Database Schema → Business Logic → API Contract
137
+ → Permissions & Access Control → Edge Cases → Error States
138
+ → UI/UX Behavior (### Web + ### Mobile) → Platform Notes → Related Docs
139
+ ```
140
+ 2. Fill all 11 sections from current source code.
141
+ 3. Add the new spec to `docs/FEATURES.md` under the appropriate section.
142
+
143
+ ---
144
+
145
+ ### Step 6: Update Master Index
146
+
147
+ Review `docs/FEATURES.md`:
148
+ - Add links for any new specs
149
+ - Update status columns (Web / Mobile) if implementation status changed
150
+ - Update any tier/feature tables if permissions changed
151
+
152
+ ---
153
+
154
+ ### Step 7: Report and Commit
155
+
156
+ Show a summary:
157
+ - ✅ **Updated**: `spec-name.md` — what changed (1 sentence each)
158
+ - ➕ **Added**: any new spec files
159
+ - ⏭️ **Skipped**: specs with no detected changes
160
+
161
+ Ask: **"Commit the updated specs?"**
162
+ - Yes → stage only files under `docs/` and commit:
163
+ `docs(features): update feature specs to reflect current implementation`
164
+ - No → leave changes unstaged for the user to review
165
+
166
+ ---
167
+
168
+ ## Create From Scratch
169
+
170
+ When `docs/sk:features/` doesn't exist, discover and document all features:
171
+
172
+ ### Discovery Phase
173
+
174
+ 1. **Detect source structure** — find where feature logic lives:
175
+ ```bash
176
+ # Look for hooks, services, controllers, models, routes
177
+ ls src/ lib/ app/ 2>/dev/null
178
+ find . -maxdepth 4 -type f \
179
+ \( -name "use-*.ts" -o -name "use-*.js" \
180
+ -o -name "*.service.ts" -o -name "*.controller.ts" \
181
+ -o -name "*.model.ts" -o -name "*.router.ts" \) \
182
+ ! -path "*/node_modules/*" ! -path "*/.git/*" 2>/dev/null | head -50
183
+ ```
184
+
185
+ 2. **Detect schema files** — migrations, ORM schemas:
186
+ ```bash
187
+ find . -maxdepth 5 \
188
+ \( -name "schema.sql" -o -name "*.schema.prisma" \
189
+ -o -name "database.ts" -o -name "*.migration.*" \) \
190
+ ! -path "*/node_modules/*" ! -path "*/.git/*" 2>/dev/null
191
+ ls supabase/migrations/ 2>/dev/null | tail -10
192
+ ls prisma/ 2>/dev/null
193
+ ```
194
+
195
+ 3. **Identify feature domains** from the discovered files — group related files into named features.
196
+
197
+ 4. **Report discovered features** and ask the user to confirm/adjust the list before creating anything.
198
+
199
+ ### Creation Phase
200
+
201
+ For each confirmed feature:
202
+ 1. Read all relevant source files.
203
+ 2. Create `docs/sk:features/<feature-name>.md` with all 11 sections — based entirely on source code.
204
+
205
+ Also create:
206
+ - `docs/FEATURES.md` — master index with:
207
+ - How-to-use section (web path + mobile path via `../project-name/docs/`)
208
+ - Feature table grouped by domain
209
+ - Tier/subscription overview (if the project has tiers)
210
+ - `docs/sk:features/_template.md` — 11-section template for future specs
211
+
212
+ Commit: `docs: add feature specification system`
213
+
214
+ ---
215
+
216
+ ## Quality Rules (Always Apply)
217
+
218
+ - **Source-verified only** — every claim must be findable in source code; never invent behavior
219
+ - **No placeholders** — no `// TODO`, no `false // will be computed`, no assumed values
220
+ - **Surgical updates** — only rewrite what changed; preserve unchanged sections verbatim
221
+ - **Numeric JSX coercion** — when documenting frontend behavior, note `!!value` (not `value &&`) for numerics to avoid rendering `0` as text in React/React Native
222
+ - **Local date, not UTC** — for any time-bounded query (current month, today, etc.), document that implementations must use local `new Date()`, not `toISOString()` which returns UTC and causes off-by-one for users in non-UTC timezones
223
+ - **All 11 sections required** — mark "N/A" only if genuinely not applicable
224
+
225
+ ## Source Discovery Heuristics (Reference)
226
+
227
+ When locating source files for a feature named `<name>`:
228
+
229
+ | What to look for | Search pattern |
230
+ |---|---|
231
+ | Hooks / composables | `use-<name>.*`, `use<Name>.*` |
232
+ | Components | directories or files matching `<name>/`, `*<name>*` |
233
+ | API routes / controllers | `<name>.route.*`, `<name>.controller.*`, `api/<name>/` |
234
+ | Services / repositories | `<name>.service.*`, `<name>.repo.*` |
235
+ | DB schema | `migrations/` containing table name, `schema.prisma`, `database.ts` |
236
+ | Tests | `<name>.test.*`, `<name>.spec.*` |
237
+
238
+ These are starting points — read broadly and verify before updating any section.
@@ -0,0 +1,177 @@
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
@@ -0,0 +1,191 @@
1
+ ---
2
+ name: sk:frontend-design
3
+ description: Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Produces design direction, mockups, and visual specifications — NOT code.
4
+ license: Complete terms in LICENSE.txt
5
+ ---
6
+
7
+ ## CRITICAL: Design Phase Only — NO CODE
8
+
9
+ **This skill is a design phase, not an implementation phase.**
10
+
11
+ - **DO NOT** write, edit, or generate any code (no React, no HTML/CSS/JS, no file edits)
12
+ - **DO NOT** use file editing tools (Edit, Write, Bash)
13
+ - **Pencil MCP tools ARE allowed** — they create visual design artifacts, not code
14
+ - **DO produce** design direction, ASCII mockups, layout specs, component structure descriptions, color/typography decisions, and interaction notes
15
+ - Implementation happens in `/sk:execute-plan` — not here
16
+
17
+ This skill guides the design of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Output is a design artifact: a clear, decision-complete visual specification that `/sk:write-plan` and `/sk:execute-plan` can use to implement.
18
+
19
+ The user provides frontend requirements: a component, page, application, or interface to design. They may include context about the purpose, audience, or technical constraints.
20
+
21
+ ## Before You Start
22
+
23
+ 1. If `tasks/findings.md` exists and has content, read it in full. Use the agreed
24
+ approach and requirements as the design brief — this replaces the need to ask the
25
+ user to re-explain what was already decided in brainstorming.
26
+
27
+ 2. If `tasks/lessons.md` exists, read it in full. Apply every active lesson as a
28
+ constraint during design — particularly any patterns flagged under **Bug** that
29
+ relate to frontend structure, component architecture, or styling conventions.
30
+
31
+ ## Design Thinking
32
+
33
+ Before coding, understand the context and commit to a BOLD aesthetic direction:
34
+ - **Purpose**: What problem does this interface solve? Who uses it?
35
+ - **Tone**: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
36
+ - **Constraints**: Technical requirements (framework, performance, accessibility).
37
+ - **Differentiation**: What makes this UNFORGETTABLE? What's the one thing someone will remember?
38
+
39
+ **CRITICAL**: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work - the key is intentionality, not intensity.
40
+
41
+ Then produce a **design artifact** — not code — that includes:
42
+ - ASCII or text-based layout mockups for key screens/states
43
+ - Color palette (hex values, CSS variable names)
44
+ - Typography choices (font families, sizes, weights, tracking)
45
+ - Component structure description (what elements exist, their hierarchy)
46
+ - Interaction notes (hover states, transitions, animations to implement)
47
+ - Any specific Tailwind classes or CSS patterns to use during implementation
48
+
49
+ ## Frontend Aesthetics Guidelines
50
+
51
+ Focus on:
52
+ - **Typography**: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
53
+ - **Color & Theme**: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
54
+ - **Motion**: Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
55
+ - **Spatial Composition**: Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
56
+ - **Backgrounds & Visual Details**: Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
57
+
58
+ NEVER use generic AI-generated aesthetics like overused font families (Inter, Roboto, Arial, system fonts), cliched color schemes (particularly purple gradients on white backgrounds), predictable layouts and component patterns, and cookie-cutter design that lacks context-specific character.
59
+
60
+ Interpret creatively and make unexpected choices that feel genuinely designed for the context. No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices (Space Grotesk, for example) across generations.
61
+
62
+ **IMPORTANT**: Match design detail to the aesthetic vision. Maximalist designs need elaborate layout descriptions, rich animation notes, and dense component specs. Minimalist designs need precise spacing rules, restrained color notes, and careful typographic ratios. Elegance comes from committing to the vision fully.
63
+
64
+ Remember: Claude is capable of extraordinary creative thinking. Don't hold back on the design direction — show what can be envisioned when thinking outside the box and committing fully to a distinctive aesthetic.
65
+
66
+ ## Output Format
67
+
68
+ End every `/sk:frontend-design` session with a structured summary:
69
+
70
+ ```
71
+ ## Design Summary
72
+
73
+ ### Aesthetic Direction
74
+ [One paragraph describing the tone, feel, and visual identity]
75
+
76
+ ### Color Palette
77
+ - Background: #xxxxxx (--var-name)
78
+ - Foreground: #xxxxxx (--var-name)
79
+ - Accent: #xxxxxx (--var-name)
80
+
81
+ ### Typography
82
+ - Display: [Font name] — [weight/size/tracking notes]
83
+ - Body: [Font name] — [weight/size notes]
84
+
85
+ ### Layout Mockup
86
+ [ASCII or text mockup of the key screen(s)]
87
+
88
+ ### Component Notes
89
+ [Description of each component: structure, states, interactions]
90
+
91
+ ### Animation & Motion
92
+ [What moves, when, how — described in words]
93
+
94
+ ### Implementation Notes
95
+ [Specific Tailwind classes, CSS patterns, or gotchas for /sk:execute-plan]
96
+ ```
97
+
98
+ After presenting the design summary, ask the user:
99
+
100
+ **"Would you like me to create a Pencil visual mockup? (y/n)"**
101
+
102
+ ---
103
+
104
+ ## Pencil Visual Mockup Phase
105
+
106
+ Only run this phase if the user answers **y** or **yes**.
107
+
108
+ ### Step 1 — Find or create the .pen file
109
+
110
+ Check `docs/design/` for an existing `.pen` file that matches this design (by name or topic).
111
+
112
+ - **Existing file found**: call `open_document(filePath)` to open it, then skip to Step 3.
113
+ - **No file found**: call `open_document('new')` to create a fresh canvas.
114
+ - The file will be saved to `docs/design/{design-name}.pen` — use a slug derived from the design subject (e.g., `docs/design/dashboard-analytics.pen`).
115
+
116
+ ### Step 2 — Load design context
117
+
118
+ Run these two calls before drawing anything:
119
+
120
+ 1. `get_guidelines(topic)` — pick the closest topic:
121
+ - `web-app` → dashboards, SaaS, admin panels
122
+ - `landing-page` → marketing sites, portfolios, product pages
123
+ - `mobile-app` → mobile-first interfaces
124
+ - `design-system` → component libraries, style guides
125
+ - `table` → data-heavy UIs
126
+ - `slides` → presentations
127
+
128
+ 2. `get_style_guide_tags` → then `get_style_guide(tags, name)` — pick tags that match the aesthetic direction decided in the design summary (e.g., dark, minimal, editorial, playful, corporate, luxury). This gives Pencil a visual language to work from.
129
+
130
+ ### Step 3 — Set the color palette as variables
131
+
132
+ Call `set_variables` to register the color palette from the Design Summary as Pencil variables so they can be referenced throughout the design:
133
+
134
+ ```
135
+ {
136
+ "color-bg": "#xxxxxx",
137
+ "color-fg": "#xxxxxx",
138
+ "color-accent": "#xxxxxx"
139
+ // + any other palette values
140
+ }
141
+ ```
142
+
143
+ ### Step 4 — Build the mockup
144
+
145
+ Use `batch_design` to construct the visual. Work screen by screen:
146
+
147
+ 1. Create a **frame** for each key screen identified in the Layout Mockup.
148
+ 2. Inside each frame, add sections matching the component hierarchy from Component Notes.
149
+ 3. Reuse components from the design system where they fit (buttons, inputs, cards, tables, etc.) — these are already available as reusable components in the canvas.
150
+ 4. Apply the color variables and typography direction to every element.
151
+ 5. Keep batches focused: aim for one screen per batch_design call to stay within limits.
152
+
153
+ ### Step 5 — Validate and iterate
154
+
155
+ After each screen is built, call `get_screenshot` to visually inspect the result.
156
+
157
+ - If layout or spacing is off: call `snapshot_layout` to inspect computed positions, then fix with another `batch_design` call.
158
+ - Iterate until the screen faithfully represents the Design Summary.
159
+
160
+ ### Step 6 — Handle existing file updates
161
+
162
+ When opening an existing `.pen` file to update a design:
163
+
164
+ 1. Call `get_editor_state(include_schema: false)` to see current top-level nodes.
165
+ 2. Call `snapshot_layout` on affected frames to understand what's there.
166
+ 3. Use `batch_design` with `update` or `replace` operations — do not delete and recreate unless necessary.
167
+ 4. Validate with `get_screenshot` after each batch.
168
+
169
+ ### Step 7 — Finish
170
+
171
+ Tell the user the path to the saved `.pen` file and confirm which screens were created or updated.
172
+
173
+ Then tell the user: **"Run `/sk:write-plan` to turn this design into an implementation plan."**
174
+
175
+ ---
176
+
177
+ ## Model Routing
178
+
179
+ Read `.shipkit/sk:config.json` from the project root if it exists.
180
+
181
+ - If `model_overrides["sk:frontend-design"]` is set, use that model — it takes precedence.
182
+ - Otherwise use the `profile` field. Default: `balanced`.
183
+
184
+ | Profile | Model |
185
+ |---------|-------|
186
+ | `full-sail` | opus (inherit) |
187
+ | `quality` | opus (inherit) |
188
+ | `balanced` | sonnet |
189
+ | `budget` | sonnet |
190
+
191
+ > `opus` = inherit (uses the current session model). When spawning sub-agents via the Agent tool, pass `model: "<resolved-model>"`.
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: sk:laravel-init
3
+ description: "Configure an existing Laravel project with opinionated production-ready conventions. Detects stack, installs tools, generates CLAUDE.md and tasks/ files."
4
+ ---
5
+
6
+ # /laravel-init
7
+
8
+ Configure this Laravel project with production-ready conventions. Safe to run on fresh installs or existing projects.
9
+
10
+ ## What This Does
11
+
12
+ Invokes the `setup-claude` skill to:
13
+
14
+ 1. **Detect stack** from `composer.json` + `package.json`
15
+ 2. **Install missing dev tools**: PHPStan/Larastan, Rector, Pint, Pest
16
+ 3. **Publish config files** (if missing): `phpstan.neon`, `rector.php`, `pint.json`
17
+ 4. **Configure strict models** in `AppServiceProvider`
18
+ 5. **Generate `CLAUDE.md`** — stack-aware, with full workflow, conventions, and sub-agent patterns
19
+ 6. **Bootstrap `tasks/`** — findings, lessons, todo, progress, security-findings
20
+ 7. **Generate `.claude/commands/`** — lint, test
21
+ 8. **Pre-seed `tasks/findings.md`** with detected stack info
22
+
23
+ ## Idempotent
24
+
25
+ Safe to run multiple times. Existing files with custom content are never overwritten.
26
+ Generated `CLAUDE.md` (with `<!-- Generated by /laravel-init -->` marker) is auto-updated to the latest template on re-run.
27
+
28
+ ### Updating Existing CLAUDE.md
29
+
30
+ Behavior depends on who owns the file:
31
+
32
+ - **Generated** (has `<!-- Generated by /laravel-init -->` marker): safe to edit directly with section-level updates using `<!-- BEGIN/END -->` markers
33
+ - **User-owned** (no marker): never edit — create `CLAUDE-sub-agents.md` alongside it and let the user copy what they want
34
+
35
+ ## After Running
36
+
37
+ Start with `/sk:brainstorm` to plan your feature.