@dtt_siye/atool 1.1.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 (463) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +235 -0
  3. package/VERSION +1 -0
  4. package/agents/code-reviewer.md +29 -0
  5. package/bin/atool.js +235 -0
  6. package/bin/postinstall.js +23 -0
  7. package/hooks/doc-sync-reminder +155 -0
  8. package/hooks/hooks-cursor.json +37 -0
  9. package/hooks/hooks.json +37 -0
  10. package/hooks/prompt-guard +135 -0
  11. package/hooks/session-start +286 -0
  12. package/install.sh +603 -0
  13. package/lib/analyze-source.sh +1265 -0
  14. package/lib/common.sh +1041 -0
  15. package/lib/compute-importance.sh +598 -0
  16. package/lib/detect-stack.sh +354 -0
  17. package/lib/generate-visualization.sh +266 -0
  18. package/lib/install-claude.sh +43 -0
  19. package/lib/install-cursor.sh +281 -0
  20. package/lib/install-hooks.sh +285 -0
  21. package/lib/install-kiro.sh +543 -0
  22. package/lib/install-mcp.sh +99 -0
  23. package/lib/install-skills.sh +129 -0
  24. package/lib/knowledge-graph.sh +1014 -0
  25. package/lib/multi-dimensional-analysis.sh +413 -0
  26. package/lib/pre-scan.sh +1045 -0
  27. package/lib/project-init.sh +552 -0
  28. package/lib/visualization-template.html +545 -0
  29. package/mcp/recommended.json +24 -0
  30. package/package.json +39 -0
  31. package/skills/_superpowers/.claude-plugin/marketplace.json +20 -0
  32. package/skills/_superpowers/.claude-plugin/plugin.json +20 -0
  33. package/skills/_superpowers/.codex/INSTALL.md +67 -0
  34. package/skills/_superpowers/.cursor-plugin/plugin.json +25 -0
  35. package/skills/_superpowers/.gitattributes +18 -0
  36. package/skills/_superpowers/.github/FUNDING.yml +3 -0
  37. package/skills/_superpowers/.github/ISSUE_TEMPLATE/bug_report.md +52 -0
  38. package/skills/_superpowers/.github/ISSUE_TEMPLATE/config.yml +5 -0
  39. package/skills/_superpowers/.github/ISSUE_TEMPLATE/feature_request.md +34 -0
  40. package/skills/_superpowers/.github/ISSUE_TEMPLATE/platform_support.md +23 -0
  41. package/skills/_superpowers/.github/PULL_REQUEST_TEMPLATE.md +87 -0
  42. package/skills/_superpowers/.opencode/INSTALL.md +83 -0
  43. package/skills/_superpowers/.opencode/plugins/superpowers.js +107 -0
  44. package/skills/_superpowers/CHANGELOG.md +13 -0
  45. package/skills/_superpowers/CODE_OF_CONDUCT.md +128 -0
  46. package/skills/_superpowers/GEMINI.md +2 -0
  47. package/skills/_superpowers/LICENSE +21 -0
  48. package/skills/_superpowers/README.md +187 -0
  49. package/skills/_superpowers/RELEASE-NOTES.md +1083 -0
  50. package/skills/_superpowers/agents/code-reviewer.md +48 -0
  51. package/skills/_superpowers/commands/brainstorm.md +5 -0
  52. package/skills/_superpowers/commands/execute-plan.md +5 -0
  53. package/skills/_superpowers/commands/write-plan.md +5 -0
  54. package/skills/_superpowers/docs/README.codex.md +126 -0
  55. package/skills/_superpowers/docs/README.opencode.md +130 -0
  56. package/skills/_superpowers/docs/plans/2025-11-22-opencode-support-design.md +294 -0
  57. package/skills/_superpowers/docs/plans/2025-11-22-opencode-support-implementation.md +1095 -0
  58. package/skills/_superpowers/docs/plans/2025-11-28-skills-improvements-from-user-feedback.md +711 -0
  59. package/skills/_superpowers/docs/plans/2026-01-17-visual-brainstorming.md +571 -0
  60. package/skills/_superpowers/docs/superpowers/plans/2026-01-22-document-review-system.md +301 -0
  61. package/skills/_superpowers/docs/superpowers/plans/2026-02-19-visual-brainstorming-refactor.md +523 -0
  62. package/skills/_superpowers/docs/superpowers/plans/2026-03-11-zero-dep-brainstorm-server.md +479 -0
  63. package/skills/_superpowers/docs/superpowers/plans/2026-03-23-codex-app-compatibility.md +564 -0
  64. package/skills/_superpowers/docs/superpowers/specs/2026-01-22-document-review-system-design.md +136 -0
  65. package/skills/_superpowers/docs/superpowers/specs/2026-02-19-visual-brainstorming-refactor-design.md +162 -0
  66. package/skills/_superpowers/docs/superpowers/specs/2026-03-11-zero-dep-brainstorm-server-design.md +118 -0
  67. package/skills/_superpowers/docs/superpowers/specs/2026-03-23-codex-app-compatibility-design.md +244 -0
  68. package/skills/_superpowers/docs/testing.md +303 -0
  69. package/skills/_superpowers/docs/windows/polyglot-hooks.md +212 -0
  70. package/skills/_superpowers/gemini-extension.json +6 -0
  71. package/skills/_superpowers/hooks/hooks-cursor.json +10 -0
  72. package/skills/_superpowers/hooks/hooks.json +16 -0
  73. package/skills/_superpowers/hooks/run-hook.cmd +46 -0
  74. package/skills/_superpowers/hooks/session-start +57 -0
  75. package/skills/_superpowers/package.json +6 -0
  76. package/skills/_superpowers/skills/brainstorming/SKILL.md +164 -0
  77. package/skills/_superpowers/skills/brainstorming/scripts/frame-template.html +214 -0
  78. package/skills/_superpowers/skills/brainstorming/scripts/helper.js +88 -0
  79. package/skills/_superpowers/skills/brainstorming/scripts/server.cjs +354 -0
  80. package/skills/_superpowers/skills/brainstorming/scripts/start-server.sh +148 -0
  81. package/skills/_superpowers/skills/brainstorming/scripts/stop-server.sh +56 -0
  82. package/skills/_superpowers/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
  83. package/skills/_superpowers/skills/brainstorming/visual-companion.md +287 -0
  84. package/skills/_superpowers/skills/dispatching-parallel-agents/SKILL.md +182 -0
  85. package/skills/_superpowers/skills/executing-plans/SKILL.md +70 -0
  86. package/skills/_superpowers/skills/finishing-a-development-branch/SKILL.md +200 -0
  87. package/skills/_superpowers/skills/receiving-code-review/SKILL.md +213 -0
  88. package/skills/_superpowers/skills/requesting-code-review/SKILL.md +105 -0
  89. package/skills/_superpowers/skills/requesting-code-review/code-reviewer.md +146 -0
  90. package/skills/_superpowers/skills/subagent-driven-development/SKILL.md +277 -0
  91. package/skills/_superpowers/skills/subagent-driven-development/code-quality-reviewer-prompt.md +26 -0
  92. package/skills/_superpowers/skills/subagent-driven-development/implementer-prompt.md +113 -0
  93. package/skills/_superpowers/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  94. package/skills/_superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
  95. package/skills/_superpowers/skills/systematic-debugging/SKILL.md +296 -0
  96. package/skills/_superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  97. package/skills/_superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -0
  98. package/skills/_superpowers/skills/systematic-debugging/defense-in-depth.md +122 -0
  99. package/skills/_superpowers/skills/systematic-debugging/find-polluter.sh +63 -0
  100. package/skills/_superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -0
  101. package/skills/_superpowers/skills/systematic-debugging/test-academic.md +14 -0
  102. package/skills/_superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
  103. package/skills/_superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
  104. package/skills/_superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
  105. package/skills/_superpowers/skills/test-driven-development/SKILL.md +371 -0
  106. package/skills/_superpowers/skills/test-driven-development/testing-anti-patterns.md +299 -0
  107. package/skills/_superpowers/skills/using-git-worktrees/SKILL.md +218 -0
  108. package/skills/_superpowers/skills/using-superpowers/SKILL.md +115 -0
  109. package/skills/_superpowers/skills/using-superpowers/references/codex-tools.md +100 -0
  110. package/skills/_superpowers/skills/using-superpowers/references/gemini-tools.md +33 -0
  111. package/skills/_superpowers/skills/verification-before-completion/SKILL.md +139 -0
  112. package/skills/_superpowers/skills/writing-plans/SKILL.md +152 -0
  113. package/skills/_superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
  114. package/skills/_superpowers/skills/writing-skills/SKILL.md +655 -0
  115. package/skills/_superpowers/skills/writing-skills/anthropic-best-practices.md +1150 -0
  116. package/skills/_superpowers/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  117. package/skills/_superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
  118. package/skills/_superpowers/skills/writing-skills/persuasion-principles.md +187 -0
  119. package/skills/_superpowers/skills/writing-skills/render-graphs.js +168 -0
  120. package/skills/_superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -0
  121. package/skills/_superpowers/tests/brainstorm-server/package-lock.json +36 -0
  122. package/skills/_superpowers/tests/brainstorm-server/package.json +10 -0
  123. package/skills/_superpowers/tests/brainstorm-server/server.test.js +427 -0
  124. package/skills/_superpowers/tests/brainstorm-server/windows-lifecycle.test.sh +351 -0
  125. package/skills/_superpowers/tests/brainstorm-server/ws-protocol.test.js +392 -0
  126. package/skills/_superpowers/tests/claude-code/README.md +158 -0
  127. package/skills/_superpowers/tests/claude-code/analyze-token-usage.py +168 -0
  128. package/skills/_superpowers/tests/claude-code/run-skill-tests.sh +187 -0
  129. package/skills/_superpowers/tests/claude-code/test-document-review-system.sh +177 -0
  130. package/skills/_superpowers/tests/claude-code/test-helpers.sh +202 -0
  131. package/skills/_superpowers/tests/claude-code/test-subagent-driven-development-integration.sh +314 -0
  132. package/skills/_superpowers/tests/claude-code/test-subagent-driven-development.sh +165 -0
  133. package/skills/_superpowers/tests/explicit-skill-requests/prompts/action-oriented.txt +3 -0
  134. package/skills/_superpowers/tests/explicit-skill-requests/prompts/after-planning-flow.txt +17 -0
  135. package/skills/_superpowers/tests/explicit-skill-requests/prompts/claude-suggested-it.txt +11 -0
  136. package/skills/_superpowers/tests/explicit-skill-requests/prompts/i-know-what-sdd-means.txt +8 -0
  137. package/skills/_superpowers/tests/explicit-skill-requests/prompts/mid-conversation-execute-plan.txt +3 -0
  138. package/skills/_superpowers/tests/explicit-skill-requests/prompts/please-use-brainstorming.txt +1 -0
  139. package/skills/_superpowers/tests/explicit-skill-requests/prompts/skip-formalities.txt +3 -0
  140. package/skills/_superpowers/tests/explicit-skill-requests/prompts/subagent-driven-development-please.txt +1 -0
  141. package/skills/_superpowers/tests/explicit-skill-requests/prompts/use-systematic-debugging.txt +1 -0
  142. package/skills/_superpowers/tests/explicit-skill-requests/run-all.sh +70 -0
  143. package/skills/_superpowers/tests/explicit-skill-requests/run-claude-describes-sdd.sh +100 -0
  144. package/skills/_superpowers/tests/explicit-skill-requests/run-extended-multiturn-test.sh +113 -0
  145. package/skills/_superpowers/tests/explicit-skill-requests/run-haiku-test.sh +144 -0
  146. package/skills/_superpowers/tests/explicit-skill-requests/run-multiturn-test.sh +143 -0
  147. package/skills/_superpowers/tests/explicit-skill-requests/run-test.sh +136 -0
  148. package/skills/_superpowers/tests/opencode/run-tests.sh +163 -0
  149. package/skills/_superpowers/tests/opencode/setup.sh +73 -0
  150. package/skills/_superpowers/tests/opencode/test-plugin-loading.sh +72 -0
  151. package/skills/_superpowers/tests/opencode/test-priority.sh +198 -0
  152. package/skills/_superpowers/tests/opencode/test-tools.sh +104 -0
  153. package/skills/_superpowers/tests/skill-triggering/prompts/dispatching-parallel-agents.txt +8 -0
  154. package/skills/_superpowers/tests/skill-triggering/prompts/executing-plans.txt +1 -0
  155. package/skills/_superpowers/tests/skill-triggering/prompts/requesting-code-review.txt +3 -0
  156. package/skills/_superpowers/tests/skill-triggering/prompts/systematic-debugging.txt +11 -0
  157. package/skills/_superpowers/tests/skill-triggering/prompts/test-driven-development.txt +7 -0
  158. package/skills/_superpowers/tests/skill-triggering/prompts/writing-plans.txt +10 -0
  159. package/skills/_superpowers/tests/skill-triggering/run-all.sh +60 -0
  160. package/skills/_superpowers/tests/skill-triggering/run-test.sh +88 -0
  161. package/skills/_superpowers/tests/subagent-driven-dev/go-fractals/design.md +81 -0
  162. package/skills/_superpowers/tests/subagent-driven-dev/go-fractals/plan.md +172 -0
  163. package/skills/_superpowers/tests/subagent-driven-dev/go-fractals/scaffold.sh +45 -0
  164. package/skills/_superpowers/tests/subagent-driven-dev/run-test.sh +106 -0
  165. package/skills/_superpowers/tests/subagent-driven-dev/svelte-todo/design.md +70 -0
  166. package/skills/_superpowers/tests/subagent-driven-dev/svelte-todo/plan.md +222 -0
  167. package/skills/_superpowers/tests/subagent-driven-dev/svelte-todo/scaffold.sh +46 -0
  168. package/skills/ai-project-architecture/SKILL.md +632 -0
  169. package/skills/ai-project-architecture/reference/structure-rules.md +406 -0
  170. package/skills/ai-project-architecture/templates/compliance-report.md +300 -0
  171. package/skills/ai-project-architecture/templates/migration-plan.md +433 -0
  172. package/skills/ai-project-architecture/templates/verification-checklist.md +408 -0
  173. package/skills/android-conventions/SKILL.md +125 -0
  174. package/skills/atool-init/SKILL.md +141 -0
  175. package/skills/clarify-before-build/SKILL.md +107 -0
  176. package/skills/code-review/SKILL.md +406 -0
  177. package/skills/code-review/rules/architecture.md +285 -0
  178. package/skills/code-review/rules/coupling-cohesion.md +309 -0
  179. package/skills/code-review/rules/dead-code.md +115 -0
  180. package/skills/code-review/rules/deprecation-debt.md +279 -0
  181. package/skills/code-review/rules/duplication.md +104 -0
  182. package/skills/code-review/rules/error-security.md +143 -0
  183. package/skills/code-review/rules/maintainability.md +203 -0
  184. package/skills/code-review/rules/quality.md +158 -0
  185. package/skills/devops-conventions/SKILL.md +205 -0
  186. package/skills/doc-coauthoring/SKILL.md +392 -0
  187. package/skills/doc-standards-enforcer/SKILL.md +290 -0
  188. package/skills/doc-standards-enforcer/examples/valid-document-example.md +67 -0
  189. package/skills/doc-standards-enforcer/references/101-standards-summary.md +318 -0
  190. package/skills/doc-standards-enforcer/scripts/check_references.py +175 -0
  191. package/skills/doc-standards-enforcer/scripts/fix_common_issues.py +303 -0
  192. package/skills/doc-standards-enforcer/scripts/validate_doc_standards.py +332 -0
  193. package/skills/docx/LICENSE.txt +30 -0
  194. package/skills/docx/SKILL.md +200 -0
  195. package/skills/docx/docx-js.md +350 -0
  196. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  197. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  198. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  199. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  200. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  201. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  202. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  203. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  204. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  205. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  206. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  207. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  208. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  209. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  210. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  211. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  212. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  213. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  214. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  215. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  216. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  217. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  218. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  219. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  220. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  221. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  222. package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  223. package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  224. package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  225. package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  226. package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  227. package/skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
  228. package/skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
  229. package/skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
  230. package/skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
  231. package/skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
  232. package/skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
  233. package/skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  234. package/skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
  235. package/skills/docx/ooxml/scripts/pack.py +159 -0
  236. package/skills/docx/ooxml/scripts/unpack.py +29 -0
  237. package/skills/docx/ooxml/scripts/validate.py +69 -0
  238. package/skills/docx/ooxml/scripts/validation/__init__.py +15 -0
  239. package/skills/docx/ooxml/scripts/validation/base.py +951 -0
  240. package/skills/docx/ooxml/scripts/validation/docx.py +274 -0
  241. package/skills/docx/ooxml/scripts/validation/pptx.py +315 -0
  242. package/skills/docx/ooxml/scripts/validation/redlining.py +279 -0
  243. package/skills/docx/ooxml.md +610 -0
  244. package/skills/docx/scripts/__init__.py +1 -0
  245. package/skills/docx/scripts/document.py +1276 -0
  246. package/skills/docx/scripts/templates/comments.xml +3 -0
  247. package/skills/docx/scripts/templates/commentsExtended.xml +3 -0
  248. package/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  249. package/skills/docx/scripts/templates/commentsIds.xml +3 -0
  250. package/skills/docx/scripts/templates/people.xml +3 -0
  251. package/skills/docx/scripts/utilities.py +374 -0
  252. package/skills/flutter-conventions/SKILL.md +70 -0
  253. package/skills/go-conventions/SKILL.md +230 -0
  254. package/skills/harmony-conventions/SKILL.md +156 -0
  255. package/skills/java-conventions/SKILL.md +277 -0
  256. package/skills/pdf/LICENSE.txt +30 -0
  257. package/skills/pdf/SKILL.md +297 -0
  258. package/skills/pdf/forms.md +205 -0
  259. package/skills/pdf/reference.md +612 -0
  260. package/skills/pdf/scripts/check_bounding_boxes.py +70 -0
  261. package/skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
  262. package/skills/pdf/scripts/check_fillable_fields.py +12 -0
  263. package/skills/pdf/scripts/convert_pdf_to_images.py +35 -0
  264. package/skills/pdf/scripts/create_validation_image.py +41 -0
  265. package/skills/pdf/scripts/extract_form_field_info.py +152 -0
  266. package/skills/pdf/scripts/fill_fillable_fields.py +114 -0
  267. package/skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
  268. package/skills/pptx/LICENSE.txt +30 -0
  269. package/skills/pptx/SKILL.md +487 -0
  270. package/skills/pptx/html2pptx.md +625 -0
  271. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  272. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  273. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  274. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  275. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  276. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  277. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  278. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  279. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  280. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  281. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  282. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  283. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  284. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  285. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  286. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  287. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  288. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  289. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  290. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  291. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  292. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  293. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  294. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  295. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  296. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  297. package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  298. package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  299. package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  300. package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  301. package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  302. package/skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
  303. package/skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
  304. package/skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
  305. package/skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
  306. package/skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
  307. package/skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
  308. package/skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  309. package/skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
  310. package/skills/pptx/ooxml/scripts/pack.py +159 -0
  311. package/skills/pptx/ooxml/scripts/unpack.py +29 -0
  312. package/skills/pptx/ooxml/scripts/validate.py +69 -0
  313. package/skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
  314. package/skills/pptx/ooxml/scripts/validation/base.py +951 -0
  315. package/skills/pptx/ooxml/scripts/validation/docx.py +274 -0
  316. package/skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
  317. package/skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
  318. package/skills/pptx/ooxml.md +427 -0
  319. package/skills/pptx/scripts/html2pptx.js +979 -0
  320. package/skills/pptx/scripts/inventory.py +1020 -0
  321. package/skills/pptx/scripts/rearrange.py +231 -0
  322. package/skills/pptx/scripts/replace.py +385 -0
  323. package/skills/pptx/scripts/thumbnail.py +450 -0
  324. package/skills/project-analyze/SKILL.md +270 -0
  325. package/skills/project-analyze/phases/phase0-discovery.md +278 -0
  326. package/skills/project-analyze/phases/phase0.5-prescan.md +139 -0
  327. package/skills/project-analyze/phases/phase1-inventory.md +94 -0
  328. package/skills/project-analyze/phases/phase2-deep-analysis.md +249 -0
  329. package/skills/project-analyze/phases/phase2a-l4-analysis.md +94 -0
  330. package/skills/project-analyze/phases/phase2b-l5-analysis.md +97 -0
  331. package/skills/project-analyze/phases/phase3-knowledge-graph.md +120 -0
  332. package/skills/project-analyze/phases/phase3a-multi-dimensional.md +61 -0
  333. package/skills/project-analyze/phases/phase4-code-quality.md +81 -0
  334. package/skills/project-analyze/phases/phase5-synthesis.md +284 -0
  335. package/skills/project-analyze/phases/phase6-validation.md +179 -0
  336. package/skills/project-analyze/prompts/code-review-agent.md +122 -0
  337. package/skills/project-analyze/prompts/deep-analysis-agent.md +107 -0
  338. package/skills/project-analyze/prompts/inventory-agent.md +67 -0
  339. package/skills/project-analyze/prompts/l4-analysis-agent.md +98 -0
  340. package/skills/project-analyze/rules/android.md +282 -0
  341. package/skills/project-analyze/rules/devops.md +443 -0
  342. package/skills/project-analyze/rules/generic.md +243 -0
  343. package/skills/project-analyze/rules/go.md +289 -0
  344. package/skills/project-analyze/rules/harmony.md +257 -0
  345. package/skills/project-analyze/rules/java.md +507 -0
  346. package/skills/project-analyze/rules/mobile-flutter.md +315 -0
  347. package/skills/project-analyze/rules/mobile-react-native.md +283 -0
  348. package/skills/project-analyze/rules/mobile-swift.md +323 -0
  349. package/skills/project-analyze/rules/python.md +317 -0
  350. package/skills/project-analyze/rules/rust-tauri.md +243 -0
  351. package/skills/project-analyze/rules/rust.md +296 -0
  352. package/skills/project-analyze/rules/web-nextjs.md +364 -0
  353. package/skills/project-analyze/rules/web-react.md +298 -0
  354. package/skills/project-analyze/rules/web-vue.md +378 -0
  355. package/skills/project-analyze/rules/web.md +390 -0
  356. package/skills/project-query/SKILL.md +224 -0
  357. package/skills/project-query/rules/query-templates.md +212 -0
  358. package/skills/python-conventions/SKILL.md +169 -0
  359. package/skills/react-native-conventions/SKILL.md +73 -0
  360. package/skills/requirements-writer/README.md +153 -0
  361. package/skills/requirements-writer/SKILL.md +341 -0
  362. package/skills/requirements-writer/examples/prd-outline-example.md +217 -0
  363. package/skills/requirements-writer/templates/module-prd-template.md +362 -0
  364. package/skills/requirements-writer/templates/prd-outline-template.md +185 -0
  365. package/skills/requirements-writer/templates/user-story-template.md +1125 -0
  366. package/skills/rust-conventions/SKILL.md +361 -0
  367. package/skills/smart-dispatch/SKILL.md +296 -0
  368. package/skills/smart-dispatch/implementer-prompt.md +146 -0
  369. package/skills/smart-dispatch/reviewer-prompt.md +199 -0
  370. package/skills/software-architecture/SKILL.md +278 -0
  371. package/skills/swift-conventions/SKILL.md +72 -0
  372. package/skills/ui-ux-pro/SKILL.md +140 -0
  373. package/skills/verification-before-completion/SKILL.md +119 -0
  374. package/skills/web-conventions/SKILL.md +259 -0
  375. package/skills/webapp-testing/LICENSE.txt +202 -0
  376. package/skills/webapp-testing/SKILL.md +97 -0
  377. package/skills/webapp-testing/examples/console_logging.py +35 -0
  378. package/skills/webapp-testing/examples/element_discovery.py +40 -0
  379. package/skills/webapp-testing/examples/static_html_automation.py +33 -0
  380. package/skills/webapp-testing/scripts/with_server.py +106 -0
  381. package/skills/writing-plans/SKILL.md +144 -0
  382. package/skills/xlsx/LICENSE.txt +30 -0
  383. package/skills/xlsx/SKILL.md +292 -0
  384. package/skills/xlsx/recalc.py +178 -0
  385. package/templates/CLAUDE.md.android +57 -0
  386. package/templates/CLAUDE.md.devops +50 -0
  387. package/templates/CLAUDE.md.generic +34 -0
  388. package/templates/CLAUDE.md.go +67 -0
  389. package/templates/CLAUDE.md.harmony +54 -0
  390. package/templates/CLAUDE.md.java +56 -0
  391. package/templates/CLAUDE.md.mobile-flutter +38 -0
  392. package/templates/CLAUDE.md.mobile-react-native +37 -0
  393. package/templates/CLAUDE.md.mobile-swift +40 -0
  394. package/templates/CLAUDE.md.python +65 -0
  395. package/templates/CLAUDE.md.rust +68 -0
  396. package/templates/CLAUDE.md.rust-tauri +120 -0
  397. package/templates/CLAUDE.md.web +63 -0
  398. package/templates/COMPONENT.md.android +58 -0
  399. package/templates/COMPONENT.md.devops +54 -0
  400. package/templates/COMPONENT.md.generic +35 -0
  401. package/templates/COMPONENT.md.go +59 -0
  402. package/templates/COMPONENT.md.harmony +63 -0
  403. package/templates/COMPONENT.md.java +69 -0
  404. package/templates/COMPONENT.md.mobile-flutter +56 -0
  405. package/templates/COMPONENT.md.mobile-react-native +55 -0
  406. package/templates/COMPONENT.md.mobile-swift +56 -0
  407. package/templates/COMPONENT.md.python +67 -0
  408. package/templates/COMPONENT.md.rust +57 -0
  409. package/templates/COMPONENT.md.rust-tauri +66 -0
  410. package/templates/COMPONENT.md.web +39 -0
  411. package/templates/README.md.android +71 -0
  412. package/templates/README.md.devops +68 -0
  413. package/templates/README.md.generic +39 -0
  414. package/templates/README.md.go +70 -0
  415. package/templates/README.md.harmony +72 -0
  416. package/templates/README.md.java +73 -0
  417. package/templates/README.md.mobile-flutter +69 -0
  418. package/templates/README.md.mobile-react-native +65 -0
  419. package/templates/README.md.mobile-swift +69 -0
  420. package/templates/README.md.monorepo +59 -0
  421. package/templates/README.md.python +66 -0
  422. package/templates/README.md.rust +69 -0
  423. package/templates/README.md.rust-tauri +149 -0
  424. package/templates/README.md.web +94 -0
  425. package/templates/UI_STYLE.md.android +74 -0
  426. package/templates/UI_STYLE.md.devops +50 -0
  427. package/templates/UI_STYLE.md.generic +31 -0
  428. package/templates/UI_STYLE.md.go +49 -0
  429. package/templates/UI_STYLE.md.harmony +71 -0
  430. package/templates/UI_STYLE.md.java +61 -0
  431. package/templates/UI_STYLE.md.mobile-flutter +70 -0
  432. package/templates/UI_STYLE.md.mobile-react-native +71 -0
  433. package/templates/UI_STYLE.md.mobile-swift +71 -0
  434. package/templates/UI_STYLE.md.python +58 -0
  435. package/templates/UI_STYLE.md.rust +52 -0
  436. package/templates/UI_STYLE.md.rust-tauri +102 -0
  437. package/templates/UI_STYLE.md.web +92 -0
  438. package/templates/cursor-rules.android.mdc +33 -0
  439. package/templates/cursor-rules.devops.mdc +32 -0
  440. package/templates/cursor-rules.generic.mdc +25 -0
  441. package/templates/cursor-rules.go.mdc +34 -0
  442. package/templates/cursor-rules.harmony.mdc +30 -0
  443. package/templates/cursor-rules.java.mdc +30 -0
  444. package/templates/cursor-rules.mobile-flutter.mdc +42 -0
  445. package/templates/cursor-rules.mobile-react-native.mdc +43 -0
  446. package/templates/cursor-rules.mobile-swift.mdc +42 -0
  447. package/templates/cursor-rules.python.mdc +33 -0
  448. package/templates/cursor-rules.rust-tauri.mdc +67 -0
  449. package/templates/cursor-rules.rust.mdc +30 -0
  450. package/templates/cursor-rules.web.mdc +30 -0
  451. package/templates/kiro-steering.android.md +39 -0
  452. package/templates/kiro-steering.devops.md +32 -0
  453. package/templates/kiro-steering.generic.md +28 -0
  454. package/templates/kiro-steering.go.md +41 -0
  455. package/templates/kiro-steering.harmony.md +36 -0
  456. package/templates/kiro-steering.java.md +37 -0
  457. package/templates/kiro-steering.mobile-flutter.md +73 -0
  458. package/templates/kiro-steering.mobile-react-native.md +71 -0
  459. package/templates/kiro-steering.mobile-swift.md +62 -0
  460. package/templates/kiro-steering.python.md +34 -0
  461. package/templates/kiro-steering.rust-tauri.md +50 -0
  462. package/templates/kiro-steering.rust.md +36 -0
  463. package/templates/kiro-steering.web.md +41 -0
