@codyswann/lisa 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 (322) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +867 -0
  3. package/all/copy-overwrite/.claude/README.md +205 -0
  4. package/all/copy-overwrite/.claude/agents/agent-architect.md +311 -0
  5. package/all/copy-overwrite/.claude/agents/codebase-analyzer.md +146 -0
  6. package/all/copy-overwrite/.claude/agents/codebase-locator.md +125 -0
  7. package/all/copy-overwrite/.claude/agents/codebase-pattern-finder.md +237 -0
  8. package/all/copy-overwrite/.claude/agents/git-history-analyzer.md +183 -0
  9. package/all/copy-overwrite/.claude/agents/hooks-expert.md +74 -0
  10. package/all/copy-overwrite/.claude/agents/skill-evaluator.md +246 -0
  11. package/all/copy-overwrite/.claude/agents/slash-command-architect.md +87 -0
  12. package/all/copy-overwrite/.claude/agents/web-search-researcher.md +112 -0
  13. package/all/copy-overwrite/.claude/commands/git/commit-and-submit-pr.md +8 -0
  14. package/all/copy-overwrite/.claude/commands/git/commit.md +44 -0
  15. package/all/copy-overwrite/.claude/commands/git/prune.md +34 -0
  16. package/all/copy-overwrite/.claude/commands/git/submit-pr.md +50 -0
  17. package/all/copy-overwrite/.claude/commands/jira/create.md +50 -0
  18. package/all/copy-overwrite/.claude/commands/jira/verify.md +34 -0
  19. package/all/copy-overwrite/.claude/commands/project/archive.md +8 -0
  20. package/all/copy-overwrite/.claude/commands/project/bootstrap.md +49 -0
  21. package/all/copy-overwrite/.claude/commands/project/complete-task.md +7 -0
  22. package/all/copy-overwrite/.claude/commands/project/debrief.md +65 -0
  23. package/all/copy-overwrite/.claude/commands/project/execute.md +94 -0
  24. package/all/copy-overwrite/.claude/commands/project/implement.md +42 -0
  25. package/all/copy-overwrite/.claude/commands/project/local-code-review.md +88 -0
  26. package/all/copy-overwrite/.claude/commands/project/lower-code-complexity.md +74 -0
  27. package/all/copy-overwrite/.claude/commands/project/plan.md +314 -0
  28. package/all/copy-overwrite/.claude/commands/project/research.md +248 -0
  29. package/all/copy-overwrite/.claude/commands/project/review.md +63 -0
  30. package/all/copy-overwrite/.claude/commands/project/setup.md +19 -0
  31. package/all/copy-overwrite/.claude/commands/project/verify.md +38 -0
  32. package/all/copy-overwrite/.claude/commands/pull-request/review.md +12 -0
  33. package/all/copy-overwrite/.claude/commands/rules/format-md.md +72 -0
  34. package/all/copy-overwrite/.claude/commands/sonarqube/check.md +6 -0
  35. package/all/copy-overwrite/.claude/commands/sonarqube/fix.md +3 -0
  36. package/all/copy-overwrite/.claude/hooks/README.md +301 -0
  37. package/all/copy-overwrite/.claude/hooks/notify-ntfy.sh +181 -0
  38. package/all/copy-overwrite/.claude/settings.json +41 -0
  39. package/all/copy-overwrite/.claude/settings.local.json.example +14 -0
  40. package/all/copy-overwrite/.claude/skills/coding-philosophy/SKILL.md +405 -0
  41. package/all/copy-overwrite/.claude/skills/coding-philosophy/references/function-structure.md +416 -0
  42. package/all/copy-overwrite/.claude/skills/coding-philosophy/references/immutable-patterns.md +316 -0
  43. package/all/copy-overwrite/.claude/skills/prompt-complexity-scorer/SKILL.md +118 -0
  44. package/all/copy-overwrite/.claude/skills/skill-creator/LICENSE.txt +202 -0
  45. package/all/copy-overwrite/.claude/skills/skill-creator/SKILL.md +210 -0
  46. package/all/copy-overwrite/.claude/skills/skill-creator/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
  47. package/all/copy-overwrite/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
  48. package/all/copy-overwrite/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
  49. package/all/copy-overwrite/.claude/skills/skill-creator/scripts/quick_validate.py +65 -0
  50. package/all/copy-overwrite/CLAUDE.md +77 -0
  51. package/all/copy-overwrite/HUMAN.md +17 -0
  52. package/all/copy-overwrite/specs/.keep +0 -0
  53. package/all/create-only/PROJECT_RULES.md +0 -0
  54. package/cdk/merge/package.json +20 -0
  55. package/dist/cli/index.d.ts +7 -0
  56. package/dist/cli/index.d.ts.map +1 -0
  57. package/dist/cli/index.js +107 -0
  58. package/dist/cli/index.js.map +1 -0
  59. package/dist/cli/prompts.d.ts +45 -0
  60. package/dist/cli/prompts.d.ts.map +1 -0
  61. package/dist/cli/prompts.js +58 -0
  62. package/dist/cli/prompts.js.map +1 -0
  63. package/dist/core/config.d.ts +73 -0
  64. package/dist/core/config.d.ts.map +1 -0
  65. package/dist/core/config.js +36 -0
  66. package/dist/core/config.js.map +1 -0
  67. package/dist/core/index.d.ts +4 -0
  68. package/dist/core/index.d.ts.map +1 -0
  69. package/dist/core/index.js +4 -0
  70. package/dist/core/index.js.map +1 -0
  71. package/dist/core/lisa.d.ts +81 -0
  72. package/dist/core/lisa.d.ts.map +1 -0
  73. package/dist/core/lisa.js +459 -0
  74. package/dist/core/lisa.js.map +1 -0
  75. package/dist/core/manifest.d.ts +58 -0
  76. package/dist/core/manifest.d.ts.map +1 -0
  77. package/dist/core/manifest.js +104 -0
  78. package/dist/core/manifest.js.map +1 -0
  79. package/dist/detection/detector.interface.d.ts +15 -0
  80. package/dist/detection/detector.interface.d.ts.map +1 -0
  81. package/dist/detection/detector.interface.js +2 -0
  82. package/dist/detection/detector.interface.js.map +1 -0
  83. package/dist/detection/detectors/cdk.d.ts +10 -0
  84. package/dist/detection/detectors/cdk.d.ts.map +1 -0
  85. package/dist/detection/detectors/cdk.js +34 -0
  86. package/dist/detection/detectors/cdk.js.map +1 -0
  87. package/dist/detection/detectors/expo.d.ts +10 -0
  88. package/dist/detection/detectors/expo.d.ts.map +1 -0
  89. package/dist/detection/detectors/expo.js +30 -0
  90. package/dist/detection/detectors/expo.js.map +1 -0
  91. package/dist/detection/detectors/nestjs.d.ts +10 -0
  92. package/dist/detection/detectors/nestjs.d.ts.map +1 -0
  93. package/dist/detection/detectors/nestjs.js +34 -0
  94. package/dist/detection/detectors/nestjs.js.map +1 -0
  95. package/dist/detection/detectors/npm-package.d.ts +13 -0
  96. package/dist/detection/detectors/npm-package.d.ts.map +1 -0
  97. package/dist/detection/detectors/npm-package.js +30 -0
  98. package/dist/detection/detectors/npm-package.js.map +1 -0
  99. package/dist/detection/detectors/typescript.d.ts +10 -0
  100. package/dist/detection/detectors/typescript.d.ts.map +1 -0
  101. package/dist/detection/detectors/typescript.js +25 -0
  102. package/dist/detection/detectors/typescript.js.map +1 -0
  103. package/dist/detection/index.d.ts +24 -0
  104. package/dist/detection/index.d.ts.map +1 -0
  105. package/dist/detection/index.js +57 -0
  106. package/dist/detection/index.js.map +1 -0
  107. package/dist/errors/index.d.ts +69 -0
  108. package/dist/errors/index.d.ts.map +1 -0
  109. package/dist/errors/index.js +110 -0
  110. package/dist/errors/index.js.map +1 -0
  111. package/dist/index.d.ts +3 -0
  112. package/dist/index.d.ts.map +1 -0
  113. package/dist/index.js +8 -0
  114. package/dist/index.js.map +1 -0
  115. package/dist/logging/console-logger.d.ts +12 -0
  116. package/dist/logging/console-logger.d.ts.map +1 -0
  117. package/dist/logging/console-logger.js +22 -0
  118. package/dist/logging/console-logger.js.map +1 -0
  119. package/dist/logging/index.d.ts +4 -0
  120. package/dist/logging/index.d.ts.map +1 -0
  121. package/dist/logging/index.js +3 -0
  122. package/dist/logging/index.js.map +1 -0
  123. package/dist/logging/logger.interface.d.ts +20 -0
  124. package/dist/logging/logger.interface.d.ts.map +1 -0
  125. package/dist/logging/logger.interface.js +2 -0
  126. package/dist/logging/logger.interface.js.map +1 -0
  127. package/dist/logging/silent-logger.d.ts +12 -0
  128. package/dist/logging/silent-logger.d.ts.map +1 -0
  129. package/dist/logging/silent-logger.js +21 -0
  130. package/dist/logging/silent-logger.js.map +1 -0
  131. package/dist/strategies/copy-contents.d.ts +14 -0
  132. package/dist/strategies/copy-contents.d.ts.map +1 -0
  133. package/dist/strategies/copy-contents.js +69 -0
  134. package/dist/strategies/copy-contents.js.map +1 -0
  135. package/dist/strategies/copy-overwrite.d.ts +14 -0
  136. package/dist/strategies/copy-overwrite.d.ts.map +1 -0
  137. package/dist/strategies/copy-overwrite.js +47 -0
  138. package/dist/strategies/copy-overwrite.js.map +1 -0
  139. package/dist/strategies/create-only.d.ts +13 -0
  140. package/dist/strategies/create-only.d.ts.map +1 -0
  141. package/dist/strategies/create-only.js +30 -0
  142. package/dist/strategies/create-only.js.map +1 -0
  143. package/dist/strategies/index.d.ts +31 -0
  144. package/dist/strategies/index.d.ts.map +1 -0
  145. package/dist/strategies/index.js +52 -0
  146. package/dist/strategies/index.js.map +1 -0
  147. package/dist/strategies/merge.d.ts +13 -0
  148. package/dist/strategies/merge.d.ts.map +1 -0
  149. package/dist/strategies/merge.js +60 -0
  150. package/dist/strategies/merge.js.map +1 -0
  151. package/dist/strategies/strategy.interface.d.ts +31 -0
  152. package/dist/strategies/strategy.interface.d.ts.map +1 -0
  153. package/dist/strategies/strategy.interface.js +2 -0
  154. package/dist/strategies/strategy.interface.js.map +1 -0
  155. package/dist/transaction/backup.d.ts +38 -0
  156. package/dist/transaction/backup.d.ts.map +1 -0
  157. package/dist/transaction/backup.js +97 -0
  158. package/dist/transaction/backup.js.map +1 -0
  159. package/dist/transaction/index.d.ts +4 -0
  160. package/dist/transaction/index.d.ts.map +1 -0
  161. package/dist/transaction/index.js +3 -0
  162. package/dist/transaction/index.js.map +1 -0
  163. package/dist/transaction/transaction.d.ts +34 -0
  164. package/dist/transaction/transaction.d.ts.map +1 -0
  165. package/dist/transaction/transaction.js +68 -0
  166. package/dist/transaction/transaction.js.map +1 -0
  167. package/dist/utils/file-operations.d.ts +29 -0
  168. package/dist/utils/file-operations.d.ts.map +1 -0
  169. package/dist/utils/file-operations.js +84 -0
  170. package/dist/utils/file-operations.js.map +1 -0
  171. package/dist/utils/index.d.ts +4 -0
  172. package/dist/utils/index.d.ts.map +1 -0
  173. package/dist/utils/index.js +4 -0
  174. package/dist/utils/index.js.map +1 -0
  175. package/dist/utils/json-utils.d.ts +22 -0
  176. package/dist/utils/json-utils.d.ts.map +1 -0
  177. package/dist/utils/json-utils.js +57 -0
  178. package/dist/utils/json-utils.js.map +1 -0
  179. package/dist/utils/path-utils.d.ts +21 -0
  180. package/dist/utils/path-utils.d.ts.map +1 -0
  181. package/dist/utils/path-utils.js +35 -0
  182. package/dist/utils/path-utils.js.map +1 -0
  183. package/eslint-plugin-code-organization/README.md +149 -0
  184. package/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +468 -0
  185. package/eslint-plugin-code-organization/index.js +23 -0
  186. package/eslint-plugin-code-organization/package.json +10 -0
  187. package/eslint-plugin-code-organization/rules/enforce-statement-order.js +157 -0
  188. package/expo/copy-overwrite/.claude/skills/apollo-client/SKILL.md +238 -0
  189. package/expo/copy-overwrite/.claude/skills/apollo-client/references/mutation-patterns.md +360 -0
  190. package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/SKILL.md +360 -0
  191. package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/references/atomic-levels.md +417 -0
  192. package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/references/folder-structure.md +257 -0
  193. package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/references/gluestack-mapping.md +233 -0
  194. package/expo/copy-overwrite/.claude/skills/atomic-design-gluestack/scripts/validate_atomic_structure.py +327 -0
  195. package/expo/copy-overwrite/.claude/skills/container-view-pattern/SKILL.md +299 -0
  196. package/expo/copy-overwrite/.claude/skills/container-view-pattern/references/examples.md +749 -0
  197. package/expo/copy-overwrite/.claude/skills/container-view-pattern/references/patterns.md +318 -0
  198. package/expo/copy-overwrite/.claude/skills/container-view-pattern/scripts/create_component.py +198 -0
  199. package/expo/copy-overwrite/.claude/skills/container-view-pattern/scripts/validate_component.py +207 -0
  200. package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/SKILL.md +268 -0
  201. package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/references/common-issues.md +619 -0
  202. package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/references/file-extensions.md +340 -0
  203. package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/references/platform-api.md +276 -0
  204. package/expo/copy-overwrite/.claude/skills/cross-platform-compatibility/scripts/validate_cross_platform.py +414 -0
  205. package/expo/copy-overwrite/.claude/skills/directory-structure/SKILL.md +202 -0
  206. package/expo/copy-overwrite/.claude/skills/directory-structure/scripts/validate_structure.py +443 -0
  207. package/expo/copy-overwrite/.claude/skills/expo-env-config/SKILL.md +309 -0
  208. package/expo/copy-overwrite/.claude/skills/expo-env-config/references/validation-patterns.md +417 -0
  209. package/expo/copy-overwrite/.claude/skills/expo-router-best-practices/SKILL.md +431 -0
  210. package/expo/copy-overwrite/.claude/skills/expo-router-best-practices/references/official-docs.md +290 -0
  211. package/expo/copy-overwrite/.claude/skills/expo-router-best-practices/scripts/generate-route.py +169 -0
  212. package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/SKILL.md +411 -0
  213. package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/references/color-tokens.md +343 -0
  214. package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/references/component-mapping.md +307 -0
  215. package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/references/spacing-scale.md +300 -0
  216. package/expo/copy-overwrite/.claude/skills/gluestack-nativewind/scripts/validate_styling.py +354 -0
  217. package/expo/copy-overwrite/.claude/skills/local-state/SKILL.md +362 -0
  218. package/expo/copy-overwrite/.claude/skills/local-state/references/async-storage.md +505 -0
  219. package/expo/copy-overwrite/.claude/skills/local-state/references/persistence-patterns.md +711 -0
  220. package/expo/copy-overwrite/.claude/skills/local-state/references/reactive-variables.md +446 -0
  221. package/expo/copy-overwrite/.claude/skills/playwright-selectors/SKILL.md +223 -0
  222. package/expo/copy-overwrite/.claude/skills/testing-library/SKILL.md +319 -0
  223. package/expo/copy-overwrite/.claude/skills/testing-library/references/async-patterns.md +420 -0
  224. package/expo/copy-overwrite/.claude/skills/testing-library/references/expo-router-testing.md +556 -0
  225. package/expo/copy-overwrite/.claude/skills/testing-library/references/mocking-patterns.md +590 -0
  226. package/expo/copy-overwrite/.claude/skills/testing-library/references/query-priority.md +291 -0
  227. package/expo/copy-overwrite/.easignore.extra +2 -0
  228. package/expo/copy-overwrite/.mcp.json +33 -0
  229. package/expo/copy-overwrite/eslint-plugin-component-structure/README.md +234 -0
  230. package/expo/copy-overwrite/eslint-plugin-component-structure/__tests__/plugin-index.test.js +84 -0
  231. package/expo/copy-overwrite/eslint-plugin-component-structure/__tests__/require-memo-in-view.test.js +196 -0
  232. package/expo/copy-overwrite/eslint-plugin-component-structure/__tests__/single-component-per-file.test.js +289 -0
  233. package/expo/copy-overwrite/eslint-plugin-component-structure/index.js +32 -0
  234. package/expo/copy-overwrite/eslint-plugin-component-structure/package.json +10 -0
  235. package/expo/copy-overwrite/eslint-plugin-component-structure/rules/enforce-component-structure.js +230 -0
  236. package/expo/copy-overwrite/eslint-plugin-component-structure/rules/no-return-in-view.js +91 -0
  237. package/expo/copy-overwrite/eslint-plugin-component-structure/rules/require-memo-in-view.js +178 -0
  238. package/expo/copy-overwrite/eslint-plugin-component-structure/rules/single-component-per-file.js +238 -0
  239. package/expo/copy-overwrite/eslint-plugin-ui-standards/README.md +260 -0
  240. package/expo/copy-overwrite/eslint-plugin-ui-standards/index.js +29 -0
  241. package/expo/copy-overwrite/eslint-plugin-ui-standards/package.json +10 -0
  242. package/expo/copy-overwrite/eslint-plugin-ui-standards/rules/no-classname-outside-ui.js +51 -0
  243. package/expo/copy-overwrite/eslint-plugin-ui-standards/rules/no-direct-rn-imports.js +55 -0
  244. package/expo/copy-overwrite/eslint-plugin-ui-standards/rules/no-inline-styles.js +73 -0
  245. package/expo/copy-overwrite/eslint.config.mjs +560 -0
  246. package/expo/copy-overwrite/lighthouserc.js +194 -0
  247. package/expo/create-only/lighthouserc-config.json +28 -0
  248. package/expo/merge/package.json +132 -0
  249. package/lisa.sh +35 -0
  250. package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/SKILL.md +176 -0
  251. package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/advanced-features.md +527 -0
  252. package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/project-patterns.md +483 -0
  253. package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/quick-start.md +257 -0
  254. package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/resolvers-mutations.md +413 -0
  255. package/nestjs/copy-overwrite/.claude/skills/nestjs-graphql/references/types-scalars.md +513 -0
  256. package/nestjs/copy-overwrite/.claude/skills/nestjs-rules/SKILL.md +536 -0
  257. package/nestjs/copy-overwrite/.claude/skills/typeorm-patterns/SKILL.md +275 -0
  258. package/nestjs/copy-overwrite/.claude/skills/typeorm-patterns/references/configuration-patterns.md +487 -0
  259. package/nestjs/copy-overwrite/.claude/skills/typeorm-patterns/references/entity-patterns.md +450 -0
  260. package/nestjs/copy-overwrite/.claude/skills/typeorm-patterns/references/observability-patterns.md +536 -0
  261. package/nestjs/merge/package.json +75 -0
  262. package/package.json +124 -0
  263. package/typescript/copy-contents/.husky/commit-msg +91 -0
  264. package/typescript/copy-contents/.husky/pre-commit +96 -0
  265. package/typescript/copy-contents/.husky/pre-push +211 -0
  266. package/typescript/copy-overwrite/.claude/hooks/format-on-edit.sh +74 -0
  267. package/typescript/copy-overwrite/.claude/hooks/install_pkgs.sh +59 -0
  268. package/typescript/copy-overwrite/.claude/hooks/lint-on-edit.sh +103 -0
  269. package/typescript/copy-overwrite/.claude/skills/jsdoc-best-practices/SKILL.md +388 -0
  270. package/typescript/copy-overwrite/.github/README.md +455 -0
  271. package/typescript/copy-overwrite/.github/dependabot.yml +40 -0
  272. package/typescript/copy-overwrite/.github/k6/BROWSER_TESTING_NOTE.md +129 -0
  273. package/typescript/copy-overwrite/.github/k6/INTEGRATION_GUIDE.md +354 -0
  274. package/typescript/copy-overwrite/.github/k6/README.md +386 -0
  275. package/typescript/copy-overwrite/.github/k6/SCENARIO_SELECTION_GUIDE.md +264 -0
  276. package/typescript/copy-overwrite/.github/k6/examples/customer-deploy-integration.yml +115 -0
  277. package/typescript/copy-overwrite/.github/k6/examples/data-driven-test.js +268 -0
  278. package/typescript/copy-overwrite/.github/k6/scenarios/load.js +142 -0
  279. package/typescript/copy-overwrite/.github/k6/scenarios/load.json +27 -0
  280. package/typescript/copy-overwrite/.github/k6/scenarios/smoke.js +26 -0
  281. package/typescript/copy-overwrite/.github/k6/scenarios/smoke.json +20 -0
  282. package/typescript/copy-overwrite/.github/k6/scenarios/soak.js +244 -0
  283. package/typescript/copy-overwrite/.github/k6/scenarios/soak.json +29 -0
  284. package/typescript/copy-overwrite/.github/k6/scenarios/spike.js +180 -0
  285. package/typescript/copy-overwrite/.github/k6/scenarios/spike.json +32 -0
  286. package/typescript/copy-overwrite/.github/k6/scenarios/stress.js +206 -0
  287. package/typescript/copy-overwrite/.github/k6/scenarios/stress.json +38 -0
  288. package/typescript/copy-overwrite/.github/k6/scripts/api-test.js +452 -0
  289. package/typescript/copy-overwrite/.github/k6/scripts/default-test.js +185 -0
  290. package/typescript/copy-overwrite/.github/k6/thresholds/normal.json +30 -0
  291. package/typescript/copy-overwrite/.github/k6/thresholds/relaxed.json +21 -0
  292. package/typescript/copy-overwrite/.github/k6/thresholds/strict.json +29 -0
  293. package/typescript/copy-overwrite/.github/workflows/build.yml +72 -0
  294. package/typescript/copy-overwrite/.github/workflows/ci.yml +49 -0
  295. package/typescript/copy-overwrite/.github/workflows/claude.yml +51 -0
  296. package/typescript/copy-overwrite/.github/workflows/create-github-issue-on-failure.yml +113 -0
  297. package/typescript/copy-overwrite/.github/workflows/create-jira-issue-on-failure.yml +195 -0
  298. package/typescript/copy-overwrite/.github/workflows/create-sentry-issue-on-failure.yml +267 -0
  299. package/typescript/copy-overwrite/.github/workflows/deploy.yml +228 -0
  300. package/typescript/copy-overwrite/.github/workflows/k6-load-test-README.md +230 -0
  301. package/typescript/copy-overwrite/.github/workflows/lighthouse.yml +68 -0
  302. package/typescript/copy-overwrite/.github/workflows/load-test.yml +282 -0
  303. package/typescript/copy-overwrite/.github/workflows/quality.yml +1737 -0
  304. package/typescript/copy-overwrite/.github/workflows/release.yml +1599 -0
  305. package/typescript/copy-overwrite/.gitleaksignore +28 -0
  306. package/typescript/copy-overwrite/.nvmrc +1 -0
  307. package/typescript/copy-overwrite/.prettierignore +23 -0
  308. package/typescript/copy-overwrite/.prettierrc.json +22 -0
  309. package/typescript/copy-overwrite/.versionrc +42 -0
  310. package/typescript/copy-overwrite/.yamllint +20 -0
  311. package/typescript/copy-overwrite/commitlint.config.js +11 -0
  312. package/typescript/copy-overwrite/eslint-plugin-code-organization/README.md +149 -0
  313. package/typescript/copy-overwrite/eslint-plugin-code-organization/__tests__/enforce-statement-order.test.js +468 -0
  314. package/typescript/copy-overwrite/eslint-plugin-code-organization/index.js +23 -0
  315. package/typescript/copy-overwrite/eslint-plugin-code-organization/package.json +10 -0
  316. package/typescript/copy-overwrite/eslint-plugin-code-organization/rules/enforce-statement-order.js +157 -0
  317. package/typescript/copy-overwrite/eslint.config.mjs +390 -0
  318. package/typescript/copy-overwrite/eslint.ignore.config.json +57 -0
  319. package/typescript/copy-overwrite/eslint.thresholds.config.json +5 -0
  320. package/typescript/github-rulesets/base.json +106 -0
  321. package/typescript/merge/.claude/settings.json +28 -0
  322. package/typescript/merge/package.json +71 -0
