novahiz 0.2.3 → 0.3.1

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 (580) hide show
  1. package/NOTICE.md +36 -15
  2. package/README.md +33 -30
  3. package/adapters/README.md +1 -1
  4. package/adapters/opencode/agent/novahiz.md +2 -3
  5. package/adapters/opencode/instructions.md +3 -2
  6. package/adapters/opencode/novahiz.ts +336 -40
  7. package/bin/novahiz.cmd +2 -2
  8. package/catalog/categories.json +1358 -1093
  9. package/catalog/overrides.json +739 -13
  10. package/catalog/providers.json +57 -31
  11. package/catalog/rules.json +55 -29
  12. package/docs/ARCHITECTURE.md +4 -4
  13. package/docs/CATALOG.md +10 -9
  14. package/docs/CLASSIFICATION.md +3 -1
  15. package/docs/CONFIGURATION.md +5 -5
  16. package/docs/CONSTITUTION.md +4 -4
  17. package/docs/CONVERGENCE-2026-09-25.md +5 -0
  18. package/docs/GATE.md +32 -25
  19. package/docs/HARNESSES.md +15 -0
  20. package/docs/INSTALL.md +8 -5
  21. package/docs/PROVIDERS.md +26 -10
  22. package/docs/ROADMAPS.md +33 -3
  23. package/docs/RULES.md +15 -11
  24. package/docs/audit-2026-09-25.md +275 -0
  25. package/install/bootstrap.mjs +32 -37
  26. package/install/install.mjs +70 -53
  27. package/install/lib.mjs +20 -4
  28. package/mcp/novahiz-tools/README.md +5 -0
  29. package/mcp/novahiz-tools/index.mjs +78 -7
  30. package/novahiz.config.example.json +2 -5
  31. package/package.json +2 -3
  32. package/skills/apple-ui-audit/SKILL.md +95 -0
  33. package/skills/apple-ui-audit/references/screen-walkthrough.md +29 -0
  34. package/skills/browser-session/SKILL.md +61 -0
  35. package/skills/browser-session/references/session-run-sheet.md +30 -0
  36. package/skills/browser-session/scripts/browser_session_preflight.mjs +74 -0
  37. package/skills/browser-session/scripts/sample-run.json +5 -0
  38. package/skills/code-standards/SKILL.md +85 -0
  39. package/skills/code-standards/references/pr-review-worksheet.md +35 -0
  40. package/skills/design-token-pipeline/SKILL.md +85 -0
  41. package/skills/design-token-pipeline/references/dtcg-sample.json +37 -0
  42. package/skills/gate/SKILL.md +16 -1
  43. package/skills/llm-threat-review/SKILL.md +99 -0
  44. package/skills/llm-threat-review/references/review-worksheet.md +34 -0
  45. package/skills/llm-threat-review/scripts/llm_risk_lint.mjs +105 -0
  46. package/skills/novahiz-analyse/SKILL.md +2 -2
  47. package/skills/novahiz-audit/SKILL.md +2 -2
  48. package/skills/novahiz-code-review/SKILL.md +1 -1
  49. package/skills/novahiz-converge/SKILL.md +1 -1
  50. package/skills/novahiz-gate/SKILL.md +7 -5
  51. package/skills/novahiz-humanizer/SKILL.md +1 -1
  52. package/skills/novahiz-implement/SKILL.md +2 -2
  53. package/skills/novahiz-init/SKILL.md +1 -1
  54. package/skills/novahiz-plan/SKILL.md +2 -2
  55. package/skills/novahiz-planner/SKILL.md +6 -5
  56. package/skills/novahiz-task/SKILL.md +1 -1
  57. package/skills/openapi-mcp-server/SKILL.md +76 -0
  58. package/skills/openapi-mcp-server/references/mcp-ship-checklist.md +30 -0
  59. package/skills/openapi-mcp-server/references/tool-worksheet.md +30 -0
  60. package/skills/openapi-mcp-server/scripts/openapi_mcp_lint.mjs +133 -0
  61. package/skills/package-risk-audit/SKILL.md +83 -0
  62. package/skills/package-risk-audit/references/intake-worksheet.md +19 -0
  63. package/skills/package-risk-audit/scripts/dep_risk_lint.mjs +131 -0
  64. package/skills/prompt-rewriter/SKILL.md +18 -13
  65. package/skills/secrets-hygiene/SKILL.md +62 -0
  66. package/skills/secrets-hygiene/references/rotation-playbook.md +27 -0
  67. package/skills/secrets-hygiene/scripts/secret_scan.mjs +120 -0
  68. package/skills/skill-authoring/SKILL.md +93 -0
  69. package/skills/skill-authoring/references/skill-template.md +59 -0
  70. package/skills/skill-authoring/scripts/skill_frontmatter_lint.mjs +65 -0
  71. package/skills/skill-eval-loop/SKILL.md +103 -0
  72. package/skills/skill-eval-loop/references/negative-patterns.md +12 -0
  73. package/skills/skill-eval-loop/references/run-sheet.md +40 -0
  74. package/skills/skill-eval-loop/scripts/skill_structure_check.mjs +100 -0
  75. package/skills/ui-craft-rules/SKILL.md +96 -0
  76. package/skills/ui-slop-remover/SKILL.md +110 -0
  77. package/skills/ui-slop-remover/references/tell-catalogue.md +58 -0
  78. package/skills/ui-slop-remover/scripts/slop_lint.mjs +119 -0
  79. package/src/cli.ts +24 -4
  80. package/src/commands/context.ts +43 -4
  81. package/src/commands/doctor.ts +26 -8
  82. package/src/commands/gate.ts +68 -76
  83. package/src/commands/graft.ts +14 -9
  84. package/src/commands/inspect.ts +28 -2
  85. package/src/commands/task.ts +30 -1
  86. package/src/exec.ts +38 -10
  87. package/src/gate-repair.ts +87 -0
  88. package/src/gate.ts +543 -401
  89. package/src/graft.ts +56 -23
  90. package/src/ledger.ts +28 -2
  91. package/src/memory.ts +14 -1
  92. package/src/prompt-rewriter.ts +357 -24
  93. package/src/spec.ts +18 -5
  94. package/bundled-skills/ab-testing/SKILL.md +0 -353
  95. package/bundled-skills/ab-testing/evals/evals.json +0 -105
  96. package/bundled-skills/ab-testing/references/sample-size-guide.md +0 -263
  97. package/bundled-skills/ab-testing/references/test-templates.md +0 -277
  98. package/bundled-skills/ad-creative/SKILL.md +0 -425
  99. package/bundled-skills/ad-creative/assets/creative-review-template.html +0 -400
  100. package/bundled-skills/ad-creative/evals/evals.json +0 -217
  101. package/bundled-skills/ad-creative/references/creative-review-page.md +0 -106
  102. package/bundled-skills/ad-creative/references/creative-roadmap.md +0 -118
  103. package/bundled-skills/ad-creative/references/generative-tools.md +0 -637
  104. package/bundled-skills/ad-creative/references/hook-system.md +0 -115
  105. package/bundled-skills/ad-creative/references/imessage-video-ads.md +0 -201
  106. package/bundled-skills/ad-creative/references/meta-creative-formats.md +0 -114
  107. package/bundled-skills/ad-creative/references/motion-video-ads.md +0 -126
  108. package/bundled-skills/ad-creative/references/platform-specs.md +0 -213
  109. package/bundled-skills/ad-creative/references/short-form-video-specs.md +0 -213
  110. package/bundled-skills/ad-creative/references/static-ad-templates.md +0 -308
  111. package/bundled-skills/ads/SKILL.md +0 -499
  112. package/bundled-skills/ads/evals/evals.json +0 -157
  113. package/bundled-skills/ads/references/abm-playbook.md +0 -93
  114. package/bundled-skills/ads/references/ad-copy-templates.md +0 -207
  115. package/bundled-skills/ads/references/audience-targeting.md +0 -243
  116. package/bundled-skills/ads/references/audit-guardrails.md +0 -83
  117. package/bundled-skills/ads/references/b2b-paid-playbook.md +0 -115
  118. package/bundled-skills/ads/references/conversion-tracking.md +0 -361
  119. package/bundled-skills/ads/references/creative-research-automation.md +0 -103
  120. package/bundled-skills/ads/references/google-ads-audit-checklist.md +0 -84
  121. package/bundled-skills/ads/references/google-search-playbook.md +0 -120
  122. package/bundled-skills/ads/references/linkedin-b2b-playbook.md +0 -107
  123. package/bundled-skills/ads/references/meta-decision-system.md +0 -176
  124. package/bundled-skills/ads/references/payback-period.md +0 -69
  125. package/bundled-skills/ads/references/platform-setup-checklists.md +0 -277
  126. package/bundled-skills/ads/references/rsa-output-spec.md +0 -88
  127. package/bundled-skills/agent-device/SKILL.md +0 -20
  128. package/bundled-skills/ai-seo/SKILL.md +0 -488
  129. package/bundled-skills/ai-seo/evals/evals.json +0 -135
  130. package/bundled-skills/ai-seo/references/agent-readiness.md +0 -57
  131. package/bundled-skills/ai-seo/references/citations-vs-recommendations.md +0 -85
  132. package/bundled-skills/ai-seo/references/content-patterns.md +0 -287
  133. package/bundled-skills/ai-seo/references/content-types.md +0 -71
  134. package/bundled-skills/ai-seo/references/format-volatility.md +0 -98
  135. package/bundled-skills/ai-seo/references/okf.md +0 -104
  136. package/bundled-skills/ai-seo/references/platform-ranking-factors.md +0 -154
  137. package/bundled-skills/ai-seo/references/youtube-ai-citations.md +0 -60
  138. package/bundled-skills/analytics/SKILL.md +0 -310
  139. package/bundled-skills/analytics/evals/evals.json +0 -90
  140. package/bundled-skills/analytics/references/event-library.md +0 -260
  141. package/bundled-skills/analytics/references/ga4-implementation.md +0 -300
  142. package/bundled-skills/analytics/references/gtm-implementation.md +0 -390
  143. package/bundled-skills/android-emulator/SKILL.md +0 -32
  144. package/bundled-skills/android-reverse-engineering/LICENSE +0 -190
  145. package/bundled-skills/android-reverse-engineering/SKILL.md +0 -313
  146. package/bundled-skills/android-reverse-engineering/references/api-extraction-patterns.md +0 -197
  147. package/bundled-skills/android-reverse-engineering/references/call-flow-analysis.md +0 -210
  148. package/bundled-skills/android-reverse-engineering/references/fernflower-usage.md +0 -115
  149. package/bundled-skills/android-reverse-engineering/references/jadx-usage.md +0 -116
  150. package/bundled-skills/android-reverse-engineering/references/kotlin-name-recovery.md +0 -108
  151. package/bundled-skills/android-reverse-engineering/references/setup-guide.md +0 -221
  152. package/bundled-skills/android-reverse-engineering/references/third_party_hosts.txt +0 -122
  153. package/bundled-skills/android-reverse-engineering/scripts/check-deps.ps1 +0 -165
  154. package/bundled-skills/android-reverse-engineering/scripts/check-deps.sh +0 -129
  155. package/bundled-skills/android-reverse-engineering/scripts/decompile.ps1 +0 -400
  156. package/bundled-skills/android-reverse-engineering/scripts/decompile.sh +0 -578
  157. package/bundled-skills/android-reverse-engineering/scripts/find-api-calls.ps1 +0 -121
  158. package/bundled-skills/android-reverse-engineering/scripts/find-api-calls.sh +0 -339
  159. package/bundled-skills/android-reverse-engineering/scripts/fingerprint.sh +0 -241
  160. package/bundled-skills/android-reverse-engineering/scripts/install-dep.ps1 +0 -345
  161. package/bundled-skills/android-reverse-engineering/scripts/install-dep.sh +0 -448
  162. package/bundled-skills/android-reverse-engineering/scripts/lookup-name.sh +0 -85
  163. package/bundled-skills/android-reverse-engineering/scripts/recover-kotlin-names.sh +0 -140
  164. package/bundled-skills/build-graph/SKILL.md +0 -38
  165. package/bundled-skills/claude-history-ingest/SKILL.md +0 -463
  166. package/bundled-skills/claude-history-ingest/references/claude-data-format.md +0 -118
  167. package/bundled-skills/codex-history-ingest/SKILL.md +0 -248
  168. package/bundled-skills/codex-history-ingest/references/codex-data-format.md +0 -82
  169. package/bundled-skills/cold-email/SKILL.md +0 -159
  170. package/bundled-skills/cold-email/evals/evals.json +0 -94
  171. package/bundled-skills/cold-email/references/benchmarks.md +0 -83
  172. package/bundled-skills/cold-email/references/follow-up-sequences.md +0 -81
  173. package/bundled-skills/cold-email/references/frameworks.md +0 -90
  174. package/bundled-skills/cold-email/references/personalization.md +0 -79
  175. package/bundled-skills/cold-email/references/subject-lines.md +0 -53
  176. package/bundled-skills/competitor-profiling/SKILL.md +0 -415
  177. package/bundled-skills/competitor-profiling/evals/evals.json +0 -85
  178. package/bundled-skills/competitor-profiling/references/templates.md +0 -167
  179. package/bundled-skills/competitor-profiling/references/tool-reference.md +0 -179
  180. package/bundled-skills/computer-use/SKILL.md +0 -41
  181. package/bundled-skills/content-strategy/SKILL.md +0 -439
  182. package/bundled-skills/content-strategy/evals/evals.json +0 -116
  183. package/bundled-skills/content-strategy/references/content-distribution.md +0 -83
  184. package/bundled-skills/content-strategy/references/headless-cms.md +0 -194
  185. package/bundled-skills/copilot-history-ingest/SKILL.md +0 -376
  186. package/bundled-skills/copilot-history-ingest/references/copilot-data-format.md +0 -321
  187. package/bundled-skills/copy-editing/SKILL.md +0 -457
  188. package/bundled-skills/copy-editing/evals/evals.json +0 -89
  189. package/bundled-skills/copy-editing/references/checklist.md +0 -66
  190. package/bundled-skills/copy-editing/references/content-refresh.md +0 -38
  191. package/bundled-skills/copy-editing/references/plain-english-alternatives.md +0 -394
  192. package/bundled-skills/copywriting/SKILL.md +0 -256
  193. package/bundled-skills/copywriting/evals/evals.json +0 -126
  194. package/bundled-skills/copywriting/references/copy-frameworks.md +0 -433
  195. package/bundled-skills/copywriting/references/natural-transitions.md +0 -272
  196. package/bundled-skills/cro/SKILL.md +0 -187
  197. package/bundled-skills/cro/evals/evals.json +0 -111
  198. package/bundled-skills/cro/references/experiments.md +0 -248
  199. package/bundled-skills/cro/references/form.md +0 -422
  200. package/bundled-skills/cross-linker/SKILL.md +0 -309
  201. package/bundled-skills/customer-research/SKILL.md +0 -305
  202. package/bundled-skills/customer-research/evals/evals.json +0 -176
  203. package/bundled-skills/customer-research/references/interviews-and-surveys.md +0 -155
  204. package/bundled-skills/customer-research/references/source-guides.md +0 -401
  205. package/bundled-skills/daily-update/SKILL.md +0 -223
  206. package/bundled-skills/dart-add-unit-test/SKILL.md +0 -122
  207. package/bundled-skills/dart-build-cli-app/SKILL.md +0 -185
  208. package/bundled-skills/dart-collect-coverage/SKILL.md +0 -141
  209. package/bundled-skills/dart-fix-runtime-errors/SKILL.md +0 -166
  210. package/bundled-skills/dart-generate-test-mocks/SKILL.md +0 -155
  211. package/bundled-skills/dart-migrate-to-checks-package/SKILL.md +0 -528
  212. package/bundled-skills/dart-resolve-package-conflicts/SKILL.md +0 -116
  213. package/bundled-skills/dart-run-static-analysis/SKILL.md +0 -104
  214. package/bundled-skills/dart-setup-ffi-assets/SKILL.md +0 -419
  215. package/bundled-skills/dart-use-doc-examples/SKILL.md +0 -96
  216. package/bundled-skills/dart-use-ffigen/SKILL.md +0 -218
  217. package/bundled-skills/dart-use-pattern-matching/SKILL.md +0 -146
  218. package/bundled-skills/dart-use-primary-constructors/SKILL.md +0 -262
  219. package/bundled-skills/dart-write-documentation/SKILL.md +0 -136
  220. package/bundled-skills/debug-issue/SKILL.md +0 -28
  221. package/bundled-skills/dogfood/SKILL.md +0 -27
  222. package/bundled-skills/eas-app-stores/SKILL.md +0 -176
  223. package/bundled-skills/eas-app-stores/agents/openai.yaml +0 -4
  224. package/bundled-skills/eas-app-stores/references/app-store-metadata.md +0 -497
  225. package/bundled-skills/eas-app-stores/references/ios-app-store.md +0 -376
  226. package/bundled-skills/eas-app-stores/references/native-ios.md +0 -167
  227. package/bundled-skills/eas-app-stores/references/play-store.md +0 -244
  228. package/bundled-skills/eas-app-stores/references/testflight.md +0 -62
  229. package/bundled-skills/eas-app-stores/references/workflows.md +0 -120
  230. package/bundled-skills/eas-hosting/SKILL.md +0 -431
  231. package/bundled-skills/eas-hosting/agents/openai.yaml +0 -4
  232. package/bundled-skills/eas-observe/SKILL.md +0 -54
  233. package/bundled-skills/eas-observe/agents/openai.yaml +0 -4
  234. package/bundled-skills/eas-observe/references/metrics.md +0 -98
  235. package/bundled-skills/eas-observe/references/queries.md +0 -403
  236. package/bundled-skills/eas-observe/references/setup.md +0 -476
  237. package/bundled-skills/eas-observe/references/third-party.md +0 -136
  238. package/bundled-skills/eas-simulator/SKILL.md +0 -208
  239. package/bundled-skills/eas-simulator/agents/openai.yaml +0 -4
  240. package/bundled-skills/eas-simulator/references/controllers.md +0 -106
  241. package/bundled-skills/eas-simulator/references/run-your-app.md +0 -224
  242. package/bundled-skills/eas-simulator/references/troubleshooting.md +0 -44
  243. package/bundled-skills/eas-update/SKILL.md +0 -146
  244. package/bundled-skills/eas-update/agents/openai.yaml +0 -4
  245. package/bundled-skills/eas-update-insights/SKILL.md +0 -238
  246. package/bundled-skills/eas-update-insights/agents/openai.yaml +0 -4
  247. package/bundled-skills/eas-update-insights/references/channel-insights-schema.md +0 -47
  248. package/bundled-skills/eas-update-insights/references/update-insights-schema.md +0 -69
  249. package/bundled-skills/eas-workflows/SKILL.md +0 -99
  250. package/bundled-skills/eas-workflows/agents/openai.yaml +0 -4
  251. package/bundled-skills/eas-workflows/scripts/fetch.js +0 -109
  252. package/bundled-skills/eas-workflows/scripts/package.json +0 -6
  253. package/bundled-skills/emails/SKILL.md +0 -311
  254. package/bundled-skills/emails/evals/evals.json +0 -93
  255. package/bundled-skills/emails/references/copy-guidelines.md +0 -113
  256. package/bundled-skills/emails/references/email-types.md +0 -515
  257. package/bundled-skills/emails/references/sequence-templates.md +0 -168
  258. package/bundled-skills/explore-codebase/SKILL.md +0 -29
  259. package/bundled-skills/expo-animation/LICENSE +0 -21
  260. package/bundled-skills/expo-animation/RECIPES.md +0 -385
  261. package/bundled-skills/expo-animation/SKILL.md +0 -267
  262. package/bundled-skills/expo-animation/agents/openai.yaml +0 -4
  263. package/bundled-skills/expo-app-clip/SKILL.md +0 -290
  264. package/bundled-skills/expo-app-clip/agents/openai.yaml +0 -4
  265. package/bundled-skills/expo-app-clip/references/native-module.md +0 -96
  266. package/bundled-skills/expo-brownfield/SKILL.md +0 -62
  267. package/bundled-skills/expo-brownfield/agents/openai.yaml +0 -4
  268. package/bundled-skills/expo-brownfield/references/brownfield-integrated.md +0 -526
  269. package/bundled-skills/expo-brownfield/references/brownfield-isolated.md +0 -451
  270. package/bundled-skills/expo-brownfield/references/comparison.md +0 -63
  271. package/bundled-skills/expo-brownfield/references/troubleshooting.md +0 -88
  272. package/bundled-skills/expo-data-fetching/SKILL.md +0 -478
  273. package/bundled-skills/expo-data-fetching/agents/openai.yaml +0 -4
  274. package/bundled-skills/expo-data-fetching/references/expo-router-loaders.md +0 -341
  275. package/bundled-skills/expo-data-fetching/references/offline-and-cancellation.md +0 -68
  276. package/bundled-skills/expo-design-system/SKILL.md +0 -376
  277. package/bundled-skills/expo-design-system/agents/openai.yaml +0 -4
  278. package/bundled-skills/expo-design-system/references/audit.md +0 -190
  279. package/bundled-skills/expo-design-system/references/native-slop.md +0 -74
  280. package/bundled-skills/expo-dev-client/SKILL.md +0 -182
  281. package/bundled-skills/expo-dev-client/agents/openai.yaml +0 -4
  282. package/bundled-skills/expo-dom/SKILL.md +0 -425
  283. package/bundled-skills/expo-dom/agents/openai.yaml +0 -4
  284. package/bundled-skills/expo-examples/SKILL.md +0 -106
  285. package/bundled-skills/expo-examples/agents/openai.yaml +0 -4
  286. package/bundled-skills/expo-examples/references/catalog.md +0 -105
  287. package/bundled-skills/expo-migrate-module/SKILL.md +0 -113
  288. package/bundled-skills/expo-migrate-module/agents/openai.yaml +0 -4
  289. package/bundled-skills/expo-migrate-module/references/compatibility.md +0 -73
  290. package/bundled-skills/expo-migrate-module/references/example.md +0 -212
  291. package/bundled-skills/expo-migrate-module/references/migration-map.md +0 -306
  292. package/bundled-skills/expo-module/SKILL.md +0 -151
  293. package/bundled-skills/expo-module/agents/openai.yaml +0 -4
  294. package/bundled-skills/expo-module/references/config-plugin.md +0 -90
  295. package/bundled-skills/expo-module/references/create-expo-module.md +0 -206
  296. package/bundled-skills/expo-module/references/lifecycle.md +0 -127
  297. package/bundled-skills/expo-module/references/module-config.md +0 -48
  298. package/bundled-skills/expo-module/references/native-module.md +0 -286
  299. package/bundled-skills/expo-module/references/native-view.md +0 -171
  300. package/bundled-skills/expo-native-ui/SKILL.md +0 -201
  301. package/bundled-skills/expo-native-ui/agents/openai.yaml +0 -4
  302. package/bundled-skills/expo-native-ui/references/controls.md +0 -231
  303. package/bundled-skills/expo-native-ui/references/gradients.md +0 -106
  304. package/bundled-skills/expo-native-ui/references/icons.md +0 -232
  305. package/bundled-skills/expo-native-ui/references/media.md +0 -193
  306. package/bundled-skills/expo-native-ui/references/storage.md +0 -121
  307. package/bundled-skills/expo-native-ui/references/visual-effects.md +0 -198
  308. package/bundled-skills/expo-native-ui/references/webgpu-three.md +0 -605
  309. package/bundled-skills/expo-overview/SKILL.md +0 -115
  310. package/bundled-skills/expo-overview/agents/openai.yaml +0 -4
  311. package/bundled-skills/expo-project-structure/SKILL.md +0 -114
  312. package/bundled-skills/expo-project-structure/agents/openai.yaml +0 -4
  313. package/bundled-skills/expo-router/SKILL.md +0 -240
  314. package/bundled-skills/expo-router/agents/openai.yaml +0 -4
  315. package/bundled-skills/expo-router/references/form-sheet.md +0 -253
  316. package/bundled-skills/expo-router/references/route-structure.md +0 -229
  317. package/bundled-skills/expo-router/references/search.md +0 -248
  318. package/bundled-skills/expo-router/references/tabs.md +0 -433
  319. package/bundled-skills/expo-router/references/toolbar-and-headers.md +0 -284
  320. package/bundled-skills/expo-router/references/zoom-transitions.md +0 -158
  321. package/bundled-skills/expo-skill-eval/SKILL.md +0 -314
  322. package/bundled-skills/expo-skill-eval/agents/visual-grader.md +0 -52
  323. package/bundled-skills/expo-skill-eval/references/design-rubric.md +0 -45
  324. package/bundled-skills/expo-skill-eval/references/runtime-matrix.md +0 -34
  325. package/bundled-skills/expo-skill-eval/scripts/check-static.sh +0 -64
  326. package/bundled-skills/expo-skill-eval/scripts/clean-fixture.sh +0 -56
  327. package/bundled-skills/expo-skill-eval/scripts/generate_viewer.py +0 -450
  328. package/bundled-skills/expo-skill-eval/scripts/latest-sdk.sh +0 -46
  329. package/bundled-skills/expo-skill-eval/scripts/make-fixture.sh +0 -95
  330. package/bundled-skills/expo-skill-eval/scripts/make-workspace.sh +0 -31
  331. package/bundled-skills/expo-skill-eval/scripts/snapshot-android.sh +0 -284
  332. package/bundled-skills/expo-skill-eval/scripts/snapshot-ios.sh +0 -132
  333. package/bundled-skills/expo-skill-eval/scripts/snapshot-web.sh +0 -61
  334. package/bundled-skills/expo-skill-feedback/SKILL.md +0 -87
  335. package/bundled-skills/expo-skill-feedback/agents/openai.yaml +0 -4
  336. package/bundled-skills/expo-skill-feedback/scripts/skill-event.cjs +0 -180
  337. package/bundled-skills/expo-skill-feedback/scripts/telemetry.cjs +0 -65
  338. package/bundled-skills/expo-skill-feedback/scripts/telemetry_common.cjs +0 -171
  339. package/bundled-skills/expo-ui/SKILL.md +0 -101
  340. package/bundled-skills/expo-ui/agents/openai.yaml +0 -4
  341. package/bundled-skills/expo-ui/references/drop-in-replacements.md +0 -27
  342. package/bundled-skills/expo-ui/references/jetpack-compose.md +0 -73
  343. package/bundled-skills/expo-ui/references/swift-ui.md +0 -73
  344. package/bundled-skills/expo-ui/references/universal.md +0 -104
  345. package/bundled-skills/expo-ui/scripts/list-components.js +0 -193
  346. package/bundled-skills/expo-upgrade/SKILL.md +0 -150
  347. package/bundled-skills/expo-upgrade/agents/openai.yaml +0 -4
  348. package/bundled-skills/expo-upgrade/references/expo-av-to-audio.md +0 -132
  349. package/bundled-skills/expo-upgrade/references/expo-av-to-video.md +0 -160
  350. package/bundled-skills/expo-upgrade/references/native-tabs.md +0 -124
  351. package/bundled-skills/expo-upgrade/references/new-architecture.md +0 -79
  352. package/bundled-skills/expo-upgrade/references/react-19.md +0 -79
  353. package/bundled-skills/expo-upgrade/references/react-compiler.md +0 -59
  354. package/bundled-skills/expo-upgrade/references/react-navigation-to-expo-router.md +0 -61
  355. package/bundled-skills/expo-web-to-native/SKILL.md +0 -91
  356. package/bundled-skills/expo-web-to-native/agents/openai.yaml +0 -4
  357. package/bundled-skills/expo-web-to-native/references/false-friends.md +0 -119
  358. package/bundled-skills/expo-web-to-native/references/native-patterns.md +0 -39
  359. package/bundled-skills/expo-web-to-native/references/run-as-goal.md +0 -48
  360. package/bundled-skills/expo-web-to-native/references/verify-on-device.md +0 -45
  361. package/bundled-skills/find-skills/SKILL.md +0 -141
  362. package/bundled-skills/flutter-add-integration-test/SKILL.md +0 -163
  363. package/bundled-skills/flutter-add-widget-preview/SKILL.md +0 -145
  364. package/bundled-skills/flutter-add-widget-test/SKILL.md +0 -154
  365. package/bundled-skills/flutter-apply-architecture-best-practices/SKILL.md +0 -162
  366. package/bundled-skills/flutter-build-responsive-layout/SKILL.md +0 -139
  367. package/bundled-skills/flutter-fix-layout-issues/SKILL.md +0 -130
  368. package/bundled-skills/flutter-implement-json-serialization/SKILL.md +0 -153
  369. package/bundled-skills/flutter-setup-declarative-routing/SKILL.md +0 -255
  370. package/bundled-skills/flutter-setup-localization/SKILL.md +0 -210
  371. package/bundled-skills/flutter-use-http-package/SKILL.md +0 -174
  372. package/bundled-skills/graph-colorize/SKILL.md +0 -180
  373. package/bundled-skills/hermes-history-ingest/SKILL.md +0 -239
  374. package/bundled-skills/hermes-history-ingest/references/hermes-data-format.md +0 -131
  375. package/bundled-skills/impl-validator/SKILL.md +0 -118
  376. package/bundled-skills/ios-simulator/SKILL.md +0 -32
  377. package/bundled-skills/json-canvas/SKILL.md +0 -244
  378. package/bundled-skills/json-canvas/references/EXAMPLES.md +0 -329
  379. package/bundled-skills/launch/SKILL.md +0 -381
  380. package/bundled-skills/launch/evals/evals.json +0 -106
  381. package/bundled-skills/llm-wiki/SKILL.md +0 -661
  382. package/bundled-skills/llm-wiki/references/WRITING.md +0 -28
  383. package/bundled-skills/llm-wiki/references/karpathy-pattern.md +0 -45
  384. package/bundled-skills/marketing-plan/SKILL.md +0 -300
  385. package/bundled-skills/marketing-plan/evals/evals.json +0 -112
  386. package/bundled-skills/marketing-plan/references/aarrr-framework.md +0 -180
  387. package/bundled-skills/marketing-plan/references/budget-planning.md +0 -168
  388. package/bundled-skills/marketing-plan/references/client-types.md +0 -373
  389. package/bundled-skills/marketing-plan/references/current-state-rubric.md +0 -255
  390. package/bundled-skills/marketing-plan/references/example-quietude.md +0 -972
  391. package/bundled-skills/marketing-plan/references/funding-stage-unlocks.md +0 -230
  392. package/bundled-skills/marketing-plan/references/growth-patterns.md +0 -190
  393. package/bundled-skills/marketing-plan/references/idea-cross-reference.md +0 -265
  394. package/bundled-skills/marketing-plan/references/measurement-framework.md +0 -213
  395. package/bundled-skills/marketing-plan/references/methodology.md +0 -363
  396. package/bundled-skills/marketing-plan/references/ops-stack-mapping.md +0 -197
  397. package/bundled-skills/marketing-plan/references/plan-template.md +0 -494
  398. package/bundled-skills/marketing-plan/references/team-and-agency-model.md +0 -278
  399. package/bundled-skills/marketing-psychology/SKILL.md +0 -455
  400. package/bundled-skills/marketing-psychology/evals/evals.json +0 -88
  401. package/bundled-skills/memory-bridge/SKILL.md +0 -163
  402. package/bundled-skills/memory-save/SKILL.md +0 -88
  403. package/bundled-skills/obsidian-bases/SKILL.md +0 -499
  404. package/bundled-skills/obsidian-bases/references/FUNCTIONS_REFERENCE.md +0 -173
  405. package/bundled-skills/obsidian-cli/SKILL.md +0 -106
  406. package/bundled-skills/obsidian-layout-adjustment/SKILL.md +0 -226
  407. package/bundled-skills/obsidian-layout-adjustment/evals/evals.json +0 -53
  408. package/bundled-skills/obsidian-layout-adjustment/references/workflow-reference.md +0 -212
  409. package/bundled-skills/obsidian-markdown/SKILL.md +0 -196
  410. package/bundled-skills/obsidian-markdown/references/CALLOUTS.md +0 -58
  411. package/bundled-skills/obsidian-markdown/references/EMBEDS.md +0 -70
  412. package/bundled-skills/obsidian-markdown/references/PROPERTIES.md +0 -61
  413. package/bundled-skills/offers/SKILL.md +0 -155
  414. package/bundled-skills/offers/evals/evals.json +0 -21
  415. package/bundled-skills/offers/references/bonus-stacking.md +0 -150
  416. package/bundled-skills/offers/references/examples.md +0 -215
  417. package/bundled-skills/offers/references/guarantee-design.md +0 -172
  418. package/bundled-skills/offers/references/offer-anatomy.md +0 -203
  419. package/bundled-skills/offers/references/offer-formats.md +0 -240
  420. package/bundled-skills/offers/references/saas-offers.md +0 -116
  421. package/bundled-skills/offers/references/scarcity-urgency.md +0 -175
  422. package/bundled-skills/offers/references/value-equation.md +0 -134
  423. package/bundled-skills/onboarding/SKILL.md +0 -261
  424. package/bundled-skills/onboarding/evals/evals.json +0 -108
  425. package/bundled-skills/onboarding/references/activation-models.md +0 -57
  426. package/bundled-skills/onboarding/references/experiments.md +0 -258
  427. package/bundled-skills/onboarding/references/minimum-path-to-value.md +0 -49
  428. package/bundled-skills/openclaw-history-ingest/SKILL.md +0 -257
  429. package/bundled-skills/openclaw-history-ingest/references/openclaw-data-format.md +0 -154
  430. package/bundled-skills/orchestration/SKILL.md +0 -69
  431. package/bundled-skills/pi-history-ingest/SKILL.md +0 -312
  432. package/bundled-skills/pricing/SKILL.md +0 -295
  433. package/bundled-skills/pricing/evals/evals.json +0 -119
  434. package/bundled-skills/pricing/references/pricing-models.md +0 -66
  435. package/bundled-skills/pricing/references/pricing-page-teardown.md +0 -85
  436. package/bundled-skills/pricing/references/research-methods.md +0 -152
  437. package/bundled-skills/pricing/references/tier-structure.md +0 -232
  438. package/bundled-skills/product-marketing/SKILL.md +0 -255
  439. package/bundled-skills/product-marketing/evals/evals.json +0 -98
  440. package/bundled-skills/prospecting/SKILL.md +0 -262
  441. package/bundled-skills/prospecting/evals/evals.json +0 -122
  442. package/bundled-skills/prospecting/references/b2b-prospecting.md +0 -106
  443. package/bundled-skills/prospecting/references/compliance.md +0 -123
  444. package/bundled-skills/prospecting/references/data-sources.md +0 -287
  445. package/bundled-skills/prospecting/references/demand-signals.md +0 -129
  446. package/bundled-skills/prospecting/references/local-prospecting.md +0 -165
  447. package/bundled-skills/prospecting/references/saas-prospecting.md +0 -123
  448. package/bundled-skills/refactor-safely/SKILL.md +0 -29
  449. package/bundled-skills/review-delta/SKILL.md +0 -46
  450. package/bundled-skills/review-pr/SKILL.md +0 -66
  451. package/bundled-skills/sales-enablement/SKILL.md +0 -359
  452. package/bundled-skills/sales-enablement/evals/evals.json +0 -91
  453. package/bundled-skills/sales-enablement/references/deck-frameworks.md +0 -263
  454. package/bundled-skills/sales-enablement/references/demo-scripts.md +0 -355
  455. package/bundled-skills/sales-enablement/references/objection-library.md +0 -270
  456. package/bundled-skills/sales-enablement/references/one-pager-templates.md +0 -208
  457. package/bundled-skills/seo-audit/SKILL.md +0 -499
  458. package/bundled-skills/seo-audit/evals/evals.json +0 -136
  459. package/bundled-skills/seo-audit/references/ai-writing-detection.md +0 -200
  460. package/bundled-skills/seo-audit/references/international-seo.md +0 -230
  461. package/bundled-skills/session-brain/SKILL.md +0 -101
  462. package/bundled-skills/session-search/SKILL.md +0 -97
  463. package/bundled-skills/social/SKILL.md +0 -413
  464. package/bundled-skills/social/evals/evals.json +0 -107
  465. package/bundled-skills/social/references/carousel-frameworks.md +0 -141
  466. package/bundled-skills/social/references/listening-sources-template.md +0 -123
  467. package/bundled-skills/social/references/listening.md +0 -283
  468. package/bundled-skills/social/references/platform-limits.md +0 -110
  469. package/bundled-skills/social/references/platforms.md +0 -170
  470. package/bundled-skills/social/references/post-templates.md +0 -179
  471. package/bundled-skills/social/references/reverse-engineering.md +0 -195
  472. package/bundled-skills/social/references/short-form-video.md +0 -237
  473. package/bundled-skills/tag-taxonomy/SKILL.md +0 -218
  474. package/bundled-skills/vault-skill-factory/SKILL.md +0 -143
  475. package/bundled-skills/video/SKILL.md +0 -346
  476. package/bundled-skills/video/evals/evals.json +0 -103
  477. package/bundled-skills/video/references/ai-video-prompting.md +0 -175
  478. package/bundled-skills/video/references/edit-anatomy.md +0 -84
  479. package/bundled-skills/wiki-agent/SKILL.md +0 -322
  480. package/bundled-skills/wiki-capture/SKILL.md +0 -337
  481. package/bundled-skills/wiki-capture/references/RAW-FORMAT.md +0 -115
  482. package/bundled-skills/wiki-context-pack/SKILL.md +0 -89
  483. package/bundled-skills/wiki-dashboard/SKILL.md +0 -472
  484. package/bundled-skills/wiki-dedup/SKILL.md +0 -320
  485. package/bundled-skills/wiki-digest/SKILL.md +0 -243
  486. package/bundled-skills/wiki-export/SKILL.md +0 -445
  487. package/bundled-skills/wiki-history-ingest/SKILL.md +0 -61
  488. package/bundled-skills/wiki-import/SKILL.md +0 -276
  489. package/bundled-skills/wiki-ingest/SKILL.md +0 -563
  490. package/bundled-skills/wiki-ingest/references/ingest-prompts.md +0 -54
  491. package/bundled-skills/wiki-ingest/references/pageindex.md +0 -72
  492. package/bundled-skills/wiki-ingest/references/url-sources.md +0 -295
  493. package/bundled-skills/wiki-lint/SKILL.md +0 -643
  494. package/bundled-skills/wiki-narrate/SKILL.md +0 -120
  495. package/bundled-skills/wiki-narrate/references/voices.md +0 -29
  496. package/bundled-skills/wiki-query/SKILL.md +0 -307
  497. package/bundled-skills/wiki-rebuild/SKILL.md +0 -212
  498. package/bundled-skills/wiki-research/SKILL.md +0 -319
  499. package/bundled-skills/wiki-setup/SKILL.md +0 -359
  500. package/bundled-skills/wiki-stage-commit/SKILL.md +0 -164
  501. package/bundled-skills/wiki-status/SKILL.md +0 -556
  502. package/bundled-skills/wiki-switch/SKILL.md +0 -115
  503. package/bundled-skills/wiki-synthesize/SKILL.md +0 -212
  504. package/bundled-skills/wiki-update/SKILL.md +0 -271
  505. package/skills/ai-security/SKILL.md +0 -132
  506. package/skills/ai-security/references/atlas-coverage.md +0 -60
  507. package/skills/ai-security/scripts/ai_threat_scanner.py +0 -373
  508. package/skills/anti-AI-design/SKILL.md +0 -72
  509. package/skills/apple-hig-audit/SKILL.md +0 -64
  510. package/skills/apple-hig-audit/references/accessibility.md +0 -78
  511. package/skills/apple-hig-audit/references/platform-specifics.md +0 -57
  512. package/skills/apple-hig-audit/references/visual-design.md +0 -68
  513. package/skills/apple-hig-audit/scripts/hig_checker.py +0 -115
  514. package/skills/apple-hig-audit/templates/hig-audit-template.md +0 -114
  515. package/skills/dependency-auditor/README.md +0 -98
  516. package/skills/dependency-auditor/SKILL.md +0 -114
  517. package/skills/dependency-auditor/assets/sample_go.mod +0 -53
  518. package/skills/dependency-auditor/assets/sample_package.json +0 -72
  519. package/skills/dependency-auditor/assets/sample_requirements.txt +0 -71
  520. package/skills/dependency-auditor/expected_outputs/sample_license_report.txt +0 -37
  521. package/skills/dependency-auditor/expected_outputs/sample_upgrade_plan.txt +0 -59
  522. package/skills/dependency-auditor/expected_outputs/sample_vulnerability_report.json +0 -71
  523. package/skills/dependency-auditor/references/dependency_management_best_practices.md +0 -46
  524. package/skills/dependency-auditor/references/license_compatibility_matrix.md +0 -57
  525. package/skills/dependency-auditor/references/vulnerability_assessment_guide.md +0 -62
  526. package/skills/dependency-auditor/scripts/dep_scanner.py +0 -595
  527. package/skills/dependency-auditor/scripts/license_checker.py +0 -442
  528. package/skills/dependency-auditor/scripts/upgrade_planner.py +0 -490
  529. package/skills/dependency-auditor/test-inventory.json +0 -421
  530. package/skills/dependency-auditor/test-project/package.json +0 -72
  531. package/skills/design-system-tokens/SKILL.md +0 -90
  532. package/skills/design-system-tokens/assets/design_system_doc_template.md +0 -129
  533. package/skills/design-system-tokens/references/component-architecture.md +0 -88
  534. package/skills/design-system-tokens/references/developer-handoff.md +0 -61
  535. package/skills/design-system-tokens/references/responsive-calculations.md +0 -72
  536. package/skills/design-system-tokens/references/token-generation.md +0 -62
  537. package/skills/design-system-tokens/scripts/design_token_generator.py +0 -315
  538. package/skills/engineering-code-standards/SKILL.md +0 -174
  539. package/skills/env-secrets-manager/SKILL.md +0 -102
  540. package/skills/env-secrets-manager/references/secret-patterns.md +0 -56
  541. package/skills/env-secrets-manager/references/validation-detection-rotation.md +0 -76
  542. package/skills/env-secrets-manager/scripts/env_auditor.py +0 -340
  543. package/skills/frontend-design-taste/SKILL.md +0 -62
  544. package/skills/mcp-server-builder/README.md +0 -42
  545. package/skills/mcp-server-builder/SKILL.md +0 -144
  546. package/skills/mcp-server-builder/references/openapi-extraction-guide.md +0 -34
  547. package/skills/mcp-server-builder/references/production-hardening-guide.md +0 -80
  548. package/skills/mcp-server-builder/references/python-server-template.md +0 -22
  549. package/skills/mcp-server-builder/references/spec-compatibility.md +0 -129
  550. package/skills/mcp-server-builder/references/typescript-server-template.md +0 -19
  551. package/skills/mcp-server-builder/references/validation-checklist.md +0 -30
  552. package/skills/mcp-server-builder/scripts/mcp_validator.py +0 -180
  553. package/skills/mcp-server-builder/scripts/openapi_to_mcp.py +0 -279
  554. package/skills/playwright-agent/SKILL.md +0 -147
  555. package/skills/skill-creator/LICENSE.txt +0 -14
  556. package/skills/skill-creator/SKILL.md +0 -471
  557. package/skills/skill-creator/agents/analyzer.md +0 -274
  558. package/skills/skill-creator/agents/comparator.md +0 -202
  559. package/skills/skill-creator/agents/grader.md +0 -223
  560. package/skills/skill-creator/assets/eval_review.html +0 -143
  561. package/skills/skill-creator/eval-viewer/generate_review.py +0 -471
  562. package/skills/skill-creator/eval-viewer/viewer.html +0 -1321
  563. package/skills/skill-creator/references/schemas.md +0 -430
  564. package/skills/skill-creator/scripts/__init__.py +0 -0
  565. package/skills/skill-creator/scripts/aggregate_benchmark.py +0 -401
  566. package/skills/skill-creator/scripts/generate_report.py +0 -322
  567. package/skills/skill-creator/scripts/improve_description.py +0 -247
  568. package/skills/skill-creator/scripts/package_skill.py +0 -136
  569. package/skills/skill-creator/scripts/quick_validate.py +0 -103
  570. package/skills/skill-creator/scripts/run_eval.py +0 -310
  571. package/skills/skill-creator/scripts/run_loop.py +0 -328
  572. package/skills/skill-creator/scripts/utils.py +0 -47
  573. package/skills/write-a-skill/SKILL.md +0 -111
  574. package/skills/write-a-skill/references/companion_tooling.md +0 -61
  575. package/skills/write-a-skill/references/description_design_patterns.md +0 -136
  576. package/skills/write-a-skill/references/progressive_disclosure_principles.md +0 -87
  577. package/skills/write-a-skill/references/quality_gates_for_skills.md +0 -158
  578. package/skills/write-a-skill/scripts/skill_description_validator.py +0 -241
  579. package/skills/write-a-skill/scripts/skill_review_checklist_runner.py +0 -257
  580. package/skills/write-a-skill/scripts/skill_structure_validator.py +0 -265