@@ -0,0 +1,406 @@
1
+ # LangGraph 1.0+ Architecture Structure Rules
2
+
3
+ **Standard Version**: LangGraph 1.0+
4
+ **Purpose**: Quick reference for ai-project-architecture skill
5
+
6
+ ---
7
+
8
+ ## Three-Tier Classification System
9
+
10
+ Components are classified into three requirement tiers:
11
+
12
+ ### Tier 1: Mandatory Required (强制必需)
13
+
14
+ Must exist in ALL AI projects.
15
+ - **Severity if missing**: CRITICAL
16
+ - **Enforcement**: Strict - blocks development if missing
17
+
18
+ ### Tier 2: Conditionally Required (条件必需)
19
+
20
+ Required IF specific conditions are met.
21
+ - **Severity if missing**: HIGH (when condition applies)
22
+ - **Enforcement**: Context-aware - checked only when condition is met
23
+
24
+ ### Tier 3: Fully Optional (完全可选)
25
+
26
+ Recommended but not required.
27
+ - **Severity if missing**: LOW (informational only)
28
+ - **Enforcement**: Informational - for guidance only
29
+
30
+ ---
31
+
32
+ ## Top-Level Directory Structure
33
+
34
+ ### Tier 1: Mandatory Required
35
+
36
+ Must exist in ALL AI projects:
37
+
38
+ - **`agents/`** - Agent modules (REQUIRED in all projects)
39
+ - **`apps/`** - Application layer (REQUIRED in all projects)
40
+ - **`core/`** - Core infrastructure (REQUIRED in all projects)
41
+ - **`configs/`** - Configuration management (REQUIRED in all projects)
42
+
43
+ ### Tier 2: Conditionally Required
44
+
45
+ Required only IF specific conditions are met:
46
+
47
+ - **`models/`** - Shared ORM models (REQUIRED only if shared across modules)
48
+ - **Condition**: Project has multiple agents that share database models
49
+ - **Detection**: Check if `models/` contains `model.py` with shared table definitions
50
+
51
+ ### Tier 3: Optional (Recommended)
52
+
53
+ Not required but recommended:
54
+
55
+ - **`tests/`** - Test directory (unit, integration, fixtures)
56
+ - **`bin/`** - Scripts directory
57
+ - **`docs/`** - Documentation
58
+ - **`logs/`** - Log files (data, not code)
59
+ - **`temp/`** - Temporary files
60
+
61
+ ---
62
+
63
+ ## Agent Structure
64
+
65
+ ### Tier 1: Mandatory Components (Every Agent Must Have)
66
+
67
+ Each agent in `agents/{agent_name}/` MUST contain:
68
+
69
+ 1. **`nodes/`** - LangGraph nodes (execution units) - **TIER 1 MANDATORY**
70
+ - Each node is a function
71
+ - Receives state object, returns state update
72
+ - Implements single responsibility
73
+
74
+ 2. **`services/`** - Business services - **TIER 1 MANDATORY**
75
+ - Non-LangGraph business logic
76
+ - Data extraction, task management, file operations
77
+ - Can be called by nodes or used independently
78
+
79
+ 3. **`models/`** - Data models - **TIER 1 MANDATORY (api.py)**
80
+ - `api.py`: Pydantic models for API request/response (REQUIRED - Tier 1)
81
+ - `state.py`: LangGraph state definition (optional - Tier 2)
82
+ - `orm.py`: ORM models (optional - Tier 2)
83
+
84
+ 4. **`tools/`** - LangChain tools - **TIER 1 MANDATORY**
85
+ - Functions callable by LLM
86
+ - Use `@tool` decorator
87
+ - Invoked by nodes through LLM
88
+
89
+ ### Tier 2: Conditionally Required Components
90
+
91
+ Required IF specific conditions are met:
92
+
93
+ - **`graph.py`** - LangGraph graph structure - **TIER 2 CONDITIONAL**
94
+ - **Condition**: Agent uses LangGraph (most agents will)
95
+ - **Detection**: Agent imports `StateGraph` or uses `from langgraph`
96
+ - **Required when**: Agent defines graph structure with nodes and edges
97
+
98
+ - **`checkpoint.py`** - State persistence - **TIER 2 CONDITIONAL**
99
+ - **Condition**: Agent uses state persistence
100
+ - **Detection**: Agent uses `checkpoint` or `checkpointer`
101
+ - **Required when**: Agent needs to save/restore state (memory, Redis, DB)
102
+
103
+ - **`views.py`** - FastAPI Router - **TIER 2 CONDITIONAL**
104
+ - **Condition**: Agent exposes HTTP API endpoints
105
+ - **Detection**: Agent uses `@router` or `APIRouter`
106
+ - **Required when**: Agent provides HTTP API interface
107
+
108
+ - **`models/orm.py`** - ORM models - **TIER 2 CONDITIONAL**
109
+ - **Condition**: Agent has independent database tables
110
+ - **Detection**: Agent defines SQLAlchemy models
111
+ - **Required when**: Agent has database tables not shared with other agents
112
+
113
+ - **`models/state.py`** - LangGraph state - **TIER 2 CONDITIONAL**
114
+ - **Condition**: Agent uses custom LangGraph state (not default TypedDict)
115
+ - **Detection**: Agent defines custom state class
116
+ - **Required when**: Agent uses complex state with reducers
117
+
118
+ ### Tier 3: Optional Components
119
+
120
+ Recommended but not required:
121
+
122
+ - **`constants.py`** - Agent-specific constants - **TIER 3 OPTIONAL**
123
+ - Only needed if agent has constants
124
+ - Not required for compliance
125
+
126
+ ---
127
+
128
+ ## Application Layer Structure (`apps/`)
129
+
130
+ ### Required Subdirectories
131
+
132
+ - **`llms/`** - LLM management
133
+ - `models.py` - LLM model definitions
134
+ - `service.py` - LLM service
135
+ - `crud.py` - CRUD operations
136
+ - `register.py` - Model registration
137
+ - `extension.py` - Extension functionality
138
+
139
+ - **`utils/`** - Utility functions
140
+ - `streaml.py` - Stream processing
141
+ - `custom_functions.py` - Custom functions
142
+ - `embedding_service.py` - Embedding service
143
+ - `reranker_service.py` - Reranker service
144
+ - `milvus_cli.py` - Milvus client
145
+ - `httpclient.py` - HTTP client
146
+ - `step_decorator.py` - Step decorator
147
+ - `common_utils.py` - Common utilities
148
+
149
+ - **`logs/`** - Log management APIs
150
+ - `views.py` - Log query and management interfaces
151
+
152
+ ---
153
+
154
+ ## Core Infrastructure Structure (`core/`)
155
+
156
+ ### Core Files
157
+
158
+ - `constants.py` - Constants definition
159
+ - `exception.py` - Exception definitions
160
+ - `response.py` - Response format
161
+ - `deps.py` - Dependency injection
162
+ - `encrypt.py` - Encryption tools
163
+ - `lifespan.py` - Lifecycle management
164
+ - `scheduler.py` - Task scheduler
165
+
166
+ ### Core Subdirectories
167
+
168
+ - **`logging/`** - Logging system
169
+ - `redis_handler.py` - Redis log handler
170
+ - `redis_log_viewer.py` - Log viewer
171
+
172
+ - **`middleware/`** - HTTP middleware (FastAPI)
173
+ - `setup.py` - Middleware setup
174
+ - `request_context.py` - Request context middleware
175
+ - `context_plugins.py` - Context plugins
176
+
177
+ ---
178
+
179
+ ## Configuration Structure (`configs/`)
180
+
181
+ ### Configuration Files
182
+
183
+ - `app_config.py` - Main application configuration
184
+
185
+ ### Base Configuration (`configs/base/`)
186
+
187
+ - `logger.py` - Logger configuration
188
+ - `security.py` - Security configuration
189
+
190
+ ### Deployment Configuration (`configs/deploy/`)
191
+
192
+ - `build.py` - Build configuration (Python class)
193
+ - `runtime.py` - Runtime configuration (Python class)
194
+ - `Dockerfile` - Docker build file
195
+ - `docker-compose.yml` - Docker Compose configuration
196
+ - `.dockerignore` - Docker ignore file
197
+
198
+ ### Integration Configuration (`configs/integrations/`)
199
+
200
+ - `database.py` - Database configuration
201
+ - `redis.py` - Redis configuration
202
+ - `elasticsearch.py` - ES configuration
203
+ - `llm.py` - LLM configuration
204
+ - `embedding.py` - Embedding configuration
205
+ - `reranker.py` - Reranker configuration
206
+ - `libreoffice.py` - LibreOffice configuration
207
+
208
+ **Storage Configuration (`configs/integrations/storage/`)**:
209
+
210
+ - `local.py` - Local storage
211
+ - `minio.py` - MinIO configuration
212
+ - `aliyun_oss.py` - Aliyun OSS configuration
213
+
214
+ **Vector DB Configuration (`configs/integrations/vdb/`)**:
215
+
216
+ - `milvus.py` - Milvus configuration
217
+
218
+ ### Feature Configuration (`configs/feature/`)
219
+
220
+ - `auth/` - Authentication configuration
221
+ - `jwt.py` - JWT configuration
222
+ - `apikey.py` - API Key configuration
223
+ - `oidc.py` - OIDC configuration
224
+
225
+ ### Extra Configuration (`configs/extra/`)
226
+
227
+ - `email.py` - Email configuration
228
+ - `java.py` - Java configuration
229
+ - `tavily.py` - Tavily configuration
230
+
231
+ ---
232
+
233
+ ## Models Structure (`models/`)
234
+
235
+ **Use Cases**: Only for ORM models shared across multiple agents/modules
236
+
237
+ ### Files
238
+
239
+ - `base.py` - ORM base class
240
+ - `conn.py` - Database connection
241
+ - `fields.py` - Custom fields
242
+ - `model.py` - Shared database table models
243
+
244
+ **Note**: If ORM models are specific to a single agent, place them in `agents/{agent}/models/orm.py`
245
+
246
+ ---
247
+
248
+ ## Naming Conventions
249
+
250
+ ### File/Directory Naming
251
+
252
+ - **Lowercase**: All names must be lowercase
253
+ - **Kebab-case**: Use hyphens, not underscores (e.g., `my-agent/`, not `my_agent/`)
254
+ - **No spaces**: No space characters in names
255
+ - **No Chinese characters**: Use English only in filenames
256
+ - **Descriptive**: Use domain-specific names, not generic names
257
+
258
+ ### Naming Anti-Patterns
259
+
260
+ **AVOID**:
261
+ - `utils/`, `helpers/`, `common/`, `shared/` (generic)
262
+ - `misc.py`, `other.py` (unclear purpose)
263
+
264
+ **USE**:
265
+ - Domain-specific names: `OrderCalculator/`, `UserAuthenticator/`, `InvoiceGenerator/`
266
+ - Bounded context naming patterns
267
+
268
+ ---
269
+
270
+ ## Architecture Principles
271
+
272
+ ### 1. Agent Design Principles
273
+
274
+ - **Independence**: Each agent is an independent module
275
+ - **Unified Structure**: All agents follow the same four-directory structure
276
+ - **Responsibility Separation**: nodes, services, models, tools clearly separated
277
+ - **Scalability**: Optional components support different needs
278
+
279
+ ### 2. State Design Principles (LangGraph)
280
+
281
+ - **Minimize State**: Store only necessary persistent data
282
+ - **Type Safety**: Use Pydantic models, not TypedDict
283
+ - **Avoid Transient Values**: Don't store temporary calculations in state
284
+ - **Use Reducers**: For collections, use reducer functions
285
+
286
+ ### 3. Node Design Principles
287
+
288
+ - **Single Responsibility**: Each node does one thing
289
+ - **Error Handling**: All nodes include error handling
290
+ - **Logging**: Record key operations and state changes
291
+ - **Idempotency**: Nodes should be idempotent (repeatable)
292
+
293
+ ### 4. Configuration Principles
294
+
295
+ - **Environment Variables**: Use env vars to override defaults
296
+ - **Type Validation**: Use Pydantic Settings for validation
297
+ - **Layered Organization**: Organize by functional modules
298
+ - **Deployment Separation**: Docker files in `configs/deploy/`
299
+
300
+ ---
301
+
302
+ ## Separation of Concerns
303
+
304
+ ### Agent Layer (`agents/`)
305
+
306
+ - Purpose: Intelligent agent modules
307
+ - Contains: LangGraph nodes, business services, data models, tools
308
+ - Independent: Each agent is a complete business unit
309
+
310
+ ### Application Layer (`apps/`)
311
+
312
+ - Purpose: Application-level services
313
+ - Contains: LLM management, utilities, log APIs
314
+ - Shared: Used by multiple agents
315
+
316
+ ### Core Layer (`core/`)
317
+
318
+ - Purpose: Infrastructure and cross-cutting concerns
319
+ - Contains: Exceptions, middleware, logging, scheduling
320
+ - Foundation: Used by entire application
321
+
322
+ ### Configuration Layer (`configs/`)
323
+
324
+ - Purpose: Configuration management
325
+ - Contains: All configuration files
326
+ - Centralized: Single source of configuration truth
327
+
328
+ ---
329
+
330
+ ## Special Considerations
331
+
332
+ ### Middleware vs Configuration
333
+
334
+ - **`core/middleware/`**: True HTTP middleware (FastAPI middleware)
335
+ - **`configs/integrations/`**: Third-party service configuration classes (not middleware)
336
+
337
+ ### Logs Directory Distinction
338
+
339
+ - **`apps/logs/`**: Log management code (API interfaces)
340
+ - **`logs/`** (root): Log file directory (data storage)
341
+
342
+ ### Model Placement
343
+
344
+ - **Shared ORM models**: `models/` (root)
345
+ - **Agent-specific models**: `agents/{agent}/models/`
346
+ - `api.py`: API models (always required)
347
+ - `state.py`: State models (optional)
348
+ - `orm.py`: ORM models (optional, only if agent has independent tables)
349
+
350
+ ---
351
+
352
+ ## Quality Standards
353
+
354
+ ### Code Quality
355
+
356
+ - Proper error handling
357
+ - Type hints (Python 3.6+)
358
+ - Docstrings for public APIs
359
+ - Logging for key operations
360
+
361
+ ### Testing
362
+
363
+ - **Unit Tests**: Test nodes, tools, services in isolation
364
+ - **Integration Tests**: Test complete agent flows
365
+ - **End-to-End Tests**: Test user scenarios
366
+ - **Performance Tests**: Test large-scale concurrency
367
+
368
+ ### Documentation
369
+
370
+ - Architecture documentation
371
+ - API documentation
372
+ - Deployment documentation
373
+ - Developer guides
374
+
375
+ ---
376
+
377
+ ## Deployment Best Practices
378
+
379
+ ### Docker Deployment
380
+
381
+ - Docker files in `configs/deploy/`
382
+ - Use environment variables for configuration
383
+ - Multi-stage builds for optimization
384
+ - Health checks for containers
385
+
386
+ ### Horizontal Scaling
387
+
388
+ - Stateless design
389
+ - External state storage (Redis)
390
+ - Load balancing
391
+
392
+ ### Monitoring
393
+
394
+ - Structured logging
395
+ - Key metrics (node execution time, error rate)
396
+ - Distributed tracing (OpenTelemetry)
397
+
398
+ ### Fault Tolerance
399
+
400
+ - Checkpoint auto-recovery
401
+ - Retry mechanisms
402
+ - Graceful degradation
403
+
404
+ ---
405
+
406
+ **Reference**: See PROJECT_STRUCTURE.md for complete architecture documentation and examples.
@@ -0,0 +1,300 @@
1
+ # AI Project Architecture Compliance Report
2
+
3
+ **Project**: [Project Name]
4
+ **Date**: [YYYY-MM-DD]
5
+ **Analyzed By**: AI Project Architecture Skill
6
+ **Reference Standard**: PROJECT_STRUCTURE.md (LangGraph 1.0+)
7
+
8
+ ---
9
+
10
+ ## Executive Summary
11
+
12
+ **Overall Compliance Score**: [X]%
13
+
14
+ - **CRITICAL Issues**: [X] (Blocks development)
15
+ - **HIGH Issues**: [X] (Significant deviation)
16
+ - **MEDIUM Issues**: [X] (Moderate concerns)
17
+ - **LOW Issues**: [X] (Cosmetic issues)
18
+
19
+ **Status**: [✓ COMPLIANT | ⚠ NEEDS ATTENTION | ✗ NON-COMPLIANT]
20
+
21
+ ---
22
+
23
+ ## Requirement Tier Classification
24
+
25
+ This report classifies components into three requirement tiers:
26
+
27
+ ### Tier 1: Mandatory Required (强制必需)
28
+
29
+ Must exist in ALL AI projects.
30
+ - **Severity if missing**: CRITICAL (blocks development)
31
+
32
+ **Components**:
33
+ - Top-level: `agents/`, `apps/`, `core/`, `configs/`
34
+ - Per-agent: `nodes/`, `services/`, `models/api.py`, `tools/`
35
+
36
+ ### Tier 2: Conditionally Required (条件必需)
37
+
38
+ Required IF specific conditions are met.
39
+ - **Severity if missing**: HIGH (when condition applies)
40
+
41
+ **Components**:
42
+ - `models/` root (only if shared ORM models across agents)
43
+ - Agent's `models/orm.py` (only if agent has independent DB tables)
44
+ - Agent's `models/state.py` (only if agent uses custom LangGraph state)
45
+ - Agent's `graph.py` (only if agent uses LangGraph)
46
+ - Agent's `checkpoint.py` (only if agent uses state persistence)
47
+ - Agent's `views.py` (only if agent exposes HTTP endpoints)
48
+
49
+ **Condition Detection**:
50
+ - Analysis of code determines if Tier 2 components are required
51
+ - Report documents WHY each Tier 2 component is (or isn't) required
52
+
53
+ ### Tier 3: Fully Optional (完全可选)
54
+
55
+ Recommended but not required for compliance.
56
+ - **Severity if missing**: LOW (informational only)
57
+
58
+ **Components**:
59
+ - `tests/`, `bin/`, `docs/`, `logs/`, `temp/`
60
+ - Agent's `constants.py`
61
+
62
+ ---
63
+
64
+ ## Detailed Findings
65
+
66
+ ### 1. Top-Level Directory Structure
67
+
68
+ #### Tier 1: Mandatory Directories
69
+
70
+ | Directory | Tier | Status | Notes |
71
+ |-----------|------|--------|-------|
72
+ | `agents/` | Tier 1 (Mandatory) | [✓/✗] | [Present/Missing] - Agent modules |
73
+ | `apps/` | Tier 1 (Mandatory) | [✓/✗] | [Present/Missing] - Application layer |
74
+ | `core/` | Tier 1 (Mandatory) | [✓/✗] | [Present/Missing] - Core infrastructure |
75
+ | `configs/` | Tier 1 (Mandatory) | [✓/✗] | [Present/Missing] - Configuration management |
76
+
77
+ **Severity**: CRITICAL if missing
78
+
79
+ #### Tier 2: Conditionally Required Directories
80
+
81
+ | Directory | Tier | Condition | Status | Notes |
82
+ |-----------|------|-----------|--------|-------|
83
+ | `models/` | Tier 2 (Conditional) | Shared ORM models across agents | [✓/✗/N/A] | [Present/Missing/Not Required] |
84
+
85
+ **Severity**: HIGH if missing AND condition applies
86
+
87
+ #### Tier 3: Optional Directories
88
+
89
+ | Directory | Tier | Status | Notes |
90
+ |-----------|------|--------|-------|
91
+ | `tests/` | Tier 3 (Optional) | [✓/✗] | [Present/Missing] - Test directory (recommended) |
92
+ | `bin/` | Tier 3 (Optional) | [✓/✗] | [Present/Missing] - Scripts directory |
93
+ | `docs/` | Tier 3 (Optional) | [✓/✗] | [Present/Missing] - Documentation (recommended) |
94
+
95
+ **Severity**: LOW if missing (informational only)
96
+
97
+ ---
98
+
99
+ ### 2. Agent Structure Analysis
100
+
101
+ #### Agents Found: [X]
102
+
103
+ ##### Agent: [agent_name]
104
+
105
+ **Location**: `agents/[agent_name]/`
106
+
107
+ **Condition Analysis**:
108
+ - Uses LangGraph: [Yes/No] → `graph.py` [Required/Not Required]
109
+ - Uses state persistence: [Yes/No] → `checkpoint.py` [Required/Not Required]
110
+ - Exposes HTTP endpoints: [Yes/No] → `views.py` [Required/Not Required]
111
+ - Has independent DB tables: [Yes/No] → `models/orm.py` [Required/Not Required]
112
+ - Uses custom LangGraph state: [Yes/No] → `models/state.py` [Required/Not Required]
113
+
114
+ #### Tier 1: Mandatory Components
115
+
116
+ | Component | Tier | Status | Notes |
117
+ |-----------|------|--------|-------|
118
+ | `nodes/` | Tier 1 (Mandatory) | [✓/✗] | LangGraph nodes [Present/Missing] |
119
+ | `services/` | Tier 1 (Mandatory) | [✓/✗] | Business services [Present/Missing] |
120
+ | `models/api.py` | Tier 1 (Mandatory) | [✓/✗] | Pydantic API models [Present/Missing] |
121
+ | `tools/` | Tier 1 (Mandatory) | [✓/✗] | LangChain tools [Present/Missing] |
122
+
123
+ **Severity**: CRITICAL if missing
124
+
125
+ #### Tier 2: Conditionally Required Components
126
+
127
+ | Component | Tier | Condition | Required? | Status | Notes |
128
+ |-----------|------|-----------|-----------|--------|-------|
129
+ | `graph.py` | Tier 2 (Conditional) | Uses LangGraph | [Yes/No] | [✓/✗/N/A] | [Present/Missing/Not Required] |
130
+ | `checkpoint.py` | Tier 2 (Conditional) | Uses state persistence | [Yes/No] | [✓/✗/N/A] | [Present/Missing/Not Required] |
131
+ | `views.py` | Tier 2 (Conditional) | Exposes HTTP endpoints | [Yes/No] | [✓/✗/N/A] | [Present/Missing/Not Required] |
132
+ | `models/orm.py` | Tier 2 (Conditional) | Has independent DB tables | [Yes/No] | [✓/✗/N/A] | [Present/Missing/Not Required] |
133
+ | `models/state.py` | Tier 2 (Conditional) | Uses custom LangGraph state | [Yes/No] | [✓/✗/N/A] | [Present/Missing/Not Required] |
134
+
135
+ **Severity**: HIGH if missing AND condition applies
136
+
137
+ #### Tier 3: Optional Components
138
+
139
+ | Component | Tier | Status | Notes |
140
+ |-----------|------|--------|-------|
141
+ | `constants.py` | Tier 3 (Optional) | [✓/✗] | Constants [Present/Missing] |
142
+
143
+ **Severity**: LOW if missing (informational only)
144
+
145
+ **Issues**:
146
+ - [List any structural issues]
147
+
148
+ **Overall Severity**: [CRITICAL if Tier 1 missing, HIGH if Tier 2 missing when required, LOW for Tier 3]
149
+
150
+ ---
151
+
152
+ ### 3. Configuration Structure
153
+
154
+ #### Required Configuration Files
155
+
156
+ | File/Directory | Status | Notes |
157
+ |----------------|--------|-------|
158
+ | `configs/app_config.py` | [✓/✗] | Main application config |
159
+ | `configs/base/logger.py` | [✓/✗] | Logger configuration |
160
+ | `configs/base/security.py` | [✓/✗] | Security configuration |
161
+ | `configs/deploy/` | [✓/✗] | Deployment configuration directory |
162
+ | `configs/deploy/build.py` | [✓/✗] | Build configuration |
163
+ | `configs/deploy/runtime.py` | [✓/✗] | Runtime configuration |
164
+ | `configs/deploy/Dockerfile` | [✓/✗] | Docker file |
165
+ | `configs/deploy/docker-compose.yml` | [✓/✗] | Docker Compose |
166
+ | `configs/integrations/` | [✓/✗] | Third-party service configs |
167
+
168
+ **Severity**: [MEDIUM if core configs missing, LOW if deployment configs missing]
169
+
170
+ ---
171
+
172
+ ### 4. Naming Conventions
173
+
174
+ #### Directory/File Naming
175
+
176
+ | Pattern | Status | Examples |
177
+ |---------|--------|----------|
178
+ | Lowercase | [✓/✗] | All names in lowercase |
179
+ | Kebab-case | [✓/✗] | Using hyphens, not underscores |
180
+ | No spaces | [✓/✗] | No space characters |
181
+ | No Chinese characters | [✓/✗] | English only in filenames |
182
+
183
+ **Issues**:
184
+ - [List any naming violations]
185
+
186
+ **Severity**: [MEDIUM]
187
+
188
+ ---
189
+
190
+ ### 5. Separation of Concerns
191
+
192
+ #### Architectural Layering
193
+
194
+ | Layer | Status | Notes |
195
+ |-------|--------|-------|
196
+ | Agent layer (agents/) | [✓/✗] | Agent modules properly isolated |
197
+ | Application layer (apps/) | [✓/✗] | App services correctly placed |
198
+ | Core layer (core/) | [✓/✗] | Infrastructure separated |
199
+ | Configuration (configs/) | [✓/✗] | Configs isolated from code |
200
+
201
+ **Mixed Concerns Detected**:
202
+ - [List any business logic in wrong layer]
203
+ - [List any infrastructure concerns in business logic]
204
+
205
+ **Severity**: [HIGH]
206
+
207
+ ---
208
+
209
+ ### 6. Import Structure
210
+
211
+ #### Import Patterns
212
+
213
+ | Pattern | Status | Notes |
214
+ |---------|--------|-------|
215
+ | Absolute imports | [✓/✗] | Using absolute imports from project root |
216
+ | Relative imports | [✓/✗] | Relative imports for same-package references |
217
+ | No circular dependencies | [✓/✗] | Import graph is acyclic |
218
+
219
+ **Issues**:
220
+ - [List any import issues]
221
+
222
+ **Severity**: [MEDIUM if circular deps, LOW otherwise]
223
+
224
+ ---
225
+
226
+ ## Recommendations
227
+
228
+ ### Priority 1: CRITICAL (Must Fix)
229
+
230
+ 1. **[Issue description]**
231
+ - **Current State**: [Description]
232
+ - **Required State**: [Description]
233
+ - **Impact**: [Blocks development / causes failures]
234
+ - **Fix**: [Specific fix instructions]
235
+
236
+ ### Priority 2: HIGH (Should Fix)
237
+
238
+ 1. **[Issue description]**
239
+ - **Current State**: [Description]
240
+ - **Required State**: [Description]
241
+ - **Impact**: [Significant deviation from standard]
242
+ - **Fix**: [Specific fix instructions]
243
+
244
+ ### Priority 3: MEDIUM (Consider Fixing)
245
+
246
+ 1. **[Issue description]**
247
+ - **Current State**: [Description]
248
+ - **Required State**: [Description]
249
+ - **Impact**: [Moderate concern]
250
+ - **Fix**: [Specific fix instructions]
251
+
252
+ ### Priority 4: LOW (Nice to Have)
253
+
254
+ 1. **[Issue description]**
255
+ - **Current State**: [Description]
256
+ - **Required State**: [Description]
257
+ - **Impact**: [Cosmetic issue]
258
+ - **Fix**: [Specific fix instructions]
259
+
260
+ ---
261
+
262
+ ## Migration Suggestion
263
+
264
+ Based on compliance analysis, recommended approach:
265
+
266
+ - **Option A**: Full refactoring to standard structure [Recommended if score < 60%]
267
+ - **Option B**: Partial refactoring addressing CRITICAL and HIGH issues [Recommended if score 60-80%]
268
+ - **Option C**: Minor adjustments for MEDIUM and LOW issues [Recommended if score > 80%]
269
+
270
+ **Estimated Effort**: [Low / Medium / High]
271
+
272
+ **Next Steps**:
273
+ 1. Review recommendations
274
+ 2. Decide on migration approach
275
+ 3. Use ai-project-architecture skill Phase 2 to create detailed migration plan
276
+
277
+ ---
278
+
279
+ ## Appendix: Current Structure Tree
280
+
281
+ ```
282
+ [Insert directory tree output here]
283
+ ```
284
+
285
+ ---
286
+
287
+ ## Report Metadata
288
+
289
+ **Generated**: [YYYY-MM-DD HH:MM:SS]
290
+ **Standard Version**: LangGraph 1.0+
291
+ **Analyzer**: ai-project-architecture skill v1.0.0
292
+ **Project Root**: [Path to project]
293
+
294
+ ---
295
+
296
+ **Notes**:
297
+ - This report is based on the architecture defined in PROJECT_STRUCTURE.md
298
+ - All CRITICAL issues must be addressed before proceeding with development
299
+ - HIGH issues should be addressed to ensure long-term maintainability
300
+ - MEDIUM and LOW issues can be addressed incrementally