@@ -0,0 +1,207 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Validation script for Container/View pattern components.
4
+
5
+ This script validates that a component directory follows the Container/View pattern:
6
+ - Has ComponentNameContainer.tsx
7
+ - Has ComponentNameView.tsx
8
+ - Has index.tsx with correct export
9
+ - View uses memo() wrapper
10
+ - View has displayName
11
+ - View uses arrow function shorthand
12
+
13
+ Usage:
14
+ python3 validate_component.py <path-to-component-directory>
15
+
16
+ Example:
17
+ python3 validate_component.py features/player-kanban/components/AddColumnButton
18
+ """
19
+
20
+ import os
21
+ import re
22
+ import sys
23
+ from pathlib import Path
24
+
25
+
26
+ def validate_component(component_path: str) -> tuple[bool, list[str]]:
27
+ """
28
+ Validate a component directory follows Container/View pattern.
29
+
30
+ Args:
31
+ component_path: Path to the component directory
32
+
33
+ Returns:
34
+ Tuple of (is_valid, list of error messages)
35
+ """
36
+ errors = []
37
+ component_dir = Path(component_path)
38
+
39
+ if not component_dir.is_dir():
40
+ return False, [f"Path is not a directory: {component_path}"]
41
+
42
+ component_name = component_dir.name
43
+
44
+ # Check required files exist
45
+ container_file = component_dir / f"{component_name}Container.tsx"
46
+ view_file = component_dir / f"{component_name}View.tsx"
47
+ index_file = component_dir / "index.tsx"
48
+
49
+ if not container_file.exists():
50
+ # Check for .jsx variant
51
+ container_jsx = component_dir / f"{component_name}Container.jsx"
52
+ if not container_jsx.exists():
53
+ errors.append(f"Missing Container file: {component_name}Container.tsx")
54
+ else:
55
+ container_file = container_jsx
56
+
57
+ if not view_file.exists():
58
+ # Check for .jsx variant
59
+ view_jsx = component_dir / f"{component_name}View.jsx"
60
+ if not view_jsx.exists():
61
+ errors.append(f"Missing View file: {component_name}View.tsx")
62
+ else:
63
+ view_file = view_jsx
64
+
65
+ if not index_file.exists():
66
+ index_jsx = component_dir / "index.jsx"
67
+ if not index_jsx.exists():
68
+ errors.append("Missing index.tsx file")
69
+ else:
70
+ index_file = index_jsx
71
+
72
+ # Validate index.tsx exports Container
73
+ if index_file.exists():
74
+ index_content = index_file.read_text()
75
+ export_pattern = rf"export\s*{{\s*default\s*}}\s*from\s*['\"]\./{component_name}Container['\"]"
76
+ if not re.search(export_pattern, index_content):
77
+ errors.append(f"index.tsx should export {component_name}Container as default")
78
+
79
+ # Validate View file
80
+ if view_file.exists():
81
+ view_content = view_file.read_text()
82
+
83
+ # Check for memo wrapper
84
+ memo_pattern = r"export\s+default\s+memo\s*\("
85
+ if not re.search(memo_pattern, view_content):
86
+ errors.append("View component should be wrapped with memo()")
87
+
88
+ # Check for displayName
89
+ display_name_pattern = rf"{component_name}View\.displayName\s*="
90
+ if not re.search(display_name_pattern, view_content):
91
+ errors.append(f"View should have displayName: {component_name}View.displayName = \"{component_name}View\"")
92
+
93
+ # Check for block body (return statement) in main component
94
+ # This is a simplified check - ESLint does the full validation
95
+ block_body_pattern = rf"const\s+{component_name}View\s*=\s*\([^)]*\)\s*=>\s*{{"
96
+ if re.search(block_body_pattern, view_content):
97
+ errors.append("View should use arrow function shorthand: () => (...) instead of () => { return (...) }")
98
+
99
+ # Check for hooks in View (they should be in Container)
100
+ hook_patterns = [
101
+ r"\buse[A-Z]\w+\s*\(", # General hook pattern
102
+ r"\buseState\s*\(",
103
+ r"\buseEffect\s*\(",
104
+ r"\buseMemo\s*\(",
105
+ r"\buseCallback\s*\(",
106
+ r"\buseReducer\s*\(",
107
+ r"\buseContext\s*\(",
108
+ ]
109
+
110
+ for hook_pattern in hook_patterns:
111
+ # Exclude memo import check
112
+ if hook_pattern == r"\buse[A-Z]\w+\s*\(":
113
+ # More specific check to avoid false positives
114
+ if re.search(r"\buseState\s*\(", view_content):
115
+ errors.append("View should not contain useState - move to Container")
116
+ break
117
+ if re.search(r"\buseEffect\s*\(", view_content):
118
+ errors.append("View should not contain useEffect - move to Container")
119
+ break
120
+ if re.search(r"\buseMemo\s*\(", view_content):
121
+ errors.append("View should not contain useMemo - move to Container")
122
+ break
123
+ if re.search(r"\buseCallback\s*\(", view_content):
124
+ errors.append("View should not contain useCallback - move to Container")
125
+ break
126
+
127
+ # Validate Container file
128
+ if container_file.exists():
129
+ container_content = container_file.read_text()
130
+
131
+ # Check that Container imports View
132
+ import_view_pattern = rf"import\s+{component_name}View\s+from\s*['\"]\./{component_name}View['\"]"
133
+ if not re.search(import_view_pattern, container_content):
134
+ errors.append(f"Container should import {component_name}View")
135
+
136
+ # Check that Container returns View
137
+ return_view_pattern = rf"<{component_name}View"
138
+ if not re.search(return_view_pattern, container_content):
139
+ errors.append(f"Container should return <{component_name}View />")
140
+
141
+ # Check that Container ONLY renders View (no other JSX elements)
142
+ # Find all JSX tags in Container (excluding the View)
143
+ all_jsx_pattern = r"<([A-Z][a-zA-Z0-9]*)"
144
+ jsx_matches = re.findall(all_jsx_pattern, container_content)
145
+ other_components = [m for m in jsx_matches if m != f"{component_name}View"]
146
+ if other_components:
147
+ errors.append(
148
+ f"Container should ONLY render {component_name}View, but found: {', '.join(set(other_components))}"
149
+ )
150
+
151
+ # Check for extra files
152
+ allowed_files = {
153
+ f"{component_name}Container.tsx",
154
+ f"{component_name}Container.jsx",
155
+ f"{component_name}View.tsx",
156
+ f"{component_name}View.jsx",
157
+ "index.tsx",
158
+ "index.jsx",
159
+ "index.ts",
160
+ "__tests__", # Allow test directory
161
+ }
162
+
163
+ # Also allow platform-specific variants
164
+ allowed_patterns = [
165
+ rf"^{component_name}Container\.[^.]+\.(tsx|jsx)$",
166
+ rf"^{component_name}View\.[^.]+\.(tsx|jsx)$",
167
+ ]
168
+
169
+ for item in component_dir.iterdir():
170
+ if item.name not in allowed_files:
171
+ is_allowed = False
172
+ for pattern in allowed_patterns:
173
+ if re.match(pattern, item.name):
174
+ is_allowed = True
175
+ break
176
+ if not is_allowed and item.is_file():
177
+ errors.append(f"Unexpected file in component directory: {item.name}")
178
+
179
+ return len(errors) == 0, errors
180
+
181
+
182
+ def main():
183
+ """Main entry point for the validation script."""
184
+ if len(sys.argv) < 2:
185
+ print("Usage: python3 validate_component.py <path-to-component-directory>")
186
+ print("Example: python3 validate_component.py features/player-kanban/components/AddColumnButton")
187
+ sys.exit(1)
188
+
189
+ component_path = sys.argv[1]
190
+
191
+ print(f"Validating component: {component_path}")
192
+ print("-" * 50)
193
+
194
+ is_valid, errors = validate_component(component_path)
195
+
196
+ if is_valid:
197
+ print("Component follows Container/View pattern")
198
+ sys.exit(0)
199
+ else:
200
+ print("Validation errors found:")
201
+ for error in errors:
202
+ print(f" - {error}")
203
+ sys.exit(1)
204
+
205
+
206
+ if __name__ == "__main__":
207
+ main()
@@ -0,0 +1,268 @@
1
+ ---
2
+ name: cross-platform-compatibility
3
+ description: This skill enforces cross-platform compatibility best practices for Expo apps targeting iOS, Android, and web. It should be used when creating new features, components, or screens to ensure they work correctly on all platforms. Use this skill when writing platform-specific code, using Platform.OS checks, creating platform-specific files (.web.tsx, .native.tsx, .ios.tsx, .android.tsx), or reviewing code for cross-platform issues.
4
+ ---
5
+
6
+ # Cross-Platform Compatibility
7
+
8
+ This skill provides guidance for writing code that works correctly on iOS, Android, and web platforms in Expo applications.
9
+
10
+ ## Core Principle
11
+
12
+ Every feature must work on **all three platforms** (iOS, Android, web) unless explicitly documented otherwise. Test on all platforms before considering a feature complete.
13
+
14
+ ## Platform-Specific Approaches
15
+
16
+ There are two primary ways to handle platform differences:
17
+
18
+ ### 1. Platform Module (Runtime Checks)
19
+
20
+ Use `Platform.OS` for small, inline differences within a single component.
21
+
22
+ ```tsx
23
+ import { Platform } from "react-native";
24
+
25
+ // Simple conditional
26
+ if (Platform.OS === "web") {
27
+ // Web-specific code
28
+ }
29
+
30
+ // Platform.select for multiple platforms
31
+ const styles = StyleSheet.create({
32
+ container: {
33
+ ...Platform.select({
34
+ ios: { shadowColor: "#000" },
35
+ android: { elevation: 4 },
36
+ web: { boxShadow: "0 2px 4px rgba(0,0,0,0.1)" },
37
+ }),
38
+ },
39
+ });
40
+ ```
41
+
42
+ ### 2. Platform-Specific File Extensions
43
+
44
+ Use file extensions when entire components or modules differ significantly between platforms.
45
+
46
+ | Extension | Platforms | Use Case |
47
+ | -------------- | ------------- | ------------------------------- |
48
+ | `.web.tsx` | Web only | Web-specific implementation |
49
+ | `.native.tsx` | iOS + Android | Shared native implementation |
50
+ | `.ios.tsx` | iOS only | iOS-specific implementation |
51
+ | `.android.tsx` | Android only | Android-specific implementation |
52
+
53
+ **Resolution Priority**: Metro bundler resolves in this order:
54
+
55
+ 1. `.ios.tsx` / `.android.tsx` (most specific)
56
+ 2. `.native.tsx` (native platforms)
57
+ 3. `.web.tsx` (web platform)
58
+ 4. `.tsx` (universal fallback)
59
+
60
+ ## Decision Tree: When to Use Each Approach
61
+
62
+ ```
63
+ Need platform-specific behavior?
64
+ ├── Small differences (styles, one-liner logic)?
65
+ │ └── Use Platform.OS or Platform.select()
66
+ ├── Moderate differences (conditional rendering blocks)?
67
+ │ └── Use Platform.OS with clear separation
68
+ └── Significant differences (entire component logic)?
69
+ └── Use platform-specific file extensions
70
+ ```
71
+
72
+ ### Use Platform.OS When:
73
+
74
+ - Differences are 1-5 lines of code
75
+ - Only styles differ between platforms
76
+ - Logic is mostly shared with minor variations
77
+ - You need to check platform at runtime dynamically
78
+
79
+ ### Use File Extensions When:
80
+
81
+ - Components have fundamentally different implementations
82
+ - Different libraries are needed per platform (e.g., `dom-to-image` for web vs `react-native-view-shot` for native)
83
+ - Layout structure differs significantly
84
+ - You want cleaner separation of concerns
85
+
86
+ ## File Extension Rules
87
+
88
+ ### Within `app/` Directory (Expo Router)
89
+
90
+ Platform-specific extensions in the `app/` directory **require a base version** for route universality:
91
+
92
+ ```
93
+ app/
94
+ ├── _layout.tsx # Required base version
95
+ ├── _layout.web.tsx # Optional web override
96
+ ├── index.tsx # Required base version
97
+ ├── about.tsx # Required base version
98
+ └── about.web.tsx # Optional web override
99
+ ```
100
+
101
+ ### Outside `app/` Directory
102
+
103
+ Platform-specific files outside `app/` do not require a base version:
104
+
105
+ ```
106
+ components/
107
+ ├── DatePicker/
108
+ │ ├── DatePickerContainer.tsx # Container (shared logic)
109
+ │ ├── DatePickerView.tsx # Default view
110
+ │ ├── DatePickerView.web.tsx # Web-specific view
111
+ │ └── index.tsx # Exports container
112
+ ```
113
+
114
+ ### Re-exporting Pattern
115
+
116
+ To use platform-specific components in routes:
117
+
118
+ ```tsx
119
+ // components/about/index.tsx (or about.native.tsx + about.web.tsx)
120
+ // Platform-specific implementations
121
+
122
+ // app/about.tsx
123
+ export { default } from "../components/about";
124
+ ```
125
+
126
+ ## Common Cross-Platform Issues
127
+
128
+ ### 1. Web-Incompatible APIs
129
+
130
+ These APIs require Platform.OS checks or alternatives on web:
131
+
132
+ | API | Issue on Web | Solution |
133
+ | --------------------------------- | ----------------- | -------------------------------- |
134
+ | `MediaLibrary.saveToLibraryAsync` | Not supported | Use download link on web |
135
+ | `Share.share()` | Limited support | Use Web Share API or clipboard |
136
+ | `Haptics.*` | Not supported | Skip or use CSS animations |
137
+ | `captureRef()` | Not supported | Use `dom-to-image` on web |
138
+ | `Linking.openURL()` | Works but differs | Consider `window.open()` for web |
139
+
140
+ ### 2. Style Differences
141
+
142
+ ```tsx
143
+ // Platform-specific shadows
144
+ const shadowStyles = Platform.select({
145
+ ios: {
146
+ shadowColor: "#000",
147
+ shadowOffset: { width: 0, height: 2 },
148
+ shadowOpacity: 0.25,
149
+ shadowRadius: 3.84,
150
+ },
151
+ android: {
152
+ elevation: 5,
153
+ },
154
+ web: {
155
+ boxShadow: "0 2px 4px rgba(0,0,0,0.25)",
156
+ },
157
+ });
158
+ ```
159
+
160
+ ### 3. Layout Differences
161
+
162
+ - Bottom tabs work differently on web vs native
163
+ - Drawer navigation may need different treatment
164
+ - Touch vs mouse interactions differ
165
+
166
+ ### 4. Gesture Handling
167
+
168
+ ```tsx
169
+ // Web may need different gesture handlers
170
+ const gestureConfig = Platform.select({
171
+ web: { enabled: false }, // Disable on web if using mouse
172
+ default: { enabled: true },
173
+ });
174
+ ```
175
+
176
+ ## Implementation Patterns
177
+
178
+ ### Pattern 1: Platform-Specific Hook
179
+
180
+ ```tsx
181
+ // hooks/useSaveImage.ts
182
+ import { Platform } from "react-native";
183
+
184
+ /**
185
+ * Hook for saving images with platform-specific implementations.
186
+ */
187
+ export const useSaveImage = () => {
188
+ const saveImage = useCallback(async (imageRef: React.RefObject<View>) => {
189
+ if (Platform.OS === "web") {
190
+ // Web implementation using dom-to-image
191
+ const dataUrl = await domtoimage.toJpeg(imageRef.current);
192
+ const link = document.createElement("a");
193
+ link.download = "image.jpeg";
194
+ link.href = dataUrl;
195
+ link.click();
196
+ } else {
197
+ // Native implementation using view-shot
198
+ const uri = await captureRef(imageRef);
199
+ await MediaLibrary.saveToLibraryAsync(uri);
200
+ }
201
+ }, []);
202
+
203
+ return { saveImage };
204
+ };
205
+ ```
206
+
207
+ ### Pattern 2: Platform-Specific Component Files
208
+
209
+ ```tsx
210
+ // components/Modal/ModalView.native.tsx
211
+ import { Modal as RNModal } from "react-native";
212
+
213
+ const ModalView = ({ visible, children }: ModalViewProps) => (
214
+ <RNModal visible={visible} animationType="slide">
215
+ {children}
216
+ </RNModal>
217
+ );
218
+
219
+ // components/Modal/ModalView.web.tsx
220
+ const ModalView = ({ visible, children }: ModalViewProps) =>
221
+ visible ? (
222
+ <div className="modal-overlay">
223
+ <div className="modal-content">{children}</div>
224
+ </div>
225
+ ) : null;
226
+ ```
227
+
228
+ ### Pattern 3: Conditional Feature Loading
229
+
230
+ ```tsx
231
+ // Only import heavy libraries on platforms that need them
232
+ const loadPlatformModule = async () => {
233
+ if (Platform.OS === "web") {
234
+ return await import("dom-to-image");
235
+ }
236
+ return await import("react-native-view-shot");
237
+ };
238
+ ```
239
+
240
+ ## Validation Checklist
241
+
242
+ Before submitting code, verify:
243
+
244
+ - [ ] Component renders correctly on iOS
245
+ - [ ] Component renders correctly on Android
246
+ - [ ] Component renders correctly on web
247
+ - [ ] Platform-specific files in `app/` have base versions
248
+ - [ ] All Platform.OS checks handle all three platforms (or use `default`)
249
+ - [ ] No web-incompatible APIs are called without Platform checks
250
+ - [ ] Styles work on all platforms (shadows, layouts)
251
+ - [ ] Touch/gesture handlers work on all platforms
252
+ - [ ] No hardcoded platform assumptions
253
+
254
+ ## Running Validation
255
+
256
+ To validate cross-platform compliance:
257
+
258
+ ```bash
259
+ python3 .claude/skills/cross-platform-compatibility/scripts/validate_cross_platform.py [path]
260
+ ```
261
+
262
+ ## Reference Documentation
263
+
264
+ For detailed patterns and examples:
265
+
266
+ - `references/platform-api.md` - Platform module API reference
267
+ - `references/file-extensions.md` - File extension patterns and resolution
268
+ - `references/common-issues.md` - Platform-specific issues and solutions