@@ -1,578 +0,0 @@
1
- #!/usr/bin/env bash
2
- # decompile.sh — Decompile APK/JAR/AAR using jadx, fernflower, or both
3
- set -euo pipefail
4
-
5
- usage() {
6
- cat <<EOF
7
- Usage: decompile.sh [OPTIONS] <file>
8
-
9
- Decompile an Android APK, XAPK, JAR, or AAR file.
10
-
11
- Arguments:
12
- <file> Path to the .apk, .xapk, .jar, or .aar file
13
-
14
- Options:
15
- -o, --output DIR Output directory (default: <filename>-decompiled)
16
- --deobf Enable deobfuscation of names
17
- --no-res Skip resource decoding (faster, code-only)
18
- --engine ENGINE Decompiler engine: jadx, fernflower, or both (default: jadx)
19
- -h, --help Show this help message
20
-
21
- Engines:
22
- jadx Use jadx (default). Handles APK/JAR/AAR natively, decodes resources.
23
- fernflower Use Fernflower/Vineflower. Better on complex Java, lambdas, generics.
24
- For APK files, requires dex2jar as intermediate step.
25
- both Run both decompilers side by side for comparison.
26
- jadx output → <output>/jadx/
27
- fernflower → <output>/fernflower/
28
-
29
- Environment:
30
- FERNFLOWER_JAR_PATH Path to fernflower.jar or vineflower.jar
31
-
32
- Examples:
33
- decompile.sh app-release.apk
34
- decompile.sh app-bundle.xapk
35
- decompile.sh --engine both --deobf app-release.apk
36
- decompile.sh --engine fernflower library.jar
37
- EOF
38
- exit 0
39
- }
40
-
41
- # --- Parse arguments ---
42
- OUTPUT_DIR=""
43
- DEOBF=false
44
- NO_RES=false
45
- ENGINE="jadx"
46
- INPUT_FILE=""
47
-
48
- while [[ $# -gt 0 ]]; do
49
- case "$1" in
50
- -o|--output) OUTPUT_DIR="$2"; shift 2 ;;
51
- --deobf) DEOBF=true; shift ;;
52
- --no-res) NO_RES=true; shift ;;
53
- --engine) ENGINE="$2"; shift 2 ;;
54
- -h|--help) usage ;;
55
- -*) echo "Error: Unknown option $1" >&2; usage ;;
56
- *) INPUT_FILE="$1"; shift ;;
57
- esac
58
- done
59
-
60
- # --- Validate input ---
61
- if [[ -z "$INPUT_FILE" ]]; then
62
- echo "Error: No input file specified." >&2
63
- usage
64
- fi
65
-
66
- if [[ ! -f "$INPUT_FILE" ]]; then
67
- echo "Error: File not found: $INPUT_FILE" >&2
68
- exit 1
69
- fi
70
-
71
- ext="${INPUT_FILE##*.}"
72
- ext_lower=$(echo "$ext" | tr '[:upper:]' '[:lower:]')
73
- case "$ext_lower" in
74
- apk|xapk|jar|aar) ;;
75
- *)
76
- echo "Error: Unsupported file type '.$ext'. Expected .apk, .xapk, .jar, or .aar" >&2
77
- exit 1
78
- ;;
79
- esac
80
-
81
- case "$ENGINE" in
82
- jadx|fernflower|both) ;;
83
- *)
84
- echo "Error: Unknown engine '$ENGINE'. Use jadx, fernflower, or both." >&2
85
- exit 1
86
- ;;
87
- esac
88
-
89
- BASENAME=$(basename "$INPUT_FILE" ".$ext_lower")
90
- INPUT_FILE_ABS=$(realpath "$INPUT_FILE")
91
-
92
- if [[ -z "$OUTPUT_DIR" ]]; then
93
- OUTPUT_DIR="${BASENAME}-decompiled"
94
- fi
95
-
96
- # --- XAPK handling ---
97
- # XAPK is a ZIP containing one or more APKs, optional OBB files, and a manifest.json.
98
- # We extract it, find all APKs inside, and decompile each one.
99
- XAPK_EXTRACTED_DIR=""
100
- XAPK_APK_FILES=()
101
-
102
- if [[ "$ext_lower" == "xapk" ]]; then
103
- XAPK_EXTRACTED_DIR=$(mktemp -d "${TMPDIR:-/tmp}/xapk-extract-XXXXXX")
104
- echo "=== Extracting XAPK archive ==="
105
- unzip -qo "$INPUT_FILE_ABS" -d "$XAPK_EXTRACTED_DIR"
106
-
107
- # Show manifest.json if present
108
- if [[ -f "$XAPK_EXTRACTED_DIR/manifest.json" ]]; then
109
- echo "XAPK manifest found:"
110
- cat "$XAPK_EXTRACTED_DIR/manifest.json"
111
- echo
112
- fi
113
-
114
- # Find all APK files inside
115
- while IFS= read -r -d '' apk_file; do
116
- XAPK_APK_FILES+=("$apk_file")
117
- done < <(find "$XAPK_EXTRACTED_DIR" -name "*.apk" -print0 | sort -z)
118
-
119
- if [[ ${#XAPK_APK_FILES[@]} -eq 0 ]]; then
120
- echo "Error: No APK files found inside XAPK archive." >&2
121
- rm -rf "$XAPK_EXTRACTED_DIR"
122
- exit 1
123
- fi
124
-
125
- echo "Found ${#XAPK_APK_FILES[@]} APK(s) inside XAPK:"
126
- for f in "${XAPK_APK_FILES[@]}"; do
127
- echo " - $(basename "$f")"
128
- done
129
- echo
130
- fi
131
-
132
- # --- Locate fernflower JAR ---
133
- find_fernflower_jar() {
134
- if [[ -n "${FERNFLOWER_JAR_PATH:-}" ]] && [[ -f "$FERNFLOWER_JAR_PATH" ]]; then
135
- echo "$FERNFLOWER_JAR_PATH"
136
- return
137
- fi
138
- # Check common locations
139
- for candidate in \
140
- "$HOME/fernflower/build/libs/fernflower.jar" \
141
- "$HOME/vineflower/build/libs/vineflower.jar" \
142
- "$HOME/fernflower/fernflower.jar" \
143
- "$HOME/vineflower/vineflower.jar"; do
144
- if [[ -f "$candidate" ]]; then
145
- echo "$candidate"
146
- return
147
- fi
148
- done
149
- return 1
150
- }
151
-
152
- # --- Locate dex2jar ---
153
- find_dex2jar() {
154
- if command -v d2j-dex2jar &>/dev/null; then
155
- echo "d2j-dex2jar"
156
- elif command -v d2j-dex2jar.sh &>/dev/null; then
157
- echo "d2j-dex2jar.sh"
158
- else
159
- return 1
160
- fi
161
- }
162
-
163
- # --- jadx decompilation ---
164
- run_jadx() {
165
- local out_dir="$1"
166
- local jadx_status=0
167
- local count=0
168
-
169
- if ! command -v jadx &>/dev/null; then
170
- echo "Error: jadx is not installed or not in PATH." >&2
171
- return 1
172
- fi
173
-
174
- local args=()
175
- args+=("-d" "$out_dir")
176
- [[ "$DEOBF" == true ]] && args+=("--deobf")
177
- [[ "$NO_RES" == true ]] && args+=("--no-res")
178
- args+=("--show-bad-code")
179
- args+=("$INPUT_FILE_ABS")
180
-
181
- echo "Running: jadx ${args[*]}"
182
- if jadx "${args[@]}"; then
183
- jadx_status=0
184
- else
185
- jadx_status=$?
186
- fi
187
-
188
- echo "jadx output: $out_dir/sources/"
189
- if [[ -d "$out_dir/sources" ]]; then
190
- count=$(find "$out_dir/sources" -name "*.java" | wc -l)
191
- echo "Java files decompiled by jadx: $count"
192
- fi
193
-
194
- if [[ $jadx_status -eq 0 ]]; then
195
- return 0
196
- fi
197
-
198
- if [[ $count -gt 0 ]]; then
199
- echo "Warning: jadx exited with status $jadx_status after writing $count Java files; treating this as partial success." >&2
200
- return 2
201
- fi
202
-
203
- echo "Error: jadx failed with status $jadx_status and produced no Java output." >&2
204
- return 1
205
- }
206
-
207
- # --- Fernflower decompilation ---
208
- run_fernflower() {
209
- local out_dir="$1"
210
- local jar_to_decompile=""
211
- local converted_jar=""
212
- local intermediate_dir="$out_dir/intermediate"
213
- local ff_status=0
214
- local d2j_status=0
215
- local count=0
216
- local ff_timeout_seconds="${FERNFLOWER_TIMEOUT_SECONDS:-900}"
217
-
218
- local ff_jar
219
- if ! ff_jar=$(find_fernflower_jar); then
220
- echo "Error: Fernflower/Vineflower JAR not found." >&2
221
- echo "Set FERNFLOWER_JAR_PATH or see references/setup-guide.md" >&2
222
- return 1
223
- fi
224
-
225
- mkdir -p "$out_dir"
226
-
227
- # For APK/AAR, we need dex2jar first to convert DEX→JAR
228
- if [[ "$ext_lower" == "apk" || "$ext_lower" == "aar" ]]; then
229
- local d2j
230
- if ! d2j=$(find_dex2jar); then
231
- echo "Error: dex2jar is required to use Fernflower on .$ext_lower files." >&2
232
- echo "Install dex2jar — see references/setup-guide.md" >&2
233
- return 1
234
- fi
235
-
236
- echo "Converting $ext_lower to JAR with dex2jar..."
237
- mkdir -p "$intermediate_dir"
238
- converted_jar="$intermediate_dir/${BASENAME}-dex2jar.jar"
239
- if "$d2j" -f -o "$converted_jar" "$INPUT_FILE_ABS" 2>&1; then
240
- d2j_status=0
241
- else
242
- d2j_status=$?
243
- fi
244
- if [[ ! -f "$converted_jar" ]]; then
245
- echo "Error: dex2jar conversion failed with status $d2j_status." >&2
246
- return 1
247
- fi
248
- if [[ $d2j_status -ne 0 ]]; then
249
- echo "Warning: dex2jar exited with status $d2j_status but produced $converted_jar; continuing." >&2
250
- fi
251
- jar_to_decompile="$converted_jar"
252
- else
253
- jar_to_decompile="$INPUT_FILE_ABS"
254
- fi
255
-
256
- # Build fernflower args
257
- local ff_args=()
258
- ff_args+=("-dgs=1") # decompile generic signatures
259
- ff_args+=("-mpm=60") # 60s max per method to avoid hangs
260
- if [[ "$DEOBF" == true ]]; then
261
- ff_args+=("-ren=1") # rename obfuscated identifiers
262
- fi
263
- ff_args+=("$jar_to_decompile")
264
- ff_args+=("$out_dir")
265
-
266
- echo "Running: java -jar $ff_jar ${ff_args[*]}"
267
- if command -v timeout &>/dev/null && [[ "$ff_timeout_seconds" =~ ^[0-9]+$ ]] && (( ff_timeout_seconds > 0 )); then
268
- echo "Fernflower timeout: ${ff_timeout_seconds}s (override with FERNFLOWER_TIMEOUT_SECONDS)"
269
- if timeout "${ff_timeout_seconds}s" java -jar "$ff_jar" "${ff_args[@]}"; then
270
- ff_status=0
271
- else
272
- ff_status=$?
273
- fi
274
- elif java -jar "$ff_jar" "${ff_args[@]}"; then
275
- ff_status=0
276
- else
277
- ff_status=$?
278
- fi
279
-
280
- # Fernflower outputs a JAR containing .java files — extract it
281
- local result_jar="$out_dir/$(basename "$jar_to_decompile")"
282
- if [[ -f "$result_jar" ]]; then
283
- local sources_dir="$out_dir/sources"
284
- mkdir -p "$sources_dir"
285
- if unzip -qo "$result_jar" -d "$sources_dir"; then
286
- rm -f "$result_jar"
287
- else
288
- echo "Warning: Fernflower result jar $result_jar could not be extracted; checking for direct folder output." >&2
289
- fi
290
- fi
291
-
292
- local sources_dir="$out_dir/sources"
293
- mkdir -p "$sources_dir"
294
- count=$(find "$sources_dir" -name "*.java" | wc -l)
295
-
296
- # Vineflower may write sources directly into the destination folder tree instead of a result jar.
297
- if [[ $count -eq 0 ]]; then
298
- local direct_count=0
299
- direct_count=$(find "$out_dir" \
300
- -path "$sources_dir" -prune -o \
301
- -path "$intermediate_dir" -prune -o \
302
- -name "*.java" -type f -print | wc -l)
303
- if [[ $direct_count -gt 0 ]]; then
304
- while IFS= read -r -d '' entry; do
305
- mv "$entry" "$sources_dir"/
306
- done < <(find "$out_dir" -mindepth 1 -maxdepth 1 \
307
- ! -name "sources" \
308
- ! -name "intermediate" \
309
- -print0)
310
- count=$(find "$sources_dir" -name "*.java" | wc -l)
311
- fi
312
- fi
313
-
314
- # Clean up intermediate dex2jar output
315
- if [[ $count -gt 0 ]]; then
316
- echo "Fernflower output: $sources_dir/"
317
- echo "Java files decompiled by Fernflower: $count"
318
- if [[ -n "${converted_jar:-}" ]] && [[ -f "${converted_jar:-}" ]]; then
319
- rm -f "$converted_jar"
320
- fi
321
- if [[ -d "$intermediate_dir" ]]; then
322
- rmdir "$intermediate_dir" 2>/dev/null || true
323
- fi
324
- if [[ $ff_status -ne 0 ]]; then
325
- echo "Warning: Fernflower/Vineflower exited with status $ff_status after writing $count Java files; treating this as partial success." >&2
326
- return 2
327
- fi
328
- return 0
329
- fi
330
-
331
- if [[ -n "${converted_jar:-}" ]] && [[ -f "${converted_jar:-}" ]]; then
332
- echo "Error: Fernflower/Vineflower produced no Java output. Intermediate dex2jar artifact kept at $converted_jar" >&2
333
- else
334
- echo "Error: Fernflower/Vineflower produced no Java output." >&2
335
- fi
336
-
337
- if [[ $ff_status -ne 0 ]]; then
338
- if [[ $ff_status -eq 124 ]]; then
339
- echo "Error: Fernflower/Vineflower exceeded timeout (${ff_timeout_seconds}s)." >&2
340
- fi
341
- echo "Error: Fernflower/Vineflower exited with status $ff_status." >&2
342
- fi
343
- return 1
344
- }
345
-
346
- # --- Summary helper ---
347
- print_structure() {
348
- local src_dir="$1"
349
- local label="$2"
350
- if [[ -d "$src_dir" ]]; then
351
- local packages=()
352
- echo
353
- echo "Top-level packages ($label):"
354
- while IFS= read -r pkg; do
355
- [[ -n "$pkg" ]] && packages+=("$pkg")
356
- done < <(find "$src_dir" -mindepth 1 -maxdepth 3 -type d -printf '%P\n' | sort)
357
-
358
- local limit=${#packages[@]}
359
- if (( limit > 20 )); then
360
- limit=20
361
- fi
362
-
363
- if (( limit == 0 )); then
364
- echo "(none)"
365
- return
366
- fi
367
-
368
- local i=0
369
- while (( i < limit )); do
370
- echo "${packages[$i]}"
371
- ((i += 1))
372
- done
373
- fi
374
- }
375
-
376
- # --- Decompile a single file with the selected engine ---
377
- decompile_single() {
378
- local file_abs="$1"
379
- local out_dir="$2"
380
- local label="$3"
381
-
382
- # Temporarily override INPUT_FILE_ABS for run_jadx/run_fernflower
383
- local saved_input="$INPUT_FILE_ABS"
384
- local saved_ext="$ext_lower"
385
- INPUT_FILE_ABS="$file_abs"
386
- ext_lower="${file_abs##*.}"
387
- ext_lower=$(echo "$ext_lower" | tr '[:upper:]' '[:lower:]')
388
-
389
- if [[ -n "$label" ]]; then
390
- echo "=== Decompiling $label (engine: $ENGINE) ==="
391
- fi
392
-
393
- case "$ENGINE" in
394
- jadx)
395
- local jadx_status=0
396
- if run_jadx "$out_dir"; then
397
- jadx_status=0
398
- else
399
- jadx_status=$?
400
- fi
401
- print_structure "$out_dir/sources" "jadx"
402
- if [[ $jadx_status -eq 1 ]]; then
403
- return 1
404
- fi
405
- if [[ $jadx_status -eq 2 ]]; then
406
- echo "jadx completed with warnings but produced usable output."
407
- fi
408
- ;;
409
- fernflower)
410
- local ff_status=0
411
- if run_fernflower "$out_dir"; then
412
- ff_status=0
413
- else
414
- ff_status=$?
415
- fi
416
- print_structure "$out_dir/sources" "fernflower"
417
- if [[ $ff_status -eq 1 ]]; then
418
- return 1
419
- fi
420
- if [[ $ff_status -eq 2 ]]; then
421
- echo "Fernflower completed with warnings but produced usable output."
422
- fi
423
- ;;
424
- both)
425
- local jadx_status=0
426
- local ff_status=0
427
- echo "--- Pass 1: jadx ---"
428
- if run_jadx "$out_dir/jadx"; then
429
- jadx_status=0
430
- else
431
- jadx_status=$?
432
- fi
433
- if [[ $jadx_status -eq 1 ]]; then
434
- return 1
435
- fi
436
- if [[ $jadx_status -eq 2 ]]; then
437
- echo "Continuing to Fernflower because jadx produced usable output despite warnings."
438
- fi
439
- echo
440
- echo "--- Pass 2: Fernflower ---"
441
- if run_fernflower "$out_dir/fernflower"; then
442
- ff_status=0
443
- else
444
- ff_status=$?
445
- fi
446
- if [[ $ff_status -eq 1 ]]; then
447
- return 1
448
- fi
449
- if [[ $ff_status -eq 2 ]]; then
450
- echo "Continuing with Fernflower output because it produced usable sources despite warnings."
451
- fi
452
-
453
- print_structure "$out_dir/jadx/sources" "jadx"
454
- print_structure "$out_dir/fernflower/sources" "fernflower"
455
-
456
- echo
457
- echo "=== Comparison ==="
458
- local jadx_count=0 ff_count=0
459
- if [[ -d "$out_dir/jadx/sources" ]]; then
460
- jadx_count=$(find "$out_dir/jadx/sources" -name "*.java" | wc -l)
461
- fi
462
- if [[ -d "$out_dir/fernflower/sources" ]]; then
463
- ff_count=$(find "$out_dir/fernflower/sources" -name "*.java" | wc -l)
464
- fi
465
- echo "jadx: $jadx_count Java files"
466
- echo "Fernflower: $ff_count Java files"
467
-
468
- if [[ -d "$out_dir/jadx/sources" ]]; then
469
- local jadx_error_files
470
- local jadx_errors
471
- jadx_error_files=$(grep -rl 'JADX WARNING\|JADX WARN\|JADX ERROR\|Code decompiled incorrectly' "$out_dir/jadx/sources" 2>/dev/null || true)
472
- if [[ -n "$jadx_error_files" ]]; then
473
- jadx_errors=$(printf '%s\n' "$jadx_error_files" | wc -l)
474
- else
475
- jadx_errors=0
476
- fi
477
- echo "jadx files with warnings/errors: $jadx_errors"
478
- fi
479
- echo
480
- echo "Tip: compare specific classes between jadx/ and fernflower/ to pick the better output."
481
- ;;
482
- esac
483
-
484
- INPUT_FILE_ABS="$saved_input"
485
- ext_lower="$saved_ext"
486
- }
487
-
488
- # --- Run ---
489
- echo "=== Decompiling $INPUT_FILE (engine: $ENGINE) ==="
490
- echo "Output directory: $OUTPUT_DIR"
491
- echo
492
-
493
- if [[ "$ext_lower" == "xapk" ]]; then
494
- # Decompile each APK found inside the XAPK
495
- mkdir -p "$OUTPUT_DIR"
496
-
497
- # Copy XAPK manifest for reference
498
- if [[ -f "$XAPK_EXTRACTED_DIR/manifest.json" ]]; then
499
- cp "$XAPK_EXTRACTED_DIR/manifest.json" "$OUTPUT_DIR/xapk-manifest.json"
500
- fi
501
-
502
- # Copy OBB file list for reference
503
- obb_files=()
504
- while IFS= read -r -d '' obb; do
505
- obb_files+=("$obb")
506
- done < <(find "$XAPK_EXTRACTED_DIR" -name "*.obb" -print0 2>/dev/null)
507
- if [[ ${#obb_files[@]} -gt 0 ]]; then
508
- echo "OBB files found (not decompiled, data-only):"
509
- for obb in "${obb_files[@]}"; do
510
- echo " - $(basename "$obb") ($(du -h "$obb" | cut -f1))"
511
- done
512
- echo
513
- fi
514
-
515
- for apk_file in "${XAPK_APK_FILES[@]}"; do
516
- apk_name=$(basename "$apk_file" .apk)
517
- echo
518
- echo "======================================================"
519
- decompile_single "$apk_file" "$OUTPUT_DIR/$apk_name" "$apk_name.apk"
520
- done
521
-
522
- # Cleanup extracted XAPK
523
- rm -rf "$XAPK_EXTRACTED_DIR"
524
-
525
- echo
526
- echo "=== XAPK decompilation complete ==="
527
- echo "Subdirectories in $OUTPUT_DIR/:"
528
- ls -1 "$OUTPUT_DIR/"
529
- else
530
- decompile_single "$INPUT_FILE_ABS" "$OUTPUT_DIR" ""
531
-
532
- # --- Split/bundled APK detection ---
533
- # Some APKs are bundles: the outer APK contains base.apk + split_config.*.apk
534
- # inside the resources directory. jadx will decompile the thin outer wrapper
535
- # and produce very few Java files. Detect this and re-decompile base.apk.
536
- sources_dir="$OUTPUT_DIR/sources"
537
- resources_dir="$OUTPUT_DIR/resources"
538
- if [[ -d "$sources_dir" && -d "$resources_dir" ]]; then
539
- java_count=$(find "$sources_dir" -name "*.java" -type f 2>/dev/null | wc -l)
540
- base_apk=$(find "$resources_dir" -maxdepth 1 -name "base.apk" -type f 2>/dev/null | head -1)
541
- inner_apk_count=$(find "$resources_dir" -maxdepth 1 -name "*.apk" -type f 2>/dev/null | wc -l)
542
-
543
- if [[ "$java_count" -le 10 && -n "$base_apk" ]]; then
544
- echo
545
- echo "=== Split/bundled APK detected ==="
546
- echo "Outer APK produced only $java_count Java file(s) but contains $inner_apk_count inner APK(s):"
547
- find "$resources_dir" -maxdepth 1 -name "*.apk" -type f -exec basename {} \; | while read -r f; do echo " - $f"; done
548
- echo
549
- echo "Decompiling base.apk (contains the actual app code)..."
550
- decompile_single "$base_apk" "$OUTPUT_DIR/base" "base.apk"
551
-
552
- # Decompile non-config split APKs
553
- while IFS= read -r -d '' split_apk; do
554
- split_name=$(basename "$split_apk" .apk)
555
- case "$split_name" in
556
- base|split_config.*) continue ;;
557
- esac
558
- echo
559
- echo "Decompiling $split_name.apk..."
560
- decompile_single "$split_apk" "$OUTPUT_DIR/$split_name" "$split_name.apk"
561
- done < <(find "$resources_dir" -maxdepth 1 -name "*.apk" -type f -print0 2>/dev/null)
562
-
563
- # Report skipped config splits
564
- config_splits=$(find "$resources_dir" -maxdepth 1 -name "split_config.*.apk" -type f 2>/dev/null)
565
- if [[ -n "$config_splits" ]]; then
566
- echo
567
- echo "Skipped config splits (resource/ABI only):"
568
- echo "$config_splits" | while read -r f; do echo " - $(basename "$f")"; done
569
- fi
570
-
571
- echo
572
- echo "Main decompiled source is in: $OUTPUT_DIR/base/sources/"
573
- fi
574
- fi
575
-
576
- echo
577
- echo "=== Decompilation complete ==="
578
- fi
@@ -1,121 +0,0 @@
1
- # find-api-calls.ps1 — Search decompiled source for API calls and HTTP endpoints
2
- param(
3
- [Parameter(Position=0)]
4
- [string]$SourceDir,
5
- [switch]$Retrofit,
6
- [switch]$OkHttp,
7
- [switch]$Volley,
8
- [switch]$Urls,
9
- [switch]$Auth,
10
- [switch]$All,
11
- [Alias('h')]
12
- [switch]$Help
13
- )
14
-
15
- $ErrorActionPreference = 'Stop'
16
-
17
- function Show-Usage {
18
- Write-Host @"
19
- Usage: find-api-calls.ps1 <source-dir> [OPTIONS]
20
-
21
- Search decompiled Java/Kotlin source for HTTP API calls and endpoints.
22
-
23
- Arguments:
24
- <source-dir> Path to the decompiled sources directory
25
-
26
- Options:
27
- -Retrofit Search only for Retrofit annotations
28
- -OkHttp Search only for OkHttp patterns
29
- -Volley Search only for Volley patterns
30
- -Urls Search only for hardcoded URLs
31
- -Auth Search only for auth-related patterns
32
- -All Search all patterns (default)
33
- -Help Show this help message
34
-
35
- Output:
36
- Results are printed as file:line:match for easy navigation.
37
- "@
38
- exit 0
39
- }
40
-
41
- if ($Help) { Show-Usage }
42
-
43
- if (-not $SourceDir) {
44
- Write-Host "Error: No source directory specified." -ForegroundColor Red
45
- Show-Usage
46
- }
47
-
48
- if (-not (Test-Path $SourceDir)) {
49
- Write-Host "Error: Directory not found: $SourceDir" -ForegroundColor Red
50
- exit 1
51
- }
52
-
53
- # Default to all if no specific flag set
54
- $searchAll = (-not $Retrofit -and -not $OkHttp -and -not $Volley -and -not $Urls -and -not $Auth) -or $All
55
-
56
- function Write-Section {
57
- param([string]$Title)
58
- Write-Host ""
59
- Write-Host "==== $Title ===="
60
- Write-Host ""
61
- }
62
-
63
- function Search-Sources {
64
- param([string]$Pattern)
65
- Get-ChildItem -Path $SourceDir -Recurse -Include '*.java','*.kt' -File |
66
- Select-String -Pattern $Pattern -ErrorAction SilentlyContinue |
67
- ForEach-Object {
68
- "$($_.Path):$($_.LineNumber):$($_.Line.Trim())"
69
- }
70
- }
71
-
72
- # --- Retrofit ---
73
- if ($searchAll -or $Retrofit) {
74
- Write-Section "Retrofit Annotations"
75
- Search-Sources '@(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|HTTP)\s*\('
76
-
77
- Write-Section "Retrofit Headers & Parameters"
78
- Search-Sources '@(Headers|Header|Query|QueryMap|Path|Body|Field|FieldMap|Part|PartMap|Url)\s*\('
79
-
80
- Write-Section "Retrofit Base URL"
81
- Search-Sources '(baseUrl|base_url)\s*\('
82
- }
83
-
84
- # --- OkHttp ---
85
- if ($searchAll -or $OkHttp) {
86
- Write-Section "OkHttp Request Building"
87
- Search-Sources '(Request\.Builder|HttpUrl|\.newCall|\.enqueue|addInterceptor|addNetworkInterceptor)'
88
-
89
- Write-Section "OkHttp URL Construction"
90
- Search-Sources '(\.url\s*\(|\.addQueryParameter|\.addPathSegment|\.scheme\s*\(|\.host\s*\()'
91
- }
92
-
93
- # --- Volley ---
94
- if ($searchAll -or $Volley) {
95
- Write-Section "Volley Requests"
96
- Search-Sources '(StringRequest|JsonObjectRequest|JsonArrayRequest|ImageRequest|RequestQueue|Volley\.newRequestQueue)'
97
- }
98
-
99
- # --- Hardcoded URLs ---
100
- if ($searchAll -or $Urls) {
101
- Write-Section "Hardcoded URLs (http:// and https://)"
102
- Search-Sources '"https?://[^"]+'
103
-
104
- Write-Section "HttpURLConnection"
105
- Search-Sources '(openConnection|setRequestMethod|HttpURLConnection|HttpsURLConnection)'
106
-
107
- Write-Section "WebView URLs"
108
- Search-Sources '(loadUrl|loadData|evaluateJavascript|addJavascriptInterface|WebViewClient|WebChromeClient)'
109
- }
110
-
111
- # --- Auth patterns ---
112
- if ($searchAll -or $Auth) {
113
- Write-Section "Authentication & API Keys"
114
- Search-Sources '(?i)(api[_\-]?key|auth[_\-]?token|bearer|authorization|x-api-key|client[_\-]?secret|access[_\-]?token)'
115
-
116
- Write-Section "Base URLs and Constants"
117
- Search-Sources '(?i)(BASE_URL|API_URL|SERVER_URL|ENDPOINT|API_BASE|HOST_NAME)'
118
- }
119
-
120
- Write-Host ""
121
- Write-Host "=== Search complete ==="