@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,72 @@
1
+ ---
2
+ description: "Automate releases: bump version, update CHANGELOG, create tag, push to GitHub. Use --android and/or --ios flags for App Store / Play Store readiness audit."
3
+ ---
4
+
5
+ <!-- Generated by /sk:setup-claude -->
6
+
7
+ # /sk:release
8
+
9
+ Automate the release process for your project. Supports optional mobile store submission review.
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ /sk:release # Git release only
15
+ /sk:release --android # Git release + Play Store audit
16
+ /sk:release --ios # Git release + App Store audit
17
+ /sk:release --android --ios # Git release + both store audits
18
+ ```
19
+
20
+ ## Hard Rules
21
+
22
+ - **DO NOT** release without reviewing CHANGELOG.md changes
23
+ - **DO NOT** proceed if CHANGELOG.md has no [Unreleased] section
24
+ - You **must** have a git remote origin (GitHub, GitLab, etc.)
25
+ - Version format must follow semantic versioning (e.g., v1.0.0, v0.2.0-beta)
26
+ - When `--android` or `--ios` flags are present, **always run the store audit after the git release**
27
+
28
+ ## Steps
29
+
30
+ 1. **Parse flags** — Check for `--android` and/or `--ios` in the user's invocation.
31
+
32
+ 2. **Verify CHANGELOG.md** — Check that the [Unreleased] section has the changes you want to release. If not, update CHANGELOG.md first and commit.
33
+
34
+ 3. **Run the release script** — This will:
35
+ - Auto-detect: project name, current version, GitHub URL
36
+ - Prompt for: new version number
37
+ - Suggest: release title based on changes
38
+ - Update: CHANGELOG.md (move [Unreleased] -> [Version])
39
+ - Update: version in CLAUDE.md (if it has a Version line)
40
+ - Create: git commit with release message
41
+ - Create: annotated git tag
42
+ - Push: tag to GitHub (with confirmation at each step)
43
+
44
+ 4. **Complete the release on GitHub** — The script will show you the GitHub releases link. Go there and:
45
+ - Click "Create release from tag"
46
+ - Use the suggested title
47
+ - Copy the changelog section as release notes
48
+ - Publish the release
49
+
50
+ 5. **(If --android or --ios)** **Run Store Readiness Audit** — The release skill will:
51
+ - Auto-detect the mobile framework (Expo, React Native, Flutter, native, Capacitor)
52
+ - Detect if this is a first-time submission or an update
53
+ - Walk through every item in the store checklist, checking config files
54
+ - Report status for each item: PASS / FAIL / WARN / MANUAL CHECK NEEDED
55
+ - Propose fixes for config issues (with your approval)
56
+ - Guide you through manual steps (screenshots, store listing, etc.)
57
+ - Present a summary report with next steps and build/submit commands
58
+
59
+ ## When Done
60
+
61
+ > "Release {version} completed! Check GitHub to finalize the release."
62
+
63
+ If store flags were used:
64
+ > "Store readiness audit complete. See the summary report above for remaining action items."
65
+
66
+ ## Notes
67
+
68
+ - Each step (commit, tag, push) requires your confirmation
69
+ - You can skip any step and do it manually later
70
+ - The script works with any project type: Node, Python, Go, Rust, etc.
71
+ - Requires: CHANGELOG.md file with [Unreleased] section
72
+ - Store audits support: Expo, React Native, Flutter, native Android/iOS, Capacitor/Ionic, .NET MAUI
@@ -0,0 +1,188 @@
1
+ ---
2
+ description: "Audit changed code for security best practices, production-grade quality, and industry gold standards."
3
+ ---
4
+
5
+ <!-- Generated by /sk:setup-claude -->
6
+
7
+ # /sk:security-check
8
+
9
+ Audit code for security vulnerabilities, production-grade quality, and industry gold-standard compliance.
10
+
11
+ By default, this checks only files changed on the current branch. Use `--all` to scan the entire project.
12
+
13
+ ## Hard Rules
14
+
15
+ - **DO NOT fix code.** This is an audit — report only. The user decides what to fix.
16
+ - **DO NOT skip checks** because the project is small or simple. Production is production.
17
+ - **Every finding must cite a specific file and line number.**
18
+ - **Every finding must reference the standard it violates** (OWASP, CWE, NIST, etc.).
19
+
20
+ ## Before You Start
21
+
22
+ 1. Read `CLAUDE.md` to understand the project's stack and conventions.
23
+ 2. If `tasks/security-findings.md` exists, read it — check if prior findings have been addressed.
24
+ 3. If `tasks/lessons.md` exists, read it — apply security-related lessons as targeted checks.
25
+
26
+ ## Determine Scope
27
+
28
+ **Default (changed files only):**
29
+ ```bash
30
+ git diff main..HEAD --name-only
31
+ ```
32
+
33
+ **If the user says `--all` or "scan everything":**
34
+ ```bash
35
+ find . -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.jsx" -o -name "*.py" -o -name "*.go" -o -name "*.rs" -o -name "*.php" -o -name "*.rb" -o -name "*.java" \) \
36
+ -not -path "*/node_modules/*" -not -path "*/.git/*" -not -path "*/vendor/*" -not -path "*/dist/*" -not -path "*/build/*"
37
+ ```
38
+
39
+ Read each file in scope before auditing.
40
+
41
+ ## Security Audit Checklist
42
+
43
+ ### 1. OWASP Top 10 (2021)
44
+
45
+ - **A01 Broken Access Control** — Missing auth checks, IDOR, privilege escalation, CORS misconfiguration
46
+ - **A02 Cryptographic Failures** — Weak hashing, plaintext secrets, missing TLS, insecure random
47
+ - **A03 Injection** — SQL, NoSQL, OS command, LDAP, template injection, XSS (reflected/stored/DOM)
48
+ - **A04 Insecure Design** — Missing rate limiting, no abuse-case thinking, trust boundary violations
49
+ - **A05 Security Misconfiguration** — Default credentials, verbose errors in production, unnecessary features enabled, missing security headers
50
+ - **A06 Vulnerable Components** — Known CVEs in dependencies, outdated packages
51
+ - **A07 Auth Failures** — Weak passwords allowed, missing brute-force protection, session fixation, missing MFA where needed
52
+ - **A08 Data Integrity Failures** — Untrusted deserialization, missing integrity checks, insecure CI/CD
53
+ - **A09 Logging Failures** — Missing audit logs, PII in logs, no alerting on security events
54
+ - **A10 SSRF** — Unvalidated URLs, internal network access, DNS rebinding
55
+
56
+ ### 2. Stack-Specific Checks (Unknown / Unknown)
57
+
58
+ **If Unknown includes React/Next.js:**
59
+ - `dangerouslySetInnerHTML` usage without sanitization
60
+ - Client-side secrets (API keys in browser bundles)
61
+ - Missing CSP headers
62
+ - Server component data leaking to client
63
+ - `getServerSideProps`/Server Actions exposing internal data
64
+
65
+ **If Unknown includes Express/Node.js:**
66
+ - Missing helmet/security headers
67
+ - Unsanitized user input in `req.params`, `req.query`, `req.body`
68
+ - Path traversal via `req.params` in file operations
69
+ - Missing rate limiting on auth endpoints
70
+ - Prototype pollution
71
+
72
+ **If Unknown is Python:**
73
+ - `eval()`, `exec()`, `pickle.loads()` with untrusted input
74
+ - SQL string formatting instead of parameterized queries
75
+ - `subprocess.shell=True` with user input
76
+ - Missing input validation on FastAPI/Django endpoints
77
+ - Jinja2 `| safe` filter misuse
78
+
79
+ **If Unknown is Go:**
80
+ - Unchecked error returns on security-critical operations
81
+ - `html/template` vs `text/template` confusion
82
+ - Missing context cancellation/timeouts
83
+ - Race conditions on shared state
84
+
85
+ **If Unknown is PHP:**
86
+ - `include`/`require` with user-controlled paths
87
+ - `mysqli_query` without prepared statements
88
+ - Missing CSRF tokens
89
+ - `extract()` with user input
90
+
91
+ ### 3. Production Readiness
92
+
93
+ - **Error handling** — No swallowed errors, no stack traces leaked to users, graceful degradation
94
+ - **Input validation** — All external inputs validated at system boundaries (API, forms, file uploads)
95
+ - **Environment separation** — No hardcoded dev/staging URLs, secrets not committed, `.env` in `.gitignore`
96
+ - **Dependency hygiene** — Lock files committed, no `*` version ranges, no known vulnerabilities
97
+ - **Logging** — Structured logging present, no sensitive data logged, appropriate log levels
98
+ - **Configuration** — Secrets via env vars (not code), feature flags for risky features, timeouts on external calls
99
+
100
+ ### 4. Data Protection
101
+
102
+ - **PII handling** — Personal data encrypted at rest, masked in logs, retention policy considered
103
+ - **Authentication tokens** — HttpOnly + Secure + SameSite cookies, short-lived JWTs, refresh token rotation
104
+ - **Database** — Parameterized queries everywhere, principle of least privilege on DB users, backups configured
105
+ - **File uploads** — Type validation (not just extension), size limits, sandboxed storage
106
+
107
+ ## Generate Report
108
+
109
+ Write findings to `tasks/security-findings.md` using this format:
110
+
111
+ ```markdown
112
+ # Security Audit — YYYY-MM-DD
113
+
114
+ **Scope:** Changed files on branch `<branch-name>` | Full project scan
115
+ **Stack:** Unknown / Unknown
116
+ **Files audited:** N
117
+
118
+ ## Critical (must fix before deploy)
119
+
120
+ - **[FILE:LINE]** Description of vulnerability
121
+ **Standard:** OWASP A03 — Injection (CWE-89)
122
+ **Risk:** What could happen if exploited
123
+ **Recommendation:** How to fix it
124
+
125
+ ## High (fix before production)
126
+
127
+ - **[FILE:LINE]** Description
128
+ **Standard:** ...
129
+ **Risk:** ...
130
+ **Recommendation:** ...
131
+
132
+ ## Medium (should fix)
133
+
134
+ - **[FILE:LINE]** Description
135
+ **Standard:** ...
136
+ **Recommendation:** ...
137
+
138
+ ## Low / Informational
139
+
140
+ - **[FILE:LINE]** Description
141
+ **Recommendation:** ...
142
+
143
+ ## Passed Checks
144
+
145
+ - List of categories that passed with no findings
146
+
147
+ ## Summary
148
+
149
+ | Severity | Count |
150
+ |----------|-------|
151
+ | Critical | N |
152
+ | High | N |
153
+ | Medium | N |
154
+ | Low | N |
155
+ | **Total** | **N** |
156
+ ```
157
+
158
+ ## When Done
159
+
160
+ Tell the user:
161
+
162
+ > "Security audit complete. Findings saved to `tasks/security-findings.md`.
163
+ > - **Critical:** N | **High:** N | **Medium:** N | **Low:** N
164
+ >
165
+ > Review the findings, then run `/sk:finish-feature` when ready to finalize."
166
+
167
+ If there are Critical or High findings:
168
+ > "There are critical/high findings that should be addressed before merging. Fix them, then re-run `/sk:security-check` to verify."
169
+
170
+ **Do not auto-fix.** The user decides what to address.
171
+
172
+ ---
173
+
174
+ ## Model Routing
175
+
176
+ Read `.shipkit/sk:config.json` from the project root if it exists.
177
+
178
+ - If `model_overrides["sk:security-check"]` is set, use that model — it takes precedence.
179
+ - Otherwise use the `profile` field. Default: `balanced`.
180
+
181
+ | Profile | Model |
182
+ |---------|-------|
183
+ | `full-sail` | opus (inherit) |
184
+ | `quality` | opus (inherit) |
185
+ | `balanced` | sonnet |
186
+ | `budget` | haiku |
187
+
188
+ > `opus` = inherit. When spawning sub-agents via the Agent tool, pass `model: "<resolved-model>"`.
@@ -0,0 +1,71 @@
1
+ ---
2
+ description: "Switch the ShipKit model routing profile for this project."
3
+ ---
4
+
5
+ # /sk:set-profile
6
+
7
+ Quickly switch the model routing profile for this project.
8
+
9
+ Usage: `/sk:set-profile <profile>`
10
+
11
+ Valid profiles: `full-sail` · `quality` · `balanced` · `budget`
12
+
13
+ ## Profiles
14
+
15
+ | Profile | Philosophy | Best for |
16
+ |---------|-----------|---------|
17
+ | `full-sail` | Opus on everything that matters | High-stakes work, client projects, production features |
18
+ | `quality` | Opus for planning + review, Sonnet for implementation | Most professional projects |
19
+ | `balanced` | Sonnet across the board *(default)* | Day-to-day development |
20
+ | `budget` | Haiku where possible, Sonnet for gates | Side projects, exploration, prototyping |
21
+
22
+ ## Model Table
23
+
24
+ | Skill | full-sail | quality | balanced | budget |
25
+ |-------|-----------|---------|----------|--------|
26
+ | brainstorm, write-plan, debug, execute-plan, review | opus | opus | sonnet | sonnet |
27
+ | write-tests, frontend-design, api-design, security-check | opus | sonnet | sonnet | sonnet |
28
+ | perf, schema-migrate, accessibility | opus | sonnet | sonnet | haiku |
29
+ | lint, test | sonnet | sonnet | haiku | haiku |
30
+ | smart-commit, branch, update-task | haiku | haiku | haiku | haiku |
31
+
32
+ Note: `opus` = inherit (uses the current session model). Switch to Opus 4.5 in your session to get the full benefit.
33
+
34
+ ## Steps
35
+
36
+ ### 1 — Validate input
37
+
38
+ If no profile argument provided, show the profile table above and ask: "Which profile? (full-sail / quality / balanced / budget)"
39
+
40
+ If an invalid profile name is given, show the valid options.
41
+
42
+ ### 2 — Read current config
43
+
44
+ Read `.shipkit/sk:config.json` if it exists. Otherwise start with defaults.
45
+
46
+ ### 3 — Update profile
47
+
48
+ Set `profile` to the chosen value.
49
+
50
+ ### 4 — Write config
51
+
52
+ 1. Create `.shipkit/` directory if it does not exist
53
+ 2. Write updated config to `.shipkit/sk:config.json`
54
+ 3. Add `.shipkit/` to `.gitignore` if not already present
55
+
56
+ ### 5 — Confirm
57
+
58
+ Display:
59
+
60
+ ```
61
+ Profile set to: <profile>
62
+
63
+ Model assignments for this project:
64
+ brainstorm, write-plan, debug, execute-plan, review → <model>
65
+ write-tests, frontend-design, api-design, security-check → <model>
66
+ perf, schema-migrate, accessibility → <model>
67
+ lint, test → <model>
68
+ smart-commit, branch, update-task → haiku
69
+
70
+ Run /sk:config to see all settings or make further changes.
71
+ ```
@@ -0,0 +1,25 @@
1
+ ---
2
+ description: “Show planning and workflow status at a glance.”
3
+ ---
4
+
5
+ <!-- Generated by /sk:setup-claude -->
6
+
7
+ # /sk:status
8
+
9
+ Read `tasks/todo.md` and `tasks/workflow-status.md`, then display a compact status summary.
10
+
11
+ ## What to show
12
+
13
+ ### Workflow Status (from `tasks/workflow-status.md`)
14
+ - Current step: show the step marked `>> next <<`
15
+ - Completed steps: count of `done` steps vs total
16
+ - Any steps marked `partial` or with notable Notes
17
+ - If no workflow file exists, say “No active workflow”
18
+
19
+ ### Task Status (from `tasks/todo.md`)
20
+ - Total plan items vs completed plan items (checkbox count)
21
+ - Errors count (if the file has an Errors section/table)
22
+ - Whether `tasks/findings.md` and `tasks/progress.md` exist
23
+
24
+ Keep it brief: answer “where am I?” and “what’s next?”.
25
+
@@ -0,0 +1,35 @@
1
+ ---
2
+ description: "Mark current task done in tasks/todo.md and log completion to tasks/progress.md."
3
+ ---
4
+
5
+ # /sk:update-task
6
+
7
+ Mark the current task as complete and log progress.
8
+
9
+ ## Steps
10
+
11
+ ### 1. Identify Current Task
12
+ - Read `tasks/todo.md` and find the task that matches the current branch or the most recently worked-on incomplete task
13
+ - Read `tasks/progress.md` to understand what was done
14
+
15
+ ### 2. Mark Task Done
16
+ - In `tasks/todo.md`, change the task's checkbox from `[ ]` to `[x]`
17
+ - If the task has subtasks, verify all subtasks are also checked
18
+
19
+ ### 3. Log Completion
20
+ - Append a completion entry to `tasks/progress.md`:
21
+
22
+ ```markdown
23
+ ### [YYYY-MM-DD] [Task title] — COMPLETED
24
+ - Branch: `<branch-name>`
25
+ - Changes: [brief summary of what was implemented]
26
+ - Tests: [test count and coverage]
27
+ - Files changed: [count]
28
+ ```
29
+
30
+ ### 4. Check for Remaining Work
31
+ - Show how many tasks remain in `tasks/todo.md`
32
+ - Show the next incomplete task (if any)
33
+
34
+ ### 5. Confirm
35
+ - Show the user what was marked done and logged
@@ -0,0 +1,72 @@
1
+ ---
2
+ description: "Write a decision-complete plan into tasks/todo.md (no code yet)."
3
+ ---
4
+
5
+ <!-- Generated by /sk:setup-claude -->
6
+
7
+ # /sk:write-plan
8
+
9
+ Create a decision-complete plan **before** writing code.
10
+
11
+ ## Steps
12
+
13
+ 1. Ensure planning files exist:
14
+ - `tasks/todo.md`
15
+ - `tasks/findings.md`
16
+ - `tasks/progress.md`
17
+ 2. Read context files:
18
+ - `tasks/findings.md` — requirements + discoveries; extract problem statement,
19
+ constraints, and open questions explicitly into the plan
20
+ - `tasks/lessons.md` — if it exists, apply all active lessons as constraints
21
+ before writing any plan steps
22
+ 3. Update `tasks/todo.md` with:
23
+ - **Goal** (1–2 lines)
24
+ - **Milestones** — group tasks under milestone headers for multi-phase projects
25
+ - **Plan** as checkboxes organized into waves:
26
+ ```
27
+ ### Milestone: <name> (optional, for multi-phase projects)
28
+
29
+ #### Wave 1 (parallel)
30
+ - [ ] Task A
31
+ - [ ] Task B
32
+
33
+ #### Wave 2 (depends on Wave 1)
34
+ - [ ] Task C (needs A)
35
+ - [ ] Task D (needs A, B)
36
+ ```
37
+ Tasks in the same wave can run in parallel. Tasks in later waves
38
+ depend on earlier waves — note the specific dependency in parentheses.
39
+ - **Verification** commands (exact commands + expected outcomes)
40
+ - **Acceptance criteria** (clear "done" conditions)
41
+ - **Risks/unknowns** (anything still ambiguous)
42
+ 4. Verify the plan against requirements:
43
+ - Cross-check every requirement from `tasks/findings.md` — does the plan
44
+ address what brainstorm decided? Flag any requirement with no matching task.
45
+ - Completeness check — are all requirements covered? List any gaps.
46
+ - Dependency analysis — are tasks ordered correctly? Could any sequential
47
+ tasks actually run in parallel (same wave)?
48
+ 5. Present the plan to the user and wait for approval.
49
+
50
+ ## Rules
51
+ - No implementation until the plan is approved.
52
+ - If something is unclear, add a plan step to explore it first.
53
+ - Every requirement in `tasks/findings.md` must map to at least one task.
54
+ - Prefer parallel waves where possible to minimize total steps.
55
+
56
+ ---
57
+
58
+ ## Model Routing
59
+
60
+ Read `.shipkit/sk:config.json` from the project root if it exists.
61
+
62
+ - If `model_overrides["sk:write-plan"]` is set, use that model — it takes precedence.
63
+ - Otherwise use the `profile` field. Default: `balanced`.
64
+
65
+ | Profile | Model |
66
+ |---------|-------|
67
+ | `full-sail` | opus (inherit) |
68
+ | `quality` | opus (inherit) |
69
+ | `balanced` | sonnet |
70
+ | `budget` | sonnet |
71
+
72
+ > `opus` = inherit. When spawning sub-agents via the Agent tool, pass `model: "<resolved-model>"`.
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@kennethsolomon/shipkit",
3
+ "version": "1.0.0",
4
+ "description": "A structured workflow toolkit for Claude Code.",
5
+ "keywords": ["claude", "claude-code", "workflow", "tdd", "ai", "developer-tools"],
6
+ "author": "Kenneth Solomon",
7
+ "license": "MIT",
8
+ "bin": {
9
+ "shipkit": "bin/shipkit.js"
10
+ },
11
+ "files": [
12
+ "bin",
13
+ "commands/sk",
14
+ "skills"
15
+ ],
16
+ "engines": {
17
+ "node": ">=16.7.0"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/kennethsolomon/shipkit.git"
22
+ }
23
+ }
@@ -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