imhcode 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 (986) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +41 -0
  2. package/.github/ISSUE_TEMPLATE/feature_request.md +39 -0
  3. package/.github/PULL_REQUEST_TEMPLATE.md +29 -0
  4. package/.github/copilot-instructions.md +43 -0
  5. package/.github/workflows/framework-validator.yml +53 -0
  6. package/.gitignore.template +15 -0
  7. package/AGENTS.md +69 -0
  8. package/CLAUDE.md +27 -0
  9. package/README.md +63 -0
  10. package/SETUP.md +81 -0
  11. package/USER_MANUAL.md +70 -0
  12. package/agents/android-executor/SYSTEM.md +32 -0
  13. package/agents/android-executor/agent.yml +53 -0
  14. package/agents/debugger/SYSTEM.md +32 -0
  15. package/agents/debugger/agent.yml +56 -0
  16. package/agents/designer/SYSTEM.md +32 -0
  17. package/agents/designer/agent.yml +59 -0
  18. package/agents/devops-executor/SYSTEM.md +32 -0
  19. package/agents/devops-executor/agent.yml +56 -0
  20. package/agents/flutter-executor/SYSTEM.md +32 -0
  21. package/agents/flutter-executor/agent.yml +54 -0
  22. package/agents/ios-executor/SYSTEM.md +32 -0
  23. package/agents/ios-executor/agent.yml +53 -0
  24. package/agents/java-executor/SYSTEM.md +32 -0
  25. package/agents/java-executor/agent.yml +57 -0
  26. package/agents/laravel-executor/SYSTEM.md +32 -0
  27. package/agents/laravel-executor/agent.yml +59 -0
  28. package/agents/nextjs-executor/SYSTEM.md +32 -0
  29. package/agents/nextjs-executor/agent.yml +60 -0
  30. package/agents/planner/SYSTEM.md +32 -0
  31. package/agents/planner/agent.yml +56 -0
  32. package/agents/python-executor/SYSTEM.md +32 -0
  33. package/agents/python-executor/agent.yml +58 -0
  34. package/agents/react-executor/SYSTEM.md +32 -0
  35. package/agents/react-executor/agent.yml +58 -0
  36. package/agents/react-native-executor/SYSTEM.md +32 -0
  37. package/agents/react-native-executor/agent.yml +53 -0
  38. package/agents/security-auditor/SYSTEM.md +32 -0
  39. package/agents/security-auditor/agent.yml +56 -0
  40. package/agents/seo-optimizer/SYSTEM.md +32 -0
  41. package/agents/seo-optimizer/agent.yml +54 -0
  42. package/agents/systems-executor/SYSTEM.md +32 -0
  43. package/agents/systems-executor/agent.yml +54 -0
  44. package/agents/tester/SYSTEM.md +32 -0
  45. package/agents/tester/agent.yml +58 -0
  46. package/agents/vue-executor/SYSTEM.md +32 -0
  47. package/agents/vue-executor/agent.yml +58 -0
  48. package/agents/web3-executor/SYSTEM.md +32 -0
  49. package/agents/web3-executor/agent.yml +55 -0
  50. package/bin/imhcode.js +1634 -0
  51. package/dist/orchestrator/builder.d.ts +23 -0
  52. package/dist/orchestrator/builder.d.ts.map +1 -0
  53. package/dist/orchestrator/builder.js +231 -0
  54. package/dist/orchestrator/builder.js.map +1 -0
  55. package/dist/orchestrator/executor.d.ts +43 -0
  56. package/dist/orchestrator/executor.d.ts.map +1 -0
  57. package/dist/orchestrator/executor.js +356 -0
  58. package/dist/orchestrator/executor.js.map +1 -0
  59. package/dist/orchestrator/index.d.ts +35 -0
  60. package/dist/orchestrator/index.d.ts.map +1 -0
  61. package/dist/orchestrator/index.js +490 -0
  62. package/dist/orchestrator/index.js.map +1 -0
  63. package/dist/orchestrator/loader.d.ts +33 -0
  64. package/dist/orchestrator/loader.d.ts.map +1 -0
  65. package/dist/orchestrator/loader.js +203 -0
  66. package/dist/orchestrator/loader.js.map +1 -0
  67. package/dist/orchestrator/registry.d.ts +63 -0
  68. package/dist/orchestrator/registry.d.ts.map +1 -0
  69. package/dist/orchestrator/registry.js +181 -0
  70. package/dist/orchestrator/registry.js.map +1 -0
  71. package/dist/orchestrator/schema.d.ts +132 -0
  72. package/dist/orchestrator/schema.d.ts.map +1 -0
  73. package/dist/orchestrator/schema.js +101 -0
  74. package/dist/orchestrator/schema.js.map +1 -0
  75. package/dist/orchestrator/session.d.ts +25 -0
  76. package/dist/orchestrator/session.d.ts.map +1 -0
  77. package/dist/orchestrator/session.js +80 -0
  78. package/dist/orchestrator/session.js.map +1 -0
  79. package/dist/orchestrator/types.d.ts +91 -0
  80. package/dist/orchestrator/types.d.ts.map +1 -0
  81. package/dist/orchestrator/types.js +7 -0
  82. package/dist/orchestrator/types.js.map +1 -0
  83. package/package.json +95 -0
  84. package/skills/AnimatePresence/SKILL.md +3 -0
  85. package/skills/accessibility/SKILL.md +146 -0
  86. package/skills/agent-architecture-audit/SKILL.md +256 -0
  87. package/skills/agent-eval/SKILL.md +145 -0
  88. package/skills/agent-introspection-debugging/SKILL.md +153 -0
  89. package/skills/agentic-engineering/SKILL.md +63 -0
  90. package/skills/ai-regression-testing/SKILL.md +385 -0
  91. package/skills/android-clean-architecture/SKILL.md +339 -0
  92. package/skills/animated-component-libraries/SKILL.md +8 -0
  93. package/skills/animejs/SKILL.md +8 -0
  94. package/skills/api-connector-builder/SKILL.md +120 -0
  95. package/skills/api-design/SKILL.md +523 -0
  96. package/skills/apple/SKILL.md +158 -0
  97. package/skills/apple/metadata.json +16 -0
  98. package/skills/architecture-decision-records/SKILL.md +179 -0
  99. package/skills/article-writing/SKILL.md +79 -0
  100. package/skills/automation-audit-ops/SKILL.md +142 -0
  101. package/skills/awwwards/SKILL.md +162 -0
  102. package/skills/awwwards/metadata.json +16 -0
  103. package/skills/babylonjs-engine/SKILL.md +8 -0
  104. package/skills/backend-patterns/SKILL.md +561 -0
  105. package/skills/baqir-docs/SKILL.md +3 -0
  106. package/skills/barba-js/SKILL.md +8 -0
  107. package/skills/benchmark/SKILL.md +93 -0
  108. package/skills/best-practice/SKILL.md +7 -0
  109. package/skills/best-practice/assets/claude-memory/claude-memory-monorepo.jpg +0 -0
  110. package/skills/best-practice/assets/claude-power-ups/dial-the-model-1.png +0 -0
  111. package/skills/best-practice/assets/claude-power-ups/dial-the-model-2.png +0 -0
  112. package/skills/best-practice/assets/claude-power-ups/dial-the-model-3.png +0 -0
  113. package/skills/best-practice/assets/claude-power-ups/powerup-menu.png +0 -0
  114. package/skills/best-practice/claude-cli-startup-flags.md +231 -0
  115. package/skills/best-practice/claude-commands.md +132 -0
  116. package/skills/best-practice/claude-mcp.md +132 -0
  117. package/skills/best-practice/claude-memory.md +121 -0
  118. package/skills/best-practice/claude-power-ups.md +66 -0
  119. package/skills/best-practice/claude-settings.md +1170 -0
  120. package/skills/best-practice/claude-skills.md +58 -0
  121. package/skills/best-practice/claude-subagents.md +56 -0
  122. package/skills/blender-motion-state-inspection/SKILL.md +164 -0
  123. package/skills/bootstrap-patterns/SKILL.md +316 -0
  124. package/skills/brand-guidelines/LICENSE.txt +202 -0
  125. package/skills/brand-guidelines/SKILL.md +73 -0
  126. package/skills/brand-voice/SKILL.md +97 -0
  127. package/skills/brand-voice/references/voice-profile-schema.md +55 -0
  128. package/skills/browser-qa/SKILL.md +87 -0
  129. package/skills/canary-watch/SKILL.md +107 -0
  130. package/skills/canvas-design/LICENSE.txt +202 -0
  131. package/skills/canvas-design/SKILL.md +8 -0
  132. package/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  133. package/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  134. package/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  135. package/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  136. package/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  137. package/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  138. package/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
  139. package/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  140. package/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  141. package/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  142. package/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  143. package/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  144. package/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  145. package/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  146. package/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  147. package/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
  148. package/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  149. package/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
  150. package/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
  151. package/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  152. package/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
  153. package/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  154. package/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
  155. package/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  156. package/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  157. package/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  158. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  159. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  160. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  161. package/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  162. package/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  163. package/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  164. package/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  165. package/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  166. package/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  167. package/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  168. package/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  169. package/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  170. package/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
  171. package/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  172. package/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  173. package/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  174. package/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
  175. package/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
  176. package/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  177. package/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  178. package/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  179. package/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  180. package/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  181. package/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  182. package/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  183. package/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  184. package/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
  185. package/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  186. package/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
  187. package/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  188. package/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  189. package/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  190. package/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  191. package/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  192. package/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  193. package/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  194. package/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  195. package/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  196. package/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  197. package/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  198. package/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  199. package/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  200. package/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  201. package/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  202. package/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  203. package/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  204. package/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  205. package/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  206. package/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
  207. package/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  208. package/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
  209. package/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  210. package/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
  211. package/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  212. package/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  213. package/skills/caveman/SKILL.md +74 -0
  214. package/skills/changelog-generator/SKILL.md +104 -0
  215. package/skills/cisco-ios-patterns/SKILL.md +163 -0
  216. package/skills/ckm:design-system/SKILL.md +3 -0
  217. package/skills/ckm:slides/SKILL.md +3 -0
  218. package/skills/claude-red/SKILL.md +35 -0
  219. package/skills/click-path-audit/SKILL.md +244 -0
  220. package/skills/clickhouse-io/SKILL.md +439 -0
  221. package/skills/codebase-onboarding/SKILL.md +233 -0
  222. package/skills/coding-standards/SKILL.md +549 -0
  223. package/skills/compose-multiplatform-patterns/SKILL.md +299 -0
  224. package/skills/computational-architecture/SKILL.md +31 -0
  225. package/skills/content-engine/SKILL.md +131 -0
  226. package/skills/content-research-writer/SKILL.md +538 -0
  227. package/skills/continuous-agent-loop/SKILL.md +45 -0
  228. package/skills/cost-aware-llm-pipeline/SKILL.md +183 -0
  229. package/skills/cpp-coding-standards/SKILL.md +723 -0
  230. package/skills/crosspost/SKILL.md +111 -0
  231. package/skills/css-container-queries/SKILL.md +132 -0
  232. package/skills/customer-billing-ops/SKILL.md +140 -0
  233. package/skills/customs-trade-compliance/SKILL.md +263 -0
  234. package/skills/dart-flutter-patterns/SKILL.md +563 -0
  235. package/skills/dashboard-builder/SKILL.md +108 -0
  236. package/skills/data-scraper-agent/SKILL.md +764 -0
  237. package/skills/database-migrations/SKILL.md +429 -0
  238. package/skills/deep-research/SKILL.md +159 -0
  239. package/skills/defi-amm-security/SKILL.md +166 -0
  240. package/skills/deployment-patterns/SKILL.md +427 -0
  241. package/skills/design-auditor/README.md +504 -0
  242. package/skills/design-auditor/README_KR.md +327 -0
  243. package/skills/design-auditor/SKILL.md +8 -0
  244. package/skills/design-auditor/references/animation.md +300 -0
  245. package/skills/design-auditor/references/color.md +241 -0
  246. package/skills/design-auditor/references/corner-radius.md +331 -0
  247. package/skills/design-auditor/references/elevation.md +249 -0
  248. package/skills/design-auditor/references/ethics.md +877 -0
  249. package/skills/design-auditor/references/figma-mcp.md +377 -0
  250. package/skills/design-auditor/references/heuristics.md +730 -0
  251. package/skills/design-auditor/references/i18n.md +254 -0
  252. package/skills/design-auditor/references/iconography.md +201 -0
  253. package/skills/design-auditor/references/microcopy.md +227 -0
  254. package/skills/design-auditor/references/navigation.md +311 -0
  255. package/skills/design-auditor/references/spacing.md +313 -0
  256. package/skills/design-auditor/references/states.md +254 -0
  257. package/skills/design-auditor/references/tokens.md +286 -0
  258. package/skills/design-auditor/references/typography.md +273 -0
  259. package/skills/design-system/SKILL.md +82 -0
  260. package/skills/design-tokens-system/SKILL.md +156 -0
  261. package/skills/development-workflows/SKILL.md +7 -0
  262. package/skills/development-workflows/cross-model-workflow/assets/cross-model-workflow.png +0 -0
  263. package/skills/development-workflows/cross-model-workflow/cross-model-workflow.md +55 -0
  264. package/skills/development-workflows/rpi/.claude/agents/code-reviewer.md +21 -0
  265. package/skills/development-workflows/rpi/.claude/agents/constitutional-validator.md +288 -0
  266. package/skills/development-workflows/rpi/.claude/agents/documentation-analyst-writer.md +64 -0
  267. package/skills/development-workflows/rpi/.claude/agents/product-manager.md +15 -0
  268. package/skills/development-workflows/rpi/.claude/agents/requirement-parser.md +238 -0
  269. package/skills/development-workflows/rpi/.claude/agents/senior-software-engineer.md +15 -0
  270. package/skills/development-workflows/rpi/.claude/agents/technical-cto-advisor.md +201 -0
  271. package/skills/development-workflows/rpi/.claude/agents/ux-designer.md +14 -0
  272. package/skills/development-workflows/rpi/.claude/commands/rpi/implement.md +634 -0
  273. package/skills/development-workflows/rpi/.claude/commands/rpi/plan.md +416 -0
  274. package/skills/development-workflows/rpi/.claude/commands/rpi/research.md +381 -0
  275. package/skills/development-workflows/rpi/rpi-workflow.md +101 -0
  276. package/skills/development-workflows/rpi/rpi-workflow.svg +178 -0
  277. package/skills/django-celery/SKILL.md +457 -0
  278. package/skills/django-patterns/SKILL.md +734 -0
  279. package/skills/django-security/SKILL.md +593 -0
  280. package/skills/django-tdd/SKILL.md +729 -0
  281. package/skills/dmux-workflows/SKILL.md +7 -0
  282. package/skills/docker-patterns/SKILL.md +364 -0
  283. package/skills/documentation-lookup/SKILL.md +90 -0
  284. package/skills/domain-name-brainstormer/SKILL.md +212 -0
  285. package/skills/dribbble/SKILL.md +160 -0
  286. package/skills/dribbble/metadata.json +16 -0
  287. package/skills/e2e-testing/SKILL.md +326 -0
  288. package/skills/empirical-research/SKILL.md +22 -0
  289. package/skills/error-handling/SKILL.md +376 -0
  290. package/skills/eval-harness/SKILL.md +270 -0
  291. package/skills/evm-token-decimals/SKILL.md +130 -0
  292. package/skills/fastapi-patterns/SKILL.md +327 -0
  293. package/skills/finance-billing-ops/SKILL.md +127 -0
  294. package/skills/flox-environments/SKILL.md +496 -0
  295. package/skills/flutter-dart-code-review/SKILL.md +435 -0
  296. package/skills/foundation-models-on-device/SKILL.md +243 -0
  297. package/skills/framer/SKILL.md +159 -0
  298. package/skills/framer/metadata.json +16 -0
  299. package/skills/frontend-design/LICENSE.txt +21 -0
  300. package/skills/frontend-design/README.md +71 -0
  301. package/skills/frontend-design/SKILL.md +115 -0
  302. package/skills/frontend-design-direction/SKILL.md +92 -0
  303. package/skills/frontend-patterns/SKILL.md +7 -0
  304. package/skills/frontend-slides/SKILL.md +184 -0
  305. package/skills/frontend-slides/STYLE_PRESETS.md +330 -0
  306. package/skills/frontend-slides/animation-patterns.md +122 -0
  307. package/skills/frontend-slides/html-template.md +419 -0
  308. package/skills/frontend-slides/scripts/export-pdf.sh +418 -0
  309. package/skills/frontend-slides/scripts/extract-pptx.py +96 -0
  310. package/skills/frontend-slides/viewport-base.css +153 -0
  311. package/skills/gateguard/SKILL.md +125 -0
  312. package/skills/git-workflow/SKILL.md +715 -0
  313. package/skills/github-ops/SKILL.md +144 -0
  314. package/skills/golang-patterns/SKILL.md +674 -0
  315. package/skills/golang-testing/SKILL.md +720 -0
  316. package/skills/graphify/__init__.py +28 -0
  317. package/skills/graphify/__main__.py +2899 -0
  318. package/skills/graphify/analyze.py +608 -0
  319. package/skills/graphify/benchmark.py +152 -0
  320. package/skills/graphify/build.py +366 -0
  321. package/skills/graphify/cache.py +244 -0
  322. package/skills/graphify/callflow_html.py +2014 -0
  323. package/skills/graphify/cluster.py +267 -0
  324. package/skills/graphify/dedup.py +414 -0
  325. package/skills/graphify/detect.py +1018 -0
  326. package/skills/graphify/export.py +1264 -0
  327. package/skills/graphify/extract.py +6646 -0
  328. package/skills/graphify/global_graph.py +155 -0
  329. package/skills/graphify/google_workspace.py +223 -0
  330. package/skills/graphify/hooks.py +304 -0
  331. package/skills/graphify/ingest.py +331 -0
  332. package/skills/graphify/llm.py +1111 -0
  333. package/skills/graphify/manifest.py +4 -0
  334. package/skills/graphify/prs.py +746 -0
  335. package/skills/graphify/report.py +203 -0
  336. package/skills/graphify/security.py +242 -0
  337. package/skills/graphify/serve.py +899 -0
  338. package/skills/graphify/skill-aider.md +1229 -0
  339. package/skills/graphify/skill-claw.md +1229 -0
  340. package/skills/graphify/skill-codex.md +1290 -0
  341. package/skills/graphify/skill-copilot.md +1317 -0
  342. package/skills/graphify/skill-droid.md +1285 -0
  343. package/skills/graphify/skill-kiro.md +1228 -0
  344. package/skills/graphify/skill-opencode.md +1340 -0
  345. package/skills/graphify/skill-pi.md +1228 -0
  346. package/skills/graphify/skill-trae.md +1254 -0
  347. package/skills/graphify/skill-vscode.md +258 -0
  348. package/skills/graphify/skill-windows.md +1434 -0
  349. package/skills/graphify/skill.md +1086 -0
  350. package/skills/graphify/transcribe.py +184 -0
  351. package/skills/graphify/tree_html.py +580 -0
  352. package/skills/graphify/validate.py +72 -0
  353. package/skills/graphify/watch.py +728 -0
  354. package/skills/graphify/wiki.py +259 -0
  355. package/skills/growth-marketing/SKILL.md +26 -0
  356. package/skills/gsap-scrolltrigger/SKILL.md +8 -0
  357. package/skills/healthcare-cdss-patterns/SKILL.md +245 -0
  358. package/skills/healthcare-emr-patterns/SKILL.md +159 -0
  359. package/skills/healthcare-phi-compliance/SKILL.md +145 -0
  360. package/skills/hexagonal-architecture/SKILL.md +276 -0
  361. package/skills/hipaa-compliance/SKILL.md +78 -0
  362. package/skills/homelab-network-setup/SKILL.md +129 -0
  363. package/skills/imhcode/SKILL.md +183 -0
  364. package/skills/imhcode-brainstorm/SKILL.md +37 -0
  365. package/skills/imhcode-codebase-knowledge/SKILL.md +37 -0
  366. package/skills/imhcode-codebase-knowledge/assets/templates/ARCHITECTURE.md +49 -0
  367. package/skills/imhcode-codebase-knowledge/assets/templates/CONCERNS.md +56 -0
  368. package/skills/imhcode-codebase-knowledge/assets/templates/CONVENTIONS.md +52 -0
  369. package/skills/imhcode-codebase-knowledge/assets/templates/INTEGRATIONS.md +48 -0
  370. package/skills/imhcode-codebase-knowledge/assets/templates/STACK.md +56 -0
  371. package/skills/imhcode-codebase-knowledge/assets/templates/STRUCTURE.md +44 -0
  372. package/skills/imhcode-codebase-knowledge/assets/templates/TESTING.md +57 -0
  373. package/skills/imhcode-codebase-knowledge/references/inquiry-checkpoints.md +70 -0
  374. package/skills/imhcode-codebase-knowledge/references/stack-detection.md +131 -0
  375. package/skills/imhcode-codebase-knowledge/scripts/scan.py +712 -0
  376. package/skills/imhcode-dispatch/SKILL.md +31 -0
  377. package/skills/imhcode-saas-architect/SKILL.md +55 -0
  378. package/skills/imhcode-security/SKILL.md +42 -0
  379. package/skills/imhcode-sprint-planner/SKILL.md +42 -0
  380. package/skills/inventory-demand-planning/SKILL.md +247 -0
  381. package/skills/investor-materials/SKILL.md +96 -0
  382. package/skills/investor-outreach/SKILL.md +91 -0
  383. package/skills/ios-icon-gen/SKILL.md +157 -0
  384. package/skills/ios-icon-gen/scripts/generate_icons.swift +258 -0
  385. package/skills/ios-icon-gen/scripts/iconify_gen.sh +235 -0
  386. package/skills/java-coding-standards/SKILL.md +383 -0
  387. package/skills/jpa-patterns/SKILL.md +151 -0
  388. package/skills/kotlin-ktor-patterns/SKILL.md +689 -0
  389. package/skills/kotlin-patterns/SKILL.md +711 -0
  390. package/skills/laravel-patterns/SKILL.md +415 -0
  391. package/skills/laravel-plugin-discovery/SKILL.md +229 -0
  392. package/skills/laravel-security/SKILL.md +285 -0
  393. package/skills/laravel-tdd/SKILL.md +283 -0
  394. package/skills/laravel-verification/SKILL.md +179 -0
  395. package/skills/lightweight-3d-effects/SKILL.md +8 -0
  396. package/skills/linear/SKILL.md +156 -0
  397. package/skills/linear/metadata.json +16 -0
  398. package/skills/liquid-glass-design/SKILL.md +279 -0
  399. package/skills/llm-trading-agent-security/SKILL.md +146 -0
  400. package/skills/locomotive-scroll/SKILL.md +8 -0
  401. package/skills/logistics-exception-management/SKILL.md +222 -0
  402. package/skills/lottie-animations/SKILL.md +8 -0
  403. package/skills/make-interfaces-feel-better/SKILL.md +151 -0
  404. package/skills/mcp-server-patterns/SKILL.md +69 -0
  405. package/skills/meeting-insights-analyzer/SKILL.md +327 -0
  406. package/skills/micro-interactions/SKILL.md +178 -0
  407. package/skills/mle-workflow/SKILL.md +346 -0
  408. package/skills/mobbin/SKILL.md +157 -0
  409. package/skills/mobbin/metadata.json +16 -0
  410. package/skills/mobile-app-design/README.md +302 -0
  411. package/skills/mobile-app-design/SKILL.md +330 -0
  412. package/skills/mobile-app-design/examples/design-system-config.ts +685 -0
  413. package/skills/mobile-app-design/examples/form-validation-example.tsx +501 -0
  414. package/skills/mobile-app-design/examples/optimized-list-example.tsx +384 -0
  415. package/skills/mobile-app-design/examples/profile-screen-example.tsx +450 -0
  416. package/skills/mobile-app-design/references/accessibility-checklist.md +525 -0
  417. package/skills/mobile-app-design/references/android-guidelines.md +582 -0
  418. package/skills/mobile-app-design/references/common-mistakes.md +834 -0
  419. package/skills/mobile-app-design/references/ios-guidelines.md +421 -0
  420. package/skills/mobile-app-design/references/performance-patterns.md +705 -0
  421. package/skills/mobile-app-design/references/platform-differences.md +353 -0
  422. package/skills/mobile-app-design/references/ui-libraries.md +729 -0
  423. package/skills/mobile-app-design/scripts/accessibility-audit.sh +281 -0
  424. package/skills/mobile-app-design/scripts/check-contrast.py +188 -0
  425. package/skills/mobile-app-design/scripts/validate-touch-targets.sh +228 -0
  426. package/skills/mobile-app-ui-design/INDEX.md +131 -0
  427. package/skills/mobile-app-ui-design/README.md +135 -0
  428. package/skills/mobile-app-ui-design/SKILL.md +7 -0
  429. package/skills/mobile-app-ui-design/references/industry-conventions.md +151 -0
  430. package/skills/modern-web-design/SKILL.md +8 -0
  431. package/skills/motion-advanced/SKILL.md +596 -0
  432. package/skills/motion-design/SKILL.md +21 -0
  433. package/skills/motion-foundations/SKILL.md +299 -0
  434. package/skills/motion-framer/SKILL.md +8 -0
  435. package/skills/motion-patterns/SKILL.md +435 -0
  436. package/skills/motion-ui/SKILL.md +575 -0
  437. package/skills/mysql-patterns/SKILL.md +412 -0
  438. package/skills/nestjs-patterns/SKILL.md +230 -0
  439. package/skills/network-config-validation/SKILL.md +210 -0
  440. package/skills/nextjs-turbopack/SKILL.md +44 -0
  441. package/skills/nodejs-keccak256/SKILL.md +102 -0
  442. package/skills/nothing-design/SKILL.md +177 -0
  443. package/skills/nothing-design/references/components.md +153 -0
  444. package/skills/nothing-design/references/platform-mapping.md +64 -0
  445. package/skills/nothing-design/references/tokens.md +142 -0
  446. package/skills/nuxt4-patterns/SKILL.md +100 -0
  447. package/skills/openclaw-persona-forge/SKILL.md +288 -0
  448. package/skills/openclaw-persona-forge/gacha.py +224 -0
  449. package/skills/openclaw-persona-forge/gacha.sh +5 -0
  450. package/skills/openclaw-persona-forge/references/avatar-style.md +124 -0
  451. package/skills/openclaw-persona-forge/references/boundary-rules.md +53 -0
  452. package/skills/openclaw-persona-forge/references/error-handling.md +53 -0
  453. package/skills/openclaw-persona-forge/references/identity-tension.md +48 -0
  454. package/skills/openclaw-persona-forge/references/naming-system.md +39 -0
  455. package/skills/openclaw-persona-forge/references/output-template.md +166 -0
  456. package/skills/orchestration-workflow/SKILL.md +199 -0
  457. package/skills/orchestration-workflow/orchestration-workflow.gif +0 -0
  458. package/skills/orchestration-workflow/orchestration-workflow.md +199 -0
  459. package/skills/orchestration-workflow/orchestration-workflow.svg +78 -0
  460. package/skills/orchestration-workflow/output.md +13 -0
  461. package/skills/orchestration-workflow/weather.svg +6 -0
  462. package/skills/pixijs-2d/SKILL.md +8 -0
  463. package/skills/plan-orchestrate/SKILL.md +262 -0
  464. package/skills/plankton-code-quality/SKILL.md +236 -0
  465. package/skills/postgres-patterns/SKILL.md +147 -0
  466. package/skills/ppt-mckinsey/SKILL.md +27 -0
  467. package/skills/prisma-patterns/SKILL.md +371 -0
  468. package/skills/product-capability/SKILL.md +141 -0
  469. package/skills/product-lens/SKILL.md +92 -0
  470. package/skills/production-audit/SKILL.md +206 -0
  471. package/skills/project-flow-ops/SKILL.md +111 -0
  472. package/skills/prompt-optimizer/SKILL.md +398 -0
  473. package/skills/python-patterns/SKILL.md +750 -0
  474. package/skills/python-testing/SKILL.md +816 -0
  475. package/skills/pytorch-patterns/SKILL.md +396 -0
  476. package/skills/quarkus-patterns/SKILL.md +722 -0
  477. package/skills/radix-ui-primitives/SKILL.md +86 -0
  478. package/skills/react-native-best-practices/SKILL.md +83 -0
  479. package/skills/react-native-brownfield-migration/SKILL.md +115 -0
  480. package/skills/react-spring-physics/SKILL.md +8 -0
  481. package/skills/react-three-fiber/SKILL.md +8 -0
  482. package/skills/recsys-pipeline-architect/SKILL.md +114 -0
  483. package/skills/redis-patterns/SKILL.md +403 -0
  484. package/skills/remotion-video-creation/SKILL.md +43 -0
  485. package/skills/remotion-video-creation/rules/3d.md +86 -0
  486. package/skills/remotion-video-creation/rules/animations.md +29 -0
  487. package/skills/remotion-video-creation/rules/assets/charts-bar-chart.tsx +173 -0
  488. package/skills/remotion-video-creation/rules/assets/text-animations-typewriter.tsx +100 -0
  489. package/skills/remotion-video-creation/rules/assets/text-animations-word-highlight.tsx +108 -0
  490. package/skills/remotion-video-creation/rules/assets.md +78 -0
  491. package/skills/remotion-video-creation/rules/audio.md +172 -0
  492. package/skills/remotion-video-creation/rules/calculate-metadata.md +104 -0
  493. package/skills/remotion-video-creation/rules/can-decode.md +75 -0
  494. package/skills/remotion-video-creation/rules/charts.md +58 -0
  495. package/skills/remotion-video-creation/rules/compositions.md +146 -0
  496. package/skills/remotion-video-creation/rules/display-captions.md +126 -0
  497. package/skills/remotion-video-creation/rules/extract-frames.md +229 -0
  498. package/skills/remotion-video-creation/rules/fonts.md +152 -0
  499. package/skills/remotion-video-creation/rules/get-audio-duration.md +58 -0
  500. package/skills/remotion-video-creation/rules/get-video-dimensions.md +68 -0
  501. package/skills/remotion-video-creation/rules/get-video-duration.md +58 -0
  502. package/skills/remotion-video-creation/rules/gifs.md +138 -0
  503. package/skills/remotion-video-creation/rules/images.md +130 -0
  504. package/skills/remotion-video-creation/rules/import-srt-captions.md +67 -0
  505. package/skills/remotion-video-creation/rules/lottie.md +67 -0
  506. package/skills/remotion-video-creation/rules/measuring-dom-nodes.md +34 -0
  507. package/skills/remotion-video-creation/rules/measuring-text.md +143 -0
  508. package/skills/remotion-video-creation/rules/sequencing.md +106 -0
  509. package/skills/remotion-video-creation/rules/tailwind.md +11 -0
  510. package/skills/remotion-video-creation/rules/text-animations.md +20 -0
  511. package/skills/remotion-video-creation/rules/timing.md +179 -0
  512. package/skills/remotion-video-creation/rules/transcribe-captions.md +19 -0
  513. package/skills/remotion-video-creation/rules/transitions.md +122 -0
  514. package/skills/remotion-video-creation/rules/trimming.md +52 -0
  515. package/skills/remotion-video-creation/rules/videos.md +171 -0
  516. package/skills/repo-scan/SKILL.md +78 -0
  517. package/skills/responsive-email-templates/SKILL.md +110 -0
  518. package/skills/rive-interactive/SKILL.md +8 -0
  519. package/skills/rust-patterns/SKILL.md +499 -0
  520. package/skills/rust-testing/SKILL.md +500 -0
  521. package/skills/scroll-reveal-libraries/SKILL.md +8 -0
  522. package/skills/security-bounty-hunter/SKILL.md +99 -0
  523. package/skills/security-review/SKILL.md +503 -0
  524. package/skills/security-review/cloud-infrastructure-security.md +361 -0
  525. package/skills/security-scan/SKILL.md +165 -0
  526. package/skills/seo/SKILL.md +154 -0
  527. package/skills/seo-growth/SKILL.md +34 -0
  528. package/skills/shadcn-ui-patterns/SKILL.md +123 -0
  529. package/skills/spline-interactive/SKILL.md +8 -0
  530. package/skills/springboot-patterns/SKILL.md +314 -0
  531. package/skills/springboot-security/SKILL.md +272 -0
  532. package/skills/springboot-tdd/SKILL.md +158 -0
  533. package/skills/strategic-compact/SKILL.md +131 -0
  534. package/skills/stripe/SKILL.md +168 -0
  535. package/skills/stripe/metadata.json +16 -0
  536. package/skills/swift-actor-persistence/SKILL.md +143 -0
  537. package/skills/swift-concurrency-6-2/SKILL.md +216 -0
  538. package/skills/swiftui-patterns/SKILL.md +259 -0
  539. package/skills/systematic-debugging/CREATION-LOG.md +119 -0
  540. package/skills/systematic-debugging/SKILL.md +296 -0
  541. package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  542. package/skills/systematic-debugging/condition-based-waiting.md +115 -0
  543. package/skills/systematic-debugging/defense-in-depth.md +122 -0
  544. package/skills/systematic-debugging/find-polluter.sh +63 -0
  545. package/skills/systematic-debugging/root-cause-tracing.md +169 -0
  546. package/skills/systematic-debugging/test-academic.md +14 -0
  547. package/skills/systematic-debugging/test-pressure-1.md +58 -0
  548. package/skills/systematic-debugging/test-pressure-2.md +68 -0
  549. package/skills/systematic-debugging/test-pressure-3.md +69 -0
  550. package/skills/tailwindcss-v4/SKILL.md +107 -0
  551. package/skills/tdd-workflow/SKILL.md +463 -0
  552. package/skills/team-builder/SKILL.md +168 -0
  553. package/skills/test-driven-development/SKILL.md +371 -0
  554. package/skills/test-driven-development/testing-anti-patterns.md +299 -0
  555. package/skills/theme-factory/LICENSE.txt +202 -0
  556. package/skills/theme-factory/SKILL.md +59 -0
  557. package/skills/theme-factory/theme-showcase.pdf +0 -0
  558. package/skills/theme-factory/themes/arctic-frost.md +19 -0
  559. package/skills/theme-factory/themes/botanical-garden.md +19 -0
  560. package/skills/theme-factory/themes/desert-rose.md +19 -0
  561. package/skills/theme-factory/themes/forest-canopy.md +19 -0
  562. package/skills/theme-factory/themes/golden-hour.md +19 -0
  563. package/skills/theme-factory/themes/midnight-galaxy.md +19 -0
  564. package/skills/theme-factory/themes/modern-minimalist.md +19 -0
  565. package/skills/theme-factory/themes/ocean-depths.md +19 -0
  566. package/skills/theme-factory/themes/sunset-boulevard.md +19 -0
  567. package/skills/theme-factory/themes/tech-innovation.md +19 -0
  568. package/skills/threejs-webgl/SKILL.md +8 -0
  569. package/skills/trailofbits-auditing/SKILL.md +30 -0
  570. package/skills/twitter-algorithm-optimizer/SKILL.md +327 -0
  571. package/skills/typeui-cli/SKILL.md +90 -0
  572. package/skills/typeui-main/DESIGN.md +114 -0
  573. package/skills/typeui-main/LICENSE.md +9 -0
  574. package/skills/typeui-main/README.md +84 -0
  575. package/skills/typeui-main/REGISTRY.md +60 -0
  576. package/skills/typeui-main/SKILL.md +114 -0
  577. package/skills/typeui-main/package-lock.json +2123 -0
  578. package/skills/typeui-main/package.json +56 -0
  579. package/skills/typeui-main/skills/typeui-cli/SKILL.md +90 -0
  580. package/skills/typeui-main/src/cli.ts +282 -0
  581. package/skills/typeui-main/src/config.ts +28 -0
  582. package/skills/typeui-main/src/domain/designSystemSchema.ts +77 -0
  583. package/skills/typeui-main/src/generation/existingDesignSystem.ts +228 -0
  584. package/skills/typeui-main/src/generation/randomDesignSystem.ts +348 -0
  585. package/skills/typeui-main/src/generation/runDesignGeneration.ts +31 -0
  586. package/skills/typeui-main/src/generation/runGeneration.ts +36 -0
  587. package/skills/typeui-main/src/generation/runPull.ts +62 -0
  588. package/skills/typeui-main/src/io/updateSkillFile.ts +118 -0
  589. package/skills/typeui-main/src/prompts/designSystem.ts +755 -0
  590. package/skills/typeui-main/src/prompts/registry.ts +72 -0
  591. package/skills/typeui-main/src/registry/registryClient.ts +246 -0
  592. package/skills/typeui-main/src/renderers/claudeRenderer.ts +10 -0
  593. package/skills/typeui-main/src/renderers/codexRenderer.ts +10 -0
  594. package/skills/typeui-main/src/renderers/cursorRenderer.ts +10 -0
  595. package/skills/typeui-main/src/renderers/index.ts +14 -0
  596. package/skills/typeui-main/src/renderers/openCodeRenderer.ts +10 -0
  597. package/skills/typeui-main/src/renderers/shared.ts +252 -0
  598. package/skills/typeui-main/src/skillMetadata.ts +19 -0
  599. package/skills/typeui-main/src/types.ts +204 -0
  600. package/skills/typeui-main/src/ui/banner.ts +20 -0
  601. package/skills/typeui-main/test/existingDesignSystem.test.ts +67 -0
  602. package/skills/typeui-main/test/orchestrator.test.ts +113 -0
  603. package/skills/typeui-main/test/randomDesignSystem.test.ts +20 -0
  604. package/skills/typeui-main/test/registryClient.test.ts +408 -0
  605. package/skills/typeui-main/test/renderers.test.ts +41 -0
  606. package/skills/typeui-main/test/runDesignGeneration.test.ts +52 -0
  607. package/skills/typeui-main/test/runPull.test.ts +92 -0
  608. package/skills/typeui-main/test/skillMetadata.test.ts +11 -0
  609. package/skills/typeui-main/test/updateSkillFile.test.ts +160 -0
  610. package/skills/typeui-main/tsconfig.json +16 -0
  611. package/skills/ui-demo/SKILL.md +465 -0
  612. package/skills/ui-to-vue/SKILL.md +134 -0
  613. package/skills/ui-ux-pro-max/.claude/skills/banner-design/SKILL.md +192 -0
  614. package/skills/ui-ux-pro-max/.claude/skills/banner-design/references/banner-sizes-and-styles.md +118 -0
  615. package/skills/ui-ux-pro-max/.claude/skills/brand/SKILL.md +97 -0
  616. package/skills/ui-ux-pro-max/.claude/skills/brand/references/approval-checklist.md +169 -0
  617. package/skills/ui-ux-pro-max/.claude/skills/brand/references/asset-organization.md +157 -0
  618. package/skills/ui-ux-pro-max/.claude/skills/brand/references/brand-guideline-template.md +140 -0
  619. package/skills/ui-ux-pro-max/.claude/skills/brand/references/color-palette-management.md +186 -0
  620. package/skills/ui-ux-pro-max/.claude/skills/brand/references/consistency-checklist.md +94 -0
  621. package/skills/ui-ux-pro-max/.claude/skills/brand/references/logo-usage-rules.md +185 -0
  622. package/skills/ui-ux-pro-max/.claude/skills/brand/references/messaging-framework.md +85 -0
  623. package/skills/ui-ux-pro-max/.claude/skills/brand/references/typography-specifications.md +214 -0
  624. package/skills/ui-ux-pro-max/.claude/skills/brand/references/update.md +118 -0
  625. package/skills/ui-ux-pro-max/.claude/skills/brand/references/visual-identity.md +96 -0
  626. package/skills/ui-ux-pro-max/.claude/skills/brand/references/voice-framework.md +88 -0
  627. package/skills/ui-ux-pro-max/.claude/skills/brand/scripts/extract-colors.cjs +341 -0
  628. package/skills/ui-ux-pro-max/.claude/skills/brand/scripts/inject-brand-context.cjs +349 -0
  629. package/skills/ui-ux-pro-max/.claude/skills/brand/scripts/sync-brand-to-tokens.cjs +266 -0
  630. package/skills/ui-ux-pro-max/.claude/skills/brand/scripts/validate-asset.cjs +387 -0
  631. package/skills/ui-ux-pro-max/.claude/skills/brand/templates/brand-guidelines-starter.md +275 -0
  632. package/skills/ui-ux-pro-max/.claude/skills/design/SKILL.md +302 -0
  633. package/skills/ui-ux-pro-max/.claude/skills/design/data/cip/deliverables.csv +51 -0
  634. package/skills/ui-ux-pro-max/.claude/skills/design/data/cip/industries.csv +21 -0
  635. package/skills/ui-ux-pro-max/.claude/skills/design/data/cip/mockup-contexts.csv +21 -0
  636. package/skills/ui-ux-pro-max/.claude/skills/design/data/cip/styles.csv +21 -0
  637. package/skills/ui-ux-pro-max/.claude/skills/design/data/icon/styles.csv +16 -0
  638. package/skills/ui-ux-pro-max/.claude/skills/design/data/logo/colors.csv +56 -0
  639. package/skills/ui-ux-pro-max/.claude/skills/design/data/logo/industries.csv +56 -0
  640. package/skills/ui-ux-pro-max/.claude/skills/design/data/logo/styles.csv +56 -0
  641. package/skills/ui-ux-pro-max/.claude/skills/design/references/banner-sizes-and-styles.md +118 -0
  642. package/skills/ui-ux-pro-max/.claude/skills/design/references/cip-deliverable-guide.md +95 -0
  643. package/skills/ui-ux-pro-max/.claude/skills/design/references/cip-design.md +121 -0
  644. package/skills/ui-ux-pro-max/.claude/skills/design/references/cip-prompt-engineering.md +84 -0
  645. package/skills/ui-ux-pro-max/.claude/skills/design/references/cip-style-guide.md +68 -0
  646. package/skills/ui-ux-pro-max/.claude/skills/design/references/design-routing.md +207 -0
  647. package/skills/ui-ux-pro-max/.claude/skills/design/references/icon-design.md +122 -0
  648. package/skills/ui-ux-pro-max/.claude/skills/design/references/logo-color-psychology.md +101 -0
  649. package/skills/ui-ux-pro-max/.claude/skills/design/references/logo-design.md +92 -0
  650. package/skills/ui-ux-pro-max/.claude/skills/design/references/logo-prompt-engineering.md +158 -0
  651. package/skills/ui-ux-pro-max/.claude/skills/design/references/logo-style-guide.md +109 -0
  652. package/skills/ui-ux-pro-max/.claude/skills/design/references/slides-copywriting-formulas.md +84 -0
  653. package/skills/ui-ux-pro-max/.claude/skills/design/references/slides-create.md +4 -0
  654. package/skills/ui-ux-pro-max/.claude/skills/design/references/slides-html-template.md +295 -0
  655. package/skills/ui-ux-pro-max/.claude/skills/design/references/slides-layout-patterns.md +137 -0
  656. package/skills/ui-ux-pro-max/.claude/skills/design/references/slides-strategies.md +94 -0
  657. package/skills/ui-ux-pro-max/.claude/skills/design/references/slides.md +42 -0
  658. package/skills/ui-ux-pro-max/.claude/skills/design/references/social-photos-design.md +329 -0
  659. package/skills/ui-ux-pro-max/.claude/skills/design/scripts/cip/core.py +215 -0
  660. package/skills/ui-ux-pro-max/.claude/skills/design/scripts/cip/generate.py +484 -0
  661. package/skills/ui-ux-pro-max/.claude/skills/design/scripts/cip/render-html.py +424 -0
  662. package/skills/ui-ux-pro-max/.claude/skills/design/scripts/cip/search.py +127 -0
  663. package/skills/ui-ux-pro-max/.claude/skills/design/scripts/icon/generate.py +487 -0
  664. package/skills/ui-ux-pro-max/.claude/skills/design/scripts/logo/core.py +175 -0
  665. package/skills/ui-ux-pro-max/.claude/skills/design/scripts/logo/generate.py +362 -0
  666. package/skills/ui-ux-pro-max/.claude/skills/design/scripts/logo/search.py +114 -0
  667. package/skills/ui-ux-pro-max/.claude/skills/design-system/SKILL.md +244 -0
  668. package/skills/ui-ux-pro-max/.claude/skills/design-system/data/slide-backgrounds.csv +11 -0
  669. package/skills/ui-ux-pro-max/.claude/skills/design-system/data/slide-charts.csv +26 -0
  670. package/skills/ui-ux-pro-max/.claude/skills/design-system/data/slide-color-logic.csv +14 -0
  671. package/skills/ui-ux-pro-max/.claude/skills/design-system/data/slide-copy.csv +26 -0
  672. package/skills/ui-ux-pro-max/.claude/skills/design-system/data/slide-layout-logic.csv +16 -0
  673. package/skills/ui-ux-pro-max/.claude/skills/design-system/data/slide-layouts.csv +26 -0
  674. package/skills/ui-ux-pro-max/.claude/skills/design-system/data/slide-strategies.csv +16 -0
  675. package/skills/ui-ux-pro-max/.claude/skills/design-system/data/slide-typography.csv +15 -0
  676. package/skills/ui-ux-pro-max/.claude/skills/design-system/references/component-specs.md +236 -0
  677. package/skills/ui-ux-pro-max/.claude/skills/design-system/references/component-tokens.md +214 -0
  678. package/skills/ui-ux-pro-max/.claude/skills/design-system/references/primitive-tokens.md +203 -0
  679. package/skills/ui-ux-pro-max/.claude/skills/design-system/references/semantic-tokens.md +215 -0
  680. package/skills/ui-ux-pro-max/.claude/skills/design-system/references/states-and-variants.md +241 -0
  681. package/skills/ui-ux-pro-max/.claude/skills/design-system/references/tailwind-integration.md +251 -0
  682. package/skills/ui-ux-pro-max/.claude/skills/design-system/references/token-architecture.md +224 -0
  683. package/skills/ui-ux-pro-max/.claude/skills/design-system/scripts/embed-tokens.cjs +99 -0
  684. package/skills/ui-ux-pro-max/.claude/skills/design-system/scripts/fetch-background.py +317 -0
  685. package/skills/ui-ux-pro-max/.claude/skills/design-system/scripts/generate-slide.py +753 -0
  686. package/skills/ui-ux-pro-max/.claude/skills/design-system/scripts/generate-tokens.cjs +205 -0
  687. package/skills/ui-ux-pro-max/.claude/skills/design-system/scripts/html-token-validator.py +327 -0
  688. package/skills/ui-ux-pro-max/.claude/skills/design-system/scripts/search-slides.py +218 -0
  689. package/skills/ui-ux-pro-max/.claude/skills/design-system/scripts/slide-token-validator.py +35 -0
  690. package/skills/ui-ux-pro-max/.claude/skills/design-system/scripts/slide_search_core.py +453 -0
  691. package/skills/ui-ux-pro-max/.claude/skills/design-system/scripts/validate-tokens.cjs +251 -0
  692. package/skills/ui-ux-pro-max/.claude/skills/design-system/templates/design-tokens-starter.json +143 -0
  693. package/skills/ui-ux-pro-max/.claude/skills/slides/SKILL.md +42 -0
  694. package/skills/ui-ux-pro-max/.claude/skills/slides/references/copywriting-formulas.md +84 -0
  695. package/skills/ui-ux-pro-max/.claude/skills/slides/references/create.md +4 -0
  696. package/skills/ui-ux-pro-max/.claude/skills/slides/references/html-template.md +295 -0
  697. package/skills/ui-ux-pro-max/.claude/skills/slides/references/layout-patterns.md +137 -0
  698. package/skills/ui-ux-pro-max/.claude/skills/slides/references/slide-strategies.md +94 -0
  699. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/LICENSE.txt +202 -0
  700. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/SKILL.md +324 -0
  701. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  702. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  703. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  704. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
  705. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  706. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
  707. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
  708. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  709. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  710. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  711. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  712. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  713. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  714. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  715. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
  716. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
  717. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
  718. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
  719. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
  720. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
  721. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
  722. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
  723. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
  724. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  725. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  726. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  727. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  728. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  729. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  730. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  731. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  732. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  733. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  734. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  735. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  736. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  737. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  738. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
  739. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
  740. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  741. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  742. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  743. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
  744. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
  745. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
  746. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  747. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  748. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
  749. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  750. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
  751. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
  752. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
  753. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
  754. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
  755. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
  756. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  757. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  758. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
  759. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
  760. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
  761. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  762. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
  763. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
  764. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  765. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  766. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
  767. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  768. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
  769. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  770. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  771. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
  772. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
  773. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
  774. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
  775. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
  776. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  777. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
  778. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
  779. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
  780. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
  781. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  782. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/references/canvas-design-system.md +320 -0
  783. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/references/shadcn-accessibility.md +471 -0
  784. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/references/shadcn-components.md +424 -0
  785. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/references/shadcn-theming.md +373 -0
  786. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/references/tailwind-customization.md +483 -0
  787. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/references/tailwind-responsive.md +382 -0
  788. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/references/tailwind-utilities.md +455 -0
  789. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/scripts/.coverage +0 -0
  790. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/scripts/requirements.txt +17 -0
  791. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/scripts/shadcn_add.py +292 -0
  792. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
  793. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/scripts/tests/coverage-ui.json +1 -0
  794. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/scripts/tests/requirements.txt +3 -0
  795. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/scripts/tests/test_shadcn_add.py +266 -0
  796. package/skills/ui-ux-pro-max/.claude/skills/ui-styling/scripts/tests/test_tailwind_config_gen.py +336 -0
  797. package/skills/ui-ux-pro-max/.claude/skills/ui-ux-pro-max/SKILL.md +659 -0
  798. package/skills/ui-ux-pro-max/.claude-plugin/marketplace.json +35 -0
  799. package/skills/ui-ux-pro-max/.claude-plugin/plugin.json +11 -0
  800. package/skills/ui-ux-pro-max/.github/workflows/claude-code-review.yml +44 -0
  801. package/skills/ui-ux-pro-max/.github/workflows/claude.yml +50 -0
  802. package/skills/ui-ux-pro-max/.github/workflows/python-package-conda.yml +34 -0
  803. package/skills/ui-ux-pro-max/CLAUDE.md +98 -0
  804. package/skills/ui-ux-pro-max/LICENSE +21 -0
  805. package/skills/ui-ux-pro-max/README.md +513 -0
  806. package/skills/ui-ux-pro-max/SKILL.md +292 -0
  807. package/skills/ui-ux-pro-max/cli/README.md +63 -0
  808. package/skills/ui-ux-pro-max/cli/assets/data/_sync_all.py +414 -0
  809. package/skills/ui-ux-pro-max/cli/assets/data/app-interface.csv +31 -0
  810. package/skills/ui-ux-pro-max/cli/assets/data/charts.csv +26 -0
  811. package/skills/ui-ux-pro-max/cli/assets/data/colors.csv +162 -0
  812. package/skills/ui-ux-pro-max/cli/assets/data/design.csv +1776 -0
  813. package/skills/ui-ux-pro-max/cli/assets/data/draft.csv +1779 -0
  814. package/skills/ui-ux-pro-max/cli/assets/data/google-fonts.csv +1924 -0
  815. package/skills/ui-ux-pro-max/cli/assets/data/icons.csv +105 -0
  816. package/skills/ui-ux-pro-max/cli/assets/data/landing.csv +31 -0
  817. package/skills/ui-ux-pro-max/cli/assets/data/products.csv +162 -0
  818. package/skills/ui-ux-pro-max/cli/assets/data/react-performance.csv +45 -0
  819. package/skills/ui-ux-pro-max/cli/assets/data/stacks/angular.csv +51 -0
  820. package/skills/ui-ux-pro-max/cli/assets/data/stacks/astro.csv +54 -0
  821. package/skills/ui-ux-pro-max/cli/assets/data/stacks/flutter.csv +53 -0
  822. package/skills/ui-ux-pro-max/cli/assets/data/stacks/html-tailwind.csv +56 -0
  823. package/skills/ui-ux-pro-max/cli/assets/data/stacks/jetpack-compose.csv +53 -0
  824. package/skills/ui-ux-pro-max/cli/assets/data/stacks/laravel.csv +51 -0
  825. package/skills/ui-ux-pro-max/cli/assets/data/stacks/nextjs.csv +53 -0
  826. package/skills/ui-ux-pro-max/cli/assets/data/stacks/nuxt-ui.csv +51 -0
  827. package/skills/ui-ux-pro-max/cli/assets/data/stacks/nuxtjs.csv +59 -0
  828. package/skills/ui-ux-pro-max/cli/assets/data/stacks/react-native.csv +52 -0
  829. package/skills/ui-ux-pro-max/cli/assets/data/stacks/react.csv +54 -0
  830. package/skills/ui-ux-pro-max/cli/assets/data/stacks/shadcn.csv +61 -0
  831. package/skills/ui-ux-pro-max/cli/assets/data/stacks/svelte.csv +54 -0
  832. package/skills/ui-ux-pro-max/cli/assets/data/stacks/swiftui.csv +51 -0
  833. package/skills/ui-ux-pro-max/cli/assets/data/stacks/threejs.csv +54 -0
  834. package/skills/ui-ux-pro-max/cli/assets/data/stacks/vue.csv +50 -0
  835. package/skills/ui-ux-pro-max/cli/assets/data/styles.csv +85 -0
  836. package/skills/ui-ux-pro-max/cli/assets/data/typography.csv +74 -0
  837. package/skills/ui-ux-pro-max/cli/assets/data/ui-reasoning.csv +162 -0
  838. package/skills/ui-ux-pro-max/cli/assets/data/ux-guidelines.csv +100 -0
  839. package/skills/ui-ux-pro-max/cli/assets/scripts/core.py +247 -0
  840. package/skills/ui-ux-pro-max/cli/assets/scripts/design_system.py +1148 -0
  841. package/skills/ui-ux-pro-max/cli/assets/scripts/search.py +114 -0
  842. package/skills/ui-ux-pro-max/cli/assets/templates/base/quick-reference.md +297 -0
  843. package/skills/ui-ux-pro-max/cli/assets/templates/base/skill-content.md +353 -0
  844. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/agent.json +21 -0
  845. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/augment.json +18 -0
  846. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/claude.json +21 -0
  847. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/codebuddy.json +21 -0
  848. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/codex.json +21 -0
  849. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/continue.json +21 -0
  850. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/copilot.json +21 -0
  851. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/cursor.json +21 -0
  852. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/droid.json +21 -0
  853. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/gemini.json +21 -0
  854. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/kilocode.json +21 -0
  855. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/kiro.json +21 -0
  856. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/opencode.json +21 -0
  857. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/qoder.json +21 -0
  858. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/roocode.json +21 -0
  859. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/trae.json +21 -0
  860. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/warp.json +18 -0
  861. package/skills/ui-ux-pro-max/cli/assets/templates/platforms/windsurf.json +21 -0
  862. package/skills/ui-ux-pro-max/cli/bun.lock +77 -0
  863. package/skills/ui-ux-pro-max/cli/package-lock.json +370 -0
  864. package/skills/ui-ux-pro-max/cli/package.json +48 -0
  865. package/skills/ui-ux-pro-max/cli/src/commands/init.ts +216 -0
  866. package/skills/ui-ux-pro-max/cli/src/commands/uninstall.ts +135 -0
  867. package/skills/ui-ux-pro-max/cli/src/commands/update.ts +36 -0
  868. package/skills/ui-ux-pro-max/cli/src/commands/versions.ts +42 -0
  869. package/skills/ui-ux-pro-max/cli/src/index.ts +83 -0
  870. package/skills/ui-ux-pro-max/cli/src/types/index.ts +68 -0
  871. package/skills/ui-ux-pro-max/cli/src/utils/detect.ts +120 -0
  872. package/skills/ui-ux-pro-max/cli/src/utils/extract.ts +149 -0
  873. package/skills/ui-ux-pro-max/cli/src/utils/github.ts +104 -0
  874. package/skills/ui-ux-pro-max/cli/src/utils/logger.ts +11 -0
  875. package/skills/ui-ux-pro-max/cli/src/utils/template.ts +243 -0
  876. package/skills/ui-ux-pro-max/cli/tsconfig.json +17 -0
  877. package/skills/ui-ux-pro-max/data/charts.csv +26 -0
  878. package/skills/ui-ux-pro-max/data/colors.csv +97 -0
  879. package/skills/ui-ux-pro-max/data/icons.csv +101 -0
  880. package/skills/ui-ux-pro-max/data/landing.csv +31 -0
  881. package/skills/ui-ux-pro-max/data/products.csv +97 -0
  882. package/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  883. package/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  884. package/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  885. package/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  886. package/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  887. package/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  888. package/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  889. package/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  890. package/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  891. package/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
  892. package/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  893. package/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  894. package/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  895. package/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  896. package/skills/ui-ux-pro-max/data/styles.csv +68 -0
  897. package/skills/ui-ux-pro-max/data/typography.csv +58 -0
  898. package/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
  899. package/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  900. package/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
  901. package/skills/ui-ux-pro-max/docs//344/270/211/344/270/252 data-scripts-templates /347/232/204/345/214/272/345/210/253.md" +30 -0
  902. package/skills/ui-ux-pro-max/preview/xiaomaomi-app.html +411 -0
  903. package/skills/ui-ux-pro-max/screenshots/website.png +0 -0
  904. package/skills/ui-ux-pro-max/scripts/core.py +253 -0
  905. package/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
  906. package/skills/ui-ux-pro-max/scripts/search.py +114 -0
  907. package/skills/ui-ux-pro-max/skill.json +41 -0
  908. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/_sync_all.py +414 -0
  909. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/app-interface.csv +31 -0
  910. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/charts.csv +26 -0
  911. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/colors.csv +162 -0
  912. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/design.csv +1776 -0
  913. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/draft.csv +1779 -0
  914. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/google-fonts.csv +1924 -0
  915. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/icons.csv +106 -0
  916. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/landing.csv +35 -0
  917. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/products.csv +162 -0
  918. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/react-performance.csv +45 -0
  919. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  920. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  921. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  922. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  923. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  924. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  925. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  926. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
  927. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  928. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  929. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/react.csv +54 -0
  930. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  931. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  932. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  933. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  934. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  935. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/styles.csv +85 -0
  936. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/typography.csv +74 -0
  937. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
  938. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  939. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/scripts/core.py +262 -0
  940. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/scripts/design_system.py +1148 -0
  941. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/scripts/search.py +114 -0
  942. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/base/quick-reference.md +297 -0
  943. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/base/skill-content.md +358 -0
  944. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/agent.json +21 -0
  945. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/augment.json +18 -0
  946. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/claude.json +21 -0
  947. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/codebuddy.json +21 -0
  948. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/codex.json +21 -0
  949. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/continue.json +21 -0
  950. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/copilot.json +21 -0
  951. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/cursor.json +21 -0
  952. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/droid.json +21 -0
  953. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/gemini.json +21 -0
  954. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/kilocode.json +21 -0
  955. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/kiro.json +21 -0
  956. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/opencode.json +21 -0
  957. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/qoder.json +21 -0
  958. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/roocode.json +21 -0
  959. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/trae.json +21 -0
  960. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/warp.json +18 -0
  961. package/skills/ui-ux-pro-max/src/ui-ux-pro-max/templates/platforms/windsurf.json +21 -0
  962. package/skills/uncloud/SKILL.md +343 -0
  963. package/skills/upgrading-react-native/SKILL.md +58 -0
  964. package/skills/using-git-worktrees/SKILL.md +215 -0
  965. package/skills/vercel/SKILL.md +161 -0
  966. package/skills/vercel/metadata.json +16 -0
  967. package/skills/verification-loop/SKILL.md +126 -0
  968. package/skills/view-transitions-api/SKILL.md +108 -0
  969. package/skills/vite-patterns/SKILL.md +449 -0
  970. package/skills/vue3-composition-patterns/SKILL.md +375 -0
  971. package/skills/waza-habits/SKILL.md +22 -0
  972. package/skills/webapp-testing/LICENSE.txt +202 -0
  973. package/skills/webapp-testing/SKILL.md +96 -0
  974. package/skills/webapp-testing/examples/console_logging.py +35 -0
  975. package/skills/webapp-testing/examples/element_discovery.py +40 -0
  976. package/skills/webapp-testing/examples/static_html_automation.py +33 -0
  977. package/skills/webapp-testing/scripts/with_server.py +106 -0
  978. package/src/orchestrator/builder.ts +234 -0
  979. package/src/orchestrator/executor.ts +386 -0
  980. package/src/orchestrator/index.ts +535 -0
  981. package/src/orchestrator/loader.ts +237 -0
  982. package/src/orchestrator/registry.ts +211 -0
  983. package/src/orchestrator/schema.ts +141 -0
  984. package/src/orchestrator/session.ts +128 -0
  985. package/src/orchestrator/types.ts +109 -0
  986. package/tsconfig.json +21 -0
