@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,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: HarmonyOS/ArkTS development conventions
|
|
3
|
+
globs: "*.ets", "*.ts", "oh-package.json5", "build-profile.json5"
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
# HarmonyOS/ArkTS Conventions
|
|
7
|
+
|
|
8
|
+
Follow HarmonyOS and ArkTS best practices.
|
|
9
|
+
|
|
10
|
+
## Architecture
|
|
11
|
+
- MVVM pattern
|
|
12
|
+
- @Component decorator for UI
|
|
13
|
+
- @State/@Prop/@Link for state management
|
|
14
|
+
- Repository pattern for data access
|
|
15
|
+
|
|
16
|
+
## Code Style
|
|
17
|
+
- ArkTS conventions
|
|
18
|
+
- Declarative UI paradigm (ArkUI)
|
|
19
|
+
- Modular architecture (feature modules)
|
|
20
|
+
- Emitters for event handling
|
|
21
|
+
|
|
22
|
+
## Resources
|
|
23
|
+
- Use resources directory for strings and media
|
|
24
|
+
- Use $r() references for resources
|
|
25
|
+
- Follow resource qualifiers
|
|
26
|
+
|
|
27
|
+
## Navigation
|
|
28
|
+
- Navigation component for routing
|
|
29
|
+
- Define routes in main_pages.json
|
|
30
|
+
- NavPathStack for programmatic navigation
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Java/Spring Boot development conventions
|
|
3
|
+
globs: "*.java", "pom.xml", "build.gradle"
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
# Java/Spring Boot Conventions
|
|
7
|
+
|
|
8
|
+
Follow standard Java conventions and Spring Boot best practices.
|
|
9
|
+
|
|
10
|
+
## Architecture
|
|
11
|
+
- Layered: Controller → Service → Repository
|
|
12
|
+
- Prefer constructor injection
|
|
13
|
+
- Keep controllers thin, business logic in services
|
|
14
|
+
- Use DTOs for API request/response
|
|
15
|
+
|
|
16
|
+
## Code Style
|
|
17
|
+
- Package-by-feature convention
|
|
18
|
+
- Use Lombok `@RequiredArgsConstructor` for injection
|
|
19
|
+
- Follow SOLID principles
|
|
20
|
+
- Proper exception handling with `@ControllerAdvice`
|
|
21
|
+
|
|
22
|
+
## Testing
|
|
23
|
+
- JUnit 5 + Mockito for unit tests
|
|
24
|
+
- Spring Boot Test for integration tests
|
|
25
|
+
- Minimum 70% coverage for business logic
|
|
26
|
+
|
|
27
|
+
## API Design
|
|
28
|
+
- RESTful conventions
|
|
29
|
+
- Proper HTTP status codes
|
|
30
|
+
- Version with `/api/v1/` prefix
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: atool-flutter-conventions
|
|
3
|
+
description: Flutter/Dart mobile development conventions
|
|
4
|
+
mode: agent
|
|
5
|
+
instructions: |
|
|
6
|
+
You are working on a Flutter/Dart project. Follow these conventions:
|
|
7
|
+
|
|
8
|
+
## Architecture
|
|
9
|
+
- Feature-first folder structure
|
|
10
|
+
- BLoC / Riverpod for state management
|
|
11
|
+
- Repository pattern for data access
|
|
12
|
+
- Freezed for immutable models
|
|
13
|
+
|
|
14
|
+
## Code Style
|
|
15
|
+
- Follow Dart style guide (`dart format`, `dart analyze`)
|
|
16
|
+
- Use `const` constructors where possible
|
|
17
|
+
- Prefer `final` over `var`
|
|
18
|
+
- Use extension methods for utilities
|
|
19
|
+
- Avoid `print()` — use `logger` package
|
|
20
|
+
|
|
21
|
+
## State Management
|
|
22
|
+
- Riverpod (recommended): Type-safe, compile-time checked
|
|
23
|
+
- BLoC: Event-driven, good for complex flows
|
|
24
|
+
- Provider: Simpler, for smaller apps
|
|
25
|
+
|
|
26
|
+
## Navigation
|
|
27
|
+
- GoRouter for declarative routing
|
|
28
|
+
- Deep linking support
|
|
29
|
+
- Type-safe route parameters
|
|
30
|
+
|
|
31
|
+
## Testing
|
|
32
|
+
- Unit tests with `test` package
|
|
33
|
+
- Widget tests with `flutter_test`
|
|
34
|
+
- Integration tests with `integration_test`
|
|
35
|
+
- Mocktail for mocking
|
|
36
|
+
|
|
37
|
+
## Build Commands
|
|
38
|
+
- Run: flutter run
|
|
39
|
+
- Build APK: flutter build apk
|
|
40
|
+
- Build iOS: flutter build ios
|
|
41
|
+
- Test: flutter test
|
|
42
|
+
- Analyze: flutter analyze
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: atool-react-native-conventions
|
|
3
|
+
description: React Native mobile development conventions
|
|
4
|
+
mode: agent
|
|
5
|
+
instructions: |
|
|
6
|
+
You are working on a React Native project. Follow these conventions:
|
|
7
|
+
|
|
8
|
+
## Architecture
|
|
9
|
+
- Feature-first folder structure
|
|
10
|
+
- Screen components in `screens/`
|
|
11
|
+
- Reusable components in `components/`
|
|
12
|
+
- Services/API in `services/`
|
|
13
|
+
- Hooks in `hooks/`
|
|
14
|
+
- Navigation in `navigation/`
|
|
15
|
+
|
|
16
|
+
## Code Style
|
|
17
|
+
- TypeScript for all new files
|
|
18
|
+
- Functional components with hooks
|
|
19
|
+
- Use `expo` when possible for faster development
|
|
20
|
+
- Follow React conventions
|
|
21
|
+
|
|
22
|
+
## State Management
|
|
23
|
+
- Zustand for simple to moderate state
|
|
24
|
+
- Redux Toolkit for complex state
|
|
25
|
+
- React Query / SWR for server state
|
|
26
|
+
- AsyncStorage / MMKV for persistence
|
|
27
|
+
|
|
28
|
+
## Navigation
|
|
29
|
+
- React Navigation for routing
|
|
30
|
+
- Type-safe navigation params
|
|
31
|
+
- Deep linking support
|
|
32
|
+
- Tab and stack navigators
|
|
33
|
+
|
|
34
|
+
## Testing
|
|
35
|
+
- Jest + React Native Testing Library
|
|
36
|
+
- Detox for E2E tests
|
|
37
|
+
- Mock native modules
|
|
38
|
+
|
|
39
|
+
## Build Commands
|
|
40
|
+
- Run Android: npm run android
|
|
41
|
+
- Run iOS: npm run ios
|
|
42
|
+
- Test: npm test
|
|
43
|
+
- Start Metro: npm start
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: atool-swift-conventions
|
|
3
|
+
description: Swift/iOS development conventions
|
|
4
|
+
mode: agent
|
|
5
|
+
instructions: |
|
|
6
|
+
You are working on a Swift/iOS project. Follow these conventions:
|
|
7
|
+
|
|
8
|
+
## Architecture
|
|
9
|
+
- MVVM architecture with SwiftUI
|
|
10
|
+
- The Composable Architecture (TCA) for complex state
|
|
11
|
+
- Clean Architecture for large apps
|
|
12
|
+
- Protocol-oriented design
|
|
13
|
+
|
|
14
|
+
## Code Style
|
|
15
|
+
- Follow Swift API Design Guidelines
|
|
16
|
+
- Use SwiftUI for UI (modern projects)
|
|
17
|
+
- Prefer value types over reference types
|
|
18
|
+
- Use `guard` for early returns
|
|
19
|
+
- Use `final` classes by default
|
|
20
|
+
- Use `async/await` for concurrency
|
|
21
|
+
|
|
22
|
+
## SwiftUI Patterns
|
|
23
|
+
- `@StateObject` for owned observable objects
|
|
24
|
+
- `@ObservedObject` for observed objects from parent
|
|
25
|
+
- `@EnvironmentObject` for shared state
|
|
26
|
+
- `@AppStorage` for user preferences
|
|
27
|
+
- `@Observable` macro (Observation framework)
|
|
28
|
+
|
|
29
|
+
## Navigation
|
|
30
|
+
- SwiftUI NavigationStack / NavigationSplitView
|
|
31
|
+
- Type-safe routing with enums
|
|
32
|
+
- Deep linking support
|
|
33
|
+
|
|
34
|
+
## Testing
|
|
35
|
+
- XCTest for unit and UI tests
|
|
36
|
+
- Swift Testing framework (new)
|
|
37
|
+
- Mock with protocols (no frameworks needed)
|
|
38
|
+
|
|
39
|
+
## Build Commands
|
|
40
|
+
- Build: xcodebuild build -scheme MyApp
|
|
41
|
+
- Test: xcodebuild test -scheme MyApp
|
|
42
|
+
- Run: open in Xcode and run
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Python development conventions
|
|
3
|
+
globs: "*.py", "pyproject.toml", "requirements.txt", "setup.py"
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
# Python Conventions
|
|
7
|
+
|
|
8
|
+
Follow Python best practices.
|
|
9
|
+
|
|
10
|
+
## Code Style
|
|
11
|
+
- PEP 8 conventions
|
|
12
|
+
- Type hints for all function signatures
|
|
13
|
+
- Docstrings (Google or NumPy style)
|
|
14
|
+
- Prefer pathlib over os.path
|
|
15
|
+
- f-strings for formatting
|
|
16
|
+
- Max line length: 88 or 120
|
|
17
|
+
|
|
18
|
+
## Architecture
|
|
19
|
+
- Separate routes, services, models, schemas
|
|
20
|
+
- Pydantic models for validation
|
|
21
|
+
- Dependency injection for testability
|
|
22
|
+
- Environment variables for config
|
|
23
|
+
|
|
24
|
+
## Testing
|
|
25
|
+
- pytest for all testing
|
|
26
|
+
- Fixtures for setup/teardown
|
|
27
|
+
- Mock external dependencies
|
|
28
|
+
- Aim for 80%+ coverage
|
|
29
|
+
|
|
30
|
+
## Tools
|
|
31
|
+
- Ruff for linting and formatting
|
|
32
|
+
- mypy for type checking
|
|
33
|
+
- pytest for testing
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Tauri 2 desktop app conventions (Rust + Web frontend)
|
|
3
|
+
globs: "*.rs", "*.tsx", "*.ts", "*.vue", "*.svelte", "Cargo.toml", "tauri.conf.json", "package.json"
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
# Tauri 2 Desktop App Conventions
|
|
7
|
+
|
|
8
|
+
Follow Tauri 2 best practices for Rust + Web desktop applications.
|
|
9
|
+
|
|
10
|
+
## Architecture
|
|
11
|
+
|
|
12
|
+
This is a dual-architecture project:
|
|
13
|
+
- **Frontend** (`src/`): Web UI (React/Vue/Svelte + TypeScript + Vite)
|
|
14
|
+
- **Backend** (`src-tauri/`): Rust (Tauri commands, system APIs)
|
|
15
|
+
- **Communication**: IPC via `invoke()` / `#[tauri::command]`
|
|
16
|
+
|
|
17
|
+
## Code Style
|
|
18
|
+
|
|
19
|
+
### Rust (src-tauri/)
|
|
20
|
+
- Follow Rust official style guide (`rustfmt` + `clippy`)
|
|
21
|
+
- Error handling: use `Result<T, E>`, no `unwrap()` in production
|
|
22
|
+
- Async: use `async fn` + Tokio runtime
|
|
23
|
+
- All commands: `#[tauri::command]` annotation
|
|
24
|
+
- State: inject via `tauri::State`
|
|
25
|
+
|
|
26
|
+
### Frontend (src/)
|
|
27
|
+
- TypeScript strict mode for all new files
|
|
28
|
+
- Functional components and hooks only
|
|
29
|
+
- IPC calls encapsulated in `services/` layer
|
|
30
|
+
- Component files co-located with styles
|
|
31
|
+
|
|
32
|
+
## IPC Pattern
|
|
33
|
+
|
|
34
|
+
```rust
|
|
35
|
+
// Rust side
|
|
36
|
+
#[tauri::command]
|
|
37
|
+
async fn my_command(arg: String) -> Result<String, String> {
|
|
38
|
+
Ok(format!("Received: {}", arg))
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
// Frontend side
|
|
44
|
+
import { invoke } from '@tauri-apps/api/core';
|
|
45
|
+
const result = await invoke<string>('my_command', { arg: 'value' });
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Security
|
|
49
|
+
|
|
50
|
+
- All system API access must be declared in `capabilities/`
|
|
51
|
+
- File system access scoped via `scope` configuration
|
|
52
|
+
- Window operations require proper permissions
|
|
53
|
+
- Never disable security features for convenience
|
|
54
|
+
|
|
55
|
+
## Testing
|
|
56
|
+
|
|
57
|
+
- Rust: `cargo test` in src-tauri/
|
|
58
|
+
- Frontend: `pnpm test` or `npm test`
|
|
59
|
+
- E2E: Use WebDriver or Tauri's testing utilities
|
|
60
|
+
|
|
61
|
+
## Build Commands
|
|
62
|
+
|
|
63
|
+
- Install: `pnpm install` or `npm install`
|
|
64
|
+
- Dev: `pnpm tauri dev` (hot reload for both layers)
|
|
65
|
+
- Build: `pnpm tauri build`
|
|
66
|
+
- Rust check: `cd src-tauri && cargo check`
|
|
67
|
+
- Rust lint: `cd src-tauri && cargo clippy`
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Rust/Cargo development conventions
|
|
3
|
+
globs: "*.rs", "Cargo.toml"
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
# Rust Conventions
|
|
7
|
+
|
|
8
|
+
Follow Rust best practices and idioms.
|
|
9
|
+
|
|
10
|
+
## Code Style
|
|
11
|
+
- Rust API Guidelines
|
|
12
|
+
- rustfmt for formatting
|
|
13
|
+
- clippy for linting (deny warnings)
|
|
14
|
+
- Result over panic/unwrap in libraries
|
|
15
|
+
- Meaningful error types (thiserror)
|
|
16
|
+
- Iterators and functional patterns
|
|
17
|
+
- Doc comments for public APIs
|
|
18
|
+
|
|
19
|
+
## Architecture
|
|
20
|
+
- Module system for organization
|
|
21
|
+
- Trait definitions for abstractions
|
|
22
|
+
- Custom error types with thiserror
|
|
23
|
+
- async/await for I/O operations
|
|
24
|
+
- Feature flags for optional functionality
|
|
25
|
+
|
|
26
|
+
## Testing
|
|
27
|
+
- Unit tests in-module with #[cfg(test)]
|
|
28
|
+
- Integration tests in tests/
|
|
29
|
+
- proptest for property-based testing
|
|
30
|
+
- mockall for mocking
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Web development conventions (React/Next.js/Vue/Svelte)
|
|
3
|
+
globs: "*.tsx", "*.ts", "*.vue", "*.svelte", "package.json"
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
# Web Development Conventions
|
|
7
|
+
|
|
8
|
+
Follow modern web development best practices.
|
|
9
|
+
|
|
10
|
+
## Code Style
|
|
11
|
+
- TypeScript for all new files
|
|
12
|
+
- Functional components and hooks only
|
|
13
|
+
- Follow the framework's official style guide
|
|
14
|
+
- Keep components small and focused
|
|
15
|
+
|
|
16
|
+
## Architecture
|
|
17
|
+
- Co-locate related files
|
|
18
|
+
- Use barrel exports for public APIs
|
|
19
|
+
- Prefer custom hooks/composables for reusable logic
|
|
20
|
+
- Proper prop typing with TypeScript interfaces
|
|
21
|
+
|
|
22
|
+
## State Management
|
|
23
|
+
- Framework-provided state as primary
|
|
24
|
+
- Separate server state from client state
|
|
25
|
+
- Optimistic updates for better UX
|
|
26
|
+
|
|
27
|
+
## Testing
|
|
28
|
+
- Testing Library for component tests
|
|
29
|
+
- Unit tests for utilities and hooks
|
|
30
|
+
- E2E tests for critical flows
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
inclusion: always
|
|
3
|
+
name: atool-android-conventions
|
|
4
|
+
description: Android/Kotlin development conventions
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are working on an Android/Kotlin project. Follow these conventions:
|
|
8
|
+
|
|
9
|
+
## Architecture
|
|
10
|
+
- MVVM architecture with Repository pattern
|
|
11
|
+
- Jetpack Compose for UI (modern projects)
|
|
12
|
+
- Hilt for dependency injection
|
|
13
|
+
- Room for local database
|
|
14
|
+
- Retrofit + OkHttp for networking
|
|
15
|
+
|
|
16
|
+
## Code Style
|
|
17
|
+
- Follow Kotlin coding conventions
|
|
18
|
+
- Use Android KTX extensions
|
|
19
|
+
- Coroutines and Flow over callbacks
|
|
20
|
+
- ViewModels with proper lifecycle management
|
|
21
|
+
- Sealed classes for state representation
|
|
22
|
+
- Data classes for data holders
|
|
23
|
+
|
|
24
|
+
## Resource Management
|
|
25
|
+
- snake_case naming conventions
|
|
26
|
+
- String resources for all user-facing text
|
|
27
|
+
- Vector drawables over PNG
|
|
28
|
+
- Material Design 3 guidelines
|
|
29
|
+
|
|
30
|
+
## Testing
|
|
31
|
+
- JUnit 5 + MockK for unit tests
|
|
32
|
+
- Turbine for Flow testing
|
|
33
|
+
- Compose Test Rule for UI tests
|
|
34
|
+
|
|
35
|
+
## Build Commands
|
|
36
|
+
- Build: ./gradlew assembleDebug
|
|
37
|
+
- Test: ./gradlew test
|
|
38
|
+
- Run: ./gradlew installDebug
|
|
39
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
inclusion: always
|
|
3
|
+
name: atool-devops-conventions
|
|
4
|
+
description: DevOps/Infrastructure conventions
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are working on a DevOps/Infrastructure project. Follow these conventions:
|
|
8
|
+
|
|
9
|
+
## Docker
|
|
10
|
+
- Multi-stage builds for minimal image size
|
|
11
|
+
- Pin base image versions (never use latest)
|
|
12
|
+
- Use .dockerignore
|
|
13
|
+
- Run as non-root user
|
|
14
|
+
|
|
15
|
+
## Kubernetes
|
|
16
|
+
- Declarative YAML manifests
|
|
17
|
+
- Resource limits and requests
|
|
18
|
+
- ConfigMaps and Secrets for configuration
|
|
19
|
+
- Liveness and readiness probes
|
|
20
|
+
|
|
21
|
+
## Terraform
|
|
22
|
+
- Modules for reusable infrastructure
|
|
23
|
+
- Pin provider versions
|
|
24
|
+
- Remote state with locking
|
|
25
|
+
- Separate environments (dev/staging/prod)
|
|
26
|
+
|
|
27
|
+
## CI/CD
|
|
28
|
+
- Pipeline as code
|
|
29
|
+
- Test before deploy
|
|
30
|
+
- Immutable artifacts
|
|
31
|
+
- Rollback strategy
|
|
32
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
inclusion: always
|
|
3
|
+
name: atool-generic-conventions
|
|
4
|
+
description: Generic development conventions
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are working on a generic project. Follow these conventions:
|
|
8
|
+
|
|
9
|
+
## Guidelines
|
|
10
|
+
- Follow the language's standard conventions and style guide
|
|
11
|
+
- Write clear, self-documenting code
|
|
12
|
+
- Handle errors gracefully
|
|
13
|
+
- Use version control with meaningful commit messages
|
|
14
|
+
|
|
15
|
+
## Code Quality
|
|
16
|
+
- Run linters and formatters appropriate for the language
|
|
17
|
+
- Use static analysis tools when available
|
|
18
|
+
- Write meaningful commit messages
|
|
19
|
+
|
|
20
|
+
## Testing
|
|
21
|
+
- Write tests for critical functionality
|
|
22
|
+
- Use the language's standard testing framework
|
|
23
|
+
- Mock external dependencies
|
|
24
|
+
|
|
25
|
+
## Tips
|
|
26
|
+
- aTool can auto-detect your stack once you add config files
|
|
27
|
+
- Run /atool-init to re-run initialization after project setup
|
|
28
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
inclusion: always
|
|
3
|
+
name: atool-go-conventions
|
|
4
|
+
description: Go development conventions
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are working on a Go project. Follow these conventions:
|
|
8
|
+
|
|
9
|
+
## Code Style
|
|
10
|
+
- Follow Effective Go guidelines
|
|
11
|
+
- Use gofmt/goimports for formatting
|
|
12
|
+
- Keep functions small and focused
|
|
13
|
+
- Handle errors explicitly
|
|
14
|
+
- Use interfaces for abstraction
|
|
15
|
+
- Prefer composition over inheritance
|
|
16
|
+
|
|
17
|
+
## Architecture
|
|
18
|
+
- Standard Go project layout (cmd/, internal/, pkg/)
|
|
19
|
+
- Interface definitions for abstractions
|
|
20
|
+
- Dependency injection via interfaces
|
|
21
|
+
- Use context for cancellation and timeouts
|
|
22
|
+
- Structured logging (slog or zerolog)
|
|
23
|
+
|
|
24
|
+
## Error Handling
|
|
25
|
+
- Always check returned errors
|
|
26
|
+
- Wrap errors with context (fmt.Errorf %w)
|
|
27
|
+
- Use errors.Is and errors.As for error inspection
|
|
28
|
+
|
|
29
|
+
## Testing
|
|
30
|
+
- Table-driven tests
|
|
31
|
+
- testing package + testify/assert
|
|
32
|
+
- mockgen for interface mocking
|
|
33
|
+
- go test -race for race detection
|
|
34
|
+
|
|
35
|
+
## Build Commands
|
|
36
|
+
- Build: go build ./...
|
|
37
|
+
- Test: go test ./...
|
|
38
|
+
- Lint: golangci-lint run
|
|
39
|
+
- Format: gofmt -w .
|
|
40
|
+
- Tidy: go mod tidy
|
|
41
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
inclusion: always
|
|
3
|
+
name: atool-harmony-conventions
|
|
4
|
+
description: HarmonyOS/ArkTS development conventions
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are working on a HarmonyOS/ArkTS project. Follow these conventions:
|
|
8
|
+
|
|
9
|
+
## Architecture
|
|
10
|
+
- MVVM pattern recommended
|
|
11
|
+
- @Component decorator for UI components
|
|
12
|
+
- @State, @Prop, @Link for state management
|
|
13
|
+
- AppStorage and LocalStorage for shared state
|
|
14
|
+
- Repository pattern for data access
|
|
15
|
+
|
|
16
|
+
## Code Style
|
|
17
|
+
- Follow ArkTS coding conventions
|
|
18
|
+
- Declarative UI paradigm (ArkUI)
|
|
19
|
+
- ETS (Extended TypeScript) syntax
|
|
20
|
+
- Modular architecture (feature modules)
|
|
21
|
+
|
|
22
|
+
## Resource Management
|
|
23
|
+
- Use resources directory for all resources
|
|
24
|
+
- Follow resource qualifiers (en_US, zh_CN, etc.)
|
|
25
|
+
- Use $r() for resource references
|
|
26
|
+
|
|
27
|
+
## Navigation
|
|
28
|
+
- Navigation component for page routing
|
|
29
|
+
- Define routes in main_pages.json
|
|
30
|
+
- NavPathStack for programmatic navigation
|
|
31
|
+
|
|
32
|
+
## Build Commands
|
|
33
|
+
- Build: hvigorw assembleHap
|
|
34
|
+
- Clean: hvigorw clean
|
|
35
|
+
- Test: hvigorw test
|
|
36
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
inclusion: always
|
|
3
|
+
name: atool-java-conventions
|
|
4
|
+
description: Java/Spring Boot development conventions
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are working on a Java/Spring Boot project. Follow these conventions:
|
|
8
|
+
|
|
9
|
+
## Architecture
|
|
10
|
+
- Layered architecture: Controller → Service → Repository
|
|
11
|
+
- Prefer constructor injection over field injection
|
|
12
|
+
- Keep controllers thin, business logic in services
|
|
13
|
+
- Use DTOs for API request/response, map with MapStruct
|
|
14
|
+
|
|
15
|
+
## Code Style
|
|
16
|
+
- Follow standard Java conventions (JLS)
|
|
17
|
+
- Package-by-feature convention
|
|
18
|
+
- Use Lombok where appropriate
|
|
19
|
+
- Follow SOLID principles
|
|
20
|
+
|
|
21
|
+
## Testing
|
|
22
|
+
- JUnit 5 + Mockito for unit tests
|
|
23
|
+
- Spring Boot Test for integration tests
|
|
24
|
+
- Minimum 70% coverage for business logic
|
|
25
|
+
|
|
26
|
+
## API Design
|
|
27
|
+
- Follow RESTful conventions with proper HTTP status codes
|
|
28
|
+
- Version APIs with /api/v1/ prefix
|
|
29
|
+
- Document with Springdoc/OpenAPI
|
|
30
|
+
- Use DTOs for API request/response, map with MapStruct
|
|
31
|
+
- Centralized exception handling with @ControllerAdvice
|
|
32
|
+
|
|
33
|
+
## Build Commands
|
|
34
|
+
- Build: ./mvnw clean package or ./gradlew build
|
|
35
|
+
- Test: ./mvnw test or ./gradlew test
|
|
36
|
+
- Run: ./mvnw spring-boot:run or ./gradlew bootRun
|
|
37
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
inclusion: always
|
|
3
|
+
name: atool-flutter-conventions
|
|
4
|
+
description: Flutter/Dart mobile development conventions
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are working on a Flutter/Dart project. Follow these conventions:
|
|
8
|
+
|
|
9
|
+
## Project Type
|
|
10
|
+
Flutter / Dart mobile application
|
|
11
|
+
|
|
12
|
+
## Build & Run
|
|
13
|
+
- Run: `flutter run`
|
|
14
|
+
- Build APK: `flutter build apk`
|
|
15
|
+
- Build iOS: `flutter build ios`
|
|
16
|
+
- Test: `flutter test`
|
|
17
|
+
- Analyze: `flutter analyze`
|
|
18
|
+
- Clean: `flutter clean`
|
|
19
|
+
|
|
20
|
+
## Code Style
|
|
21
|
+
- Follow Dart style guide (`dart format`, `dart analyze`)
|
|
22
|
+
- Use `const` constructors where possible
|
|
23
|
+
- Prefer `final` over `var`
|
|
24
|
+
- Use extension methods for utilities
|
|
25
|
+
- Avoid `print()` — use `logger` package
|
|
26
|
+
- Use Freezed for immutable model classes
|
|
27
|
+
|
|
28
|
+
## Architecture
|
|
29
|
+
- Feature-first folder structure
|
|
30
|
+
- BLoC / Riverpod for state management
|
|
31
|
+
- Repository pattern for data access
|
|
32
|
+
- Freezed for immutable models
|
|
33
|
+
- Clean Architecture layers
|
|
34
|
+
|
|
35
|
+
## State Management
|
|
36
|
+
- Riverpod (recommended): Type-safe, compile-time checked
|
|
37
|
+
- BLoC: Event-driven, good for complex flows
|
|
38
|
+
- Provider: Simpler, for smaller apps
|
|
39
|
+
|
|
40
|
+
## Navigation
|
|
41
|
+
- GoRouter for declarative routing
|
|
42
|
+
- Deep linking support
|
|
43
|
+
- Type-safe route parameters
|
|
44
|
+
- Bottom sheets and dialogs
|
|
45
|
+
|
|
46
|
+
## Testing
|
|
47
|
+
- Unit tests with `test` package
|
|
48
|
+
- Widget tests with `flutter_test`
|
|
49
|
+
- Integration tests with `integration_test`
|
|
50
|
+
- Mocktail for mocking
|
|
51
|
+
- Golden tests for UI snapshots
|
|
52
|
+
|
|
53
|
+
## Common Commands
|
|
54
|
+
```bash
|
|
55
|
+
# Run on connected device/emulator
|
|
56
|
+
flutter run
|
|
57
|
+
|
|
58
|
+
# Run tests
|
|
59
|
+
flutter test
|
|
60
|
+
|
|
61
|
+
# Analyze code
|
|
62
|
+
flutter analyze
|
|
63
|
+
|
|
64
|
+
# Build Android APK
|
|
65
|
+
flutter build apk
|
|
66
|
+
|
|
67
|
+
# Build iOS
|
|
68
|
+
flutter build ios
|
|
69
|
+
|
|
70
|
+
# Clean build artifacts
|
|
71
|
+
flutter clean
|
|
72
|
+
```
|
|
73
|
+
|