@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.
- package/LICENSE +21 -0
- package/README.md +235 -0
- package/VERSION +1 -0
- package/agents/code-reviewer.md +29 -0
- package/bin/atool.js +235 -0
- package/bin/postinstall.js +23 -0
- package/hooks/doc-sync-reminder +155 -0
- package/hooks/hooks-cursor.json +37 -0
- package/hooks/hooks.json +37 -0
- package/hooks/prompt-guard +135 -0
- package/hooks/session-start +286 -0
- package/install.sh +603 -0
- package/lib/analyze-source.sh +1265 -0
- package/lib/common.sh +1041 -0
- package/lib/compute-importance.sh +598 -0
- package/lib/detect-stack.sh +354 -0
- package/lib/generate-visualization.sh +266 -0
- package/lib/install-claude.sh +43 -0
- package/lib/install-cursor.sh +281 -0
- package/lib/install-hooks.sh +285 -0
- package/lib/install-kiro.sh +543 -0
- package/lib/install-mcp.sh +99 -0
- package/lib/install-skills.sh +129 -0
- package/lib/knowledge-graph.sh +1014 -0
- package/lib/multi-dimensional-analysis.sh +413 -0
- package/lib/pre-scan.sh +1045 -0
- package/lib/project-init.sh +552 -0
- package/lib/visualization-template.html +545 -0
- package/mcp/recommended.json +24 -0
- package/package.json +39 -0
- package/skills/_superpowers/.claude-plugin/marketplace.json +20 -0
- package/skills/_superpowers/.claude-plugin/plugin.json +20 -0
- package/skills/_superpowers/.codex/INSTALL.md +67 -0
- package/skills/_superpowers/.cursor-plugin/plugin.json +25 -0
- package/skills/_superpowers/.gitattributes +18 -0
- package/skills/_superpowers/.github/FUNDING.yml +3 -0
- package/skills/_superpowers/.github/ISSUE_TEMPLATE/bug_report.md +52 -0
- package/skills/_superpowers/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/skills/_superpowers/.github/ISSUE_TEMPLATE/feature_request.md +34 -0
- package/skills/_superpowers/.github/ISSUE_TEMPLATE/platform_support.md +23 -0
- package/skills/_superpowers/.github/PULL_REQUEST_TEMPLATE.md +87 -0
- package/skills/_superpowers/.opencode/INSTALL.md +83 -0
- package/skills/_superpowers/.opencode/plugins/superpowers.js +107 -0
- package/skills/_superpowers/CHANGELOG.md +13 -0
- package/skills/_superpowers/CODE_OF_CONDUCT.md +128 -0
- package/skills/_superpowers/GEMINI.md +2 -0
- package/skills/_superpowers/LICENSE +21 -0
- package/skills/_superpowers/README.md +187 -0
- package/skills/_superpowers/RELEASE-NOTES.md +1083 -0
- package/skills/_superpowers/agents/code-reviewer.md +48 -0
- package/skills/_superpowers/commands/brainstorm.md +5 -0
- package/skills/_superpowers/commands/execute-plan.md +5 -0
- package/skills/_superpowers/commands/write-plan.md +5 -0
- package/skills/_superpowers/docs/README.codex.md +126 -0
- package/skills/_superpowers/docs/README.opencode.md +130 -0
- package/skills/_superpowers/docs/plans/2025-11-22-opencode-support-design.md +294 -0
- package/skills/_superpowers/docs/plans/2025-11-22-opencode-support-implementation.md +1095 -0
- package/skills/_superpowers/docs/plans/2025-11-28-skills-improvements-from-user-feedback.md +711 -0
- package/skills/_superpowers/docs/plans/2026-01-17-visual-brainstorming.md +571 -0
- package/skills/_superpowers/docs/superpowers/plans/2026-01-22-document-review-system.md +301 -0
- package/skills/_superpowers/docs/superpowers/plans/2026-02-19-visual-brainstorming-refactor.md +523 -0
- package/skills/_superpowers/docs/superpowers/plans/2026-03-11-zero-dep-brainstorm-server.md +479 -0
- package/skills/_superpowers/docs/superpowers/plans/2026-03-23-codex-app-compatibility.md +564 -0
- package/skills/_superpowers/docs/superpowers/specs/2026-01-22-document-review-system-design.md +136 -0
- package/skills/_superpowers/docs/superpowers/specs/2026-02-19-visual-brainstorming-refactor-design.md +162 -0
- package/skills/_superpowers/docs/superpowers/specs/2026-03-11-zero-dep-brainstorm-server-design.md +118 -0
- package/skills/_superpowers/docs/superpowers/specs/2026-03-23-codex-app-compatibility-design.md +244 -0
- package/skills/_superpowers/docs/testing.md +303 -0
- package/skills/_superpowers/docs/windows/polyglot-hooks.md +212 -0
- package/skills/_superpowers/gemini-extension.json +6 -0
- package/skills/_superpowers/hooks/hooks-cursor.json +10 -0
- package/skills/_superpowers/hooks/hooks.json +16 -0
- package/skills/_superpowers/hooks/run-hook.cmd +46 -0
- package/skills/_superpowers/hooks/session-start +57 -0
- package/skills/_superpowers/package.json +6 -0
- package/skills/_superpowers/skills/brainstorming/SKILL.md +164 -0
- package/skills/_superpowers/skills/brainstorming/scripts/frame-template.html +214 -0
- package/skills/_superpowers/skills/brainstorming/scripts/helper.js +88 -0
- package/skills/_superpowers/skills/brainstorming/scripts/server.cjs +354 -0
- package/skills/_superpowers/skills/brainstorming/scripts/start-server.sh +148 -0
- package/skills/_superpowers/skills/brainstorming/scripts/stop-server.sh +56 -0
- package/skills/_superpowers/skills/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/skills/_superpowers/skills/brainstorming/visual-companion.md +287 -0
- package/skills/_superpowers/skills/dispatching-parallel-agents/SKILL.md +182 -0
- package/skills/_superpowers/skills/executing-plans/SKILL.md +70 -0
- package/skills/_superpowers/skills/finishing-a-development-branch/SKILL.md +200 -0
- package/skills/_superpowers/skills/receiving-code-review/SKILL.md +213 -0
- package/skills/_superpowers/skills/requesting-code-review/SKILL.md +105 -0
- package/skills/_superpowers/skills/requesting-code-review/code-reviewer.md +146 -0
- package/skills/_superpowers/skills/subagent-driven-development/SKILL.md +277 -0
- package/skills/_superpowers/skills/subagent-driven-development/code-quality-reviewer-prompt.md +26 -0
- package/skills/_superpowers/skills/subagent-driven-development/implementer-prompt.md +113 -0
- package/skills/_superpowers/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/skills/_superpowers/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/skills/_superpowers/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/_superpowers/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/skills/_superpowers/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/skills/_superpowers/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/skills/_superpowers/skills/systematic-debugging/find-polluter.sh +63 -0
- package/skills/_superpowers/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/skills/_superpowers/skills/systematic-debugging/test-academic.md +14 -0
- package/skills/_superpowers/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/skills/_superpowers/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/skills/_superpowers/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/skills/_superpowers/skills/test-driven-development/SKILL.md +371 -0
- package/skills/_superpowers/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/_superpowers/skills/using-git-worktrees/SKILL.md +218 -0
- package/skills/_superpowers/skills/using-superpowers/SKILL.md +115 -0
- package/skills/_superpowers/skills/using-superpowers/references/codex-tools.md +100 -0
- package/skills/_superpowers/skills/using-superpowers/references/gemini-tools.md +33 -0
- package/skills/_superpowers/skills/verification-before-completion/SKILL.md +139 -0
- package/skills/_superpowers/skills/writing-plans/SKILL.md +152 -0
- package/skills/_superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +49 -0
- package/skills/_superpowers/skills/writing-skills/SKILL.md +655 -0
- package/skills/_superpowers/skills/writing-skills/anthropic-best-practices.md +1150 -0
- package/skills/_superpowers/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/skills/_superpowers/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/skills/_superpowers/skills/writing-skills/persuasion-principles.md +187 -0
- package/skills/_superpowers/skills/writing-skills/render-graphs.js +168 -0
- package/skills/_superpowers/skills/writing-skills/testing-skills-with-subagents.md +384 -0
- package/skills/_superpowers/tests/brainstorm-server/package-lock.json +36 -0
- package/skills/_superpowers/tests/brainstorm-server/package.json +10 -0
- package/skills/_superpowers/tests/brainstorm-server/server.test.js +427 -0
- package/skills/_superpowers/tests/brainstorm-server/windows-lifecycle.test.sh +351 -0
- package/skills/_superpowers/tests/brainstorm-server/ws-protocol.test.js +392 -0
- package/skills/_superpowers/tests/claude-code/README.md +158 -0
- package/skills/_superpowers/tests/claude-code/analyze-token-usage.py +168 -0
- package/skills/_superpowers/tests/claude-code/run-skill-tests.sh +187 -0
- package/skills/_superpowers/tests/claude-code/test-document-review-system.sh +177 -0
- package/skills/_superpowers/tests/claude-code/test-helpers.sh +202 -0
- package/skills/_superpowers/tests/claude-code/test-subagent-driven-development-integration.sh +314 -0
- package/skills/_superpowers/tests/claude-code/test-subagent-driven-development.sh +165 -0
- package/skills/_superpowers/tests/explicit-skill-requests/prompts/action-oriented.txt +3 -0
- package/skills/_superpowers/tests/explicit-skill-requests/prompts/after-planning-flow.txt +17 -0
- package/skills/_superpowers/tests/explicit-skill-requests/prompts/claude-suggested-it.txt +11 -0
- package/skills/_superpowers/tests/explicit-skill-requests/prompts/i-know-what-sdd-means.txt +8 -0
- package/skills/_superpowers/tests/explicit-skill-requests/prompts/mid-conversation-execute-plan.txt +3 -0
- package/skills/_superpowers/tests/explicit-skill-requests/prompts/please-use-brainstorming.txt +1 -0
- package/skills/_superpowers/tests/explicit-skill-requests/prompts/skip-formalities.txt +3 -0
- package/skills/_superpowers/tests/explicit-skill-requests/prompts/subagent-driven-development-please.txt +1 -0
- package/skills/_superpowers/tests/explicit-skill-requests/prompts/use-systematic-debugging.txt +1 -0
- package/skills/_superpowers/tests/explicit-skill-requests/run-all.sh +70 -0
- package/skills/_superpowers/tests/explicit-skill-requests/run-claude-describes-sdd.sh +100 -0
- package/skills/_superpowers/tests/explicit-skill-requests/run-extended-multiturn-test.sh +113 -0
- package/skills/_superpowers/tests/explicit-skill-requests/run-haiku-test.sh +144 -0
- package/skills/_superpowers/tests/explicit-skill-requests/run-multiturn-test.sh +143 -0
- package/skills/_superpowers/tests/explicit-skill-requests/run-test.sh +136 -0
- package/skills/_superpowers/tests/opencode/run-tests.sh +163 -0
- package/skills/_superpowers/tests/opencode/setup.sh +73 -0
- package/skills/_superpowers/tests/opencode/test-plugin-loading.sh +72 -0
- package/skills/_superpowers/tests/opencode/test-priority.sh +198 -0
- package/skills/_superpowers/tests/opencode/test-tools.sh +104 -0
- package/skills/_superpowers/tests/skill-triggering/prompts/dispatching-parallel-agents.txt +8 -0
- package/skills/_superpowers/tests/skill-triggering/prompts/executing-plans.txt +1 -0
- package/skills/_superpowers/tests/skill-triggering/prompts/requesting-code-review.txt +3 -0
- package/skills/_superpowers/tests/skill-triggering/prompts/systematic-debugging.txt +11 -0
- package/skills/_superpowers/tests/skill-triggering/prompts/test-driven-development.txt +7 -0
- package/skills/_superpowers/tests/skill-triggering/prompts/writing-plans.txt +10 -0
- package/skills/_superpowers/tests/skill-triggering/run-all.sh +60 -0
- package/skills/_superpowers/tests/skill-triggering/run-test.sh +88 -0
- package/skills/_superpowers/tests/subagent-driven-dev/go-fractals/design.md +81 -0
- package/skills/_superpowers/tests/subagent-driven-dev/go-fractals/plan.md +172 -0
- package/skills/_superpowers/tests/subagent-driven-dev/go-fractals/scaffold.sh +45 -0
- package/skills/_superpowers/tests/subagent-driven-dev/run-test.sh +106 -0
- package/skills/_superpowers/tests/subagent-driven-dev/svelte-todo/design.md +70 -0
- package/skills/_superpowers/tests/subagent-driven-dev/svelte-todo/plan.md +222 -0
- package/skills/_superpowers/tests/subagent-driven-dev/svelte-todo/scaffold.sh +46 -0
- package/skills/ai-project-architecture/SKILL.md +632 -0
- package/skills/ai-project-architecture/reference/structure-rules.md +406 -0
- package/skills/ai-project-architecture/templates/compliance-report.md +300 -0
- package/skills/ai-project-architecture/templates/migration-plan.md +433 -0
- package/skills/ai-project-architecture/templates/verification-checklist.md +408 -0
- package/skills/android-conventions/SKILL.md +125 -0
- package/skills/atool-init/SKILL.md +141 -0
- package/skills/clarify-before-build/SKILL.md +107 -0
- package/skills/code-review/SKILL.md +406 -0
- package/skills/code-review/rules/architecture.md +285 -0
- package/skills/code-review/rules/coupling-cohesion.md +309 -0
- package/skills/code-review/rules/dead-code.md +115 -0
- package/skills/code-review/rules/deprecation-debt.md +279 -0
- package/skills/code-review/rules/duplication.md +104 -0
- package/skills/code-review/rules/error-security.md +143 -0
- package/skills/code-review/rules/maintainability.md +203 -0
- package/skills/code-review/rules/quality.md +158 -0
- package/skills/devops-conventions/SKILL.md +205 -0
- package/skills/doc-coauthoring/SKILL.md +392 -0
- package/skills/doc-standards-enforcer/SKILL.md +290 -0
- package/skills/doc-standards-enforcer/examples/valid-document-example.md +67 -0
- package/skills/doc-standards-enforcer/references/101-standards-summary.md +318 -0
- package/skills/doc-standards-enforcer/scripts/check_references.py +175 -0
- package/skills/doc-standards-enforcer/scripts/fix_common_issues.py +303 -0
- package/skills/doc-standards-enforcer/scripts/validate_doc_standards.py +332 -0
- package/skills/docx/LICENSE.txt +30 -0
- package/skills/docx/SKILL.md +200 -0
- package/skills/docx/docx-js.md +350 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/docx/ooxml/scripts/pack.py +159 -0
- package/skills/docx/ooxml/scripts/unpack.py +29 -0
- package/skills/docx/ooxml/scripts/validate.py +69 -0
- package/skills/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/docx/ooxml/scripts/validation/base.py +951 -0
- package/skills/docx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/docx/ooxml.md +610 -0
- package/skills/docx/scripts/__init__.py +1 -0
- package/skills/docx/scripts/document.py +1276 -0
- package/skills/docx/scripts/templates/comments.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/skills/docx/scripts/templates/people.xml +3 -0
- package/skills/docx/scripts/utilities.py +374 -0
- package/skills/flutter-conventions/SKILL.md +70 -0
- package/skills/go-conventions/SKILL.md +230 -0
- package/skills/harmony-conventions/SKILL.md +156 -0
- package/skills/java-conventions/SKILL.md +277 -0
- package/skills/pdf/LICENSE.txt +30 -0
- package/skills/pdf/SKILL.md +297 -0
- package/skills/pdf/forms.md +205 -0
- package/skills/pdf/reference.md +612 -0
- package/skills/pdf/scripts/check_bounding_boxes.py +70 -0
- package/skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/skills/pdf/scripts/check_fillable_fields.py +12 -0
- package/skills/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/skills/pdf/scripts/create_validation_image.py +41 -0
- package/skills/pdf/scripts/extract_form_field_info.py +152 -0
- package/skills/pdf/scripts/fill_fillable_fields.py +114 -0
- package/skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/skills/pptx/LICENSE.txt +30 -0
- package/skills/pptx/SKILL.md +487 -0
- package/skills/pptx/html2pptx.md +625 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/pptx/ooxml/scripts/pack.py +159 -0
- package/skills/pptx/ooxml/scripts/unpack.py +29 -0
- package/skills/pptx/ooxml/scripts/validate.py +69 -0
- package/skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/pptx/ooxml/scripts/validation/base.py +951 -0
- package/skills/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/pptx/ooxml.md +427 -0
- package/skills/pptx/scripts/html2pptx.js +979 -0
- package/skills/pptx/scripts/inventory.py +1020 -0
- package/skills/pptx/scripts/rearrange.py +231 -0
- package/skills/pptx/scripts/replace.py +385 -0
- package/skills/pptx/scripts/thumbnail.py +450 -0
- package/skills/project-analyze/SKILL.md +270 -0
- package/skills/project-analyze/phases/phase0-discovery.md +278 -0
- package/skills/project-analyze/phases/phase0.5-prescan.md +139 -0
- package/skills/project-analyze/phases/phase1-inventory.md +94 -0
- package/skills/project-analyze/phases/phase2-deep-analysis.md +249 -0
- package/skills/project-analyze/phases/phase2a-l4-analysis.md +94 -0
- package/skills/project-analyze/phases/phase2b-l5-analysis.md +97 -0
- package/skills/project-analyze/phases/phase3-knowledge-graph.md +120 -0
- package/skills/project-analyze/phases/phase3a-multi-dimensional.md +61 -0
- package/skills/project-analyze/phases/phase4-code-quality.md +81 -0
- package/skills/project-analyze/phases/phase5-synthesis.md +284 -0
- package/skills/project-analyze/phases/phase6-validation.md +179 -0
- package/skills/project-analyze/prompts/code-review-agent.md +122 -0
- package/skills/project-analyze/prompts/deep-analysis-agent.md +107 -0
- package/skills/project-analyze/prompts/inventory-agent.md +67 -0
- package/skills/project-analyze/prompts/l4-analysis-agent.md +98 -0
- package/skills/project-analyze/rules/android.md +282 -0
- package/skills/project-analyze/rules/devops.md +443 -0
- package/skills/project-analyze/rules/generic.md +243 -0
- package/skills/project-analyze/rules/go.md +289 -0
- package/skills/project-analyze/rules/harmony.md +257 -0
- package/skills/project-analyze/rules/java.md +507 -0
- package/skills/project-analyze/rules/mobile-flutter.md +315 -0
- package/skills/project-analyze/rules/mobile-react-native.md +283 -0
- package/skills/project-analyze/rules/mobile-swift.md +323 -0
- package/skills/project-analyze/rules/python.md +317 -0
- package/skills/project-analyze/rules/rust-tauri.md +243 -0
- package/skills/project-analyze/rules/rust.md +296 -0
- package/skills/project-analyze/rules/web-nextjs.md +364 -0
- package/skills/project-analyze/rules/web-react.md +298 -0
- package/skills/project-analyze/rules/web-vue.md +378 -0
- package/skills/project-analyze/rules/web.md +390 -0
- package/skills/project-query/SKILL.md +224 -0
- package/skills/project-query/rules/query-templates.md +212 -0
- package/skills/python-conventions/SKILL.md +169 -0
- package/skills/react-native-conventions/SKILL.md +73 -0
- package/skills/requirements-writer/README.md +153 -0
- package/skills/requirements-writer/SKILL.md +341 -0
- package/skills/requirements-writer/examples/prd-outline-example.md +217 -0
- package/skills/requirements-writer/templates/module-prd-template.md +362 -0
- package/skills/requirements-writer/templates/prd-outline-template.md +185 -0
- package/skills/requirements-writer/templates/user-story-template.md +1125 -0
- package/skills/rust-conventions/SKILL.md +361 -0
- package/skills/smart-dispatch/SKILL.md +296 -0
- package/skills/smart-dispatch/implementer-prompt.md +146 -0
- package/skills/smart-dispatch/reviewer-prompt.md +199 -0
- package/skills/software-architecture/SKILL.md +278 -0
- package/skills/swift-conventions/SKILL.md +72 -0
- package/skills/ui-ux-pro/SKILL.md +140 -0
- package/skills/verification-before-completion/SKILL.md +119 -0
- package/skills/web-conventions/SKILL.md +259 -0
- package/skills/webapp-testing/LICENSE.txt +202 -0
- package/skills/webapp-testing/SKILL.md +97 -0
- package/skills/webapp-testing/examples/console_logging.py +35 -0
- package/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/skills/webapp-testing/scripts/with_server.py +106 -0
- package/skills/writing-plans/SKILL.md +144 -0
- package/skills/xlsx/LICENSE.txt +30 -0
- package/skills/xlsx/SKILL.md +292 -0
- package/skills/xlsx/recalc.py +178 -0
- package/templates/CLAUDE.md.android +57 -0
- package/templates/CLAUDE.md.devops +50 -0
- package/templates/CLAUDE.md.generic +34 -0
- package/templates/CLAUDE.md.go +67 -0
- package/templates/CLAUDE.md.harmony +54 -0
- package/templates/CLAUDE.md.java +56 -0
- package/templates/CLAUDE.md.mobile-flutter +38 -0
- package/templates/CLAUDE.md.mobile-react-native +37 -0
- package/templates/CLAUDE.md.mobile-swift +40 -0
- package/templates/CLAUDE.md.python +65 -0
- package/templates/CLAUDE.md.rust +68 -0
- package/templates/CLAUDE.md.rust-tauri +120 -0
- package/templates/CLAUDE.md.web +63 -0
- package/templates/COMPONENT.md.android +58 -0
- package/templates/COMPONENT.md.devops +54 -0
- package/templates/COMPONENT.md.generic +35 -0
- package/templates/COMPONENT.md.go +59 -0
- package/templates/COMPONENT.md.harmony +63 -0
- package/templates/COMPONENT.md.java +69 -0
- package/templates/COMPONENT.md.mobile-flutter +56 -0
- package/templates/COMPONENT.md.mobile-react-native +55 -0
- package/templates/COMPONENT.md.mobile-swift +56 -0
- package/templates/COMPONENT.md.python +67 -0
- package/templates/COMPONENT.md.rust +57 -0
- package/templates/COMPONENT.md.rust-tauri +66 -0
- package/templates/COMPONENT.md.web +39 -0
- package/templates/README.md.android +71 -0
- package/templates/README.md.devops +68 -0
- package/templates/README.md.generic +39 -0
- package/templates/README.md.go +70 -0
- package/templates/README.md.harmony +72 -0
- package/templates/README.md.java +73 -0
- package/templates/README.md.mobile-flutter +69 -0
- package/templates/README.md.mobile-react-native +65 -0
- package/templates/README.md.mobile-swift +69 -0
- package/templates/README.md.monorepo +59 -0
- package/templates/README.md.python +66 -0
- package/templates/README.md.rust +69 -0
- package/templates/README.md.rust-tauri +149 -0
- package/templates/README.md.web +94 -0
- package/templates/UI_STYLE.md.android +74 -0
- package/templates/UI_STYLE.md.devops +50 -0
- package/templates/UI_STYLE.md.generic +31 -0
- package/templates/UI_STYLE.md.go +49 -0
- package/templates/UI_STYLE.md.harmony +71 -0
- package/templates/UI_STYLE.md.java +61 -0
- package/templates/UI_STYLE.md.mobile-flutter +70 -0
- package/templates/UI_STYLE.md.mobile-react-native +71 -0
- package/templates/UI_STYLE.md.mobile-swift +71 -0
- package/templates/UI_STYLE.md.python +58 -0
- package/templates/UI_STYLE.md.rust +52 -0
- package/templates/UI_STYLE.md.rust-tauri +102 -0
- package/templates/UI_STYLE.md.web +92 -0
- package/templates/cursor-rules.android.mdc +33 -0
- package/templates/cursor-rules.devops.mdc +32 -0
- package/templates/cursor-rules.generic.mdc +25 -0
- package/templates/cursor-rules.go.mdc +34 -0
- package/templates/cursor-rules.harmony.mdc +30 -0
- package/templates/cursor-rules.java.mdc +30 -0
- package/templates/cursor-rules.mobile-flutter.mdc +42 -0
- package/templates/cursor-rules.mobile-react-native.mdc +43 -0
- package/templates/cursor-rules.mobile-swift.mdc +42 -0
- package/templates/cursor-rules.python.mdc +33 -0
- package/templates/cursor-rules.rust-tauri.mdc +67 -0
- package/templates/cursor-rules.rust.mdc +30 -0
- package/templates/cursor-rules.web.mdc +30 -0
- package/templates/kiro-steering.android.md +39 -0
- package/templates/kiro-steering.devops.md +32 -0
- package/templates/kiro-steering.generic.md +28 -0
- package/templates/kiro-steering.go.md +41 -0
- package/templates/kiro-steering.harmony.md +36 -0
- package/templates/kiro-steering.java.md +37 -0
- package/templates/kiro-steering.mobile-flutter.md +73 -0
- package/templates/kiro-steering.mobile-react-native.md +71 -0
- package/templates/kiro-steering.mobile-swift.md +62 -0
- package/templates/kiro-steering.python.md +34 -0
- package/templates/kiro-steering.rust-tauri.md +50 -0
- package/templates/kiro-steering.rust.md +36 -0
- package/templates/kiro-steering.web.md +41 -0
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-project-architecture
|
|
3
|
+
description: Ensure Python AI projects comply with LangGraph 1.0+ architecture standards. Use when creating new AI projects, reviewing structure compliance, or refactoring existing projects to match PROJECT_STRUCTURE.md requirements.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
allowed-tools: Read, Write, Edit, Bash, Skill, Task
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# AI Project Architecture Compliance & Refactoring
|
|
9
|
+
|
|
10
|
+
Guide for ensuring Python-based AI projects comply with LangGraph 1.0+ architecture standards defined in `PROJECT_STRUCTURE.md`.
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
This skill ensures AI projects follow a standardized, scalable architecture that:
|
|
15
|
+
- **Enforces LangGraph 1.0+ best practices** for agent-based systems
|
|
16
|
+
- **Maintains consistency** across all AI projects in the codebase
|
|
17
|
+
- **Enables safe refactoring** of existing projects to standard structure
|
|
18
|
+
- **Prevents architectural drift** through compliance checking
|
|
19
|
+
- **Integrates quality skills** (software-architecture, test-driven-development, systematic-debugging)
|
|
20
|
+
|
|
21
|
+
**Core principle**: All AI projects must follow the architecture defined in `PROJECT_STRUCTURE.md`. Deviations require explicit documentation and approval.
|
|
22
|
+
|
|
23
|
+
**Violating the letter of these iron laws is violating the spirit of this skill.**
|
|
24
|
+
|
|
25
|
+
## When This Skill Activates
|
|
26
|
+
|
|
27
|
+
This skill activates when:
|
|
28
|
+
- Creating a new AI project (FastAPI + LangGraph 1.0+ based)
|
|
29
|
+
- Reviewing an existing AI project's structure compliance
|
|
30
|
+
- Refactoring an AI project to match standard architecture
|
|
31
|
+
- Explicitly invoked via "check architecture compliance", "review project structure", "refactor to standard"
|
|
32
|
+
- Detecting Python AI project patterns (agents/, LangGraph, FastAPI)
|
|
33
|
+
|
|
34
|
+
## The Iron Laws
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
IRON LAW 1: NO FABRICATION
|
|
38
|
+
Never assume or make up code behavior. Work only with existing, verified code.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
IRON LAW 2: NO NEW FEATURES DURING REFACTORING
|
|
43
|
+
Refactoring = structural change ONLY. Any behavioral change is a violation.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
IRON LAW 3: INCREMENTAL EXECUTION
|
|
48
|
+
Break refactoring into single-agent batches. Self-review after each batch.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
IRON LAW 4: MANDATORY QUALITY GATES
|
|
53
|
+
systematic-debugging review is MANDATORY after each code completion phase.
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
IRON LAW 5: SKILL INTEGRATION
|
|
58
|
+
This skill CANNOT operate independently. MUST call required skills at specified points.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**No exceptions without explicit user override.**
|
|
62
|
+
|
|
63
|
+
## Critical Dependencies
|
|
64
|
+
|
|
65
|
+
This skill **depends on** and **must invoke** these skills:
|
|
66
|
+
|
|
67
|
+
### software-architecture
|
|
68
|
+
**When to call:**
|
|
69
|
+
- During architectural decisions (module placement, separation of concerns)
|
|
70
|
+
- When naming modules, services, agents (avoid utils/helpers)
|
|
71
|
+
- When validating structure against Clean Architecture/DDD principles
|
|
72
|
+
- When checking for architectural anti-patterns
|
|
73
|
+
|
|
74
|
+
**What to pass:** Current code context, architectural decision being made
|
|
75
|
+
|
|
76
|
+
**Expected output:** Validation against Clean Architecture principles, domain-specific naming guidance
|
|
77
|
+
|
|
78
|
+
### test-driven-development
|
|
79
|
+
**When to call:**
|
|
80
|
+
- Before writing ANY new code (Red-Green-Refactor)
|
|
81
|
+
- Before refactoring migrated code
|
|
82
|
+
- When writing tests for migrated code
|
|
83
|
+
|
|
84
|
+
**What to pass:** Feature requirements, code being tested
|
|
85
|
+
|
|
86
|
+
**Expected output:** Failing tests first, then minimal implementation to pass
|
|
87
|
+
|
|
88
|
+
### systematic-debugging
|
|
89
|
+
**When to call:**
|
|
90
|
+
- **MANDATORY** after Phase 3 (Structure Migration)
|
|
91
|
+
- **MANDATORY** after Phase 4 (Code Verification)
|
|
92
|
+
- **MANDATORY** after Phase 5 (Archive & Test)
|
|
93
|
+
- When encountering issues during migration
|
|
94
|
+
|
|
95
|
+
**What to pass:** Code changes made, test results, any issues encountered
|
|
96
|
+
|
|
97
|
+
**Expected output:** Root cause analysis, validation that changes are correct
|
|
98
|
+
|
|
99
|
+
## Five-Phase Workflow
|
|
100
|
+
|
|
101
|
+
### Phase 1: Compliance Assessment
|
|
102
|
+
|
|
103
|
+
**Objective**: Analyze current project structure against `PROJECT_STRUCTURE.md` requirements.
|
|
104
|
+
|
|
105
|
+
**Activities**:
|
|
106
|
+
|
|
107
|
+
1. **Classify each component by requirement tier**
|
|
108
|
+
- **Tier 1 (Mandatory Required)**: Required in ALL projects
|
|
109
|
+
- Top-level: `agents/`, `apps/`, `core/`, `configs/`
|
|
110
|
+
- Per-agent: `nodes/`, `services/`, `models/api.py`, `tools/`
|
|
111
|
+
- **Severity if missing**: CRITICAL
|
|
112
|
+
- **Tier 2 (Conditionally Required)**: Required IF specific conditions met
|
|
113
|
+
- `models/` root (only if shared ORM models across agents)
|
|
114
|
+
- Agent's `models/orm.py` (only if agent has independent DB tables)
|
|
115
|
+
- Agent's `models/state.py` (only if agent uses custom LangGraph state)
|
|
116
|
+
- Agent's `graph.py` (only if agent uses LangGraph)
|
|
117
|
+
- Agent's `checkpoint.py` (only if agent uses state persistence)
|
|
118
|
+
- Agent's `views.py` (only if agent exposes HTTP endpoints)
|
|
119
|
+
- Agent's `constants.py` (optional - only if agent has constants)
|
|
120
|
+
- **Severity if missing**: HIGH (when condition applies)
|
|
121
|
+
- **Tier 3 (Fully Optional)**: Recommended but not required
|
|
122
|
+
- `tests/`, `bin/`, `docs/`, `logs/`, `temp/`
|
|
123
|
+
- **Severity if missing**: LOW (informational only)
|
|
124
|
+
|
|
125
|
+
2. **Detect conditions for Tier 2 components**
|
|
126
|
+
- Check if project has database operations → `models/` root needed
|
|
127
|
+
- Check if agent imports StateGraph → `graph.py` needed
|
|
128
|
+
- Check if agent uses @router or APIRouter → `views.py` needed
|
|
129
|
+
- Check if agent uses checkpoint/checkpointer → `checkpoint.py` needed
|
|
130
|
+
- Check if agent has ORM models → `models/orm.py` needed
|
|
131
|
+
- Check if agent uses TypedDict or custom state → `models/state.py` needed
|
|
132
|
+
- Document WHY each Tier 2 component is (or isn't) required
|
|
133
|
+
|
|
134
|
+
3. **Scan directory structure**
|
|
135
|
+
- Check for Tier 1 directories (agents/, apps/, core/, configs/)
|
|
136
|
+
- Check for Tier 2 directories (if conditions met)
|
|
137
|
+
- Check for Tier 3 directories (optional but recommended)
|
|
138
|
+
|
|
139
|
+
4. **Verify agent structure**
|
|
140
|
+
- For each agent in `agents/{agent_name}/`:
|
|
141
|
+
- Tier 1 (Mandatory): `nodes/`, `services/`, `models/api.py`, `tools/`
|
|
142
|
+
- Tier 2 (Conditional): `graph.py`, `checkpoint.py`, `views.py`, `models/orm.py`, `models/state.py`
|
|
143
|
+
- Tier 3 (Optional): `constants.py`
|
|
144
|
+
|
|
145
|
+
5. **Check configuration structure**
|
|
146
|
+
- `configs/app_config.py` (main config)
|
|
147
|
+
- `configs/base/` (logger, security)
|
|
148
|
+
- `configs/deploy/` (build, runtime, Docker files)
|
|
149
|
+
- `configs/integrations/` (database, redis, llm, etc.)
|
|
150
|
+
|
|
151
|
+
6. **Identify compliance gaps**
|
|
152
|
+
- Missing Tier 1 components (CRITICAL)
|
|
153
|
+
- Missing Tier 2 components when conditions apply (HIGH)
|
|
154
|
+
- Missing Tier 3 components (LOW - informational)
|
|
155
|
+
- Incorrect agent structure
|
|
156
|
+
- Naming convention violations
|
|
157
|
+
- Mixed concerns (business logic in wrong layer)
|
|
158
|
+
|
|
159
|
+
7. **Generate tiered compliance report**
|
|
160
|
+
- Overall compliance score (percentage)
|
|
161
|
+
- Severity levels:
|
|
162
|
+
- **CRITICAL**: Missing Tier 1 (Mandatory) components - blocks development
|
|
163
|
+
- **HIGH**: Missing Tier 2 (Conditional) components when condition applies
|
|
164
|
+
- **MEDIUM**: Moderate issues (e.g., naming inconsistencies)
|
|
165
|
+
- **LOW**: Missing Tier 3 (Optional) components or cosmetic issues
|
|
166
|
+
- Tier classification for each component
|
|
167
|
+
- Condition detection results for Tier 2 components
|
|
168
|
+
- Recommendations with priority
|
|
169
|
+
|
|
170
|
+
**Deliverables**: Compliance report (use `templates/compliance-report.md`)
|
|
171
|
+
|
|
172
|
+
**Exit Criteria**:
|
|
173
|
+
- [ ] All components classified by tier (Tier 1/2/3)
|
|
174
|
+
- [ ] Conditions detected for Tier 2 components
|
|
175
|
+
- [ ] Directory structure scanned
|
|
176
|
+
- [ ] Agent structure validated
|
|
177
|
+
- [ ] Compliance gaps identified with appropriate severity
|
|
178
|
+
- [ ] Tiered compliance report generated and presented to user
|
|
179
|
+
|
|
180
|
+
**Integration**: None (analysis phase only)
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
### Phase 2: Refactoring Planning
|
|
185
|
+
|
|
186
|
+
**Objective**: Create detailed migration plan from current structure to standard structure.
|
|
187
|
+
|
|
188
|
+
**Activities**:
|
|
189
|
+
|
|
190
|
+
1. **Document current structure**
|
|
191
|
+
- Create `old_structure.md` with:
|
|
192
|
+
- Current directory tree
|
|
193
|
+
- Current agent list
|
|
194
|
+
- Current file locations
|
|
195
|
+
- Import dependency graph
|
|
196
|
+
|
|
197
|
+
2. **Create migration mapping**
|
|
198
|
+
- Map each file/directory: old_path → new_path
|
|
199
|
+
- Identify shared/common components
|
|
200
|
+
- Identify agent-specific components
|
|
201
|
+
- Note any ambiguous cases
|
|
202
|
+
|
|
203
|
+
3. **Sequence migration by priority**
|
|
204
|
+
- Start with: shared components (apps/, core/, models/)
|
|
205
|
+
- Then: independent agents (no dependencies on other agents)
|
|
206
|
+
- Then: dependent agents (depend on migrated agents)
|
|
207
|
+
- Last: agent-specific configurations and tools
|
|
208
|
+
|
|
209
|
+
4. **Define migration batches**
|
|
210
|
+
- Each batch = independently verifiable unit
|
|
211
|
+
- Prefer: single agent per batch
|
|
212
|
+
- Large agents: split into nodes/, services/, models/, tools/ batches
|
|
213
|
+
- Each batch must have clear entry/exit criteria
|
|
214
|
+
|
|
215
|
+
5. **Create rollback plan**
|
|
216
|
+
- For each batch: how to revert if migration fails
|
|
217
|
+
- Checkpoints: commit after each successful batch
|
|
218
|
+
- Validation: tests must pass before proceeding
|
|
219
|
+
|
|
220
|
+
**Deliverables**: Migration plan (use `templates/migration-plan.md`)
|
|
221
|
+
|
|
222
|
+
**Exit Criteria**:
|
|
223
|
+
- [ ] Current structure documented
|
|
224
|
+
- [ ] Migration mapping created
|
|
225
|
+
- [ ] Migration sequence defined
|
|
226
|
+
- [ ] Batches identified with entry/exit criteria
|
|
227
|
+
- [ ] Rollback plan defined
|
|
228
|
+
- [ ] **User approval obtained** (MANDATORY)
|
|
229
|
+
|
|
230
|
+
**Integration**:
|
|
231
|
+
- **software-architecture**: Validate migration plan against Clean Architecture principles
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
### Phase 3: Structure Migration
|
|
236
|
+
|
|
237
|
+
**Objective**: Create new directory structure and migrate code while preserving exact functionality.
|
|
238
|
+
|
|
239
|
+
**Activities**:
|
|
240
|
+
|
|
241
|
+
1. **Create new directory structure**
|
|
242
|
+
- Create standard directories per `PROJECT_STRUCTURE.md`
|
|
243
|
+
- DO NOT delete old structure yet
|
|
244
|
+
- Use parallel structure: `new_agents/`, `new_apps/`, etc. (temporary)
|
|
245
|
+
|
|
246
|
+
2. **Migrate shared components first**
|
|
247
|
+
- Migrate `apps/` (LLM management, utils, logs API)
|
|
248
|
+
- Migrate `core/` (exceptions, middleware, logging, etc.)
|
|
249
|
+
- Migrate `models/` (shared ORM models)
|
|
250
|
+
- Migrate `configs/` (all configuration files)
|
|
251
|
+
- Update all imports as you go
|
|
252
|
+
|
|
253
|
+
3. **Migrate agents in priority order**
|
|
254
|
+
- For each agent in sequence:
|
|
255
|
+
- Create `agents/{agent_name}/` with required subdirectories
|
|
256
|
+
- Migrate `nodes/` → `agents/{agent_name}/nodes/`
|
|
257
|
+
- Migrate `services/` → `agents/{agent_name}/services/`
|
|
258
|
+
- Migrate `models/` → `agents/{agent_name}/models/`
|
|
259
|
+
- Migrate `tools/` → `agents/{agent_name}/tools/`
|
|
260
|
+
- Migrate optional files (graph.py, checkpoint.py, views.py, constants.py)
|
|
261
|
+
- Update all import statements:
|
|
262
|
+
- Old: `from old_apps.xyz import ABC`
|
|
263
|
+
- New: `from apps.xyz import ABC`
|
|
264
|
+
- Verify no broken imports
|
|
265
|
+
|
|
266
|
+
4. **Update all cross-references**
|
|
267
|
+
- Update imports in all migrated files
|
|
268
|
+
- Update references in configuration files
|
|
269
|
+
- Update references in documentation
|
|
270
|
+
- Search for old paths and replace with new paths
|
|
271
|
+
|
|
272
|
+
5. **Validate after each batch**
|
|
273
|
+
- Run Python syntax check: `python -m py_compile`
|
|
274
|
+
- Run existing tests (if any)
|
|
275
|
+
- Verify imports resolve: `python -c "import agents.{agent_name}"`
|
|
276
|
+
|
|
277
|
+
**IRON LAW (Non-negotiable)**:
|
|
278
|
+
- **NO new features**: Only structural changes, NO behavioral changes
|
|
279
|
+
- **NO "improvements"**: Don't "fix" or "optimize" code during migration
|
|
280
|
+
- **NO "missing" features**: Don't add features you think are missing
|
|
281
|
+
- **Exact preservation**: All behavior must remain exactly the same
|
|
282
|
+
|
|
283
|
+
**Deliverables**: Migrated codebase in new structure
|
|
284
|
+
|
|
285
|
+
**Exit Criteria**:
|
|
286
|
+
- [ ] New directory structure created
|
|
287
|
+
- [ ] All shared components migrated
|
|
288
|
+
- [ ] All agents migrated in priority order
|
|
289
|
+
- [ ] All imports updated and verified
|
|
290
|
+
- [ ] No syntax errors
|
|
291
|
+
- [ ] Existing tests still pass (if any)
|
|
292
|
+
|
|
293
|
+
**Integration**:
|
|
294
|
+
- **software-architecture**: Validate structure, naming, and separation of concerns
|
|
295
|
+
- **test-driven-development**: Write tests for migrated code (if tests don't exist)
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
### Phase 4: Code Verification
|
|
300
|
+
|
|
301
|
+
**Objective**: Verify that migrated code is functionally equivalent to original.
|
|
302
|
+
|
|
303
|
+
**Activities**:
|
|
304
|
+
|
|
305
|
+
1. **Comprehensive code review**
|
|
306
|
+
- Review each migrated file
|
|
307
|
+
- Verify no behavioral changes
|
|
308
|
+
- Check for accidental modifications
|
|
309
|
+
- Validate all imports are correct
|
|
310
|
+
|
|
311
|
+
2. **Verify all imports resolve**
|
|
312
|
+
- Check each import statement
|
|
313
|
+
- Verify no circular dependencies
|
|
314
|
+
- Validate relative vs absolute imports
|
|
315
|
+
- Test import chains: `python -c "from agents.x.y import z"`
|
|
316
|
+
|
|
317
|
+
3. **Check all cross-references updated**
|
|
318
|
+
- Configuration files
|
|
319
|
+
- Documentation
|
|
320
|
+
- Test files
|
|
321
|
+
- Scripts and tooling
|
|
322
|
+
|
|
323
|
+
4. **Validate no behavior changes**
|
|
324
|
+
- Compare functionality line-by-line
|
|
325
|
+
- Run existing tests and verify same results
|
|
326
|
+
- Manual testing of key features
|
|
327
|
+
- Performance comparison (should be identical)
|
|
328
|
+
|
|
329
|
+
5. **Generate verification report**
|
|
330
|
+
- List all files reviewed
|
|
331
|
+
- List all imports verified
|
|
332
|
+
- List all references updated
|
|
333
|
+
- Note any discrepancies found (and fixed)
|
|
334
|
+
|
|
335
|
+
**Deliverables**: Verification report (use `templates/verification-checklist.md`)
|
|
336
|
+
|
|
337
|
+
**Exit Criteria**:
|
|
338
|
+
- [ ] All migrated files reviewed
|
|
339
|
+
- [ ] All imports verified and resolving
|
|
340
|
+
- [ ] All references updated
|
|
341
|
+
- [ ] No behavioral changes detected
|
|
342
|
+
- [ ] Existing tests pass with same results
|
|
343
|
+
- [ ] Verification report generated
|
|
344
|
+
|
|
345
|
+
**QUALITY GATE (MANDATORY)**:
|
|
346
|
+
- **Call systematic-debugging skill** for thorough review
|
|
347
|
+
- Pass all validation checks
|
|
348
|
+
- No unresolved issues
|
|
349
|
+
|
|
350
|
+
**Integration**:
|
|
351
|
+
- **systematic-debugging (MANDATORY)**: Root cause analysis, validation of migration correctness
|
|
352
|
+
- **software-architecture**: Final architectural validation
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
### Phase 5: Archive & Test
|
|
357
|
+
|
|
358
|
+
**Objective**: Archive old structure and ensure comprehensive test coverage.
|
|
359
|
+
|
|
360
|
+
**Activities**:
|
|
361
|
+
|
|
362
|
+
1. **Move old structure to archive**
|
|
363
|
+
- Create `archivecodes/` directory
|
|
364
|
+
- Move old structure with timestamp: `archivecodes/old_structure_YYYYMMDD/`
|
|
365
|
+
- Create README in archive explaining what was archived
|
|
366
|
+
- Commit with message: "Archive old structure before migration"
|
|
367
|
+
|
|
368
|
+
2. **Rename new structure to final**
|
|
369
|
+
- Remove temporary `new_` prefixes
|
|
370
|
+
- Final structure: `agents/`, `apps/`, `core/`, `configs/`, etc.
|
|
371
|
+
|
|
372
|
+
3. **Write comprehensive unit tests**
|
|
373
|
+
- Use **test-driven-development skill (MANDATORY)**
|
|
374
|
+
- For each migrated component:
|
|
375
|
+
- Write failing test first (RED)
|
|
376
|
+
- Migrate/verify code passes test (GREEN)
|
|
377
|
+
- Refactor if needed (REFACTOR)
|
|
378
|
+
- Target: 100% coverage for migrated code
|
|
379
|
+
- Test all public interfaces
|
|
380
|
+
- Test edge cases and error conditions
|
|
381
|
+
|
|
382
|
+
4. **Execute full test suite**
|
|
383
|
+
- Run all tests: `pytest tests/`
|
|
384
|
+
- Verify all tests pass
|
|
385
|
+
- Generate coverage report: `pytest --cov=`
|
|
386
|
+
- Fix any failing tests
|
|
387
|
+
|
|
388
|
+
5. **Documentation updates**
|
|
389
|
+
- Update architecture documentation
|
|
390
|
+
- Create migration changelog
|
|
391
|
+
- Update README with new structure
|
|
392
|
+
- Document any deviations from standard
|
|
393
|
+
|
|
394
|
+
6. **Final quality review**
|
|
395
|
+
- **Call systematic-debugging skill (MANDATORY)**
|
|
396
|
+
- **Call test-driven-development skill (MANDATORY)**
|
|
397
|
+
- Review test coverage
|
|
398
|
+
- Review documentation
|
|
399
|
+
- Verify all quality gates passed
|
|
400
|
+
|
|
401
|
+
**Deliverables**:
|
|
402
|
+
- Archived old code in `archivecodes/`
|
|
403
|
+
- Comprehensive test suite
|
|
404
|
+
- Updated documentation
|
|
405
|
+
- Migration changelog
|
|
406
|
+
|
|
407
|
+
**Exit Criteria**:
|
|
408
|
+
- [ ] Old structure moved to `archivecodes/`
|
|
409
|
+
- [ ] New structure in place (no temporary prefixes)
|
|
410
|
+
- [ ] Comprehensive unit tests written using TDD
|
|
411
|
+
- [ ] All tests pass (100% success rate)
|
|
412
|
+
- [ ] Test coverage ≥ 80% (prefer 100% for migrated code)
|
|
413
|
+
- [ ] Documentation updated
|
|
414
|
+
- [ ] Migration changelog created
|
|
415
|
+
- [ ] Final quality reviews completed
|
|
416
|
+
|
|
417
|
+
**QUALITY GATES (MANDATORY)**:
|
|
418
|
+
- **systematic-debugging review**: All code changes validated
|
|
419
|
+
- **test-driven-development review**: All tests follow TDD principles
|
|
420
|
+
- All tests pass
|
|
421
|
+
- Coverage threshold met
|
|
422
|
+
|
|
423
|
+
**Integration**:
|
|
424
|
+
- **test-driven-development (MANDATORY)**: Write all tests using TDD methodology
|
|
425
|
+
- **systematic-debugging (MANDATORY)**: Final validation of migration
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
## Validation Checklists
|
|
430
|
+
|
|
431
|
+
### Phase 1: Compliance Assessment Checklist
|
|
432
|
+
|
|
433
|
+
- [ ] All required top-level directories present
|
|
434
|
+
- [ ] All agents have required subdirectories (nodes/, services/, models/, tools/)
|
|
435
|
+
- [ ] Configuration structure matches standard
|
|
436
|
+
- [ ] Naming conventions followed (lowercase, kebab-case)
|
|
437
|
+
- [ ] No mixed concerns (business logic in correct layer)
|
|
438
|
+
- [ ] Compliance report generated with severity levels
|
|
439
|
+
- [ ] Report presented to user
|
|
440
|
+
|
|
441
|
+
### Phase 2: Migration Planning Checklist
|
|
442
|
+
|
|
443
|
+
- [ ] Current structure documented in `old_structure.md`
|
|
444
|
+
- [ ] Migration mapping created (old_path → new_path)
|
|
445
|
+
- [ ] Migration sequence defined (shared → independent → dependent)
|
|
446
|
+
- [ ] Migration batches identified (prefer single agent per batch)
|
|
447
|
+
- [ ] Rollback plan defined for each batch
|
|
448
|
+
- [ ] software-architecture skill consulted for validation
|
|
449
|
+
- [ ] **User approval obtained** (MANDATORY)
|
|
450
|
+
|
|
451
|
+
### Phase 3: Structure Migration Checklist
|
|
452
|
+
|
|
453
|
+
- [ ] New directory structure created per standard
|
|
454
|
+
- [ ] Shared components migrated first (apps/, core/, models/)
|
|
455
|
+
- [ ] Agents migrated in priority order
|
|
456
|
+
- [ ] All imports updated and verified
|
|
457
|
+
- [ ] No syntax errors (`python -m py_compile`)
|
|
458
|
+
- [ ] Existing tests still pass
|
|
459
|
+
- [ ] NO new features added (Iron Law compliance)
|
|
460
|
+
- [ ] NO behavioral changes (exact preservation)
|
|
461
|
+
- [ ] software-architecture skill called for validation
|
|
462
|
+
- [ ] test-driven-development skill called for test writing
|
|
463
|
+
|
|
464
|
+
### Phase 4: Code Verification Checklist
|
|
465
|
+
|
|
466
|
+
- [ ] All migrated files reviewed
|
|
467
|
+
- [ ] All imports verified resolving
|
|
468
|
+
- [ ] All cross-references updated
|
|
469
|
+
- [ ] No behavioral changes detected
|
|
470
|
+
- [ ] Existing tests pass with same results
|
|
471
|
+
- [ ] Verification report generated
|
|
472
|
+
- [ ] **systematic-debugging skill called (MANDATORY)**
|
|
473
|
+
- [ ] All issues resolved
|
|
474
|
+
|
|
475
|
+
### Phase 5: Archive & Test Checklist
|
|
476
|
+
|
|
477
|
+
- [ ] Old structure moved to `archivecodes/`
|
|
478
|
+
- [ ] New structure in place (no temporary prefixes)
|
|
479
|
+
- [ ] Comprehensive unit tests written
|
|
480
|
+
- [ ] **test-driven-development skill used (MANDATORY)**
|
|
481
|
+
- [ ] All tests pass (100% success)
|
|
482
|
+
- [ ] Coverage ≥ 80% (prefer 100%)
|
|
483
|
+
- [ ] Documentation updated
|
|
484
|
+
- [ ] Migration changelog created
|
|
485
|
+
- [ ] **systematic-debugging skill called for final review (MANDATORY)**
|
|
486
|
+
- [ ] **test-driven-development skill called for test review (MANDATORY)**
|
|
487
|
+
|
|
488
|
+
## Anti-Patterns & Common Rationalizations
|
|
489
|
+
|
|
490
|
+
### Common Rationalizations
|
|
491
|
+
|
|
492
|
+
| Rationalization | Reality | Action |
|
|
493
|
+
|----------------|---------|--------|
|
|
494
|
+
| "Just this once, I'll add this small improvement" | Violation of Iron Law 2 - stop immediately | Delete improvement, re-migrate correctly |
|
|
495
|
+
| "I'll refactor it properly later" | Later never comes - technical debt accumulates | Do it right now, or don't do it |
|
|
496
|
+
| "This small feature won't affect the migration" | It violates exact migration principle | Feature creep = failed migration |
|
|
497
|
+
| "Testing after migration is faster" | Untested migration is unverified migration | Use test-driven-development, no exceptions |
|
|
498
|
+
| "systematic-debugging takes too long" | It's faster than debugging production issues | Quality gates are non-negotiable |
|
|
499
|
+
| "The existing structure is close enough" | Partial compliance is non-compliance | Follow standard exactly |
|
|
500
|
+
| "I'll fix the imports as I go" | Systematic approach prevents broken references | Update imports immediately after migration |
|
|
501
|
+
| "This module is too simple to need TDD" | Simple code breaks too - TDD applies to all | Use test-driven-development for ALL code |
|
|
502
|
+
| "While I'm here, I'll also fix X" | "While I'm here" anti-pattern | One task at a time, complete migration first |
|
|
503
|
+
|
|
504
|
+
### Red Flags - STOP and Re-evaluate
|
|
505
|
+
|
|
506
|
+
If you catch yourself thinking:
|
|
507
|
+
- "This is a special case, I can adapt the rules"
|
|
508
|
+
- "I don't need to call [skill], this is straightforward"
|
|
509
|
+
- "Let me just add this quick improvement"
|
|
510
|
+
- "I'll skip the quality gate to save time"
|
|
511
|
+
- "This doesn't need to be tested"
|
|
512
|
+
- "The structure is close enough"
|
|
513
|
+
- "I'll document this deviation later"
|
|
514
|
+
|
|
515
|
+
**ALL of these mean: STOP. You're violating the iron laws.**
|
|
516
|
+
|
|
517
|
+
Return to the relevant phase and follow the process correctly.
|
|
518
|
+
|
|
519
|
+
## Quality Gates
|
|
520
|
+
|
|
521
|
+
### After Phase 3: Structure Migration
|
|
522
|
+
1. Self-review checklist completed
|
|
523
|
+
2. **Call systematic-debugging skill (MANDATORY)**
|
|
524
|
+
3. All imports resolve correctly
|
|
525
|
+
4. No syntax errors
|
|
526
|
+
5. Existing tests pass
|
|
527
|
+
|
|
528
|
+
### After Phase 4: Code Verification
|
|
529
|
+
1. **Call systematic-debugging skill (MANDATORY)**
|
|
530
|
+
2. All verification checks pass
|
|
531
|
+
3. No behavioral changes
|
|
532
|
+
4. All cross-references updated
|
|
533
|
+
|
|
534
|
+
### After Phase 5: Archive & Test
|
|
535
|
+
1. **Call systematic-debugging skill (MANDATORY)**
|
|
536
|
+
2. **Call test-driven-development skill (MANDATORY)**
|
|
537
|
+
3. All tests pass (100%)
|
|
538
|
+
4. Coverage threshold met (≥80%)
|
|
539
|
+
5. Documentation complete
|
|
540
|
+
|
|
541
|
+
**No exceptions without explicit user override.**
|
|
542
|
+
|
|
543
|
+
## Templates
|
|
544
|
+
|
|
545
|
+
### Available Templates
|
|
546
|
+
|
|
547
|
+
This skill includes supporting templates in `templates/`:
|
|
548
|
+
|
|
549
|
+
1. **compliance-report.md**
|
|
550
|
+
- Use for Phase 1: Compliance Assessment
|
|
551
|
+
- Includes severity levels (CRITICAL/HIGH/MEDIUM/LOW)
|
|
552
|
+
- Structure for findings and recommendations
|
|
553
|
+
|
|
554
|
+
2. **migration-plan.md**
|
|
555
|
+
- Use for Phase 2: Refactoring Planning
|
|
556
|
+
- Current structure documentation
|
|
557
|
+
- Migration mapping and sequencing
|
|
558
|
+
- Rollback plan
|
|
559
|
+
|
|
560
|
+
3. **verification-checklist.md**
|
|
561
|
+
- Use for Phase 4: Code Verification
|
|
562
|
+
- Structure, imports, functionality checks
|
|
563
|
+
- Test coverage verification
|
|
564
|
+
|
|
565
|
+
### Template Usage
|
|
566
|
+
|
|
567
|
+
Templates include:
|
|
568
|
+
- Required fields with guidance
|
|
569
|
+
- Example structure
|
|
570
|
+
- Validation reminders
|
|
571
|
+
- Integration points with required skills
|
|
572
|
+
|
|
573
|
+
## Example Workflow
|
|
574
|
+
|
|
575
|
+
### Creating a New AI Project
|
|
576
|
+
|
|
577
|
+
```
|
|
578
|
+
User: "I want to create a new AI project for document processing"
|
|
579
|
+
|
|
580
|
+
Assistant: (This skill activates)
|
|
581
|
+
|
|
582
|
+
"I'll help you create a compliant AI project following LangGraph 1.0+ standards.
|
|
583
|
+
|
|
584
|
+
First, let me create the standard directory structure:
|
|
585
|
+
|
|
586
|
+
1. Create required directories (agents/, apps/, core/, configs/, models/, tests/)
|
|
587
|
+
2. Create first agent with required subdirectories
|
|
588
|
+
3. Call software-architecture skill for architectural validation
|
|
589
|
+
4. Set up initial configuration files
|
|
590
|
+
|
|
591
|
+
Then:
|
|
592
|
+
- Use test-driven-development for any initial code
|
|
593
|
+
- Ensure all architecture follows PROJECT_STRUCTURE.md
|
|
594
|
+
|
|
595
|
+
Shall I proceed with creating the structure?"
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
### Reviewing Existing Project
|
|
599
|
+
|
|
600
|
+
```
|
|
601
|
+
User: "Review my AI project structure for compliance"
|
|
602
|
+
|
|
603
|
+
Assistant: (This skill activates - Phase 1)
|
|
604
|
+
|
|
605
|
+
"I'll analyze your project structure against PROJECT_STRUCTURE.md requirements.
|
|
606
|
+
|
|
607
|
+
Scanning directories...
|
|
608
|
+
Checking agent structure...
|
|
609
|
+
Validating configuration...
|
|
610
|
+
|
|
611
|
+
Generating compliance report...
|
|
612
|
+
|
|
613
|
+
[Present report with severity levels]
|
|
614
|
+
|
|
615
|
+
Found:
|
|
616
|
+
- 3 CRITICAL issues (missing required directories)
|
|
617
|
+
- 5 HIGH issues (incorrect agent structure)
|
|
618
|
+
- 2 MEDIUM issues (naming violations)
|
|
619
|
+
|
|
620
|
+
Recommendations:
|
|
621
|
+
1. Address CRITICAL issues first (blocks development)
|
|
622
|
+
2. Refactor agent structure to match standard
|
|
623
|
+
3. Fix naming conventions
|
|
624
|
+
|
|
625
|
+
Would you like me to create a migration plan (Phase 2)?"
|
|
626
|
+
```
|
|
627
|
+
|
|
628
|
+
## Version History
|
|
629
|
+
|
|
630
|
+
| Version | Date | Owner | Change |
|
|
631
|
+
|---|---|---|---|
|
|
632
|
+
| v1.0.0 | 2026-01-13 | Claude Code | Initial skill implementation with LangGraph 1.0+ architecture compliance |
|