@@ -0,0 +1,1340 @@
1
+ ---
2
+ name: graphify
3
+ description: "any input (code, docs, papers, images) → knowledge graph → clustered communities → HTML + JSON + audit report. Use when user asks any question about a codebase, project content, architecture, or file relationships — especially if graphify-out/ exists. Provides persistent graph with god nodes, community detection, and BFS/DFS query tools."
4
+ trigger: /graphify
5
+ ---
6
+
7
+ # /graphify
8
+
9
+ Turn any folder of files into a navigable knowledge graph with community detection, an honest audit trail, and three outputs: interactive HTML, GraphRAG-ready JSON, and a plain-language GRAPH_REPORT.md.
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ /graphify # full pipeline on current directory → Obsidian vault
15
+ /graphify <path> # full pipeline on specific path
16
+ /graphify <path> --mode deep # thorough extraction, richer INFERRED edges
17
+ /graphify <path> --update # incremental - re-extract only new/changed files
18
+ /graphify <path> --cluster-only # rerun clustering on existing graph
19
+ /graphify <path> --no-viz # skip visualization, just report + JSON
20
+ /graphify <path> --html # (HTML is generated by default - this flag is a no-op)
21
+ /graphify <path> --svg # also export graph.svg (embeds in Notion, GitHub)
22
+ /graphify <path> --graphml # export graph.graphml (Gephi, yEd)
23
+ /graphify <path> --neo4j # generate graphify-out/cypher.txt for Neo4j
24
+ /graphify <path> --neo4j-push bolt://localhost:7687 # push directly to Neo4j
25
+ /graphify <path> --mcp # start MCP stdio server for agent access
26
+ /graphify <path> --watch # watch folder, auto-rebuild on code changes (no LLM needed)
27
+ /graphify add <url> # fetch URL, save to ./raw, update graph
28
+ /graphify add <url> --author "Name" # tag who wrote it
29
+ /graphify add <url> --contributor "Name" # tag who added it to the corpus
30
+ /graphify query "<question>" # BFS traversal - broad context
31
+ /graphify query "<question>" --dfs # DFS - trace a specific path
32
+ /graphify query "<question>" --budget 1500 # cap answer at N tokens
33
+ /graphify path "AuthModule" "Database" # shortest path between two concepts
34
+ /graphify explain "SwinTransformer" # plain-language explanation of a node
35
+ ```
36
+
37
+ ## What graphify is for
38
+
39
+ graphify is built around Andrej Karpathy's /raw folder workflow: drop anything into a folder - papers, tweets, screenshots, code, notes - and get a structured knowledge graph that shows you what you didn't know was connected.
40
+
41
+ Three things it does that your AI assistant alone cannot:
42
+ 1. **Persistent graph** - relationships are stored in `graphify-out/graph.json` and survive across sessions. Ask questions weeks later without re-reading everything.
43
+ 2. **Honest audit trail** - every edge is tagged EXTRACTED, INFERRED, or AMBIGUOUS. You know what was found vs invented.
44
+ 3. **Cross-document surprise** - community detection finds connections between concepts in different files that you would never think to ask about directly.
45
+
46
+ Use it for:
47
+ - A codebase you're new to (understand architecture before touching anything)
48
+ - A reading list (papers + tweets + notes → one navigable graph)
49
+ - A research corpus (citation graph + concept graph in one)
50
+ - Your personal /raw folder (drop everything in, let it grow, query it)
51
+
52
+ ## What You Must Do When Invoked
53
+
54
+ If the user invoked `/graphify --help` or `/graphify -h` (with no other arguments), print the contents of the `## Usage` section above verbatim and stop. Do not run any commands, do not detect files, do not default the path to `.`. Just print the Usage block and return.
55
+
56
+ If no path was given, use `.` (current directory). Do not ask the user for a path.
57
+
58
+ Follow these steps in order. Do not skip steps.
59
+
60
+ ### Step 1 - Ensure graphify is installed
61
+
62
+ ```bash
63
+ # Detect the correct Python interpreter (handles pipx, venv, system installs)
64
+ GRAPHIFY_BIN=$(which graphify 2>/dev/null)
65
+ if [ -n "$GRAPHIFY_BIN" ]; then
66
+ PYTHON=$(head -1 "$GRAPHIFY_BIN" | tr -d '#!')
67
+ case "$PYTHON" in
68
+ *[!a-zA-Z0-9/_.-]*) PYTHON="python3" ;;
69
+ esac
70
+ else
71
+ PYTHON="python3"
72
+ fi
73
+ "$PYTHON" -c "import graphify" 2>/dev/null || "$PYTHON" -m pip install graphifyy -q 2>/dev/null || "$PYTHON" -m pip install graphifyy -q --break-system-packages 2>&1 | tail -3
74
+ # Write interpreter path for all subsequent steps
75
+ mkdir -p graphify-out
76
+ "$PYTHON" -c "import sys; open('graphify-out/.graphify_python', 'w').write(sys.executable)"
77
+ # Force UTF-8 I/O on Windows (prevents garbled CJK/non-ASCII output)
78
+ export PYTHONUTF8=1
79
+ ```
80
+
81
+ If the import succeeds, print nothing and move straight to Step 2.
82
+
83
+ **In every subsequent bash block, replace `python3` with `$(cat graphify-out/.graphify_python)` to use the correct interpreter.**
84
+
85
+ ### Step 2 - Detect files
86
+
87
+ ```bash
88
+ $(cat graphify-out/.graphify_python) -c "
89
+ import json
90
+ from graphify.detect import detect
91
+ from pathlib import Path
92
+ result = detect(Path('INPUT_PATH'))
93
+ print(json.dumps(result))
94
+ " > graphify-out/.graphify_detect.json
95
+ ```
96
+
97
+ Replace INPUT_PATH with the actual path the user provided. Do NOT cat or print the JSON - read it silently and present a clean summary instead:
98
+
99
+ ```
100
+ Corpus: X files · ~Y words
101
+ code: N files (.py .ts .go ...)
102
+ docs: N files (.md .txt ...)
103
+ papers: N files (.pdf ...)
104
+ images: N files
105
+ video: N files (.mp4 .mp3 ...)
106
+ ```
107
+
108
+ Omit any category with 0 files from the summary.
109
+
110
+ Then act on it:
111
+ - If `total_files` is 0: stop with "No supported files found in [path]."
112
+ - If `skipped_sensitive` is non-empty: mention file count skipped, not the file names.
113
+ - If `total_words` > 2,000,000 OR `total_files` > 200: do not stop for an interactive subfolder choice. Show the warning, reduce semantic chunks to 10-12 files each, and continue with all supported files. Tell the user this smaller-chunk policy was applied.
114
+ - Otherwise: proceed directly to Step 2.5 if video files were detected, or Step 3 if not.
115
+
116
+ ### Step 2.5 - Transcribe video / audio files (only if video files detected)
117
+
118
+ Skip this step entirely if `detect` returned zero `video` files.
119
+
120
+ Video and audio files cannot be read directly. Transcribe them to text first, then treat the transcripts as doc files in Step 3.
121
+
122
+ **Strategy:** Read the god nodes from the detect output or analysis file. You are already a language model - write a one-sentence domain hint yourself from those labels. Then pass it to Whisper as the initial prompt. No separate API call needed.
123
+
124
+ **However**, if the corpus has *only* video files and no other docs/code, use the generic fallback prompt: `"Use proper punctuation and paragraph breaks."`
125
+
126
+ **Step 1 - Write the Whisper prompt yourself.**
127
+
128
+ Read the top god node labels from detect output or analysis, then compose a short domain hint sentence, for example:
129
+
130
+ - Labels: `transformer, attention, encoder, decoder` -> `"Machine learning research on transformer architectures and attention mechanisms. Use proper punctuation and paragraph breaks."`
131
+ - Labels: `kubernetes, deployment, pod, helm` -> `"DevOps discussion about Kubernetes deployments and Helm charts. Use proper punctuation and paragraph breaks."`
132
+
133
+ Set it as `GRAPHIFY_WHISPER_PROMPT` in the environment before running the transcription command.
134
+
135
+ **Step 2 - Transcribe:**
136
+
137
+ ```bash
138
+ $(cat graphify-out/.graphify_python) -c "
139
+ import json, os
140
+ from pathlib import Path
141
+ from graphify.transcribe import transcribe_all
142
+
143
+ detect = json.loads(Path('graphify-out/.graphify_detect.json').read_text())
144
+ video_files = detect.get('files', {}).get('video', [])
145
+ prompt = os.environ.get('GRAPHIFY_WHISPER_PROMPT', 'Use proper punctuation and paragraph breaks.')
146
+
147
+ transcript_paths = transcribe_all(video_files, initial_prompt=prompt)
148
+ print(json.dumps(transcript_paths))
149
+ " > graphify-out/.graphify_transcripts.json
150
+ ```
151
+
152
+ After transcription:
153
+ - Read the transcript paths from `graphify-out/.graphify_transcripts.json`
154
+ - Add them to the docs list before dispatching semantic subagents in Step 3B
155
+ - Print how many transcripts were created: `Transcribed N video file(s) -> treating as docs`
156
+ - If transcription fails for a file, print a warning and continue with the rest
157
+
158
+ **Whisper model:** Default is `base`. If the user passed `--whisper-model <name>`, set `GRAPHIFY_WHISPER_MODEL=<name>` in the environment before running the command above.
159
+
160
+ ### Step 3 - Extract entities and relationships
161
+
162
+ **Before starting:** note whether `--mode deep` was given. You must pass `DEEP_MODE=true` to every subagent in Step B2 if it was. Track this from the original invocation - do not lose it.
163
+
164
+ This step has two parts: **structural extraction** (deterministic, free) and **semantic extraction** (your AI model, costs tokens).
165
+
166
+ **Run Part A (AST) and Part B (semantic) in parallel. Dispatch all semantic subagents AND start AST extraction in the same message. Both can run simultaneously since they operate on different file types. Merge results in Part C as before.**
167
+
168
+ Note: Parallelizing AST + semantic saves 5-15s on large corpora. AST is deterministic and fast; start it while subagents are processing docs/papers.
169
+
170
+ #### Part A - Structural extraction for code files
171
+
172
+ For any code files detected, run AST extraction in parallel with Part B subagents:
173
+
174
+ ```bash
175
+ $(cat graphify-out/.graphify_python) -c "
176
+ import sys, json
177
+ from graphify.extract import collect_files, extract
178
+ from pathlib import Path
179
+ import json
180
+
181
+ code_files = []
182
+ detect = json.loads(Path('graphify-out/.graphify_detect.json').read_text())
183
+ for f in detect.get('files', {}).get('code', []):
184
+ code_files.extend(collect_files(Path(f)) if Path(f).is_dir() else [Path(f)])
185
+
186
+ if code_files:
187
+ result = extract(code_files)
188
+ Path('graphify-out/.graphify_ast.json').write_text(json.dumps(result, indent=2))
189
+ print(f'AST: {len(result[\"nodes\"])} nodes, {len(result[\"edges\"])} edges')
190
+ else:
191
+ Path('graphify-out/.graphify_ast.json').write_text(json.dumps({'nodes':[],'edges':[],'input_tokens':0,'output_tokens':0}))
192
+ print('No code files - skipping AST extraction')
193
+ "
194
+ ```
195
+
196
+ #### Part B - Semantic extraction (parallel subagents)
197
+
198
+ **Fast path:** If detection found zero docs, papers, and images (code-only corpus), skip Part B entirely and go straight to Part C. AST handles code - there is nothing for semantic subagents to do.
199
+
200
+ **MANDATORY: You MUST use the Agent tool here. Reading files yourself one-by-one is forbidden - it is 5-10x slower. If you do not use the Agent tool you are doing this wrong.**
201
+
202
+ Before dispatching subagents, print a timing estimate:
203
+ - Load `total_words` and file counts from `graphify-out/.graphify_detect.json`
204
+ - Estimate agents needed: `ceil(uncached_non_code_files / 22)` by default, or `ceil(uncached_non_code_files / 11)` if the smaller-chunk large-corpus policy was applied
205
+ - Estimate time: ~45s per agent batch (they run in parallel, so total ≈ 45s × ceil(agents/parallel_limit))
206
+ - Print: "Semantic extraction: ~N files → X agents, estimated ~Ys"
207
+
208
+ **Step B0 - Check extraction cache first**
209
+
210
+ Before dispatching any subagents, check which files already have cached extraction results:
211
+
212
+ ```bash
213
+ $(cat graphify-out/.graphify_python) -c "
214
+ import json
215
+ from graphify.cache import check_semantic_cache
216
+ from pathlib import Path
217
+
218
+ detect = json.loads(Path('graphify-out/.graphify_detect.json').read_text())
219
+ all_files = [f for files in detect['files'].values() for f in files]
220
+
221
+ cached_nodes, cached_edges, cached_hyperedges, uncached = check_semantic_cache(all_files)
222
+
223
+ if cached_nodes or cached_edges or cached_hyperedges:
224
+ Path('graphify-out/.graphify_cached.json').write_text(json.dumps({'nodes': cached_nodes, 'edges': cached_edges, 'hyperedges': cached_hyperedges}))
225
+ Path('graphify-out/.graphify_uncached.txt').write_text('\n'.join(uncached))
226
+ print(f'Cache: {len(all_files)-len(uncached)} files hit, {len(uncached)} files need extraction')
227
+ "
228
+ ```
229
+
230
+ Only dispatch subagents for files listed in `graphify-out/.graphify_uncached.txt`. If all files are cached, skip to Part C directly.
231
+
232
+ **Step B1 - Split into chunks**
233
+
234
+ Load files from `graphify-out/.graphify_uncached.txt`. Split into chunks of 20-25 files each by default, or 10-12 files each if the smaller-chunk large-corpus policy was applied. Each image gets its own chunk (vision needs separate context). When splitting, group files from the same directory together so related artifacts land in the same chunk and cross-file relationships are more likely to be extracted.
235
+
236
+ **Step B2 - Dispatch ALL subagents in a single message (OpenCode)**
237
+
238
+ > **OpenCode platform:** Uses `@mention` dispatch instead of the Agent tool. All mentions in a single message run in parallel.
239
+
240
+ Dispatch one `@mention` per chunk — ALL in the same response:
241
+
242
+ ```
243
+ @agent Chunk CHUNK_NUM of TOTAL_CHUNKS: [extraction prompt below with FILE_LIST, CHUNK_NUM, TOTAL_CHUNKS, DEEP_MODE substituted]
244
+
245
+ @agent Chunk 2 of TOTAL_CHUNKS: [next chunk]
246
+ ```
247
+
248
+ Wait for all agents to return. Parse each response as JSON. Accumulate nodes/edges/hyperedges across all results and write to `graphify-out/.graphify_semantic_new.json`.
249
+
250
+ The extraction prompt each agent receives (substitute FILE_LIST, CHUNK_NUM, TOTAL_CHUNKS, DEEP_MODE):
251
+
252
+ ```
253
+ You are a graphify extraction subagent. Read the files listed and extract a knowledge graph fragment.
254
+ Output ONLY valid JSON matching the schema below - no explanation, no markdown fences, no preamble.
255
+
256
+ Files (chunk CHUNK_NUM of TOTAL_CHUNKS):
257
+ FILE_LIST
258
+
259
+ Rules:
260
+ - EXTRACTED: relationship explicit in source (import, call, citation, "see §3.2")
261
+ - INFERRED: reasonable inference (shared data structure, implied dependency)
262
+ - AMBIGUOUS: uncertain - flag for review, do not omit
263
+
264
+ Code files: focus on semantic edges AST cannot find (call relationships, shared data, arch patterns).
265
+ Do not re-extract imports - AST already has those.
266
+ Doc/paper files: extract named concepts, entities, citations. For rationale (WHY decisions were made, trade-offs, design intent): store as a `rationale` attribute on the relevant concept node — do NOT create a separate rationale node or fragment node. Only create a node for something that is itself a named entity or concept. Use `file_type:"rationale"` for concept-like nodes (ideas, principles, mechanisms, design patterns). Do NOT invent file_types like `concept` — valid values are only `code|document|paper|image|rationale`.
267
+ Code files: when adding `calls` edges, source MUST be the caller (the function/class doing the calling), target MUST be the callee. Never reverse this direction.
268
+ Image files: use vision to understand what the image IS - do not just OCR.
269
+ UI screenshot: layout patterns, design decisions, key elements, purpose.
270
+ Chart: metric, trend/insight, data source.
271
+ Tweet/post: claim as node, author, concepts mentioned.
272
+ Diagram: components and connections.
273
+ Research figure: what it demonstrates, method, result.
274
+ Handwritten/whiteboard: ideas and arrows, mark uncertain readings AMBIGUOUS.
275
+
276
+ DEEP_MODE (if --mode deep was given): be aggressive with INFERRED edges - indirect deps,
277
+ shared assumptions, latent couplings. Mark uncertain ones AMBIGUOUS instead of omitting.
278
+
279
+ Semantic similarity: if two concepts in this chunk solve the same problem or represent the same idea without any structural link (no import, no call, no citation), add a `semantically_similar_to` edge marked INFERRED with a confidence_score reflecting how similar they are (0.6-0.95). Examples:
280
+ - Two functions that both validate user input but never call each other
281
+ - A class in code and a concept in a paper that describe the same algorithm
282
+ - Two error types that handle the same failure mode differently
283
+ Only add these when the similarity is genuinely non-obvious and cross-cutting. Do not add them for trivially similar things.
284
+
285
+ Hyperedges: if 3 or more nodes clearly participate together in a shared concept, flow, or pattern that is not captured by pairwise edges alone, add a hyperedge to a top-level `hyperedges` array. Examples:
286
+ - All classes that implement a common protocol or interface
287
+ - All functions in an authentication flow (even if they don't all call each other)
288
+ - All concepts from a paper section that form one coherent idea
289
+ Use sparingly — only when the group relationship adds information beyond the pairwise edges. Maximum 3 hyperedges per chunk.
290
+
291
+ If a file has YAML frontmatter (--- ... ---), copy source_url, captured_at, author,
292
+ contributor onto every node from that file.
293
+
294
+ confidence_score is REQUIRED on every edge - never omit it, never use 0.5 as a default:
295
+ - EXTRACTED edges: confidence_score = 1.0 always
296
+ - INFERRED edges: reason about each edge individually.
297
+ Direct structural evidence (shared data structure, clear dependency): 0.8-0.9.
298
+ Reasonable inference with some uncertainty: 0.6-0.7.
299
+ Weak or speculative: 0.4-0.5. Most edges should be 0.6-0.9, not 0.5.
300
+ - AMBIGUOUS edges: 0.1-0.3
301
+
302
+ Output exactly this JSON (no other text):
303
+ {"nodes":[{"id":"filestem_entityname","label":"Human Readable Name","file_type":"code|document|paper|image|rationale","source_file":"relative/path","source_location":null,"source_url":null,"captured_at":null,"author":null,"contributor":null}],"edges":[{"source":"node_id","target":"node_id","relation":"calls|implements|references|cites|conceptually_related_to|shares_data_with|semantically_similar_to|rationale_for","confidence":"EXTRACTED|INFERRED|AMBIGUOUS","confidence_score":1.0,"source_file":"relative/path","source_location":null,"weight":1.0}],"hyperedges":[{"id":"snake_case_id","label":"Human Readable Label","nodes":["node_id1","node_id2","node_id3"],"relation":"participate_in|implement|form","confidence":"EXTRACTED|INFERRED","confidence_score":0.75,"source_file":"relative/path"}],"input_tokens":0,"output_tokens":0}
304
+ ```
305
+
306
+ **Step B3 - Collect, cache, and merge**
307
+
308
+ Wait for all subagents. For each result:
309
+ - Check that `graphify-out/.graphify_chunk_NN.json` exists on disk — this is the success signal
310
+ - If the file exists and contains valid JSON with `nodes` and `edges`, include it and save to cache
311
+ - If the file is missing, the OpenCode @agent dispatch did not produce a writable chunk output — print a warning: "chunk N missing from disk — OpenCode @agent dispatch did not produce a writable chunk output. Retry @agent dispatch, reduce chunk size, or use the serial fallback." Do not silently skip.
312
+ - If a subagent failed or returned invalid JSON, print a warning and skip that chunk - do not abort
313
+
314
+ If more than half the chunks failed or are missing, stop and tell the user to retry OpenCode @agent dispatch with smaller chunks or use the serial fallback, which writes `graphify-out/.graphify_chunk_NN.json` before merge.
315
+
316
+ Serial fallback: process chunks one at a time in the main OpenCode session. For each chunk, read only that chunk's files, produce the same JSON schema, write it to `graphify-out/.graphify_chunk_NN.json`, then continue with the normal merge step below.
317
+
318
+ Merge all chunk files into `.graphify_semantic_new.json`. **After each Agent call completes, read the real token counts from the Agent tool result's `usage` field and write them back into the chunk JSON before merging** — the chunk JSON itself always has placeholder zeros. Then run:
319
+ ```bash
320
+ $(cat graphify-out/.graphify_python) -c "
321
+ import json, glob
322
+ from pathlib import Path
323
+
324
+ chunks = sorted(glob.glob('graphify-out/.graphify_chunk_*.json'))
325
+ all_nodes, all_edges, all_hyperedges = [], [], []
326
+ total_in, total_out = 0, 0
327
+ for c in chunks:
328
+ d = json.loads(Path(c).read_text())
329
+ all_nodes += d.get('nodes', [])
330
+ all_edges += d.get('edges', [])
331
+ all_hyperedges += d.get('hyperedges', [])
332
+ total_in += d.get('input_tokens', 0)
333
+ total_out += d.get('output_tokens', 0)
334
+ Path('graphify-out/.graphify_semantic_new.json').write_text(json.dumps({
335
+ 'nodes': all_nodes, 'edges': all_edges, 'hyperedges': all_hyperedges,
336
+ 'input_tokens': total_in, 'output_tokens': total_out,
337
+ }, indent=2))
338
+ print(f'Merged {len(chunks)} chunks: {total_in:,} in / {total_out:,} out tokens')
339
+ "
340
+ ```
341
+
342
+ Save new results to cache:
343
+ ```bash
344
+ $(cat graphify-out/.graphify_python) -c "
345
+ import json
346
+ from graphify.cache import save_semantic_cache
347
+ from pathlib import Path
348
+
349
+ new = json.loads(Path('graphify-out/.graphify_semantic_new.json').read_text()) if Path('graphify-out/.graphify_semantic_new.json').exists() else {'nodes':[],'edges':[],'hyperedges':[]}
350
+ saved = save_semantic_cache(new.get('nodes', []), new.get('edges', []), new.get('hyperedges', []))
351
+ print(f'Cached {saved} files')
352
+ "
353
+ ```
354
+
355
+ Merge cached + new results into `graphify-out/.graphify_semantic.json`:
356
+ ```bash
357
+ $(cat graphify-out/.graphify_python) -c "
358
+ import json
359
+ from pathlib import Path
360
+
361
+ cached = json.loads(Path('graphify-out/.graphify_cached.json').read_text()) if Path('graphify-out/.graphify_cached.json').exists() else {'nodes':[],'edges':[],'hyperedges':[]}
362
+ new = json.loads(Path('graphify-out/.graphify_semantic_new.json').read_text()) if Path('graphify-out/.graphify_semantic_new.json').exists() else {'nodes':[],'edges':[],'hyperedges':[]}
363
+
364
+ all_nodes = cached['nodes'] + new.get('nodes', [])
365
+ all_edges = cached['edges'] + new.get('edges', [])
366
+ all_hyperedges = cached.get('hyperedges', []) + new.get('hyperedges', [])
367
+ seen = set()
368
+ deduped = []
369
+ for n in all_nodes:
370
+ if n['id'] not in seen:
371
+ seen.add(n['id'])
372
+ deduped.append(n)
373
+
374
+ merged = {
375
+ 'nodes': deduped,
376
+ 'edges': all_edges,
377
+ 'hyperedges': all_hyperedges,
378
+ 'input_tokens': new.get('input_tokens', 0),
379
+ 'output_tokens': new.get('output_tokens', 0),
380
+ }
381
+ Path('graphify-out/.graphify_semantic.json').write_text(json.dumps(merged, indent=2))
382
+ print(f'Extraction complete - {len(deduped)} nodes, {len(all_edges)} edges ({len(cached[\"nodes\"])} from cache, {len(new.get(\"nodes\",[]))} new)')
383
+ "
384
+ ```
385
+ Clean up temp files: `rm -f graphify-out/.graphify_cached.json graphify-out/.graphify_uncached.txt graphify-out/.graphify_semantic_new.json`
386
+
387
+ #### Part C - Merge AST + semantic into final extraction
388
+
389
+ ```bash
390
+ $(cat graphify-out/.graphify_python) -c "
391
+ import sys, json
392
+ from pathlib import Path
393
+
394
+ ast = json.loads(Path('graphify-out/.graphify_ast.json').read_text())
395
+ sem = json.loads(Path('graphify-out/.graphify_semantic.json').read_text())
396
+
397
+ # Merge: AST nodes first, semantic nodes deduplicated by id
398
+ seen = {n['id'] for n in ast['nodes']}
399
+ merged_nodes = list(ast['nodes'])
400
+ for n in sem['nodes']:
401
+ if n['id'] not in seen:
402
+ merged_nodes.append(n)
403
+ seen.add(n['id'])
404
+
405
+ merged_edges = ast['edges'] + sem['edges']
406
+ merged_hyperedges = sem.get('hyperedges', [])
407
+ merged = {
408
+ 'nodes': merged_nodes,
409
+ 'edges': merged_edges,
410
+ 'hyperedges': merged_hyperedges,
411
+ 'input_tokens': sem.get('input_tokens', 0),
412
+ 'output_tokens': sem.get('output_tokens', 0),
413
+ }
414
+ Path('graphify-out/.graphify_extract.json').write_text(json.dumps(merged, indent=2))
415
+ total = len(merged_nodes)
416
+ edges = len(merged_edges)
417
+ print(f'Merged: {total} nodes, {edges} edges ({len(ast[\"nodes\"])} AST + {len(sem[\"nodes\"])} semantic)')
418
+ "
419
+ ```
420
+
421
+ ### Step 4 - Build graph, cluster, analyze, generate outputs
422
+
423
+ ```bash
424
+ mkdir -p graphify-out
425
+ $(cat graphify-out/.graphify_python) -c "
426
+ import sys, json
427
+ from graphify.build import build_from_json
428
+ from graphify.cluster import cluster, score_all
429
+ from graphify.analyze import god_nodes, surprising_connections, suggest_questions
430
+ from graphify.report import generate
431
+ from graphify.export import to_json
432
+ from pathlib import Path
433
+
434
+ extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
435
+ detection = json.loads(Path('graphify-out/.graphify_detect.json').read_text())
436
+
437
+ G = build_from_json(extraction)
438
+ communities = cluster(G)
439
+ cohesion = score_all(G, communities)
440
+ tokens = {'input': extraction.get('input_tokens', 0), 'output': extraction.get('output_tokens', 0)}
441
+ gods = god_nodes(G)
442
+ surprises = surprising_connections(G, communities)
443
+ labels = {cid: 'Community ' + str(cid) for cid in communities}
444
+ # Placeholder questions - regenerated with real labels in Step 5
445
+ questions = suggest_questions(G, communities, labels)
446
+
447
+ report = generate(G, communities, cohesion, labels, gods, surprises, detection, tokens, 'INPUT_PATH', suggested_questions=questions)
448
+ Path('graphify-out/GRAPH_REPORT.md').write_text(report)
449
+ to_json(G, communities, 'graphify-out/graph.json')
450
+
451
+ analysis = {
452
+ 'communities': {str(k): v for k, v in communities.items()},
453
+ 'cohesion': {str(k): v for k, v in cohesion.items()},
454
+ 'gods': gods,
455
+ 'surprises': surprises,
456
+ 'questions': questions,
457
+ }
458
+ Path('graphify-out/.graphify_analysis.json').write_text(json.dumps(analysis, indent=2))
459
+ if G.number_of_nodes() == 0:
460
+ print('ERROR: Graph is empty - extraction produced no nodes.')
461
+ print('Possible causes: all files were skipped, binary-only corpus, or extraction failed.')
462
+ raise SystemExit(1)
463
+ print(f'Graph: {G.number_of_nodes()} nodes, {G.number_of_edges()} edges, {len(communities)} communities')
464
+ "
465
+ ```
466
+
467
+ If this step prints `ERROR: Graph is empty`, stop and tell the user what happened - do not proceed to labeling or visualization.
468
+
469
+ Replace INPUT_PATH with the actual path.
470
+
471
+ ### Step 5 - Label communities
472
+
473
+ Read `graphify-out/.graphify_analysis.json`. For each community key, look at its node labels and write a 2-5 word plain-language name (e.g. "Attention Mechanism", "Training Pipeline", "Data Loading").
474
+
475
+ Then regenerate the report and save the labels for the visualizer:
476
+
477
+ ```bash
478
+ $(cat graphify-out/.graphify_python) -c "
479
+ import sys, json
480
+ from graphify.build import build_from_json
481
+ from graphify.cluster import score_all
482
+ from graphify.analyze import god_nodes, surprising_connections, suggest_questions
483
+ from graphify.report import generate
484
+ from pathlib import Path
485
+
486
+ extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
487
+ detection = json.loads(Path('graphify-out/.graphify_detect.json').read_text())
488
+ analysis = json.loads(Path('graphify-out/.graphify_analysis.json').read_text())
489
+
490
+ G = build_from_json(extraction)
491
+ communities = {int(k): v for k, v in analysis['communities'].items()}
492
+ cohesion = {int(k): v for k, v in analysis['cohesion'].items()}
493
+ tokens = {'input': extraction.get('input_tokens', 0), 'output': extraction.get('output_tokens', 0)}
494
+
495
+ # LABELS - replace these with the names you chose above
496
+ labels = LABELS_DICT
497
+
498
+ # Regenerate questions with real community labels (labels affect question phrasing)
499
+ questions = suggest_questions(G, communities, labels)
500
+
501
+ report = generate(G, communities, cohesion, labels, analysis['gods'], analysis['surprises'], detection, tokens, 'INPUT_PATH', suggested_questions=questions)
502
+ Path('graphify-out/GRAPH_REPORT.md').write_text(report)
503
+ Path('graphify-out/.graphify_labels.json').write_text(json.dumps({str(k): v for k, v in labels.items()}))
504
+ print('Report updated with community labels')
505
+ "
506
+ ```
507
+
508
+ Replace `LABELS_DICT` with the actual dict you constructed (e.g. `{0: "Attention Mechanism", 1: "Training Pipeline"}`).
509
+ Replace INPUT_PATH with the actual path.
510
+
511
+ ### Step 6 - Generate Obsidian vault (opt-in) + HTML
512
+
513
+ **Generate HTML always** (unless `--no-viz`). **Obsidian vault only if `--obsidian` was explicitly given** — skip it otherwise, it generates one file per node.
514
+
515
+ If `--obsidian` was given:
516
+
517
+ ```bash
518
+ $(cat graphify-out/.graphify_python) -c "
519
+ import sys, json
520
+ from graphify.build import build_from_json
521
+ from graphify.export import to_obsidian, to_canvas
522
+ from pathlib import Path
523
+
524
+ extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
525
+ analysis = json.loads(Path('graphify-out/.graphify_analysis.json').read_text())
526
+ labels_raw = json.loads(Path('graphify-out/.graphify_labels.json').read_text()) if Path('graphify-out/.graphify_labels.json').exists() else {}
527
+
528
+ G = build_from_json(extraction)
529
+ communities = {int(k): v for k, v in analysis['communities'].items()}
530
+ cohesion = {int(k): v for k, v in analysis['cohesion'].items()}
531
+ labels = {int(k): v for k, v in labels_raw.items()}
532
+
533
+ n = to_obsidian(G, communities, 'graphify-out/obsidian', community_labels=labels or None, cohesion=cohesion)
534
+ print(f'Obsidian vault: {n} notes in graphify-out/obsidian/')
535
+
536
+ to_canvas(G, communities, 'graphify-out/obsidian/graph.canvas', community_labels=labels or None)
537
+ print('Canvas: graphify-out/obsidian/graph.canvas - open in Obsidian for structured community layout')
538
+ print()
539
+ print('Open graphify-out/obsidian/ as a vault in Obsidian.')
540
+ print(' Graph view - nodes colored by community (set automatically)')
541
+ print(' graph.canvas - structured layout with communities as groups')
542
+ print(' _COMMUNITY_* - overview notes with cohesion scores and dataview queries')
543
+ "
544
+ ```
545
+
546
+ Generate the HTML graph (always, unless `--no-viz`):
547
+
548
+ ```bash
549
+ $(cat graphify-out/.graphify_python) -c "
550
+ import sys, json
551
+ from graphify.build import build_from_json
552
+ from graphify.export import to_html
553
+ from pathlib import Path
554
+
555
+ extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
556
+ analysis = json.loads(Path('graphify-out/.graphify_analysis.json').read_text())
557
+ labels_raw = json.loads(Path('graphify-out/.graphify_labels.json').read_text()) if Path('graphify-out/.graphify_labels.json').exists() else {}
558
+
559
+ G = build_from_json(extraction)
560
+ communities = {int(k): v for k, v in analysis['communities'].items()}
561
+ labels = {int(k): v for k, v in labels_raw.items()}
562
+
563
+ NODE_LIMIT = 5000
564
+ if G.number_of_nodes() > NODE_LIMIT:
565
+ from collections import Counter
566
+ print(f'Graph has {G.number_of_nodes()} nodes (above {NODE_LIMIT} limit). Building aggregated community view...')
567
+ node_to_community = {nid: cid for cid, members in communities.items() for nid in members}
568
+ import networkx as nx_meta
569
+ meta = nx_meta.Graph()
570
+ for cid, members in communities.items():
571
+ meta.add_node(str(cid), label=labels.get(cid, f'Community {cid}'))
572
+ edge_counts = Counter()
573
+ for u, v in G.edges():
574
+ cu, cv = node_to_community.get(u), node_to_community.get(v)
575
+ if cu is not None and cv is not None and cu != cv:
576
+ edge_counts[(min(cu, cv), max(cu, cv))] += 1
577
+ for (cu, cv), w in edge_counts.items():
578
+ meta.add_edge(str(cu), str(cv), weight=w, relation=f'{w} cross-community edges', confidence='AGGREGATED')
579
+ if meta.number_of_nodes() > 1:
580
+ meta_communities = {cid: [str(cid)] for cid in communities}
581
+ member_counts = {cid: len(members) for cid, members in communities.items()}
582
+ to_html(meta, meta_communities, 'graphify-out/graph.html', community_labels=labels or None, member_counts=member_counts)
583
+ print(f'graph.html written (aggregated: {meta.number_of_nodes()} community nodes, {meta.number_of_edges()} cross-community edges)')
584
+ print('Tip: run with --obsidian for full node-level detail.')
585
+ else:
586
+ print('Single community — aggregated view not useful. Skipping graph.html.')
587
+ else:
588
+ to_html(G, communities, 'graphify-out/graph.html', community_labels=labels or None)
589
+ print('graph.html written - open in any browser, no server needed')
590
+ "
591
+ ```
592
+
593
+ ### Step 6b - Wiki (only if --wiki flag)
594
+
595
+ **Only run this step if `--wiki` was explicitly given in the original command.**
596
+
597
+ Run this before Step 9 (cleanup) so `graphify-out/.graphify_labels.json` is still available.
598
+
599
+ ```bash
600
+ $(cat graphify-out/.graphify_python) -c "
601
+ import json
602
+ from graphify.build import build_from_json
603
+ from graphify.wiki import to_wiki
604
+ from graphify.analyze import god_nodes
605
+ from pathlib import Path
606
+
607
+ extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
608
+ analysis = json.loads(Path('graphify-out/.graphify_analysis.json').read_text())
609
+ labels_raw = json.loads(Path('graphify-out/.graphify_labels.json').read_text()) if Path('graphify-out/.graphify_labels.json').exists() else {}
610
+
611
+ G = build_from_json(extraction)
612
+ communities = {int(k): v for k, v in analysis['communities'].items()}
613
+ cohesion = {int(k): v for k, v in analysis['cohesion'].items()}
614
+ labels = {int(k): v for k, v in labels_raw.items()}
615
+ gods = god_nodes(G)
616
+
617
+ n = to_wiki(G, communities, 'graphify-out/wiki', community_labels=labels or None, cohesion=cohesion, god_nodes_data=gods)
618
+ print(f'Wiki: {n} articles written to graphify-out/wiki/')
619
+ print(' graphify-out/wiki/index.md -> agent entry point')
620
+ "
621
+ ```
622
+
623
+ ### Step 7 - Neo4j export (only if --neo4j or --neo4j-push flag)
624
+
625
+ **If `--neo4j`** - generate a Cypher file for manual import:
626
+
627
+ ```bash
628
+ $(cat graphify-out/.graphify_python) -c "
629
+ import sys, json
630
+ from graphify.build import build_from_json
631
+ from graphify.export import to_cypher
632
+ from pathlib import Path
633
+
634
+ G = build_from_json(json.loads(Path('graphify-out/.graphify_extract.json').read_text()))
635
+ to_cypher(G, 'graphify-out/cypher.txt')
636
+ print('cypher.txt written - import with: cypher-shell < graphify-out/cypher.txt')
637
+ "
638
+ ```
639
+
640
+ **If `--neo4j-push <uri>`** - push directly to a running Neo4j instance. Ask the user for credentials if not provided:
641
+
642
+ ```bash
643
+ $(cat graphify-out/.graphify_python) -c "
644
+ import sys, json
645
+ from graphify.build import build_from_json
646
+ from graphify.cluster import cluster
647
+ from graphify.export import push_to_neo4j
648
+ from pathlib import Path
649
+
650
+ extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
651
+ analysis = json.loads(Path('graphify-out/.graphify_analysis.json').read_text())
652
+ G = build_from_json(extraction)
653
+ communities = {int(k): v for k, v in analysis['communities'].items()}
654
+
655
+ result = push_to_neo4j(G, uri='NEO4J_URI', user='NEO4J_USER', password='NEO4J_PASSWORD', communities=communities)
656
+ print(f'Pushed to Neo4j: {result[\"nodes\"]} nodes, {result[\"edges\"]} edges')
657
+ "
658
+ ```
659
+
660
+ Replace `NEO4J_URI`, `NEO4J_USER`, `NEO4J_PASSWORD` with actual values. Default URI is `bolt://localhost:7687`, default user is `neo4j`. Uses MERGE - safe to re-run without creating duplicates.
661
+
662
+ ### Step 7b - SVG export (only if --svg flag)
663
+
664
+ ```bash
665
+ $(cat graphify-out/.graphify_python) -c "
666
+ import sys, json
667
+ from graphify.build import build_from_json
668
+ from graphify.export import to_svg
669
+ from pathlib import Path
670
+
671
+ extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
672
+ analysis = json.loads(Path('graphify-out/.graphify_analysis.json').read_text())
673
+ labels_raw = json.loads(Path('graphify-out/.graphify_labels.json').read_text()) if Path('graphify-out/.graphify_labels.json').exists() else {}
674
+
675
+ G = build_from_json(extraction)
676
+ communities = {int(k): v for k, v in analysis['communities'].items()}
677
+ labels = {int(k): v for k, v in labels_raw.items()}
678
+
679
+ to_svg(G, communities, 'graphify-out/graph.svg', community_labels=labels or None)
680
+ print('graph.svg written - embeds in Obsidian, Notion, GitHub READMEs')
681
+ "
682
+ ```
683
+
684
+ ### Step 7c - GraphML export (only if --graphml flag)
685
+
686
+ ```bash
687
+ $(cat graphify-out/.graphify_python) -c "
688
+ import json
689
+ from graphify.build import build_from_json
690
+ from graphify.export import to_graphml
691
+ from pathlib import Path
692
+
693
+ extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
694
+ analysis = json.loads(Path('graphify-out/.graphify_analysis.json').read_text())
695
+
696
+ G = build_from_json(extraction)
697
+ communities = {int(k): v for k, v in analysis['communities'].items()}
698
+
699
+ to_graphml(G, communities, 'graphify-out/graph.graphml')
700
+ print('graph.graphml written - open in Gephi, yEd, or any GraphML tool')
701
+ "
702
+ ```
703
+
704
+ ### Step 7d - MCP server (only if --mcp flag)
705
+
706
+ ```bash
707
+ python3 -m graphify.serve graphify-out/graph.json
708
+ ```
709
+
710
+ This starts a stdio MCP server that exposes tools: `query_graph`, `get_node`, `get_neighbors`, `get_community`, `god_nodes`, `graph_stats`, `shortest_path`. Add to Claude Desktop or any MCP-compatible agent orchestrator so other agents can query the graph live.
711
+
712
+ To configure in Claude Desktop, add to `claude_desktop_config.json`:
713
+ ```json
714
+ {
715
+ "mcpServers": {
716
+ "graphify": {
717
+ "command": "python3",
718
+ "args": ["-m", "graphify.serve", "/absolute/path/to/graphify-out/graph.json"]
719
+ }
720
+ }
721
+ }
722
+ ```
723
+
724
+ ### Step 8 - Token reduction benchmark (only if total_words > 5000)
725
+
726
+ If `total_words` from `graphify-out/.graphify_detect.json` is greater than 5,000, run:
727
+
728
+ ```bash
729
+ $(cat graphify-out/.graphify_python) -c "
730
+ import json
731
+ from graphify.benchmark import run_benchmark, print_benchmark
732
+ from pathlib import Path
733
+
734
+ detection = json.loads(Path('graphify-out/.graphify_detect.json').read_text())
735
+ result = run_benchmark('graphify-out/graph.json', corpus_words=detection['total_words'])
736
+ print_benchmark(result)
737
+ "
738
+ ```
739
+
740
+ Print the output directly in chat. If `total_words <= 5000`, skip silently - the graph value is structural clarity, not token compression, for small corpora.
741
+
742
+ ---
743
+
744
+ ### Step 9 - Save manifest, update cost tracker, clean up, and report
745
+
746
+ ```bash
747
+ $(cat graphify-out/.graphify_python) -c "
748
+ import json
749
+ from pathlib import Path
750
+ from datetime import datetime, timezone
751
+ from graphify.detect import save_manifest
752
+
753
+ # Save manifest for --update
754
+ detect = json.loads(Path('graphify-out/.graphify_detect.json').read_text())
755
+ save_manifest(detect['files'])
756
+
757
+ # Update cumulative cost tracker
758
+ extract = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
759
+ input_tok = extract.get('input_tokens', 0)
760
+ output_tok = extract.get('output_tokens', 0)
761
+
762
+ cost_path = Path('graphify-out/cost.json')
763
+ if cost_path.exists():
764
+ cost = json.loads(cost_path.read_text())
765
+ else:
766
+ cost = {'runs': [], 'total_input_tokens': 0, 'total_output_tokens': 0}
767
+
768
+ cost['runs'].append({
769
+ 'date': datetime.now(timezone.utc).isoformat(),
770
+ 'input_tokens': input_tok,
771
+ 'output_tokens': output_tok,
772
+ 'files': detect.get('total_files', 0),
773
+ })
774
+ cost['total_input_tokens'] += input_tok
775
+ cost['total_output_tokens'] += output_tok
776
+ cost_path.write_text(json.dumps(cost, indent=2))
777
+
778
+ print(f'This run: {input_tok:,} input tokens, {output_tok:,} output tokens')
779
+ print(f'All time: {cost[\"total_input_tokens\"]:,} input, {cost[\"total_output_tokens\"]:,} output ({len(cost[\"runs\"])} runs)')
780
+ "
781
+ rm -f graphify-out/.graphify_detect.json graphify-out/.graphify_extract.json graphify-out/.graphify_ast.json graphify-out/.graphify_semantic.json graphify-out/.graphify_analysis.json graphify-out/.graphify_labels.json graphify-out/.graphify_chunk_*.json
782
+ rm -f graphify-out/.needs_update 2>/dev/null || true
783
+ ```
784
+
785
+ Tell the user (omit the obsidian line unless --obsidian was given):
786
+ ```
787
+ Graph complete. Outputs in PATH_TO_DIR/graphify-out/
788
+
789
+ graph.html - interactive graph, open in browser
790
+ GRAPH_REPORT.md - audit report
791
+ graph.json - raw graph data
792
+ obsidian/ - Obsidian vault (only if --obsidian was given)
793
+ ```
794
+
795
+ If graphify saved you time, consider supporting it: https://github.com/sponsors/safishamsi
796
+
797
+ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed.
798
+
799
+ Then paste these sections from GRAPH_REPORT.md directly into the chat:
800
+ - God Nodes
801
+ - Surprising Connections
802
+ - Suggested Questions
803
+
804
+ Do NOT paste the full report - just those three sections. Keep it concise.
805
+
806
+ Then immediately offer to explore. Pick the single most interesting suggested question from the report - the one that crosses the most community boundaries or has the most surprising bridge node - and ask:
807
+
808
+ > "The most interesting question this graph can answer: **[question]**. Want me to trace it?"
809
+
810
+ If the user says yes, run `/graphify query "[question]"` on the graph and walk them through the answer using the graph structure - which nodes connect, which community boundaries get crossed, what the path reveals. Keep going as long as they want to explore. Each answer should end with a natural follow-up ("this connects to X - want to go deeper?") so the session feels like navigation, not a one-shot report.
811
+
812
+ The graph is the map. Your job after the pipeline is to be the guide.
813
+
814
+ ---
815
+
816
+ ## For --update (incremental re-extraction)
817
+
818
+ Use when you've added or modified files since the last run. Only re-extracts changed files - saves tokens and time.
819
+
820
+ ```bash
821
+ $(cat graphify-out/.graphify_python) -c "
822
+ import sys, json
823
+ from graphify.detect import detect_incremental, save_manifest
824
+ from pathlib import Path
825
+
826
+ result = detect_incremental(Path('INPUT_PATH'))
827
+ new_total = result.get('new_total', 0)
828
+ print(json.dumps(result, indent=2))
829
+ Path('graphify-out/.graphify_incremental.json').write_text(json.dumps(result))
830
+ deleted = list(result.get('deleted_files', []))
831
+ if new_total == 0 and not deleted:
832
+ print('No files changed since last run. Nothing to update.')
833
+ raise SystemExit(0)
834
+ if deleted:
835
+ print(f'{len(deleted)} deleted file(s) to prune.')
836
+ if new_total > 0:
837
+ print(f'{new_total} new/changed file(s) to re-extract.')
838
+ "
839
+ ```
840
+
841
+ If new files exist, first check whether all changed files are code files:
842
+
843
+ ```bash
844
+ $(cat graphify-out/.graphify_python) -c "
845
+ import json
846
+ from pathlib import Path
847
+
848
+ result = json.loads(open('graphify-out/.graphify_incremental.json').read()) if Path('graphify-out/.graphify_incremental.json').exists() else {}
849
+ code_exts = {'.py','.ts','.js','.go','.rs','.java','.cpp','.c','.rb','.swift','.kt','.cs','.scala','.php','.cc','.cxx','.hpp','.h','.kts'}
850
+ new_files = result.get('new_files', {})
851
+ all_changed = [f for files in new_files.values() for f in files]
852
+ code_only = all(Path(f).suffix.lower() in code_exts for f in all_changed)
853
+ print('code_only:', code_only)
854
+ "
855
+ ```
856
+
857
+ If `code_only` is True: print `[graphify update] Code-only changes detected - skipping semantic extraction (no LLM needed)`, run only Step 3A (AST) on the changed files, skip Step 3B entirely (no subagents), then go straight to merge and Steps 4–8.
858
+
859
+ If `code_only` is False (any changed file is a doc/paper/image): run the full Steps 3A–3C pipeline as normal.
860
+
861
+
862
+ If no new files exist (only deletions), create an empty extraction so the merge step can prune:
863
+
864
+ ```bash
865
+ if [ ! -f graphify-out/.graphify_extract.json ]; then
866
+ echo '[graphify update] Only deletions -- creating empty extraction for merge.'
867
+ $(cat graphify-out/.graphify_python) -c "
868
+ import json
869
+ from pathlib import Path
870
+ Path('graphify-out/.graphify_extract.json').write_text(json.dumps({'nodes':[],'edges':[],'hyperedges':[],'input_tokens':0,'output_tokens':0}), encoding='utf-8')
871
+ "
872
+ fi
873
+ ```
874
+
875
+
876
+ Then:
877
+
878
+ ```bash
879
+ $(cat graphify-out/.graphify_python) -c "
880
+ import sys, json
881
+ from graphify.build import build_from_json
882
+ from graphify.export import to_json
883
+ from networkx.readwrite import json_graph
884
+ import networkx as nx
885
+ from pathlib import Path
886
+
887
+ # Load existing graph
888
+ existing_data = json.loads(Path('graphify-out/graph.json').read_text())
889
+ G_existing = json_graph.node_link_graph(existing_data, edges='links')
890
+
891
+ # Load new extraction
892
+ new_extraction = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
893
+ G_new = build_from_json(new_extraction)
894
+
895
+ # Merge: new nodes/edges into existing graph
896
+ G_existing.update(G_new)
897
+ print(f'Merged: {G_existing.number_of_nodes()} nodes, {G_existing.number_of_edges()} edges')
898
+ "
899
+ ```
900
+
901
+ Then run Steps 4–8 on the merged graph as normal.
902
+
903
+ After Step 4, show the graph diff:
904
+
905
+ ```bash
906
+ $(cat graphify-out/.graphify_python) -c "
907
+ import json
908
+ from graphify.analyze import graph_diff
909
+ from graphify.build import build_from_json
910
+ from networkx.readwrite import json_graph
911
+ import networkx as nx
912
+ from pathlib import Path
913
+
914
+ # Load old graph (before update) from backup written before merge
915
+ old_data = json.loads(Path('graphify-out/.graphify_old.json').read_text()) if Path('graphify-out/.graphify_old.json').exists() else None
916
+ new_extract = json.loads(Path('graphify-out/.graphify_extract.json').read_text())
917
+ G_new = build_from_json(new_extract)
918
+
919
+ if old_data:
920
+ G_old = json_graph.node_link_graph(old_data, edges='links')
921
+ diff = graph_diff(G_old, G_new)
922
+ print(diff['summary'])
923
+ if diff['new_nodes']:
924
+ print('New nodes:', ', '.join(n['label'] for n in diff['new_nodes'][:5]))
925
+ if diff['new_edges']:
926
+ print('New edges:', len(diff['new_edges']))
927
+ "
928
+ ```
929
+
930
+ Before the merge step, save the old graph: `cp graphify-out/graph.json graphify-out/.graphify_old.json`
931
+ Clean up after: `rm -f graphify-out/.graphify_old.json`
932
+
933
+ ---
934
+
935
+ ## For --cluster-only
936
+
937
+ Skip Steps 1–3. Load the existing graph from `graphify-out/graph.json` and re-run clustering:
938
+
939
+ ```bash
940
+ $(cat graphify-out/.graphify_python) -c "
941
+ import sys, json
942
+ from graphify.cluster import cluster, score_all
943
+ from graphify.analyze import god_nodes, surprising_connections
944
+ from graphify.report import generate
945
+ from graphify.export import to_json
946
+ from networkx.readwrite import json_graph
947
+ import networkx as nx
948
+ from pathlib import Path
949
+
950
+ data = json.loads(Path('graphify-out/graph.json').read_text())
951
+ G = json_graph.node_link_graph(data, edges='links')
952
+
953
+ detection = {'total_files': 0, 'total_words': 99999, 'needs_graph': True, 'warning': None,
954
+ 'files': {'code': [], 'document': [], 'paper': []}}
955
+ tokens = {'input': 0, 'output': 0}
956
+
957
+ communities = cluster(G)
958
+ cohesion = score_all(G, communities)
959
+ gods = god_nodes(G)
960
+ surprises = surprising_connections(G, communities)
961
+ labels = {cid: 'Community ' + str(cid) for cid in communities}
962
+
963
+ report = generate(G, communities, cohesion, labels, gods, surprises, detection, tokens, '.')
964
+ Path('graphify-out/GRAPH_REPORT.md').write_text(report)
965
+ to_json(G, communities, 'graphify-out/graph.json')
966
+
967
+ analysis = {
968
+ 'communities': {str(k): v for k, v in communities.items()},
969
+ 'cohesion': {str(k): v for k, v in cohesion.items()},
970
+ 'gods': gods,
971
+ 'surprises': surprises,
972
+ }
973
+ Path('graphify-out/.graphify_analysis.json').write_text(json.dumps(analysis, indent=2))
974
+ print(f'Re-clustered: {len(communities)} communities')
975
+ "
976
+ ```
977
+
978
+ Then run Steps 5–9 as normal (label communities, generate viz, benchmark, clean up, report).
979
+
980
+ ---
981
+
982
+ ## For /graphify query
983
+
984
+ Two traversal modes - choose based on the question:
985
+
986
+ | Mode | Flag | Best for |
987
+ |------|------|----------|
988
+ | BFS (default) | _(none)_ | "What is X connected to?" - broad context, nearest neighbors first |
989
+ | DFS | `--dfs` | "How does X reach Y?" - trace a specific chain or dependency path |
990
+
991
+ First check the graph exists:
992
+ ```bash
993
+ $(cat graphify-out/.graphify_python) -c "
994
+ from pathlib import Path
995
+ if not Path('graphify-out/graph.json').exists():
996
+ print('ERROR: No graph found. Run /graphify <path> first to build the graph.')
997
+ raise SystemExit(1)
998
+ "
999
+ ```
1000
+ If it fails, stop and tell the user to run `/graphify <path>` first.
1001
+
1002
+ Load `graphify-out/graph.json`, then:
1003
+
1004
+ 1. Find the 1-3 nodes whose label best matches key terms in the question.
1005
+ 2. Run the appropriate traversal from each starting node.
1006
+ 3. Read the subgraph - node labels, edge relations, confidence tags, source locations.
1007
+ 4. Answer using **only** what the graph contains. Quote `source_location` when citing a specific fact.
1008
+ 5. If the graph lacks enough information, say so - do not hallucinate edges.
1009
+
1010
+ ```bash
1011
+ $(cat graphify-out/.graphify_python) -c "
1012
+ import sys, json
1013
+ from networkx.readwrite import json_graph
1014
+ import networkx as nx
1015
+ from pathlib import Path
1016
+
1017
+ data = json.loads(Path('graphify-out/graph.json').read_text())
1018
+ G = json_graph.node_link_graph(data, edges='links')
1019
+
1020
+ question = 'QUESTION'
1021
+ mode = 'MODE' # 'bfs' or 'dfs'
1022
+ terms = [t.lower() for t in question.split() if len(t) > 3]
1023
+
1024
+ # Find best-matching start nodes
1025
+ scored = []
1026
+ for nid, ndata in G.nodes(data=True):
1027
+ label = ndata.get('label', '').lower()
1028
+ score = sum(1 for t in terms if t in label)
1029
+ if score > 0:
1030
+ scored.append((score, nid))
1031
+ scored.sort(reverse=True)
1032
+ start_nodes = [nid for _, nid in scored[:3]]
1033
+
1034
+ if not start_nodes:
1035
+ print('No matching nodes found for query terms:', terms)
1036
+ sys.exit(0)
1037
+
1038
+ subgraph_nodes = set()
1039
+ subgraph_edges = []
1040
+
1041
+ if mode == 'dfs':
1042
+ # DFS: follow one path as deep as possible before backtracking.
1043
+ # Depth-limited to 6 to avoid traversing the whole graph.
1044
+ visited = set()
1045
+ stack = [(n, 0) for n in reversed(start_nodes)]
1046
+ while stack:
1047
+ node, depth = stack.pop()
1048
+ if node in visited or depth > 6:
1049
+ continue
1050
+ visited.add(node)
1051
+ subgraph_nodes.add(node)
1052
+ for neighbor in G.neighbors(node):
1053
+ if neighbor not in visited:
1054
+ stack.append((neighbor, depth + 1))
1055
+ subgraph_edges.append((node, neighbor))
1056
+ else:
1057
+ # BFS: explore all neighbors layer by layer up to depth 3.
1058
+ frontier = set(start_nodes)
1059
+ subgraph_nodes = set(start_nodes)
1060
+ for _ in range(3):
1061
+ next_frontier = set()
1062
+ for n in frontier:
1063
+ for neighbor in G.neighbors(n):
1064
+ if neighbor not in subgraph_nodes:
1065
+ next_frontier.add(neighbor)
1066
+ subgraph_edges.append((n, neighbor))
1067
+ subgraph_nodes.update(next_frontier)
1068
+ frontier = next_frontier
1069
+
1070
+ # Token-budget aware output: rank by relevance, cut at budget (~4 chars/token)
1071
+ token_budget = BUDGET # default 2000
1072
+ char_budget = token_budget * 4
1073
+
1074
+ # Score each node by term overlap for ranked output
1075
+ def relevance(nid):
1076
+ label = G.nodes[nid].get('label', '').lower()
1077
+ return sum(1 for t in terms if t in label)
1078
+
1079
+ ranked_nodes = sorted(subgraph_nodes, key=relevance, reverse=True)
1080
+
1081
+ lines = [f'Traversal: {mode.upper()} | Start: {[G.nodes[n].get(\"label\",n) for n in start_nodes]} | {len(subgraph_nodes)} nodes']
1082
+ for nid in ranked_nodes:
1083
+ d = G.nodes[nid]
1084
+ lines.append(f' NODE {d.get(\"label\", nid)} [src={d.get(\"source_file\",\"\")} loc={d.get(\"source_location\",\"\")}]')
1085
+ for u, v in subgraph_edges:
1086
+ if u in subgraph_nodes and v in subgraph_nodes:
1087
+ _raw = G[u][v]; d = next(iter(_raw.values()), {}) if isinstance(G, nx.MultiGraph) else _raw
1088
+ lines.append(f' EDGE {G.nodes[u].get(\"label\",u)} --{d.get(\"relation\",\"\")} [{d.get(\"confidence\",\"\")}]--> {G.nodes[v].get(\"label\",v)}')
1089
+
1090
+ output = '\n'.join(lines)
1091
+ if len(output) > char_budget:
1092
+ output = output[:char_budget] + f'\n... (truncated at ~{token_budget} token budget - use --budget N for more)'
1093
+ print(output)
1094
+ "
1095
+ ```
1096
+
1097
+ Replace `QUESTION` with the user's actual question, `MODE` with `bfs` or `dfs`, and `BUDGET` with the token budget (default `2000`, or whatever `--budget N` specifies). Then answer based on the subgraph output above.
1098
+
1099
+ After writing the answer, save it back into the graph so it improves future queries:
1100
+
1101
+ ```bash
1102
+ $(cat graphify-out/.graphify_python) -m graphify save-result --question "QUESTION" --answer "ANSWER" --type query --nodes NODE1 NODE2
1103
+ ```
1104
+
1105
+ Replace `QUESTION` with the question, `ANSWER` with your full answer text, `SOURCE_NODES` with the list of node labels you cited. This closes the feedback loop: the next `--update` will extract this Q&A as a node in the graph.
1106
+
1107
+ ---
1108
+
1109
+ ## For /graphify path
1110
+
1111
+ Find the shortest path between two named concepts in the graph.
1112
+
1113
+ First check the graph exists:
1114
+ ```bash
1115
+ $(cat graphify-out/.graphify_python) -c "
1116
+ from pathlib import Path
1117
+ if not Path('graphify-out/graph.json').exists():
1118
+ print('ERROR: No graph found. Run /graphify <path> first to build the graph.')
1119
+ raise SystemExit(1)
1120
+ "
1121
+ ```
1122
+ If it fails, stop and tell the user to run `/graphify <path>` first.
1123
+
1124
+ ```bash
1125
+ $(cat graphify-out/.graphify_python) -c "
1126
+ import json, sys
1127
+ import networkx as nx
1128
+ from networkx.readwrite import json_graph
1129
+ from pathlib import Path
1130
+
1131
+ data = json.loads(Path('graphify-out/graph.json').read_text())
1132
+ G = json_graph.node_link_graph(data, edges='links')
1133
+
1134
+ a_term = 'NODE_A'
1135
+ b_term = 'NODE_B'
1136
+
1137
+ def find_node(term):
1138
+ term = term.lower()
1139
+ scored = sorted(
1140
+ [(sum(1 for w in term.split() if w in G.nodes[n].get('label','').lower()), n)
1141
+ for n in G.nodes()],
1142
+ reverse=True
1143
+ )
1144
+ return scored[0][1] if scored and scored[0][0] > 0 else None
1145
+
1146
+ src = find_node(a_term)
1147
+ tgt = find_node(b_term)
1148
+
1149
+ if not src or not tgt:
1150
+ print(f'Could not find nodes matching: {a_term!r} or {b_term!r}')
1151
+ sys.exit(0)
1152
+
1153
+ try:
1154
+ path = nx.shortest_path(G, src, tgt)
1155
+ print(f'Shortest path ({len(path)-1} hops):')
1156
+ for i, nid in enumerate(path):
1157
+ label = G.nodes[nid].get('label', nid)
1158
+ if i < len(path) - 1:
1159
+ _raw = G[nid][path[i+1]]; edge = next(iter(_raw.values()), {}) if isinstance(G, nx.MultiGraph) else _raw
1160
+ rel = edge.get('relation', '')
1161
+ conf = edge.get('confidence', '')
1162
+ print(f' {label} --{rel}--> [{conf}]')
1163
+ else:
1164
+ print(f' {label}')
1165
+ except nx.NetworkXNoPath:
1166
+ print(f'No path found between {a_term!r} and {b_term!r}')
1167
+ except nx.NodeNotFound as e:
1168
+ print(f'Node not found: {e}')
1169
+ "
1170
+ ```
1171
+
1172
+ Replace `NODE_A` and `NODE_B` with the actual concept names from the user. Then explain the path in plain language - what each hop means, why it's significant.
1173
+
1174
+ After writing the explanation, save it back:
1175
+
1176
+ ```bash
1177
+ $(cat graphify-out/.graphify_python) -m graphify save-result --question "Path from NODE_A to NODE_B" --answer "ANSWER" --type path_query --nodes NODE_A NODE_B
1178
+ ```
1179
+
1180
+ ---
1181
+
1182
+ ## For /graphify explain
1183
+
1184
+ Give a plain-language explanation of a single node - everything connected to it.
1185
+
1186
+ First check the graph exists:
1187
+ ```bash
1188
+ $(cat graphify-out/.graphify_python) -c "
1189
+ from pathlib import Path
1190
+ if not Path('graphify-out/graph.json').exists():
1191
+ print('ERROR: No graph found. Run /graphify <path> first to build the graph.')
1192
+ raise SystemExit(1)
1193
+ "
1194
+ ```
1195
+ If it fails, stop and tell the user to run `/graphify <path>` first.
1196
+
1197
+ ```bash
1198
+ $(cat graphify-out/.graphify_python) -c "
1199
+ import json, sys
1200
+ import networkx as nx
1201
+ from networkx.readwrite import json_graph
1202
+ from pathlib import Path
1203
+
1204
+ data = json.loads(Path('graphify-out/graph.json').read_text())
1205
+ G = json_graph.node_link_graph(data, edges='links')
1206
+
1207
+ term = 'NODE_NAME'
1208
+ term_lower = term.lower()
1209
+
1210
+ # Find best matching node
1211
+ scored = sorted(
1212
+ [(sum(1 for w in term_lower.split() if w in G.nodes[n].get('label','').lower()), n)
1213
+ for n in G.nodes()],
1214
+ reverse=True
1215
+ )
1216
+ if not scored or scored[0][0] == 0:
1217
+ print(f'No node matching {term!r}')
1218
+ sys.exit(0)
1219
+
1220
+ nid = scored[0][1]
1221
+ data_n = G.nodes[nid]
1222
+ print(f'NODE: {data_n.get(\"label\", nid)}')
1223
+ print(f' source: {data_n.get(\"source_file\",\"unknown\")}')
1224
+ print(f' type: {data_n.get(\"file_type\",\"unknown\")}')
1225
+ print(f' degree: {G.degree(nid)}')
1226
+ print()
1227
+ print('CONNECTIONS:')
1228
+ for neighbor in G.neighbors(nid):
1229
+ _raw = G[nid][neighbor]; edge = next(iter(_raw.values()), {}) if isinstance(G, nx.MultiGraph) else _raw
1230
+ nlabel = G.nodes[neighbor].get('label', neighbor)
1231
+ rel = edge.get('relation', '')
1232
+ conf = edge.get('confidence', '')
1233
+ src_file = G.nodes[neighbor].get('source_file', '')
1234
+ print(f' --{rel}--> {nlabel} [{conf}] ({src_file})')
1235
+ "
1236
+ ```
1237
+
1238
+ Replace `NODE_NAME` with the concept the user asked about. Then write a 3-5 sentence explanation of what this node is, what it connects to, and why those connections are significant. Use the source locations as citations.
1239
+
1240
+ After writing the explanation, save it back:
1241
+
1242
+ ```bash
1243
+ $(cat graphify-out/.graphify_python) -m graphify save-result --question "Explain NODE_NAME" --answer "ANSWER" --type explain --nodes NODE_NAME
1244
+ ```
1245
+
1246
+ ---
1247
+
1248
+ ## For /graphify add
1249
+
1250
+ Fetch a URL and add it to the corpus, then update the graph.
1251
+
1252
+ ```bash
1253
+ $(cat graphify-out/.graphify_python) -c "
1254
+ import sys
1255
+ from graphify.ingest import ingest
1256
+ from pathlib import Path
1257
+
1258
+ try:
1259
+ out = ingest('URL', Path('./raw'), author='AUTHOR', contributor='CONTRIBUTOR')
1260
+ print(f'Saved to {out}')
1261
+ except ValueError as e:
1262
+ print(f'error: {e}', file=sys.stderr)
1263
+ sys.exit(1)
1264
+ except RuntimeError as e:
1265
+ print(f'error: {e}', file=sys.stderr)
1266
+ sys.exit(1)
1267
+ "
1268
+ ```
1269
+
1270
+ Replace `URL` with the actual URL, `AUTHOR` with the user's name if provided, `CONTRIBUTOR` likewise. If the command exits with an error, tell the user what went wrong - do not silently continue. After a successful save, automatically run the `--update` pipeline on `./raw` to merge the new file into the existing graph.
1271
+
1272
+ Supported URL types (auto-detected):
1273
+ - Twitter/X → fetched via oEmbed, saved as `.md` with tweet text and author
1274
+ - arXiv → abstract + metadata saved as `.md`
1275
+ - PDF → downloaded as `.pdf`
1276
+ - Images (.png/.jpg/.webp) → downloaded, vision extraction runs on next build
1277
+ - Any webpage → converted to markdown via html2text
1278
+
1279
+ ---
1280
+
1281
+ ## For --watch
1282
+
1283
+ Start a background watcher that monitors a folder and auto-updates the graph when files change.
1284
+
1285
+ ```bash
1286
+ python3 -m graphify.watch INPUT_PATH --debounce 3
1287
+ ```
1288
+
1289
+ Replace INPUT_PATH with the folder to watch. Behavior depends on what changed:
1290
+
1291
+ - **Code files only (.py, .ts, .go, etc.):** re-runs AST extraction + rebuild + cluster immediately, no LLM needed. `graph.json` and `GRAPH_REPORT.md` are updated automatically.
1292
+ - **Docs, papers, or images:** writes a `graphify-out/needs_update` flag and prints a notification to run `/graphify --update` (LLM semantic re-extraction required).
1293
+
1294
+ Debounce (default 3s): waits until file activity stops before triggering, so a wave of parallel agent writes doesn't trigger a rebuild per file.
1295
+
1296
+ Press Ctrl+C to stop.
1297
+
1298
+ For agentic workflows: run `--watch` in a background terminal. Code changes from agent waves are picked up automatically between waves. If agents are also writing docs or notes, you'll need a manual `/graphify --update` after those waves.
1299
+
1300
+ ---
1301
+
1302
+ ## For git commit hook
1303
+
1304
+ Install a post-commit hook that auto-rebuilds the graph after every commit. No background process needed - triggers once per commit, works with any editor.
1305
+
1306
+ ```bash
1307
+ graphify hook install # install
1308
+ graphify hook uninstall # remove
1309
+ graphify hook status # check
1310
+ ```
1311
+
1312
+ After every `git commit`, the hook detects which code files changed (via `git diff HEAD~1`), re-runs AST extraction on those files, and rebuilds `graph.json` and `GRAPH_REPORT.md`. Doc/image changes are ignored by the hook - run `/graphify --update` manually for those.
1313
+
1314
+ If a post-commit hook already exists, graphify appends to it rather than replacing it.
1315
+
1316
+ ---
1317
+
1318
+ ## For native CLAUDE.md integration
1319
+
1320
+ Run once per project to make graphify always-on in Claude Code sessions:
1321
+
1322
+ ```bash
1323
+ graphify claude install
1324
+ ```
1325
+
1326
+ This writes a `## graphify` section to the local `CLAUDE.md` that instructs Claude to check the graph before answering codebase questions and rebuild it after code changes. No manual `/graphify` needed in future sessions.
1327
+
1328
+ ```bash
1329
+ graphify claude uninstall # remove the section
1330
+ ```
1331
+
1332
+ ---
1333
+
1334
+ ## Honesty Rules
1335
+
1336
+ - Never invent an edge. If unsure, use AMBIGUOUS.
1337
+ - Never skip the corpus check warning.
1338
+ - Always show token cost in the report.
1339
+ - Never hide cohesion scores behind symbols - show the raw number.
1340
+ - Never run HTML viz on a graph with more than 5,000 nodes without warning the user.