claude-code-superkit 0.0.0-stage → 1.5.3

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 (353) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +374 -2
  3. package/bin/cli.js +153 -0
  4. package/bin/inject-tokens.js +224 -0
  5. package/bin/measure-tokens.js +17 -0
  6. package/bin/superkit-counts-verify.sh +30 -0
  7. package/lib/codex.js +246 -0
  8. package/lib/docs-scaffold.js +147 -0
  9. package/lib/installer.js +499 -0
  10. package/lib/prompts.js +51 -0
  11. package/lib/settings-builder.js +51 -0
  12. package/lib/superpowers.js +99 -0
  13. package/lib/utils.js +117 -0
  14. package/lib/validator.js +84 -0
  15. package/package.json +49 -4
  16. package/packages/codex/AGENTS.md +396 -0
  17. package/packages/codex/INSTALL.md +342 -0
  18. package/packages/codex/config.toml +22 -0
  19. package/packages/codex/hooks/superkit.mjs +203 -0
  20. package/packages/codex/hooks.json +30 -0
  21. package/packages/codex/legacy-baseline.json +88 -0
  22. package/packages/codex/native-skills.txt +65 -0
  23. package/packages/codex/rules/default.rules +565 -0
  24. package/packages/codex/skills/ai-slop-cleaner/SKILL.md +44 -0
  25. package/packages/codex/skills/api-contract-sync/SKILL.md +96 -0
  26. package/packages/codex/skills/architect/SKILL.md +49 -0
  27. package/packages/codex/skills/audit-backend/SKILL.md +80 -0
  28. package/packages/codex/skills/audit-frontend/SKILL.md +82 -0
  29. package/packages/codex/skills/audit-infra/SKILL.md +87 -0
  30. package/packages/codex/skills/audit-orchestrator/SKILL.md +114 -0
  31. package/packages/codex/skills/behavioral-nudge-engine/SKILL.md +110 -0
  32. package/packages/codex/skills/benchmark/SKILL.md +49 -0
  33. package/packages/codex/skills/bot-reviewer/SKILL.md +94 -0
  34. package/packages/codex/skills/code-reviewer/SKILL.md +67 -0
  35. package/packages/codex/skills/codebase-onboarding-engineer/SKILL.md +46 -0
  36. package/packages/codex/skills/comment-rot-analyzer/SKILL.md +75 -0
  37. package/packages/codex/skills/commit-helper/SKILL.md +101 -0
  38. package/packages/codex/skills/critic/SKILL.md +56 -0
  39. package/packages/codex/skills/database-reviewer/SKILL.md +79 -0
  40. package/packages/codex/skills/debug-observer/SKILL.md +107 -0
  41. package/packages/codex/skills/dependency-checker/SKILL.md +69 -0
  42. package/packages/codex/skills/design-system-reviewer/SKILL.md +121 -0
  43. package/packages/codex/skills/dev-orchestrator/SKILL.md +304 -0
  44. package/packages/codex/skills/docs-reviewer/SKILL.md +86 -0
  45. package/packages/codex/skills/drizzle-orm-expert/SKILL.md +246 -0
  46. package/packages/codex/skills/e2e-test-generator/SKILL.md +95 -0
  47. package/packages/codex/skills/evaluator/SKILL.md +63 -0
  48. package/packages/codex/skills/frontend-perf-reviewer/SKILL.md +95 -0
  49. package/packages/codex/skills/frontend-ui-color-reviewer/SKILL.md +68 -0
  50. package/packages/codex/skills/frontend-ui-design-critic/SKILL.md +99 -0
  51. package/packages/codex/skills/frontend-ui-interaction-reviewer/SKILL.md +102 -0
  52. package/packages/codex/skills/frontend-ui-motion-reviewer/SKILL.md +85 -0
  53. package/packages/codex/skills/frontend-ui-reviewer/SKILL.md +81 -0
  54. package/packages/codex/skills/frontend-ui-typography-reviewer/SKILL.md +62 -0
  55. package/packages/codex/skills/gltf-debugging/SKILL.md +128 -0
  56. package/packages/codex/skills/go-benchmark/SKILL.md +217 -0
  57. package/packages/codex/skills/go-concurrency-reviewer/SKILL.md +113 -0
  58. package/packages/codex/skills/go-error-reviewer/SKILL.md +107 -0
  59. package/packages/codex/skills/go-grpc-patterns/SKILL.md +285 -0
  60. package/packages/codex/skills/go-modernizer/SKILL.md +111 -0
  61. package/packages/codex/skills/go-observability-reviewer/SKILL.md +121 -0
  62. package/packages/codex/skills/go-performance-reviewer/SKILL.md +112 -0
  63. package/packages/codex/skills/go-reviewer/SKILL.md +109 -0
  64. package/packages/codex/skills/go-samber-do/SKILL.md +158 -0
  65. package/packages/codex/skills/go-samber-lo/SKILL.md +178 -0
  66. package/packages/codex/skills/go-samber-oops/SKILL.md +174 -0
  67. package/packages/codex/skills/goal-verifier/SKILL.md +53 -0
  68. package/packages/codex/skills/health-checker/SKILL.md +109 -0
  69. package/packages/codex/skills/html-to-3d-texture/SKILL.md +153 -0
  70. package/packages/codex/skills/impeccable-craft/SKILL.md +101 -0
  71. package/packages/codex/skills/lint-runner/SKILL.md +85 -0
  72. package/packages/codex/skills/migrate/SKILL.md +60 -0
  73. package/packages/codex/skills/migration-reviewer/SKILL.md +88 -0
  74. package/packages/codex/skills/minimal-change-engineer/SKILL.md +44 -0
  75. package/packages/codex/skills/new-migration/SKILL.md +59 -0
  76. package/packages/codex/skills/nextjs-supabase-auth/SKILL.md +227 -0
  77. package/packages/codex/skills/output-enforcement/SKILL.md +71 -0
  78. package/packages/codex/skills/plan-checker/SKILL.md +53 -0
  79. package/packages/codex/skills/postgresql-optimization/SKILL.md +159 -0
  80. package/packages/codex/skills/pre-deploy-validator/SKILL.md +111 -0
  81. package/packages/codex/skills/presentation-reviewer/SKILL.md +88 -0
  82. package/packages/codex/skills/product-3d-lighting/SKILL.md +137 -0
  83. package/packages/codex/skills/project-architecture/SKILL.md +52 -0
  84. package/packages/codex/skills/py-reviewer/SKILL.md +100 -0
  85. package/packages/codex/skills/r3f-scene-reviewer/SKILL.md +88 -0
  86. package/packages/codex/skills/r3f-scroll-driven-3d/SKILL.md +162 -0
  87. package/packages/codex/skills/reality-checker/SKILL.md +61 -0
  88. package/packages/codex/skills/redis-patterns/SKILL.md +260 -0
  89. package/packages/codex/skills/review-orchestrator/SKILL.md +151 -0
  90. package/packages/codex/skills/rs-reviewer/SKILL.md +98 -0
  91. package/packages/codex/skills/ru-text/SKILL.md +132 -0
  92. package/packages/codex/skills/scaffold-endpoint/SKILL.md +44 -0
  93. package/packages/codex/skills/security-scanner/SKILL.md +94 -0
  94. package/packages/codex/skills/silent-failure-hunter/SKILL.md +176 -0
  95. package/packages/codex/skills/telegram-bot-builder/SKILL.md +120 -0
  96. package/packages/codex/skills/test-generator/SKILL.md +79 -0
  97. package/packages/codex/skills/test-runner/SKILL.md +101 -0
  98. package/packages/codex/skills/threejs-color-management/SKILL.md +97 -0
  99. package/packages/codex/skills/tree-generator/SKILL.md +63 -0
  100. package/packages/codex/skills/ts-reviewer/SKILL.md +90 -0
  101. package/packages/codex/skills/ui-design-reviewer/SKILL.md +89 -0
  102. package/packages/codex/skills/ui-reviewer/SKILL.md +103 -0
  103. package/packages/codex/skills/visual-reviewer/SKILL.md +85 -0
  104. package/packages/codex/skills/writing-agents/SKILL.md +165 -0
  105. package/packages/codex/skills/writing-commands/SKILL.md +173 -0
  106. package/packages/core/CLAUDE.md +118 -0
  107. package/packages/core/INTERNAL-FILES +16 -0
  108. package/packages/core/agents/ai-slop-cleaner.md +187 -0
  109. package/packages/core/agents/api-contract-sync.md +127 -0
  110. package/packages/core/agents/architect.md +205 -0
  111. package/packages/core/agents/audit-backend.md +137 -0
  112. package/packages/core/agents/audit-frontend.md +129 -0
  113. package/packages/core/agents/audit-infra.md +182 -0
  114. package/packages/core/agents/behavioral-nudge-engine.md +170 -0
  115. package/packages/core/agents/code-reviewer.md +195 -0
  116. package/packages/core/agents/codebase-onboarding-engineer.md +172 -0
  117. package/packages/core/agents/comment-rot-analyzer.md +115 -0
  118. package/packages/core/agents/critic.md +172 -0
  119. package/packages/core/agents/database-reviewer.md +201 -0
  120. package/packages/core/agents/debug-observer.md +261 -0
  121. package/packages/core/agents/dependency-checker.md +199 -0
  122. package/packages/core/agents/docs-reviewer.md +206 -0
  123. package/packages/core/agents/e2e-test-generator.md +261 -0
  124. package/packages/core/agents/evaluator.md +141 -0
  125. package/packages/core/agents/goal-verifier.md +130 -0
  126. package/packages/core/agents/health-checker.md +194 -0
  127. package/packages/core/agents/migration-reviewer.md +161 -0
  128. package/packages/core/agents/minimal-change-engineer.md +219 -0
  129. package/packages/core/agents/plan-checker.md +139 -0
  130. package/packages/core/agents/pre-deploy-validator.md +189 -0
  131. package/packages/core/agents/reality-checker.md +175 -0
  132. package/packages/core/agents/scaffold-endpoint.md +162 -0
  133. package/packages/core/agents/security-scanner.md +236 -0
  134. package/packages/core/agents/silent-failure-hunter.md +276 -0
  135. package/packages/core/agents/test-generator.md +146 -0
  136. package/packages/core/agents/tree-generator.md +141 -0
  137. package/packages/core/agents/ui-reviewer.md +172 -0
  138. package/packages/core/agents/visual-reviewer.md +211 -0
  139. package/packages/core/commands/audit.md +166 -0
  140. package/packages/core/commands/benchmark.md +130 -0
  141. package/packages/core/commands/commit.md +148 -0
  142. package/packages/core/commands/dev.md +302 -0
  143. package/packages/core/commands/docs-init.md +75 -0
  144. package/packages/core/commands/lint.md +137 -0
  145. package/packages/core/commands/migrate.md +146 -0
  146. package/packages/core/commands/new-migration.md +182 -0
  147. package/packages/core/commands/pair.md +209 -0
  148. package/packages/core/commands/review.md +195 -0
  149. package/packages/core/commands/security-scan.md +142 -0
  150. package/packages/core/commands/superkit-evolve.md +231 -0
  151. package/packages/core/commands/superkit-init.md +274 -0
  152. package/packages/core/commands/test.md +108 -0
  153. package/packages/core/commands/workflow.md +150 -0
  154. package/packages/core/docs/guide/01-getting-started.md +41 -0
  155. package/packages/core/docs-templates/README.md +33 -0
  156. package/packages/core/docs-templates/adr-template.md +62 -0
  157. package/packages/core/docs-templates/architecture/api-contracts.md +26 -0
  158. package/packages/core/docs-templates/architecture/api-reference.md +48 -0
  159. package/packages/core/docs-templates/architecture/auth-and-sessions.md +38 -0
  160. package/packages/core/docs-templates/architecture/backend-layers.md +42 -0
  161. package/packages/core/docs-templates/architecture/data-flow.md +26 -0
  162. package/packages/core/docs-templates/architecture/database-schema.md +51 -0
  163. package/packages/core/docs-templates/architecture/deployment.md +41 -0
  164. package/packages/core/docs-templates/architecture/frontend-state.md +46 -0
  165. package/packages/core/helpers/statusline.cjs +370 -0
  166. package/packages/core/hooks/CHAIN-SEMANTICS.md +84 -0
  167. package/packages/core/hooks/audit-settings-source.sh +98 -0
  168. package/packages/core/hooks/audit-trail.sh +120 -0
  169. package/packages/core/hooks/block-dangerous-git.sh +189 -0
  170. package/packages/core/hooks/bundle-import-check.sh +64 -0
  171. package/packages/core/hooks/compact-state-inject.sh +84 -0
  172. package/packages/core/hooks/config-protection.sh +68 -0
  173. package/packages/core/hooks/console-log-warning.sh +28 -0
  174. package/packages/core/hooks/context-monitor.sh +35 -0
  175. package/packages/core/hooks/dev-edit-counter.sh +59 -0
  176. package/packages/core/hooks/dev-marker-set.sh +55 -0
  177. package/packages/core/hooks/dev-required-on-commit.sh +426 -0
  178. package/packages/core/hooks/doc-check-on-commit.sh +396 -0
  179. package/packages/core/hooks/edit-streak-check.sh +63 -0
  180. package/packages/core/hooks/evolve-check.sh +78 -0
  181. package/packages/core/hooks/gateguard-pre-edit.sh +154 -0
  182. package/packages/core/hooks/gateguard-record-facts.sh +37 -0
  183. package/packages/core/hooks/intake-classifier.py +449 -0
  184. package/packages/core/hooks/lib/profile.sh +141 -0
  185. package/packages/core/hooks/loop-guard.sh +75 -0
  186. package/packages/core/hooks/migration-safety.sh +56 -0
  187. package/packages/core/hooks/plan-completion-gate.sh +61 -0
  188. package/packages/core/hooks/pre-compact-save.sh +89 -0
  189. package/packages/core/hooks/security-patterns.sh +119 -0
  190. package/packages/core/hooks/session-context-restore.sh +76 -0
  191. package/packages/core/hooks/subagent-stop-validate.sh +73 -0
  192. package/packages/core/hooks/superkit-counts-verify.sh +346 -0
  193. package/packages/core/hooks/superkit-update.sh +367 -0
  194. package/packages/core/hooks/tests/README.md +42 -0
  195. package/packages/core/hooks/tests/audit-trail-chain_test.sh +62 -0
  196. package/packages/core/hooks/tests/block-dangerous-git_test.sh +144 -0
  197. package/packages/core/hooks/tests/chain-semantics/h1.sh +11 -0
  198. package/packages/core/hooks/tests/chain-semantics/h2.sh +9 -0
  199. package/packages/core/hooks/tests/chain-semantics/h3.sh +11 -0
  200. package/packages/core/hooks/tests/chain-semantics/run-experiment.sh +65 -0
  201. package/packages/core/hooks/tests/chain-semantics/settings-experiment.json +15 -0
  202. package/packages/core/hooks/tests/counts-verify_test.sh +118 -0
  203. package/packages/core/hooks/tests/dev-required-on-commit_test.sh +207 -0
  204. package/packages/core/hooks/tests/dev-required-wip-on-main_test.sh +20 -0
  205. package/packages/core/hooks/tests/doc-check-on-commit_test.sh +122 -0
  206. package/packages/core/hooks/tests/edit-streak-check_test.sh +106 -0
  207. package/packages/core/hooks/tests/internal-manifest_test.sh +130 -0
  208. package/packages/core/hooks/tests/json-path_test.sh +108 -0
  209. package/packages/core/hooks/tests/mirror-invariants_test.sh +139 -0
  210. package/packages/core/hooks/tests/nudge-throttle_test.sh +95 -0
  211. package/packages/core/hooks/tests/profile-helper_test.sh +21 -0
  212. package/packages/core/hooks/tests/run-all.sh +47 -0
  213. package/packages/core/hooks/tests/session-key-helper_test.sh +17 -0
  214. package/packages/core/hooks/tests/superkit-update_test.sh +311 -0
  215. package/packages/core/hooks/tests/warn-visibility_test.sh +59 -0
  216. package/packages/core/hooks/user-intent-detect.sh +44 -0
  217. package/packages/core/hooks/verify-hooks.sh +69 -0
  218. package/packages/core/rules/auto-commands.md +124 -0
  219. package/packages/core/rules/coding-style.md +68 -0
  220. package/packages/core/rules/dev-workflow.md +77 -0
  221. package/packages/core/rules/documentation.md +106 -0
  222. package/packages/core/rules/frontend-aesthetics.md +53 -0
  223. package/packages/core/rules/git-workflow.md +14 -0
  224. package/packages/core/rules/security.md +29 -0
  225. package/packages/core/rules/superkit-integrity.md +114 -0
  226. package/packages/core/settings.json +229 -0
  227. package/packages/core/skills/drizzle-orm-expert/SKILL.md +260 -0
  228. package/packages/core/skills/nextjs-supabase-auth/SKILL.md +259 -0
  229. package/packages/core/skills/postgresql-optimization/SKILL.md +150 -0
  230. package/packages/core/skills/project-architecture/SKILL.md +31 -0
  231. package/packages/core/skills/project-scanner/SKILL.md +132 -0
  232. package/packages/core/skills/redis-patterns/SKILL.md +261 -0
  233. package/packages/core/skills/ru-text/SKILL.md +156 -0
  234. package/packages/core/skills/telegram-bot-builder/SKILL.md +145 -0
  235. package/packages/core/skills/writing-agents/SKILL.md +220 -0
  236. package/packages/core/skills/writing-commands/SKILL.md +176 -0
  237. package/packages/core/skills/writing-hooks/SKILL.md +335 -0
  238. package/packages/extras/bot-reviewer.md +279 -0
  239. package/packages/extras/design-system-reviewer.md +234 -0
  240. package/packages/extras/red-blue-auditor/README.md +117 -0
  241. package/packages/extras/red-blue-auditor/agent.md +128 -0
  242. package/packages/extras/red-blue-auditor/patterns/agent-config.txt +4 -0
  243. package/packages/extras/red-blue-auditor/patterns/hook-injection.txt +8 -0
  244. package/packages/extras/red-blue-auditor/patterns/mcp-risk.txt +5 -0
  245. package/packages/extras/red-blue-auditor/patterns/permission-abuse.txt +6 -0
  246. package/packages/extras/red-blue-auditor/patterns/secrets.txt +17 -0
  247. package/packages/extras/red-blue-auditor/scan.sh +88 -0
  248. package/packages/extras/skillsmp-search/SKILL.md +134 -0
  249. package/packages/frontend-3d/README.md +62 -0
  250. package/packages/frontend-3d/agents/frontend-perf-reviewer.md +164 -0
  251. package/packages/frontend-3d/agents/presentation-reviewer.md +146 -0
  252. package/packages/frontend-3d/agents/r3f-scene-reviewer.md +128 -0
  253. package/packages/frontend-3d/agents/ui-design-reviewer.md +169 -0
  254. package/packages/frontend-3d/commands/capture-screen.md +166 -0
  255. package/packages/frontend-3d/hooks/bundle-size-warn.sh +93 -0
  256. package/packages/frontend-3d/hooks/gsap-pattern-check.sh +74 -0
  257. package/packages/frontend-3d/hooks/r3f-color-check.sh +76 -0
  258. package/packages/frontend-3d/hooks/tailwind-version-guard.sh +98 -0
  259. package/packages/frontend-3d/rules/frontend-aesthetics-3d.md +81 -0
  260. package/packages/frontend-3d/rules/gsap-conventions.md +129 -0
  261. package/packages/frontend-3d/rules/threejs-conventions.md +116 -0
  262. package/packages/frontend-3d/skills/gltf-debugging/SKILL.md +145 -0
  263. package/packages/frontend-3d/skills/html-to-3d-texture/SKILL.md +183 -0
  264. package/packages/frontend-3d/skills/output-enforcement/SKILL.md +79 -0
  265. package/packages/frontend-3d/skills/product-3d-lighting/SKILL.md +166 -0
  266. package/packages/frontend-3d/skills/r3f-scroll-driven-3d/SKILL.md +209 -0
  267. package/packages/frontend-3d/skills/threejs-color-management/SKILL.md +111 -0
  268. package/packages/frontend-ui/NOTICE.md +99 -0
  269. package/packages/frontend-ui/README.md +59 -0
  270. package/packages/frontend-ui/agents/ui-color-reviewer.md +174 -0
  271. package/packages/frontend-ui/agents/ui-design-critic.md +198 -0
  272. package/packages/frontend-ui/agents/ui-interaction-reviewer.md +259 -0
  273. package/packages/frontend-ui/agents/ui-motion-reviewer.md +266 -0
  274. package/packages/frontend-ui/agents/ui-reviewer.md +251 -0
  275. package/packages/frontend-ui/agents/ui-typography-reviewer.md +222 -0
  276. package/packages/frontend-ui/hooks/tests/ui-animation-easing-check_test.sh +78 -0
  277. package/packages/frontend-ui/hooks/tests/ui-banned-fonts-check_test.sh +77 -0
  278. package/packages/frontend-ui/hooks/tests/ui-color-check_test.sh +75 -0
  279. package/packages/frontend-ui/hooks/ui-animation-easing-check.sh +86 -0
  280. package/packages/frontend-ui/hooks/ui-banned-fonts-check.sh +90 -0
  281. package/packages/frontend-ui/hooks/ui-color-check.sh +102 -0
  282. package/packages/frontend-ui/rules/color-and-contrast.md +230 -0
  283. package/packages/frontend-ui/rules/frontend-design-aesthetics.md +124 -0
  284. package/packages/frontend-ui/rules/interaction-polish.md +335 -0
  285. package/packages/frontend-ui/rules/motion-and-animation.md +283 -0
  286. package/packages/frontend-ui/rules/spatial-and-layout.md +212 -0
  287. package/packages/frontend-ui/rules/typography-guidelines.md +185 -0
  288. package/packages/frontend-ui/rules/ui-anti-patterns.md +309 -0
  289. package/packages/frontend-ui/settings.json +24 -0
  290. package/packages/frontend-ui/skills/impeccable-craft/SKILL.md +187 -0
  291. package/packages/gan/README.md +232 -0
  292. package/packages/gan/agents/gan-evaluator.md +214 -0
  293. package/packages/gan/agents/gan-generator.md +171 -0
  294. package/packages/gan/agents/gan-planner.md +206 -0
  295. package/packages/gan/rubrics/functionality.md +66 -0
  296. package/packages/gan/rubrics/ui-quality.md +77 -0
  297. package/packages/gan/skills/gan-evaluator/SKILL.md +91 -0
  298. package/packages/gan/skills/gan-generator/SKILL.md +72 -0
  299. package/packages/gan/skills/gan-planner/SKILL.md +93 -0
  300. package/packages/stack-agents/go/go-concurrency-reviewer.md +210 -0
  301. package/packages/stack-agents/go/go-error-reviewer.md +187 -0
  302. package/packages/stack-agents/go/go-modernizer.md +160 -0
  303. package/packages/stack-agents/go/go-observability-reviewer.md +185 -0
  304. package/packages/stack-agents/go/go-performance-reviewer.md +160 -0
  305. package/packages/stack-agents/go/go-reviewer.md +277 -0
  306. package/packages/stack-agents/go/references/benchmark-methodology.md +280 -0
  307. package/packages/stack-agents/go/references/channel-patterns.md +384 -0
  308. package/packages/stack-agents/go/references/cli-cobra-viper.md +190 -0
  309. package/packages/stack-agents/go/references/code-style.md +262 -0
  310. package/packages/stack-agents/go/references/context-propagation.md +317 -0
  311. package/packages/stack-agents/go/references/data-structures.md +315 -0
  312. package/packages/stack-agents/go/references/database-patterns.md +334 -0
  313. package/packages/stack-agents/go/references/design-patterns.md +411 -0
  314. package/packages/stack-agents/go/references/di-frameworks.md +146 -0
  315. package/packages/stack-agents/go/references/error-creation.md +251 -0
  316. package/packages/stack-agents/go/references/error-inspection.md +348 -0
  317. package/packages/stack-agents/go/references/error-wrapping.md +230 -0
  318. package/packages/stack-agents/go/references/gopls-driving.md +62 -0
  319. package/packages/stack-agents/go/references/goroutine-lifecycle.md +351 -0
  320. package/packages/stack-agents/go/references/graphql-patterns.md +221 -0
  321. package/packages/stack-agents/go/references/grpc-patterns.md +373 -0
  322. package/packages/stack-agents/go/references/modernize-guide.md +522 -0
  323. package/packages/stack-agents/go/references/module-management.md +191 -0
  324. package/packages/stack-agents/go/references/naming-conventions.md +176 -0
  325. package/packages/stack-agents/go/references/observability-pipeline.md +352 -0
  326. package/packages/stack-agents/go/references/performance-profiling.md +250 -0
  327. package/packages/stack-agents/go/references/refactoring-mechanics.md +127 -0
  328. package/packages/stack-agents/go/references/rest-openapi-patterns.md +160 -0
  329. package/packages/stack-agents/go/references/samber-do.md +201 -0
  330. package/packages/stack-agents/go/references/samber-libraries.md +363 -0
  331. package/packages/stack-agents/go/references/samber-lo.md +260 -0
  332. package/packages/stack-agents/go/references/samber-oops.md +200 -0
  333. package/packages/stack-agents/go/references/security-checklist.md +441 -0
  334. package/packages/stack-agents/go/references/standard-stdlib-now.md +181 -0
  335. package/packages/stack-agents/go/references/stay-updated.md +147 -0
  336. package/packages/stack-agents/go/references/structs-interfaces.md +312 -0
  337. package/packages/stack-agents/go/references/sync-primitives.md +395 -0
  338. package/packages/stack-agents/go/references/testing-patterns.md +483 -0
  339. package/packages/stack-agents/go/references/troubleshooting.md +98 -0
  340. package/packages/stack-agents/python/py-reviewer.md +194 -0
  341. package/packages/stack-agents/rust/rs-reviewer.md +188 -0
  342. package/packages/stack-agents/typescript/ts-reviewer.md +135 -0
  343. package/packages/stack-hooks/go/go-context-check-on-edit.sh +56 -0
  344. package/packages/stack-hooks/go/go-error-check-on-edit.sh +54 -0
  345. package/packages/stack-hooks/go/go-format-on-edit.sh +32 -0
  346. package/packages/stack-hooks/go/go-safety-check-on-edit.sh +54 -0
  347. package/packages/stack-hooks/go/go-vet-on-edit.sh +61 -0
  348. package/packages/stack-hooks/go/golangci-lint-on-edit.sh +54 -0
  349. package/packages/stack-hooks/python/ruff-on-edit.sh +67 -0
  350. package/packages/stack-hooks/rust/cargo-check-on-edit.sh +64 -0
  351. package/packages/stack-hooks/typescript/typecheck-on-edit.sh +76 -0
  352. package/packages/stack-rules/go/go-conventions.md +44 -0
  353. package/packages/stack-rules/go/go-safety.md +35 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 RaNDoM6913
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,375 @@
1
- # Temporary Holding Version
1
+ # ⚡ claude-code-superkit
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > **The quality-first kit for Claude Code & Codex** — all 56 Claude agents run on Opus (now 4.8, 1M context), with prompts hardened for that executor by **Claude Fable 5**. The Codex layer has separate GPT instructions and Astra/Sol configuration.
4
+
5
+ <div align="center">
6
+
7
+ [![Stars](https://img.shields.io/github/stars/RaNDoM6913/claude-code-superkit?style=for-the-badge&logo=github)](https://github.com/RaNDoM6913/claude-code-superkit/stargazers)
8
+ [![License](https://img.shields.io/badge/license-MIT-blue?style=for-the-badge)](LICENSE)
9
+ ![Agents](https://img.shields.io/badge/56_agents-Opus_4.8-8A2BE2?style=for-the-badge&logo=anthropic&logoColor=white)
10
+ ![Claude prompts hardened by](https://img.shields.io/badge/Claude_prompts_hardened_by-Claude_Fable_5-FF6B35?style=for-the-badge&logo=anthropic&logoColor=white)
11
+ ![Codex](https://img.shields.io/badge/Codex-Astra%20%2B%20Sol-00A67E?style=for-the-badge&logo=openai&logoColor=white)
12
+
13
+ [🚀 Quick Start](#-installation) · [⌨️ Commands](#%EF%B8%8F-key-commands) · [📖 Guide](docs/guide/) · [❓ Troubleshooting](TROUBLESHOOTING.md) · [📋 Changelog](CHANGELOG.md)
14
+
15
+ </div>
16
+
17
+ ---
18
+
19
+ Battle-tested in a production app with 68+ endpoints and 50 database migrations. Features double-verification code review, 4-layer documentation enforcement, AgentShield security scanning, and [SkillsMP](https://skillsmp.com) marketplace integration.
20
+
21
+ **Why all-Opus?** On a flat-rate Claude Code subscription, downgrading agents to Sonnet/Haiku only degrades quality without saving money — even cost-optimizing kits disable model downgrade on flat-rate plans. Superkit pins every agent to the `opus` alias, so it rode straight to Opus 4.8 with zero config churn.
22
+
23
+ <table>
24
+ <tr>
25
+ <td width="50%">
26
+
27
+ ### 🔍 Double-Verification Review
28
+ Independent second agent re-checks every finding before it reaches you.
29
+ `/review --comment` posts inline on GitHub PRs.
30
+
31
+ </td>
32
+ <td width="50%">
33
+
34
+ ### 📄 4-Layer Doc Enforcement
35
+ Rule + auto-commands + BLOCKING hook + Stop hook.
36
+ Maps every changed file to its required arch doc — commit blocked if missing.
37
+ *Example: edit `app/api/users.go` → commit blocked until `docs/architecture/api-reference.md` is staged.*
38
+
39
+ </td>
40
+ </tr>
41
+ <tr>
42
+ <td width="50%">
43
+
44
+ ### 🛡️ Security Scanning
45
+ AgentShield (102 rules) + Red/Blue adversarial audit.
46
+ `.claude/settings.json` guarded against CVE-2025-59536 hijacks. CI-ready via `/security-scan`.
47
+
48
+ </td>
49
+ <td width="50%">
50
+
51
+ ### 🤖 GAN Adversarial Loop
52
+ Optional three-agent harness: planner → generator → evaluator.
53
+ Your feature is attacked against binary rubrics before it ships (Playwright required).
54
+
55
+ </td>
56
+ </tr>
57
+ </table>
58
+
59
+ ---
60
+
61
+ ## 🧬 Hardened by a Stronger Model
62
+
63
+ The **v1.5.0 Claude-layer hardening** used Claude Fable 5 to engineer instructions for the Opus executor. Its 117 prompt surfaces (56 agents, 16 commands, 22 skills, 20 rules) went through a four-step pipeline — a 16-agent audit of every file, a written failure-mode playbook, a full rewrite, then independent adversarial verification where one model instance writes and a separate one attacks. That historical pass used ~200 subagents with 0 unresolved escalations, followed by a consistency sweep. The Claude-layer countermeasures include:
64
+
65
+ | Opus failure mode | Countermeasure baked into every file |
66
+ |-------------------|--------------------------------------|
67
+ | Lost-in-the-middle | Hard Rules at the top + Recap at the bottom |
68
+ | Premature "done" | Done-gates — generators verify artifacts on disk and run what they generate |
69
+ | Invented APIs / files | Evidence Gates (findings only with `file:line` actually read; `NOT FOUND` over invention) + a real-API honesty pass |
70
+ | Vague judgment calls | Decision tables with explicit defaults |
71
+ | Vocabulary drift | One canonical severity / confidence / verdict enum set |
72
+ | Fractional numbering | Linear phases / steps everywhere |
73
+
74
+ Contracts instead of vibes — Opus executes best when every judgment call is a decision table and every output has an exact contract.
75
+
76
+ ## 🔄 How `/dev` Works
77
+
78
+ <p align="center">
79
+ <img src="docs/dev-flow.svg" alt="/dev — 16-phase development orchestrator: Planning (7 steps) → Execution (5 steps) → Quality (4 steps)" width="960">
80
+ </p>
81
+
82
+ **Example:** `/dev add rate limiting to login`
83
+ 1. Loads CLAUDE.md + architecture docs (Phase 0)
84
+ 2. Plans + validates the plan (plan-checker gate)
85
+ 3. Implements behind a sprint contract
86
+ 4. Reviewers fan out (security-scanner, ts-reviewer) in parallel
87
+ 5. goal-verifier checks the change against the original goal
88
+ 6. Commits only when verification passes with fresh evidence
89
+
90
+ ## 📦 What's Inside
91
+
92
+ **One kit, two harnesses** — Claude Code (Opus 4.8) and Codex CLI (GPT-6 Astra coordinator, GPT-5.6 Sol workers). v1.5.3 ships standalone Codex installation with safe updates, Astra-authored GPT role sources, compatible workflows and two bounded native hook handlers. Native firing was exercised in a disposable POSIX/macOS fixture; broader workflow/model qualification remains separate.
93
+
94
+ | Component | Count | What you get |
95
+ |-----------|-------|--------------|
96
+ | **Core Agents** | 31 | Code review, security, testing, audit, debugging, docs, planning gates (plan-checker · evaluator · goal-verifier · critic), health, scaffolding — all on **Opus** |
97
+ | **Stack Agents** | 19 | Go ×6 · TypeScript · Python · Rust · Frontend-3D ×4 · Frontend-UI ×6 |
98
+ | **GAN Agents** | 3 | planner → generator → evaluator adversarial loop (optional package, requires Playwright) |
99
+ | **Extra Agents** | 3 | bot-reviewer (Telegram/Discord/Slack) · design-system-reviewer · red-blue-auditor |
100
+ | **Extra Skills** | 1 | [SkillsMP](https://skillsmp.com) search — 500K+ community skills marketplace |
101
+ | **Commands** | 16 | `/dev`, `/review`, `/audit`, `/workflow`, `/superkit-init`, `/pair` + 10 more |
102
+ | **Hooks** | 42 shipped + 2 internal + Stop | 26 core · 9 stack · 4 frontend-3d · 3 frontend-ui — git safety, formatting, discipline, /dev enforcement, CVE-2025-59536 guard |
103
+ | **Rules** | 19 shipped + 1 internal | 7 core · 2 stack · 3 frontend-3d · 7 frontend-ui + Codex `default.rules` approval-policy DSL |
104
+ | **Skills** | 11 core + 6 frontend-3d + 1 frontend-ui + 3 GAN + 1 extra | authoring meta-skills, stack knowledge (Telegram bots · Supabase auth · Drizzle · PostgreSQL · Redis · Russian typography), 3D pipeline, GAN mirrors |
105
+ | **Plugins** | 4 base + 3 optional | superpowers · github · context7 · code-review (+ code-simplifier · playwright · frontend-design) |
106
+
107
+ <details>
108
+ <summary><b>Full component list</b> — every agent, command, hook, rule, and skill by name</summary>
109
+
110
+ - **Core agents (31):** code-reviewer, security-scanner, silent-failure-hunter, comment-rot-analyzer, ai-slop-cleaner, database-reviewer, migration-reviewer, docs-reviewer, api-contract-sync, ui-reviewer, visual-reviewer, test-generator, e2e-test-generator, audit-backend, audit-frontend, audit-infra, health-checker, pre-deploy-validator, dependency-checker, debug-observer, tree-generator, scaffold-endpoint, architect, plan-checker, evaluator, goal-verifier, critic, minimal-change-engineer, reality-checker, codebase-onboarding-engineer, behavioral-nudge-engine
111
+ - **Stack agents (19):** go-reviewer, go-error-reviewer, go-concurrency-reviewer, go-performance-reviewer, go-modernizer, go-observability-reviewer, ts-reviewer, py-reviewer, rs-reviewer, presentation-reviewer, r3f-scene-reviewer, ui-design-reviewer, frontend-perf-reviewer, ui-reviewer (umbrella), ui-typography-reviewer, ui-color-reviewer, ui-motion-reviewer, ui-interaction-reviewer, ui-design-critic
112
+ - **Commands (16):** `/dev`, `/review`, `/audit`, `/workflow`, `/superkit-init`, `/superkit-evolve`, `/test`, `/lint`, `/migrate`, `/new-migration`, `/commit`, `/docs-init`, `/security-scan`, `/benchmark`, `/pair`, `/capture-screen`
113
+ - **Hooks (42 shipped):** 26 core (incl. intake-classifier.py, gateguard pair, edit-streak, audit-trail, audit-settings CVE-2025-59536, plan-completion-gate, user-intent-detect, subagent-stop-validate, compact-state-inject, /dev hard-enforce trio) · 9 stack (Go error/context/safety/golangci-lint + format-on-edit per language) · 4 frontend-3d (gsap/r3f/tailwind/bundle-size) · 3 frontend-ui (banned-fonts/color/animation-easing)
114
+ - **Rules (19 shipped):** 7 core (coding style, security, git workflow, documentation, dev workflow, auto command triggers, frontend-aesthetics) · 2 Go · 3 frontend-3d (gsap/threejs/aesthetics-3d) · 7 frontend-ui (design-aesthetics, typography, color, spatial, motion, interaction, anti-patterns)
115
+ - **Skills (22):** project-architecture, project-scanner, writing-agents/commands/hooks, telegram-bot-builder, nextjs-supabase-auth, drizzle-orm-expert, ru-text, postgresql-optimization, redis-patterns · threejs-color-management, r3f-scroll-driven-3d, gltf-debugging, html-to-3d-texture, product-3d-lighting, output-enforcement · impeccable-craft · gan-planner/generator/evaluator · skillsmp-search
116
+
117
+ </details>
118
+
119
+ ## 🆕 What's New
120
+
121
+ **v1.5.3 — standalone Codex installation, safe updates and native hooks** (see [CHANGELOG](CHANGELOG.md)):
122
+
123
+ - 📦 **Install Codex independently:** `--codex-only` installs 82 skills and their discovery links without Claude prerequisites, plugins or files. `--codex` retains the combined installer. Both routes share one release artifact.
124
+ - 🛡️ **Keep your customizations:** Codex updates recognize recorded hashes and the stock v1.5.2 baseline, back up pristine replacements and preserve/report edited skills, config, instructions, discovery entries and active hooks.
125
+ - 🪝 **Two native Codex handlers:** PreToolUse rejects covered static destructive Git commands; Stop checks tracked/staged whitespace with one continuation. Normal project and hook trust is required. Configured Git clean/process filters produce `UNVERIFIED` instead of running conversion programs. Actual native blocking and Stop completion were exercised in a disposable POSIX/macOS fixture; Windows/cloud remain unqualified.
126
+ - 🧠 **Astra-authored GPT sources across specialist roles:** planning/review gates, delivery, tests, security, backend/data, Go and other languages, UI/3D, bot/nudge, architecture and authoring guidance use scoped authority and evidence-backed outcomes. All nine workflows resolve installed tools and preserve missing verification evidence. Source acceptance does not establish live model quality.
127
+ - 🎭 **Optional GAN sources:** planner/generator/evaluator share bounded scenario/rubric handoffs and independent verdicts; manual opt-in and Playwright remain required. No live GAN qualification is claimed.
128
+ - 📊 **Claude statusline and updater:** fixes current context payload parsing and fallback; trims the layout to version, branch, model/effort, context and real usage meters; removes the stale task segment. Pristine statusline copies now update safely while customized copies survive.
129
+ - ✅ **Verification:** 133 product tests, 13 smoke checks, 56 hook cases, 15 core-hook suites and three frontend UI hook suites; archive installs, v1.5.2 upgrades, converter preservation, native rules and skill discovery checked at their stated evidence levels. Historical evaluation/oracle/collector research is outside this release scope.
130
+
131
+ Previous releases: [CHANGELOG](CHANGELOG.md) · [v1.5.2](https://github.com/RaNDoM6913/claude-code-superkit/releases/tag/v1.5.2) · [v1.5.1](https://github.com/RaNDoM6913/claude-code-superkit/releases/tag/v1.5.1) · [v1.5.0](https://github.com/RaNDoM6913/claude-code-superkit/releases/tag/v1.5.0)
132
+
133
+ ## 🚀 Installation
134
+
135
+ ### Claude Code (recommended)
136
+
137
+ **1. Clone + install** (works on macOS, Linux, Windows with Node.js 18+):
138
+
139
+ ```bash
140
+ git clone https://github.com/RaNDoM6913/claude-code-superkit
141
+ cd claude-code-superkit
142
+ bash setup.sh
143
+
144
+ # With explicit options:
145
+ bash setup.sh --stacks=go,typescript --profile=strict --codex
146
+
147
+ # Non-interactive (CI/CD):
148
+ bash setup.sh --defaults
149
+ ```
150
+
151
+ `bash setup.sh` is an interactive Node.js installer that selects your stack, hook profile, and plugins. Zero dependencies beyond Node.js. See [detailed guide](docs/INSTALL-CLAUDE-CODE.md).
152
+
153
+ **2. Open Claude Code, 3. install plugins, 4. run setup, 5. verify:**
154
+
155
+ ```bash
156
+ # 2. Open Claude Code
157
+ claude
158
+
159
+ # 3. Install plugins
160
+ /plugins
161
+ # → install: superpowers, github, context7, code-review
162
+
163
+ # 4. Run intelligent setup (auto-fills docs from your code!)
164
+ /superkit-init
165
+
166
+ # 5. Verify
167
+ /review --full
168
+ ```
169
+
170
+ > **Distribution:** use the tagged checkout or [v1.5.3 release archives](https://github.com/RaNDoM6913/claude-code-superkit/releases/tag/v1.5.3). Check registry availability with `npm view claude-code-superkit@1.5.3 version`; when it returns `1.5.3`, you can also use `npx claude-code-superkit@1.5.3` (add `--codex-only` for standalone Codex).
171
+
172
+ **`/superkit-init`** scans your codebase and generates **filled** documentation — no more manual TODO filling:
173
+ - `CLAUDE.md` — populated with your tech stack, commands, conventions
174
+ - `docs/architecture/*.md` — generated from actual code analysis
175
+ - `docs/trees/*.md` — project structure trees
176
+ - `.claude/rules/` — configured with your real file paths
177
+
178
+ Use `--non-interactive` for quick setup without checkpoints.
179
+
180
+ > **Already set up?** Run `/superkit-evolve` anytime to detect and fix documentation drift (stale migration counters, missing docs for new components, outdated trees).
181
+
182
+ ### Codex CLI
183
+
184
+ Tell Codex:
185
+ ```
186
+ Fetch and follow instructions from https://raw.githubusercontent.com/RaNDoM6913/claude-code-superkit/main/packages/codex/INSTALL.md
187
+ ```
188
+
189
+ From your target project, run `bash /path/to/claude-code-superkit/setup.sh --codex-only` for a noninteractive Codex-only install/update. It never calls Claude or writes `.claude`. Use `--codex` for the existing combined Claude + Codex route. Defaults: **gpt-6-astra / high** coordinator and **gpt-5.6-sol / medium** subagents.
190
+
191
+ ### Which command do I use?
192
+
193
+ | I want to… | Use |
194
+ |------------|-----|
195
+ | Ship a feature end-to-end | `/dev <task>` |
196
+ | Review a PR / branch | `/review --comment` |
197
+ | Fix a bug | `/workflow bugfix` |
198
+ | Set up a new repo | `/superkit-init` |
199
+ | Understand an unfamiliar codebase | dispatch `codebase-onboarding-engineer` |
200
+ | Refresh docs after drift | `/superkit-evolve` |
201
+
202
+ ## ⌨️ Key Commands
203
+
204
+ | Command | What it does |
205
+ |---------|-------------|
206
+ | `/dev <task>` | 16-phase orchestrator: read-docs → understand → architect → pseudocode → plan → contract → validate → implement → evaluate → verify → test → goals → review → critic → docs → report |
207
+ | `/review [--comment]` | Detect changes → dispatch reviewers → **double-verify** findings → unified report (optionally post GitHub PR comments) |
208
+ | `/audit [--health]` | Parallel audit: up to 4 agents (frontend, backend, infra, security); `--health` = 30-second dashboard |
209
+ | `/workflow <template>` | Predefined flows: `bugfix`, `hotfix`, `spike`, `refactor`, `dep-upgrade`, `security-audit` |
210
+ | `/superkit-init` | Intelligent setup: scan codebase → generate **filled** docs → configure rules with real paths |
211
+ | `/superkit-evolve` | Detect and fix documentation drift (stale counters, missing docs, outdated trees) |
212
+ | `/pair` | AI pair programming — Driver, Navigator, TDD, Review, Debug modes |
213
+ | `/security-scan` | AgentShield scan of `.claude/` configs (102 rules) |
214
+ | `/commit` | Conventional commit with secret scanning |
215
+
216
+ All 16 commands with flags and examples: **[Chapter 1](docs/guide/01-getting-started.md)**.
217
+
218
+ ## 🔧 Hook Profiles
219
+
220
+ > ⚠️ **Critical:** Hook scripts MUST be tracked in git. If your `.gitignore` contains `.claude/scripts/`, remove that line immediately. Without tracked hooks, other developers get zero enforcement. Check with `git ls-files .claude/scripts/hooks/ | head` — it must list your hook files.
221
+
222
+ Set `CLAUDE_HOOK_PROFILE` environment variable:
223
+
224
+ | Profile | Behavior |
225
+ |---------|----------|
226
+ | `fast` | Critical safety only: git guard, secret scan, settings audit, doc-check commit gate |
227
+ | `standard` (default) | All core hooks + stack formatters |
228
+ | `strict` | Everything + go vet on every edit + stop verification |
229
+
230
+ Disable specific hooks without editing `settings.json`: `CLAUDE_DISABLED_HOOKS=hook1,hook2`. Full env-var reference: **[Chapter 15](docs/guide/15-env-vars-and-hook-profiles.md)**.
231
+
232
+ ## 🛡️ Security
233
+
234
+ ### Untrusted `.claude/settings.json` (CVE-2025-59536)
235
+
236
+ `.claude/settings.json` tells Claude Code which hooks to run on every tool call. A malicious `settings.json` committed to an untrusted repo can register a PreToolUse hook that executes arbitrary code the moment you open the project — this is a real **RCE + API token exfiltration** vector, documented by [Check Point Research](https://research.checkpoint.com/2026/rce-and-api-token-exfiltration-through-claude-code-project-files-cve-2025-59536/).
237
+
238
+ Superkit mitigates this with the `audit-settings-source.sh` hook wired to `SessionStart`. On every session it inspects `.claude/settings.json`'s git history:
239
+
240
+ - If the file was modified in the last 7 days by an author whose email doesn't match your `git config user.email` → the hook prints a loud warning with the offending commit hashes and authors, and drops a marker `${TMPDIR:-/tmp}/claude-untrusted-settings-<session>` so downstream hooks can downgrade decisions.
241
+ - Fails open (`exit 0`) everywhere — this is an alert, not a block.
242
+
243
+ **Opt-out for known-good repos:** `export CLAUDE_DISABLE_SETTINGS_AUDIT=1`.
244
+
245
+ **Before opening any untrusted project:** read the diff first (`git log -p .claude/settings.json`), or start Claude Code with `--no-hooks` until you've vetted the file.
246
+
247
+ ### Scanning `.claude/` for misconfigurations
248
+
249
+ Scan your `.claude/` configurations for vulnerabilities with [AgentShield](https://github.com/affaan-m/agentshield):
250
+
251
+ ```bash
252
+ npx ecc-agentshield scan # Quick scan (102 rules)
253
+ npx ecc-agentshield scan --fix # Auto-fix safe issues
254
+ ```
255
+
256
+ Or use the built-in command: `/security-scan`.
257
+
258
+ CI integration included — see `.github/workflows/security.yml`.
259
+
260
+ ## 🎨 Frontend Packages
261
+
262
+ Two self-contained sibling packages — install one or both during `bash setup.sh`. Both run entirely on auto-dispatch: rules load only when you edit matching files, so the kit stays weightless on backend work.
263
+
264
+ ### 🖌️ `frontend-ui` — 2D UI & polish
265
+
266
+ Six reviewers (umbrella + typography / color / motion / interaction / design-critic), seven path-scoped rules, three advisory hooks, and the opt-in **impeccable-craft** shape-then-build skill. The stack that stops AI-reflex design: banned-font detection, OKLCH color discipline, Emil Kowalski's 4-question animation framework, an 11-item reflex audit with hard thresholds.
267
+
268
+ **6 agents · 7 rules · 3 hooks · 1 skill** — full reference: [docs/FRONTEND-UI.md](docs/FRONTEND-UI.md) · [Chapter 14](docs/guide/14-frontend-ui.md) · Credits: [Impeccable](https://github.com/pbakaus/impeccable) (Apache-2.0) · [Emil Kowalski's skill](https://github.com/emilkowalski/skill)
269
+
270
+ ### 🎬 `frontend-3d` — scroll-driven 3D & animation
271
+
272
+ Four reviewers (GSAP ScrollTrigger presentations, R3F scenes, 3D UI design, frontend perf), six skills distilled from 12+ hours of real debug pain (texture color distortion, timeline compression, UV mismatches), four hooks, three rules, and `/capture-screen` for turning React components into 3D-model textures.
273
+
274
+ **4 agents · 6 skills · 4 hooks · 3 rules · 1 command** — full reference: [docs/FRONTEND-3D.md](docs/FRONTEND-3D.md) · [Chapter 13](docs/guide/13-frontend-3d.md)
275
+
276
+ ## 📚 Documentation, Showcase & Ecosystem
277
+
278
+ **Guide:** 15 chapters + 3 worked examples — from first install to writing your own agents, hooks, and orchestrators.
279
+
280
+ <details>
281
+ <summary>📖 Documentation (15 chapters + 3 examples)</summary>
282
+
283
+ ### Guide
284
+
285
+ | Chapter | Topic |
286
+ |---------|-------|
287
+ | [01 — Getting Started](docs/guide/01-getting-started.md) | Install in 5 minutes, first commands |
288
+ | [02 — Architecture](docs/guide/02-architecture.md) | How agents, commands, hooks, rules, skills work together |
289
+ | [03 — Writing Agents](docs/guide/03-writing-agents.md) | Agent format, 2-phase review, severity/confidence |
290
+ | [04 — Writing Commands](docs/guide/04-writing-commands.md) | Orchestrator pattern, agent dispatch |
291
+ | [05 — Writing Hooks](docs/guide/05-writing-hooks.md) | Hook types, JSON protocol, profiles |
292
+ | [06 — Writing Skills](docs/guide/06-writing-skills.md) | Knowledge skills, dynamic content |
293
+ | [07 — Writing Rules](docs/guide/07-writing-rules.md) | Always-in-context enforcement |
294
+ | [08 — Orchestration](docs/guide/08-orchestration.md) | Full pipeline: /dev → agents → report |
295
+ | [09 — Advanced Patterns](docs/guide/09-advanced-patterns.md) | Profiles, session continuity, CI/CD |
296
+ | [10 — Codex CLI Support](docs/guide/10-codex-support.md) | Codex integration, tool mapping, skill discovery |
297
+ | [11 — Documentation Architecture](docs/guide/11-documentation-architecture.md) | Doc templates, tree generation, enforcement |
298
+ | [12 — Security Scanning](docs/guide/12-security-scanning.md) | AgentShield, CI, Red Team/Blue Team |
299
+ | [13 — Frontend 3D](docs/guide/13-frontend-3d.md) | GSAP, Three.js, R3F agents, hooks, skills, rules |
300
+ | [14 — Frontend UI](docs/guide/14-frontend-ui.md) | Typography, color, motion, interaction reviewers, rules, hooks |
301
+ | [15 — Env Vars & Hook Profiles](docs/guide/15-env-vars-and-hook-profiles.md) | `CLAUDE_HOOK_PROFILE`, `CLAUDE_DISABLED_HOOKS`, full env-var reference |
302
+
303
+ ### Examples
304
+
305
+ | Example | What you build |
306
+ |---------|---------------|
307
+ | [Agent from Scratch](docs/examples/agent-from-scratch.md) | Dockerfile reviewer agent (10 checks) |
308
+ | [Command Orchestrator](docs/examples/command-orchestrator.md) | /deploy command with 4 phases |
309
+ | [Hook Pipeline](docs/examples/hook-pipeline.md) | Format + lint on every edit |
310
+
311
+ </details>
312
+
313
+ **Showcase:** [`packages/showcase/`](packages/showcase/) — a real production social app's `.claude/` setup: 28 agents, 17 commands, 13 hooks, 11 skills, 6 rules.
314
+
315
+ <details>
316
+ <summary>🤝 Codex CLI Support</summary>
317
+
318
+ superkit works with both **Claude Code** and **OpenAI Codex CLI**:
319
+
320
+ | Feature | Claude Code | Codex CLI |
321
+ |---------|:-:|:-:|
322
+ | Model | Opus (per agent) | **gpt-6-astra / high** coordinator; **gpt-5.6-sol / medium** subagent default |
323
+ | Agents / Skills | 56 agents | 82 skills in `packages/codex/skills/` (9 commands + 36 agents + 9 stack + 10 frontend-3d + 7 frontend-ui + 5 go-knowledge + 6 TGApp = 82) + 3 GAN mirrors in `packages/gan/skills/` (optional install) |
324
+ | Commands | 16 (slash commands) | 9 (user-invocable skills) |
325
+ | Hooks | 42 shipped (26 core + 9 stack + 4 frontend-3d + 3 frontend-ui) + 2 internal + Stop | 2 native handlers in 1 script: destructive-Git check + tracked/staged whitespace Stop check; review/trust required |
326
+ | Rules | 19 shipped (7 core + 2 stack + 3 frontend-3d + 7 frontend-ui) + 1 internal | 1 file (`packages/codex/rules/default.rules` — approval policy DSL) |
327
+ | Knowledge Skills | 11 + 6 frontend-3d + 1 frontend-ui + 1 extra | 3 (project-architecture, writing-agents, writing-commands) |
328
+ | Session continuity | Yes (hooks) | — |
329
+ | Subagent dispatch | Agent tool | spawn_agent |
330
+
331
+ `bash /path/to/claude-code-superkit/setup.sh --codex-only` (run from your target project) installs 82 skills + `default.rules`, a hook script/merge template, and absent AGENTS.md + config.toml with Astra/Sol defaults. Skills remain in `.codex/skills` with discovery links in `.agents/skills`. Re-runs update pristine managed skills and hook assets with backups; customized content, existing active hooks/config/rules/instructions and discovery entries are preserved and conflicts reported. Stock v1.5.2 skills are recognized offline; `--codex` remains additive. Native GPT roles have Astra-authored instructions; `native-skills.txt` protects native roles, adapted workflows and changed support sources from Claude-agent conversion. Backend, data, delivery and language review instructions assess findings against actual framework, database, toolchain and rollout contracts, including Go error/concurrency ownership, modernization, performance and observability. UI reviewers distinguish source analysis, rendered observations and interaction evidence. Core UI, frontend-ui aliases and frontend-3d reviewers remain distinct, including scroll/scene lifecycle and measured frontend performance. Bot review and product-nudge design retain platform, user-preference and action-authority boundaries. The three GAN roles remain a separate optional package with explicit plan, implementation and evaluation handoffs. The [Codex-only delivery plan](docs/superpowers/plans/2026-10-09-gpt-agent-roadmap-1.5.3.md) tracks standalone installation, preservation, compatibility and release preparation. Configuration, source ownership, and repository checks do not establish live model quality or availability.
332
+
333
+ The installer grants no project/hook trust. A new active `.codex/hooks.json` is created only when absent, config is absent or exactly stock, and managed hook assets have no conflicts; otherwise use `.codex/superkit-hooks.json` for manual merging. Inspect the referenced script and review the definition through `/hooks`; script updates need separate review because definition-hash trust does not fully attest script content.
334
+
335
+ The Git check never grants permission, opaque commands remain unassessed, and Stop does not prove tests/builds or untracked behavior. Handlers run no project scripts, read no transcripts and contact no external services. POSIX shell/Git-root wiring is unqualified for Windows/cloud; native firing needs separate runtime evidence.
336
+
337
+ Stop enumerates Git config keys only and skips both diffs with UNVERIFIED if any clean/process filter is configured, including unused/global Git LFS drivers, to avoid running conversion programs. It captures no filter values or changes Git config; filter-free repositories retain the whitespace check and one continuation.
338
+
339
+ See [Codex Installation Guide](packages/codex/INSTALL.md) for safe updates, backups, hook/trust limits, local package artifacts and manual setup.
340
+
341
+ Codex architecture references distinguish unconfigured templates from source-backed project facts. Output guidance measures completeness against the authorized change and supports scoped patches, read-only reports, and explicit implementation or verification gaps.
342
+
343
+ Codex reviewer/workflow authoring guides preserve the selected role's verdict and authority contract, tie checks to actual project evidence, and distinguish unavailable verification from passing checks. Examples illustrate applicable conditions rather than universal project requirements.
344
+
345
+ </details>
346
+
347
+ ### ⚡ Superpowers plugin
348
+
349
+ Superkit is **complementary** to [Superpowers](https://github.com/obra/superpowers): superkit = infrastructure (agents, hooks, commands, review pipeline), superpowers = process (TDD, debugging, brainstorming, verification). Install both.
350
+
351
+ ### 🧩 Ecosystem & companions
352
+
353
+ Curated skills, MCP servers, design/asset resources, community repos, and language packs that pair well with Superkit live in **[docs/recommendations.md](docs/recommendations.md)** — including the [SkillsMP](https://skillsmp.com) 500K+ skills marketplace searchable via the built-in `skillsmp-search` skill.
354
+
355
+ ### 📎 More
356
+
357
+ - **[Troubleshooting](TROUBLESHOOTING.md)** — common issues, platform-specific guidance, FAQ
358
+ - **[Detailed install guide](docs/INSTALL-CLAUDE-CODE.md)** — step-by-step setup with prerequisites
359
+ - **[Design & tool recommendations](docs/recommendations.md)** — App Store, 3D, and animation tools
360
+
361
+ ## 👥 Contributing
362
+
363
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for how to add new stacks, agents, and hooks.
364
+
365
+ ## 📄 License
366
+
367
+ MIT
368
+
369
+ ---
370
+
371
+ <div align="center">
372
+
373
+ Made with ❤️ for the Claude Code community
374
+
375
+ </div>
package/bin/cli.js ADDED
@@ -0,0 +1,153 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { install } from '../lib/installer.js';
4
+ import { closeRL } from '../lib/prompts.js';
5
+ import { readFileSync } from 'fs';
6
+ import { join, dirname } from 'path';
7
+ import { fileURLToPath } from 'url';
8
+
9
+ const __dirname = dirname(fileURLToPath(import.meta.url));
10
+ const VERSION = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8')).version;
11
+
12
+ function parseArgs(argv) {
13
+ const args = argv.slice(2);
14
+ const opts = {
15
+ version: VERSION,
16
+ defaults: false,
17
+ stacks: null,
18
+ extras: null,
19
+ profile: null,
20
+ plugins: null,
21
+ codex: null,
22
+ codexOnly: false,
23
+ noDocs: false,
24
+ noSuperpowers: false
25
+ };
26
+
27
+ for (const arg of args) {
28
+ if (arg === '--help' || arg === '-h') {
29
+ printHelp();
30
+ process.exit(0);
31
+ }
32
+ if (arg === '--version' || arg === '-v') {
33
+ console.log(`claude-code-superkit v${VERSION}`);
34
+ process.exit(0);
35
+ }
36
+ if (arg === '--defaults') {
37
+ opts.defaults = true;
38
+ continue;
39
+ }
40
+ if (arg === '--codex-only') {
41
+ opts.codexOnly = true;
42
+ continue;
43
+ }
44
+ if (arg === '--codex') {
45
+ opts.codex = true;
46
+ continue;
47
+ }
48
+ if (arg === '--no-docs') {
49
+ opts.noDocs = true;
50
+ continue;
51
+ }
52
+ if (arg === '--no-superpowers') {
53
+ opts.noSuperpowers = true;
54
+ continue;
55
+ }
56
+ if (arg.startsWith('--stacks=')) {
57
+ opts.stacks = arg.split('=')[1].split(',').map(s => {
58
+ const map = { go: 'go', ts: 'typescript', typescript: 'typescript', py: 'python', python: 'python', rust: 'rust' };
59
+ return map[s.toLowerCase()] || s.toLowerCase();
60
+ });
61
+ continue;
62
+ }
63
+ if (arg.startsWith('--profile=')) {
64
+ opts.profile = arg.split('=')[1].toLowerCase();
65
+ if (!['fast', 'standard', 'strict'].includes(opts.profile)) {
66
+ console.error(`Unknown profile: ${opts.profile}. Use: fast, standard, strict`);
67
+ process.exit(1);
68
+ }
69
+ continue;
70
+ }
71
+ if (arg.startsWith('--extras=')) {
72
+ opts.extras = arg.split('=')[1].split(',').map(s => {
73
+ const map = { bot: 'bot-reviewer', design: 'design-system-reviewer' };
74
+ return map[s.toLowerCase()] || s.toLowerCase();
75
+ });
76
+ continue;
77
+ }
78
+ if (arg.startsWith('--plugins=')) {
79
+ opts.plugins = arg.split('=')[1].split(',');
80
+ continue;
81
+ }
82
+
83
+ console.error(`Unknown option: ${arg}`);
84
+ console.error('Run with --help for usage.');
85
+ process.exit(1);
86
+ }
87
+
88
+ if (opts.codexOnly && (opts.codex || opts.stacks || opts.extras || opts.profile || opts.plugins)) {
89
+ console.error('--codex-only cannot be combined with --codex, --stacks, --extras, --profile or --plugins.');
90
+ process.exit(1);
91
+ }
92
+
93
+ return opts;
94
+ }
95
+
96
+ function printHelp() {
97
+ console.log(`
98
+ claude-code-superkit v${VERSION} — interactive installer
99
+
100
+ Usage:
101
+ bash setup.sh [options] # from a cloned superkit repo (current)
102
+ npx claude-code-superkit@1.5.3 [options] # when version 1.5.3 is available in npm
103
+
104
+ Options:
105
+ --defaults Use default settings, no interactive prompts
106
+ --stacks=go,ts,py,rust Select language stacks (comma-separated)
107
+ --profile=standard Hook profile: fast, standard, strict
108
+ --extras=bot,design Select extras (comma-separated)
109
+ --plugins=playwright Optional plugins (comma-separated)
110
+ --codex Also install for Codex CLI (Claude + Codex)
111
+ --codex-only Install/update only Codex assets; no prompts or Claude setup
112
+ --no-docs Skip documentation scaffolding
113
+ --no-superpowers Skip superpowers plugin installation
114
+ --help, -h Show this help
115
+ --version, -v Show version
116
+
117
+ Examples:
118
+ bash setup.sh # Interactive
119
+ bash setup.sh --defaults # All defaults
120
+ bash /path/to/superkit/setup.sh --codex-only # Codex only, from your project
121
+ bash setup.sh --stacks=go,ts --codex # Go + TypeScript + Codex
122
+
123
+ Run from your project root (must be a git repository).
124
+ Requires: Node.js 18+, git. Use codex CLI for --codex-only; otherwise claude CLI.
125
+ Codex re-runs update pristine managed skills with backups; custom files are preserved.
126
+ `);
127
+ }
128
+
129
+ async function main() {
130
+ const opts = parseArgs(process.argv);
131
+
132
+ try {
133
+ await install(opts);
134
+ } catch (err) {
135
+ if (err.code === 'ERR_USE_AFTER_CLOSE' || (err.message && err.message.includes('readline was closed'))) {
136
+ console.log('\nNon-interactive input detected. Re-running with --defaults...\n');
137
+ opts.defaults = true;
138
+ await install(opts);
139
+ } else {
140
+ console.error(`\n✗ Error: ${err.message}`);
141
+ if (process.env.DEBUG) console.error(err.stack);
142
+ process.exit(1);
143
+ }
144
+ } finally {
145
+ closeRL();
146
+ }
147
+ }
148
+
149
+ main().catch(err => {
150
+ console.error(`\n✗ Error: ${err.message}`);
151
+ if (process.env.DEBUG) console.error(err.stack);
152
+ process.exit(1);
153
+ });