@caddis/cli 0.1.0 → 0.2.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/README.md +29 -16
- package/bundles/antigravity-plugin-extras/plugin.json +5 -0
- package/bundles/antigravity-plugin-extras/skills/_registry.md +154 -0
- package/bundles/antigravity-plugin-extras/skills/agent-md-refactor/SKILL.md +356 -0
- package/bundles/antigravity-plugin-extras/skills/agent-orchestration/SKILL.md +517 -0
- package/bundles/antigravity-plugin-extras/skills/algorithmic-art/SKILL.md +293 -0
- package/bundles/antigravity-plugin-extras/skills/anchor-review/SKILL.md +135 -0
- package/bundles/antigravity-plugin-extras/skills/api-client-patterns/SKILL.md +367 -0
- package/bundles/antigravity-plugin-extras/skills/architecture-design/SKILL.md +244 -0
- package/bundles/antigravity-plugin-extras/skills/architecture-diagram/SKILL.md +156 -0
- package/bundles/antigravity-plugin-extras/skills/architecture-document/SKILL.md +321 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/SKILL.md +74 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/scripts/init-artifact.sh +322 -0
- package/bundles/antigravity-plugin-extras/skills/artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/bundles/antigravity-plugin-extras/skills/ascii-art/SKILL.md +144 -0
- package/bundles/antigravity-plugin-extras/skills/asking-questions/SKILL.md +81 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/SKILL.md +118 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/cross-service/credential-management.md +450 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/browser/README.md +363 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/code-interpreter/README.md +232 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/README.md +100 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/deploy-template.sh +117 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/deployment-strategies.md +416 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/troubleshooting-guide.md +384 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/gateway/validate-deployment.sh +186 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/identity/README.md +186 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/memory/README.md +253 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/observability/README.md +517 -0
- package/bundles/antigravity-plugin-extras/skills/aws-agentic-ai/services/runtime/README.md +215 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cdk-development/SKILL.md +279 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cdk-development/references/cdk-patterns.md +431 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cdk-development/scripts/validate-stack.sh +240 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cost-operations/SKILL.md +318 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cost-operations/references/cloudwatch-alarms.md +567 -0
- package/bundles/antigravity-plugin-extras/skills/aws-cost-operations/references/operations-patterns.md +394 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/SKILL.md +758 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/deployment-best-practices.md +830 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/eda-patterns.md +1002 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/observability-best-practices.md +770 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/performance-optimization.md +671 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/security-best-practices.md +625 -0
- package/bundles/antigravity-plugin-extras/skills/aws-serverless-eda/references/serverless-patterns.md +838 -0
- package/bundles/antigravity-plugin-extras/skills/backend-to-frontend-handoff/SKILL.md +139 -0
- package/bundles/antigravity-plugin-extras/skills/banner-design/SKILL.md +188 -0
- package/bundles/antigravity-plugin-extras/skills/brand-design/SKILL.md +298 -0
- package/bundles/antigravity-plugin-extras/skills/brand-guidelines/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/brand-guidelines/SKILL.md +118 -0
- package/bundles/antigravity-plugin-extras/skills/brand-voice/SKILL.md +93 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/SKILL.md +392 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/references/agent-patterns.md +461 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/references/examples.md +188 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/references/state-patterns.md +360 -0
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/references/troubleshooting.md +362 -0
- package/bundles/antigravity-plugin-extras/skills/building-mcp-server-on-cloudflare/SKILL.md +266 -0
- package/bundles/antigravity-plugin-extras/skills/building-mcp-server-on-cloudflare/references/examples.md +115 -0
- package/bundles/antigravity-plugin-extras/skills/building-mcp-server-on-cloudflare/references/oauth-setup.md +338 -0
- package/bundles/antigravity-plugin-extras/skills/building-mcp-server-on-cloudflare/references/troubleshooting.md +317 -0
- package/bundles/antigravity-plugin-extras/skills/caching-patterns/SKILL.md +385 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/SKILL.md +91 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/bundles/antigravity-plugin-extras/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/bundles/antigravity-plugin-extras/skills/changelog-generator/SKILL.md +105 -0
- package/bundles/antigravity-plugin-extras/skills/code-explainer/SKILL.md +91 -0
- package/bundles/antigravity-plugin-extras/skills/competitive-ads-extractor/SKILL.md +294 -0
- package/bundles/antigravity-plugin-extras/skills/component-testing/SKILL.md +310 -0
- package/bundles/antigravity-plugin-extras/skills/content-research-writer/SKILL.md +539 -0
- package/bundles/antigravity-plugin-extras/skills/cross-review/SKILL.md +51 -0
- package/bundles/antigravity-plugin-extras/skills/data-analysis/SKILL.md +111 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/README.md +248 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/SKILL.md +203 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/adapter.py.template +44 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/api-router.py.template +43 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/contract-test.py.template +384 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/display-dto.py.template +39 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/frontend-service.ts.template +46 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/frontend-types.ts.template +38 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/ingestion-model.py.template +42 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/mapping-doc.md.template +46 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/normalizer.py.template +48 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/prompts/extract_requirements.md +36 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/prompts/extract_ui_demand.md +35 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/prompts/reconcile_mapping.md +66 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/assets/query-catalog.md.template +62 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/references/consumer-driven-contracts.md +131 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/references/drift-check-catalog.md +305 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/references/layer-responsibilities.md +333 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/discover_connections.py +170 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/discover_sources.py +161 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/drift_check.py +171 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/extract_schema.py +1363 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/generate_gap_report.py +81 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/generate_mapping_doc.py +294 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/ts_dto_compare.py +214 -0
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/scripts/validate_lineage.py +51 -0
- package/bundles/antigravity-plugin-extras/skills/data-loader/SKILL.md +753 -0
- package/bundles/antigravity-plugin-extras/skills/data-validation/SKILL.md +220 -0
- package/bundles/antigravity-plugin-extras/skills/db-testing/SKILL.md +117 -0
- package/bundles/antigravity-plugin-extras/skills/deploy-local/SKILL.md +259 -0
- package/bundles/antigravity-plugin-extras/skills/design-md/SKILL.md +167 -0
- package/bundles/antigravity-plugin-extras/skills/design-system-tokens/SKILL.md +240 -0
- package/bundles/antigravity-plugin-extras/skills/design-system-tokens/references/DESIGN-SYSTEM-TEMPLATE.md +577 -0
- package/bundles/antigravity-plugin-extras/skills/developer-growth-analysis/SKILL.md +323 -0
- package/bundles/antigravity-plugin-extras/skills/doc-coauthoring/SKILL.md +378 -0
- package/bundles/antigravity-plugin-extras/skills/documentation-analyzer/SKILL.md +78 -0
- package/bundles/antigravity-plugin-extras/skills/domain-name-brainstormer/SKILL.md +213 -0
- package/bundles/antigravity-plugin-extras/skills/enterprise-dashboard-aesthetic-system/SKILL.md +120 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/SKILL.md +193 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/references/element-types.md +497 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/references/excalidraw-schema.md +356 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/references/reliable-diagrams.md +115 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/scripts/README.md +60 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/scripts/add-arrow.py +354 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/scripts/add-icon-to-diagram.py +412 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/scripts/split-excalidraw-library.py +183 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/business-flow-swimlane-template.excalidraw +334 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/class-diagram-template.excalidraw +558 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/data-flow-diagram-template.excalidraw +279 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/er-diagram-template.excalidraw +662 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/flowchart-template.excalidraw +179 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/mindmap-template.excalidraw +244 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/relationship-template.excalidraw +145 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/reliable-flowchart.excalidraw +1 -0
- package/bundles/antigravity-plugin-extras/skills/excalidraw/templates/sequence-diagram-template.excalidraw +509 -0
- package/bundles/antigravity-plugin-extras/skills/file-organizer/SKILL.md +434 -0
- package/bundles/antigravity-plugin-extras/skills/game-changing-features/README.md +221 -0
- package/bundles/antigravity-plugin-extras/skills/game-changing-features/SKILL.md +265 -0
- package/bundles/antigravity-plugin-extras/skills/github-issues/SKILL.md +359 -0
- package/bundles/antigravity-plugin-extras/skills/github-issues/references/templates.md +90 -0
- package/bundles/antigravity-plugin-extras/skills/golden-nuggets/SKILL.md +192 -0
- package/bundles/antigravity-plugin-extras/skills/humanizer/SKILL.md +194 -0
- package/bundles/antigravity-plugin-extras/skills/image-enhancer/SKILL.md +100 -0
- package/bundles/antigravity-plugin-extras/skills/intent-writer/SKILL.md +201 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/SKILL.md +124 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/examples/3p-updates.md +47 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/examples/company-newsletter.md +65 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/examples/faq-answers.md +30 -0
- package/bundles/antigravity-plugin-extras/skills/internal-comms/examples/general-comms.md +16 -0
- package/bundles/antigravity-plugin-extras/skills/invoice-organizer/SKILL.md +447 -0
- package/bundles/antigravity-plugin-extras/skills/jira-issues/SKILL.md +182 -0
- package/bundles/antigravity-plugin-extras/skills/job-application/SKILL.md +188 -0
- package/bundles/antigravity-plugin-extras/skills/lead-research-assistant/SKILL.md +200 -0
- package/bundles/antigravity-plugin-extras/skills/llm-application-dev/SKILL.md +217 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/SKILL.md +100 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/references/evaluation.md +602 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/references/mcp_best_practices.md +915 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/references/node_mcp_server.md +916 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/references/python_mcp_server.md +752 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/scripts/connections.py +151 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/bundles/antigravity-plugin-extras/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/bundles/antigravity-plugin-extras/skills/meeting-insights-analyzer/SKILL.md +328 -0
- package/bundles/antigravity-plugin-extras/skills/monorepo/SKILL.md +267 -0
- package/bundles/antigravity-plugin-extras/skills/naming-analyzer/SKILL.md +376 -0
- package/bundles/antigravity-plugin-extras/skills/nextjs-app-router/SKILL.md +271 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/AUTHENTICATION.md +154 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/SKILL.md +270 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/references/api_reference.md +309 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/references/troubleshooting.md +376 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/references/usage_patterns.md +338 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/__init__.py +81 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/ask_question.py +256 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/auth_manager.py +358 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/browser_session.py +255 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/browser_utils.py +107 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/cleanup_manager.py +302 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/config.py +44 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/notebook_manager.py +410 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/run.py +102 -0
- package/bundles/antigravity-plugin-extras/skills/notebooklm/scripts/setup_environment.py +204 -0
- package/bundles/antigravity-plugin-extras/skills/observability/SKILL.md +371 -0
- package/bundles/antigravity-plugin-extras/skills/onboard-project/SKILL.md +192 -0
- package/bundles/antigravity-plugin-extras/skills/performance-testing/SKILL.md +226 -0
- package/bundles/antigravity-plugin-extras/skills/pipeline-state/SKILL.md +208 -0
- package/bundles/antigravity-plugin-extras/skills/plantuml/SKILL.md +228 -0
- package/bundles/antigravity-plugin-extras/skills/popular-web-designs/SKILL.md +142 -0
- package/bundles/antigravity-plugin-extras/skills/popular-web-designs/templates/linear.app.md +196 -0
- package/bundles/antigravity-plugin-extras/skills/popular-web-designs/templates/stripe.md +214 -0
- package/bundles/antigravity-plugin-extras/skills/popular-web-designs/templates/vercel.md +218 -0
- package/bundles/antigravity-plugin-extras/skills/prd-to-code/SKILL.md +127 -0
- package/bundles/antigravity-plugin-extras/skills/raffle-winner-picker/SKILL.md +159 -0
- package/bundles/antigravity-plugin-extras/skills/react-useeffect/README.md +320 -0
- package/bundles/antigravity-plugin-extras/skills/react-useeffect/SKILL.md +53 -0
- package/bundles/antigravity-plugin-extras/skills/react-useeffect/alternatives.md +258 -0
- package/bundles/antigravity-plugin-extras/skills/react-useeffect/anti-patterns.md +290 -0
- package/bundles/antigravity-plugin-extras/skills/receiving-code-review/SKILL.md +213 -0
- package/bundles/antigravity-plugin-extras/skills/relay/SKILL.md +246 -0
- package/bundles/antigravity-plugin-extras/skills/requesting-code-review/SKILL.md +105 -0
- package/bundles/antigravity-plugin-extras/skills/requesting-code-review/code-reviewer.md +146 -0
- package/bundles/antigravity-plugin-extras/skills/responsive-mobile-native/SKILL.md +350 -0
- package/bundles/antigravity-plugin-extras/skills/responsive-mobile-native/references/pwa-checklist.md +226 -0
- package/bundles/antigravity-plugin-extras/skills/responsive-mobile-native/references/touch-and-interaction.md +265 -0
- package/bundles/antigravity-plugin-extras/skills/responsive-mobile-native/references/transformation-catalogue.md +326 -0
- package/bundles/antigravity-plugin-extras/skills/schema-migration/SKILL.md +275 -0
- package/bundles/antigravity-plugin-extras/skills/setup-project-ai/SKILL.md +120 -0
- package/bundles/antigravity-plugin-extras/skills/shadcn-radix/SKILL.md +330 -0
- package/bundles/antigravity-plugin-extras/skills/sketch/SKILL.md +104 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/SKILL.md +646 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/color_palettes.py +302 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/easing.py +230 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/frame_composer.py +469 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/gif_builder.py +246 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/typography.py +357 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/validators.py +264 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/core/visual_effects.py +494 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/requirements.txt +4 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/bounce.py +106 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/explode.py +331 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/fade.py +329 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/flip.py +291 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/kaleidoscope.py +211 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/morph.py +329 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/move.py +293 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/pulse.py +268 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/shake.py +127 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/slide.py +291 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/spin.py +269 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/wiggle.py +300 -0
- package/bundles/antigravity-plugin-extras/skills/slack-gif-creator/templates/zoom.py +312 -0
- package/bundles/antigravity-plugin-extras/skills/slides/SKILL.md +38 -0
- package/bundles/antigravity-plugin-extras/skills/state-tracking/SKILL.md +131 -0
- package/bundles/antigravity-plugin-extras/skills/streamlit-dev/SKILL.md +268 -0
- package/bundles/antigravity-plugin-extras/skills/svg-create/SKILL.md +251 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/SKILL.md +59 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/theme-showcase.pdf +0 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/arctic-frost.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/botanical-garden.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/desert-rose.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/forest-canopy.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/golden-hour.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/midnight-galaxy.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/modern-minimalist.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/ocean-depths.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/sunset-boulevard.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/theme-factory/themes/tech-innovation.md +19 -0
- package/bundles/antigravity-plugin-extras/skills/ui-styling-patterns/LICENSE.txt +202 -0
- package/bundles/antigravity-plugin-extras/skills/ui-styling-patterns/SKILL.md +320 -0
- package/bundles/antigravity-plugin-extras/skills/ui-testing/SKILL.md +660 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/SKILL.md +660 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/_sync_all.py +414 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/app-interface.csv +31 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/charts.csv +26 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/colors.csv +162 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/design.csv +1776 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/draft.csv +1779 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/google-fonts.csv +1924 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/icons.csv +106 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/landing.csv +35 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/products.csv +162 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/react-performance.csv +45 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/styles.csv +85 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/typography.csv +74 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/ui-reasoning.csv +162 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/data/ux-guidelines.csv +100 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/scripts/core.py +247 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/scripts/design_system.py +1067 -0
- package/bundles/antigravity-plugin-extras/skills/ui-ux-intelligence/scripts/search.py +114 -0
- package/bundles/antigravity-plugin-extras/skills/understand-anything/SKILL.md +140 -0
- package/bundles/antigravity-plugin-extras/skills/understand-anything/references/commands.md +252 -0
- package/bundles/antigravity-plugin-extras/skills/understand-anything/references/graph-schema.md +116 -0
- package/bundles/antigravity-plugin-extras/skills/understand-anything/references/pipeline.md +331 -0
- package/bundles/antigravity-plugin-extras/skills/update-readme/SKILL.md +74 -0
- package/bundles/antigravity-plugin-extras/skills/verification-loop/SKILL.md +209 -0
- package/bundles/antigravity-plugin-extras/skills/video-downloader/SKILL.md +107 -0
- package/bundles/antigravity-plugin-extras/skills/webapp-development/SKILL.md +288 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/SKILL.md +339 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/agents/agent-interface.md +175 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/html.md +384 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/nlp-keywords.md +127 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/palettes.md +149 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/python.md +249 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/react.md +427 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/shapes.md +135 -0
- package/bundles/antigravity-plugin-extras/skills/word-cloud/references/stopwords.md +115 -0
- package/bundles/antigravity-plugin-extras/skills/youtube-transcript/SKILL.md +416 -0
- package/bundles/manifest.json +2 -1
- package/dist/cli.js +166 -37
- package/package.json +1 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""
|
|
4
|
+
UI/UX Pro Max Search - BM25 search engine for UI/UX style guides
|
|
5
|
+
Usage: python search.py "<query>" [--domain <domain>] [--stack <stack>] [--max-results 3]
|
|
6
|
+
python search.py "<query>" --design-system [-p "Project Name"]
|
|
7
|
+
python search.py "<query>" --design-system --persist [-p "Project Name"] [--page "dashboard"]
|
|
8
|
+
|
|
9
|
+
Domains: style, prompt, color, chart, landing, product, ux, typography, google-fonts
|
|
10
|
+
Stacks: html-tailwind, react, nextjs
|
|
11
|
+
|
|
12
|
+
Persistence (Master + Overrides pattern):
|
|
13
|
+
--persist Save design system to design-system/MASTER.md
|
|
14
|
+
--page Also create a page-specific override file in design-system/pages/
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
import argparse
|
|
18
|
+
import sys
|
|
19
|
+
import io
|
|
20
|
+
from core import CSV_CONFIG, AVAILABLE_STACKS, MAX_RESULTS, search, search_stack
|
|
21
|
+
from design_system import generate_design_system, persist_design_system
|
|
22
|
+
|
|
23
|
+
# Force UTF-8 for stdout/stderr to handle emojis on Windows (cp1252 default)
|
|
24
|
+
if sys.stdout.encoding and sys.stdout.encoding.lower() != 'utf-8':
|
|
25
|
+
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
|
26
|
+
if sys.stderr.encoding and sys.stderr.encoding.lower() != 'utf-8':
|
|
27
|
+
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8')
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def format_output(result):
|
|
31
|
+
"""Format results for Claude consumption (token-optimized)"""
|
|
32
|
+
if "error" in result:
|
|
33
|
+
return f"Error: {result['error']}"
|
|
34
|
+
|
|
35
|
+
output = []
|
|
36
|
+
if result.get("stack"):
|
|
37
|
+
output.append(f"## UI Pro Max Stack Guidelines")
|
|
38
|
+
output.append(f"**Stack:** {result['stack']} | **Query:** {result['query']}")
|
|
39
|
+
else:
|
|
40
|
+
output.append(f"## UI Pro Max Search Results")
|
|
41
|
+
output.append(f"**Domain:** {result['domain']} | **Query:** {result['query']}")
|
|
42
|
+
output.append(f"**Source:** {result['file']} | **Found:** {result['count']} results\n")
|
|
43
|
+
|
|
44
|
+
for i, row in enumerate(result['results'], 1):
|
|
45
|
+
output.append(f"### Result {i}")
|
|
46
|
+
for key, value in row.items():
|
|
47
|
+
value_str = str(value)
|
|
48
|
+
if len(value_str) > 300:
|
|
49
|
+
value_str = value_str[:300] + "..."
|
|
50
|
+
output.append(f"- **{key}:** {value_str}")
|
|
51
|
+
output.append("")
|
|
52
|
+
|
|
53
|
+
return "\n".join(output)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
if __name__ == "__main__":
|
|
57
|
+
parser = argparse.ArgumentParser(description="UI Pro Max Search")
|
|
58
|
+
parser.add_argument("query", help="Search query")
|
|
59
|
+
parser.add_argument("--domain", "-d", choices=list(CSV_CONFIG.keys()), help="Search domain")
|
|
60
|
+
parser.add_argument("--stack", "-s", choices=AVAILABLE_STACKS, help="Stack-specific search (html-tailwind, react, nextjs)")
|
|
61
|
+
parser.add_argument("--max-results", "-n", type=int, default=MAX_RESULTS, help="Max results (default: 3)")
|
|
62
|
+
parser.add_argument("--json", action="store_true", help="Output as JSON")
|
|
63
|
+
# Design system generation
|
|
64
|
+
parser.add_argument("--design-system", "-ds", action="store_true", help="Generate complete design system recommendation")
|
|
65
|
+
parser.add_argument("--project-name", "-p", type=str, default=None, help="Project name for design system output")
|
|
66
|
+
parser.add_argument("--format", "-f", choices=["ascii", "markdown"], default="ascii", help="Output format for design system")
|
|
67
|
+
# Persistence (Master + Overrides pattern)
|
|
68
|
+
parser.add_argument("--persist", action="store_true", help="Save design system to design-system/MASTER.md (creates hierarchical structure)")
|
|
69
|
+
parser.add_argument("--page", type=str, default=None, help="Create page-specific override file in design-system/pages/")
|
|
70
|
+
parser.add_argument("--output-dir", "-o", type=str, default=None, help="Output directory for persisted files (default: current directory)")
|
|
71
|
+
|
|
72
|
+
args = parser.parse_args()
|
|
73
|
+
|
|
74
|
+
# Design system takes priority
|
|
75
|
+
if args.design_system:
|
|
76
|
+
result = generate_design_system(
|
|
77
|
+
args.query,
|
|
78
|
+
args.project_name,
|
|
79
|
+
args.format,
|
|
80
|
+
persist=args.persist,
|
|
81
|
+
page=args.page,
|
|
82
|
+
output_dir=args.output_dir
|
|
83
|
+
)
|
|
84
|
+
print(result)
|
|
85
|
+
|
|
86
|
+
# Print persistence confirmation
|
|
87
|
+
if args.persist:
|
|
88
|
+
project_slug = args.project_name.lower().replace(' ', '-') if args.project_name else "default"
|
|
89
|
+
print("\n" + "=" * 60)
|
|
90
|
+
print(f"✅ Design system persisted to design-system/{project_slug}/")
|
|
91
|
+
print(f" 📄 design-system/{project_slug}/MASTER.md (Global Source of Truth)")
|
|
92
|
+
if args.page:
|
|
93
|
+
page_filename = args.page.lower().replace(' ', '-')
|
|
94
|
+
print(f" 📄 design-system/{project_slug}/pages/{page_filename}.md (Page Overrides)")
|
|
95
|
+
print("")
|
|
96
|
+
print(f"📖 Usage: When building a page, check design-system/{project_slug}/pages/[page].md first.")
|
|
97
|
+
print(f" If exists, its rules override MASTER.md. Otherwise, use MASTER.md.")
|
|
98
|
+
print("=" * 60)
|
|
99
|
+
# Stack search
|
|
100
|
+
elif args.stack:
|
|
101
|
+
result = search_stack(args.query, args.stack, args.max_results)
|
|
102
|
+
if args.json:
|
|
103
|
+
import json
|
|
104
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
105
|
+
else:
|
|
106
|
+
print(format_output(result))
|
|
107
|
+
# Domain search
|
|
108
|
+
else:
|
|
109
|
+
result = search(args.query, args.domain, args.max_results)
|
|
110
|
+
if args.json:
|
|
111
|
+
import json
|
|
112
|
+
print(json.dumps(result, indent=2, ensure_ascii=False))
|
|
113
|
+
else:
|
|
114
|
+
print(format_output(result))
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: understand-anything
|
|
3
|
+
description: >
|
|
4
|
+
Analyze any codebase or knowledge base and produce a searchable interactive knowledge graph.
|
|
5
|
+
Use this skill whenever the user asks to understand a codebase, analyze project architecture,
|
|
6
|
+
map a repo, generate an architecture diagram, create onboarding docs, explain a specific file
|
|
7
|
+
or function, analyze the impact of a PR or diff, chat about code, or run any /understand command.
|
|
8
|
+
Also triggers on phrases like "how does this project work", "map out the codebase", "what changed
|
|
9
|
+
in this PR", "explain this file", "onboard me to this project", "what does X depend on",
|
|
10
|
+
"analyze this repo", "generate a knowledge graph", or "what is the architecture of this project".
|
|
11
|
+
Always use this skill for /understand, /understand-chat, /understand-dashboard, /understand-diff,
|
|
12
|
+
/understand-domain, /understand-explain, /understand-knowledge, and /understand-onboard commands.
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Understand Anything
|
|
16
|
+
|
|
17
|
+
Multi-agent pipeline that scans a project, extracts files/functions/classes/dependencies, and
|
|
18
|
+
builds an interactive knowledge graph saved to `.understand-anything/knowledge-graph.json`.
|
|
19
|
+
|
|
20
|
+
## Commands
|
|
21
|
+
|
|
22
|
+
| Command | When to use | Reference |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| `/understand [path] [opts]` | Build (or rebuild) the knowledge graph | `references/pipeline.md` |
|
|
25
|
+
| `/understand-chat <query>` | Q&A about codebase using existing graph | `references/commands.md#chat` |
|
|
26
|
+
| `/understand-dashboard [path]` | Launch interactive web dashboard | `references/commands.md#dashboard` |
|
|
27
|
+
| `/understand-diff` | Analyze git diff / PR impact against graph | `references/commands.md#diff` |
|
|
28
|
+
| `/understand-domain [--full]` | Extract business domain flows | `references/commands.md#domain` |
|
|
29
|
+
| `/understand-explain <file>` | Deep-dive explanation of a file/function | `references/commands.md#explain` |
|
|
30
|
+
| `/understand-knowledge [dir]` | Analyze Karpathy-pattern LLM wiki | `references/commands.md#knowledge` |
|
|
31
|
+
| `/understand-onboard` | Generate onboarding guide for new team members | `references/commands.md#onboard` |
|
|
32
|
+
|
|
33
|
+
## Decision Tree
|
|
34
|
+
|
|
35
|
+
**No graph exists yet** (no `.understand-anything/knowledge-graph.json`) → `/understand`
|
|
36
|
+
→ read `references/pipeline.md` in full before proceeding.
|
|
37
|
+
|
|
38
|
+
**Graph already exists:**
|
|
39
|
+
- Question about how the codebase works → `/understand-chat`
|
|
40
|
+
- Explain a specific file or function → `/understand-explain`
|
|
41
|
+
- What a PR or set of changes touches → `/understand-diff`
|
|
42
|
+
- Business flows and domain model → `/understand-domain`
|
|
43
|
+
- Onboarding guide for new devs → `/understand-onboard`
|
|
44
|
+
- Launch visual dashboard → `/understand-dashboard`
|
|
45
|
+
- Input is a Karpathy LLM wiki (has `index.md` + `[[wikilinks]]`) → `/understand-knowledge`
|
|
46
|
+
|
|
47
|
+
For all commands except `/understand`: read `references/commands.md` for full instructions.
|
|
48
|
+
|
|
49
|
+
## Plugin Detection (Required Before Running /understand)
|
|
50
|
+
|
|
51
|
+
The pipeline uses bundled Node.js + Python scripts. Resolve the plugin root first:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
PLUGIN_ROOT=""
|
|
55
|
+
for candidate in \
|
|
56
|
+
"${CLAUDE_PLUGIN_ROOT:-}" \
|
|
57
|
+
"$HOME/.understand-anything-plugin" \
|
|
58
|
+
"$HOME/.understand-anything/repo/understand-anything-plugin" \
|
|
59
|
+
"$HOME/.copilot/skills/../../../understand-anything/understand-anything-plugin" \
|
|
60
|
+
"$HOME/understand-anything/understand-anything-plugin"; do
|
|
61
|
+
if [ -n "$candidate" ] && [ -f "$candidate/package.json" ] && \
|
|
62
|
+
[ -f "$candidate/pnpm-workspace.yaml" ]; then
|
|
63
|
+
PLUGIN_ROOT="$candidate"; break
|
|
64
|
+
fi
|
|
65
|
+
done
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Plugin found + `packages/core/dist/index.js` exists** → **Scripted mode** (fast, reliable). Skip LLM fallbacks.
|
|
69
|
+
|
|
70
|
+
**Plugin found but not built** → Build once:
|
|
71
|
+
```bash
|
|
72
|
+
cd "$PLUGIN_ROOT" && (pnpm install --frozen-lockfile 2>/dev/null || pnpm install) && \
|
|
73
|
+
pnpm --filter @understand-anything/core build
|
|
74
|
+
```
|
|
75
|
+
Requires Node.js ≥ 22 and pnpm ≥ 10. If missing, tell the user and stop.
|
|
76
|
+
|
|
77
|
+
**Plugin not found** → **LLM-native mode**. All phases run as pure LLM analysis without bundled scripts.
|
|
78
|
+
Phases 1.5 (batch computation) and 7 (fingerprints) are skipped in LLM-native mode.
|
|
79
|
+
|
|
80
|
+
## /understand Options
|
|
81
|
+
|
|
82
|
+
| Flag | Effect |
|
|
83
|
+
|---|---|
|
|
84
|
+
| `--full` | Force full rebuild, ignoring existing graph |
|
|
85
|
+
| `--review` | Run LLM graph reviewer (Phase 6) instead of inline deterministic validation |
|
|
86
|
+
| `--auto-update` | Write `autoUpdate: true` to config (enables post-commit incremental updates) |
|
|
87
|
+
| `--no-auto-update` | Write `autoUpdate: false` to config |
|
|
88
|
+
| `--language <code>` | Output language for all text content: `en`, `zh`, `zh-TW`, `ja`, `ko`, `es`, `fr`, `de`, `ru`, `pt`, `ar` |
|
|
89
|
+
| `<dir-path>` | Analyze given directory instead of current working directory |
|
|
90
|
+
|
|
91
|
+
## Pipeline Phases Summary
|
|
92
|
+
|
|
93
|
+
Read `references/pipeline.md` for full phase specifications.
|
|
94
|
+
|
|
95
|
+
| # | Phase | Key Output |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| 0 | Pre-flight | Resolve `PROJECT_ROOT`, check for existing graph, incremental vs full decision |
|
|
98
|
+
| 0.5 | Ignore config | Generate `.understandignore`, **wait for user confirmation** before proceeding |
|
|
99
|
+
| 1 | Scan | File inventory, language/framework detection, import map |
|
|
100
|
+
| 1.5 | Batch | Semantic batches for concurrent file analysis *(scripted mode only)* |
|
|
101
|
+
| 2 | Analyze | Dispatch file-analyzer subagents (≤5 concurrent), merge results |
|
|
102
|
+
| 3 | Assemble Review | Validate graph, fix dangling edges |
|
|
103
|
+
| 4 | Architecture | Assign nodes to architectural layers (API, Service, Data, UI, Utility) |
|
|
104
|
+
| 5 | Tour | Build dependency-ordered guided learning tour |
|
|
105
|
+
| 6 | Review | Inline deterministic validation (default) or full LLM review (`--review`) |
|
|
106
|
+
| 7 | Save | Write `knowledge-graph.json`, fingerprints, `meta.json`, clean intermediate |
|
|
107
|
+
|
|
108
|
+
## Output Structure
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
.understand-anything/
|
|
112
|
+
├── knowledge-graph.json ← commit this
|
|
113
|
+
├── meta.json ← commit this
|
|
114
|
+
├── config.json ← commit this
|
|
115
|
+
├── .understandignore ← commit this
|
|
116
|
+
├── intermediate/ ← DO NOT commit (scratch)
|
|
117
|
+
└── diff-overlay.json ← DO NOT commit (local only)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Graph Structure (Quick Reference)
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
knowledge-graph.json
|
|
124
|
+
├── project: { name, description, languages[], frameworks[], analyzedAt, gitCommitHash }
|
|
125
|
+
├── nodes[]: { id, type, name, filePath?, summary, tags[], complexity, languageNotes? }
|
|
126
|
+
├── edges[]: { source, target, type, direction, weight }
|
|
127
|
+
├── layers[]: { id, name, description, nodeIds[] }
|
|
128
|
+
└── tour[]: { order, title, description, nodeIds[] }
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Node ID convention: `<type>:<relative-path>[:<name>]` — e.g., `file:src/App.tsx`, `function:src/auth.ts:login`
|
|
132
|
+
|
|
133
|
+
For full node types (13), edge types (26), and weight conventions → `references/graph-schema.md`
|
|
134
|
+
|
|
135
|
+
## Error Handling (All Commands)
|
|
136
|
+
|
|
137
|
+
- Retry failed subagent dispatches **once** with additional context about the failure
|
|
138
|
+
- Always save partial results — a partial graph is better than no graph
|
|
139
|
+
- Report all skipped phases and errors in the final summary; never drop failures silently
|
|
140
|
+
- Track warnings in `$PHASE_WARNINGS` throughout and surface them in Phase 7 report
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
# Sub-Command Instructions
|
|
2
|
+
|
|
3
|
+
All commands below require `.understand-anything/knowledge-graph.json` to exist.
|
|
4
|
+
If it doesn't, tell the user to run `/understand` first.
|
|
5
|
+
|
|
6
|
+
## Efficient Graph Reading (All Commands)
|
|
7
|
+
|
|
8
|
+
- **Never dump the full graph into context** — always search first
|
|
9
|
+
- Use `grep -i "<term>"` in the graph file to find relevant entries
|
|
10
|
+
- Read only sections you need: project metadata, matched nodes, connected edges, relevant layers
|
|
11
|
+
- Node `summary` and `name` are the most useful fields for understanding
|
|
12
|
+
- Edges reveal how components connect — follow `imports` and `calls` for dependency chains
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<a name="chat"></a>
|
|
17
|
+
## /understand-chat — Q&A About Codebase
|
|
18
|
+
|
|
19
|
+
Answer questions about the codebase using the knowledge graph.
|
|
20
|
+
|
|
21
|
+
**Steps:**
|
|
22
|
+
1. Read project metadata only — grep or read the top few lines for `"project"` section
|
|
23
|
+
2. Search for relevant nodes matching the user's query keywords:
|
|
24
|
+
- Search `"name"` fields: `grep -i "<keyword>" knowledge-graph.json`
|
|
25
|
+
- Search `"summary"` fields for semantic matches
|
|
26
|
+
- Search `"tags"` arrays for topic matches
|
|
27
|
+
- Note the `id` values of all matching nodes
|
|
28
|
+
3. Find connected edges for each matched node ID:
|
|
29
|
+
- Grep for the ID to find outgoing (`"source"`) and incoming (`"target"`) edges
|
|
30
|
+
- This gives the 1-hop subgraph around the query
|
|
31
|
+
4. Read layer context — grep for the matched node IDs in `"layers"` to find architectural context
|
|
32
|
+
5. Answer using only the relevant subgraph:
|
|
33
|
+
- Reference specific files, functions, and relationships from the graph
|
|
34
|
+
- Explain which layers are relevant and why
|
|
35
|
+
- If query matches nothing, say so and suggest related terms from the graph
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
<a name="dashboard"></a>
|
|
40
|
+
## /understand-dashboard — Launch Interactive Dashboard
|
|
41
|
+
|
|
42
|
+
Start the interactive web dashboard for the knowledge graph.
|
|
43
|
+
|
|
44
|
+
**Steps:**
|
|
45
|
+
1. Resolve project directory from `$ARGUMENTS` (if provided) or use CWD
|
|
46
|
+
2. Verify `$PROJECT_ROOT/.understand-anything/knowledge-graph.json` exists
|
|
47
|
+
3. Resolve plugin root (same logic as main SKILL.md plugin detection)
|
|
48
|
+
4. Start the dashboard:
|
|
49
|
+
|
|
50
|
+
**Scripted mode:**
|
|
51
|
+
```bash
|
|
52
|
+
# Find dashboard server in plugin packages
|
|
53
|
+
DASHBOARD_DIST="$PLUGIN_ROOT/packages/dashboard/dist"
|
|
54
|
+
if [ ! -d "$DASHBOARD_DIST" ]; then
|
|
55
|
+
cd "$PLUGIN_ROOT" && pnpm --filter @understand-anything/dashboard build
|
|
56
|
+
fi
|
|
57
|
+
node "$PLUGIN_ROOT/packages/dashboard-server/bin/serve.js" \
|
|
58
|
+
--graph "$PROJECT_ROOT/.understand-anything/knowledge-graph.json" \
|
|
59
|
+
--port 8080
|
|
60
|
+
```
|
|
61
|
+
Report: `Dashboard running at http://localhost:8080`
|
|
62
|
+
|
|
63
|
+
**LLM-native mode:** Report that the dashboard requires the plugin to be installed:
|
|
64
|
+
> The interactive dashboard requires the Understand Anything plugin.
|
|
65
|
+
> Install with: `curl -fsSL https://raw.githubusercontent.com/Lum1104/Understand-Anything/main/install.sh | bash -s vscode`
|
|
66
|
+
> Then re-run `/understand-dashboard`.
|
|
67
|
+
> Alternatively, I can provide a text-based summary of the graph using `/understand-chat`.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
<a name="diff"></a>
|
|
72
|
+
## /understand-diff — Analyze Git Diff / PR Impact
|
|
73
|
+
|
|
74
|
+
Analyze code changes against the knowledge graph to surface affected components and risk.
|
|
75
|
+
|
|
76
|
+
**Steps:**
|
|
77
|
+
1. Read project metadata (grep `"project"` section)
|
|
78
|
+
2. Get changed files:
|
|
79
|
+
- Uncommitted changes: `git diff --name-only`
|
|
80
|
+
- Feature branch vs base: `git diff main...HEAD --name-only`
|
|
81
|
+
- User specifies branch or PR: use that
|
|
82
|
+
3. Find nodes for each changed file — grep for `"filePath"` matching each changed path
|
|
83
|
+
- Captures file-level nodes AND function/class nodes defined in those files
|
|
84
|
+
- Note all matched node IDs as `$CHANGED_NODE_IDS`
|
|
85
|
+
4. Find 1-hop connected nodes (affected components):
|
|
86
|
+
- For each changed node ID, grep for that ID in `"edges"` section
|
|
87
|
+
- Upstream: nodes where changed ID appears as `"target"` (they depend on it)
|
|
88
|
+
- Downstream: nodes where changed ID appears as `"source"` (it depends on them)
|
|
89
|
+
- Record as `$AFFECTED_NODE_IDS` (exclude `$CHANGED_NODE_IDS`)
|
|
90
|
+
5. Identify affected layers — grep for matched IDs in `"layers"`
|
|
91
|
+
6. Produce structured analysis:
|
|
92
|
+
- **Changed Components**: directly modified (with summaries from matched nodes)
|
|
93
|
+
- **Affected Components**: potentially impacted (from 1-hop edges), with relationship explanation
|
|
94
|
+
- **Affected Layers**: which architectural layers are touched, cross-layer concerns
|
|
95
|
+
- **Risk Assessment**: based on node `complexity`, number of cross-layer edges, blast radius
|
|
96
|
+
- Suggest what to review carefully; flag high-complexity affected nodes
|
|
97
|
+
7. Write diff overlay (enables dashboard visualization):
|
|
98
|
+
```json
|
|
99
|
+
// .understand-anything/diff-overlay.json
|
|
100
|
+
{
|
|
101
|
+
"version": "1.0.0",
|
|
102
|
+
"baseBranch": "<base>",
|
|
103
|
+
"generatedAt": "<ISO timestamp>",
|
|
104
|
+
"changedFiles": ["<paths>"],
|
|
105
|
+
"changedNodeIds": ["<ids>"],
|
|
106
|
+
"affectedNodeIds": ["<ids>"]
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
Tell user they can run `/understand-dashboard` to see the overlay visually.
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
<a name="domain"></a>
|
|
114
|
+
## /understand-domain — Extract Business Domain Flows
|
|
115
|
+
|
|
116
|
+
Extract business domains, flows, and process steps from the codebase and add them to the graph.
|
|
117
|
+
|
|
118
|
+
**When to derive from existing graph** (default): read `knowledge-graph.json`, extract domain concepts from node summaries and tags
|
|
119
|
+
**When to do lightweight scan** (`--full` flag or no graph exists): file tree + entry point detection + sampled files
|
|
120
|
+
|
|
121
|
+
**Steps:**
|
|
122
|
+
1. Resolve `PROJECT_ROOT` (same logic as main skill)
|
|
123
|
+
2. Check for `--full` flag or absence of `knowledge-graph.json`
|
|
124
|
+
|
|
125
|
+
**From existing graph** (fast path):
|
|
126
|
+
- Read nodes and their summaries, tags, and layer assignments
|
|
127
|
+
- Identify business domains by clustering nodes with related tags and summaries
|
|
128
|
+
- Extract flows: sequences of operations that accomplish a business goal
|
|
129
|
+
- Map each flow to its constituent nodes
|
|
130
|
+
|
|
131
|
+
**Lightweight scan** (`--full` or no graph):
|
|
132
|
+
- Run file discovery (reduced Phase 1): detect entry points, key files
|
|
133
|
+
- Sample representative files from each directory
|
|
134
|
+
- Analyze sampled files for business logic patterns
|
|
135
|
+
|
|
136
|
+
3. For each domain/flow identified, dispatch `domain-analyzer` subagent (scripted) or analyze inline (LLM-native)
|
|
137
|
+
|
|
138
|
+
4. Produce domain nodes:
|
|
139
|
+
- `domain` nodes: high-level business areas (e.g., `domain:authentication`, `domain:billing`)
|
|
140
|
+
- `flow` nodes: business processes (e.g., `flow:user-registration`)
|
|
141
|
+
- `step` nodes: individual steps within a flow (e.g., `step:validate-email`)
|
|
142
|
+
|
|
143
|
+
5. Produce domain edges:
|
|
144
|
+
- `contains_flow`: domain → flow
|
|
145
|
+
- `flow_step`: flow → step (ordered)
|
|
146
|
+
- `related`: step → existing graph nodes that implement the step
|
|
147
|
+
|
|
148
|
+
6. Merge domain nodes/edges into `knowledge-graph.json` (append, preserving existing nodes/edges)
|
|
149
|
+
7. Report: domains found, flows extracted, steps mapped
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
<a name="explain"></a>
|
|
154
|
+
## /understand-explain — Deep-Dive Explanation of a Component
|
|
155
|
+
|
|
156
|
+
Provide a thorough explanation of a specific file, function, class, or module.
|
|
157
|
+
|
|
158
|
+
**Steps:**
|
|
159
|
+
1. Find the target node — grep `knowledge-graph.json` for `$ARGUMENTS` (path or name):
|
|
160
|
+
- File path match: search `"filePath"` fields
|
|
161
|
+
- Function notation (`file.ts:functionName`): search `"name"` filtered by file path
|
|
162
|
+
- Partial name: search `"name"` fields broadly
|
|
163
|
+
- Note the exact `id`, `type`, `summary`, `tags`, `complexity`
|
|
164
|
+
2. Find all connected edges for the target node ID:
|
|
165
|
+
- Outgoing (`"source"` matches): what this node calls/imports/depends on
|
|
166
|
+
- Incoming (`"target"` matches): what calls/imports/depends on this node
|
|
167
|
+
- Note connected node IDs and edge types
|
|
168
|
+
3. Read connected nodes (names, summaries, types) to build the component's neighborhood
|
|
169
|
+
4. Identify the layer — grep target ID in `"layers"`
|
|
170
|
+
5. Read the actual source file at the node's `filePath`
|
|
171
|
+
6. Produce explanation:
|
|
172
|
+
- **Role in architecture**: which layer, why it exists, what problem it solves
|
|
173
|
+
- **Internal structure**: contained functions/classes (from `contains` edges)
|
|
174
|
+
- **External connections**: what it imports, what calls it, what it depends on
|
|
175
|
+
- **Data flow**: inputs → processing → outputs (from source code)
|
|
176
|
+
- **Patterns and complexity**: idioms, design patterns, areas worth careful attention
|
|
177
|
+
- Assume the reader may not know the programming language deeply
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
<a name="knowledge"></a>
|
|
182
|
+
## /understand-knowledge — Analyze LLM Wiki Knowledge Base
|
|
183
|
+
|
|
184
|
+
Analyze a Karpathy-pattern LLM wiki and produce a knowledge graph of entities, relationships, and topics.
|
|
185
|
+
|
|
186
|
+
**Detection signals** (all should be present):
|
|
187
|
+
- `index.md` exists with category structure
|
|
188
|
+
- Multiple `.md` files with `[[wikilink]]` syntax
|
|
189
|
+
- Optional: `raw/` directory with source documents
|
|
190
|
+
- Optional: `log.md` chronological operation log
|
|
191
|
+
- Optional: `CLAUDE.md`, `AGENTS.md`, or similar schema file
|
|
192
|
+
|
|
193
|
+
**Steps:**
|
|
194
|
+
1. Resolve wiki directory from `$ARGUMENTS` or CWD
|
|
195
|
+
2. Detect the wiki structure:
|
|
196
|
+
- Parse `index.md` for categories and wikilink references
|
|
197
|
+
- Enumerate all `.md` files in the wiki
|
|
198
|
+
- Check for `raw/` directory (source documents)
|
|
199
|
+
- Read schema/config file if present
|
|
200
|
+
|
|
201
|
+
3. **Phase: Deterministic extraction**
|
|
202
|
+
- Extract all explicit wikilinks from each wiki file: `[[target]]` → `related` edge
|
|
203
|
+
- Extract categories from `index.md`
|
|
204
|
+
- Build initial node list: one node per wiki file
|
|
205
|
+
|
|
206
|
+
4. **Phase: LLM enrichment** (dispatch `article-analyzer` subagent or analyze inline)
|
|
207
|
+
For each wiki article:
|
|
208
|
+
- Extract named entities (people, places, concepts, technologies)
|
|
209
|
+
- Identify implicit relationships not captured by wikilinks
|
|
210
|
+
- Extract claims and their source references
|
|
211
|
+
- Identify topic clusters
|
|
212
|
+
|
|
213
|
+
5. Produce knowledge graph nodes:
|
|
214
|
+
- `article` nodes: one per wiki file
|
|
215
|
+
- `entity` nodes: extracted named entities
|
|
216
|
+
- `topic` nodes: thematic clusters
|
|
217
|
+
- `claim` nodes: key assertions in the wiki
|
|
218
|
+
- `source` nodes: raw source documents (if `raw/` exists)
|
|
219
|
+
|
|
220
|
+
6. Produce knowledge graph edges:
|
|
221
|
+
- `related`: wikilinks and implicit relationships
|
|
222
|
+
- `cites`: claim → source document
|
|
223
|
+
- `contains`: topic → article/entity
|
|
224
|
+
|
|
225
|
+
7. Write `knowledge-graph.json` with full KnowledgeGraph structure
|
|
226
|
+
8. Launch dashboard (if scripted mode available)
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
<a name="onboard"></a>
|
|
231
|
+
## /understand-onboard — Generate Onboarding Guide
|
|
232
|
+
|
|
233
|
+
Generate a comprehensive onboarding guide from the project's knowledge graph.
|
|
234
|
+
|
|
235
|
+
**Steps:**
|
|
236
|
+
1. Read project metadata (grep `"project"` section: name, description, languages, frameworks)
|
|
237
|
+
2. Read layers — grep for `"layers"` to get full layer array with names and descriptions
|
|
238
|
+
3. Read tour — grep for `"tour"` to get the ordered guided walkthrough steps
|
|
239
|
+
4. Read file-level structural nodes only (skip function/class nodes for high-level guide):
|
|
240
|
+
- Types: `file`, `config`, `document`, `service`, `pipeline`, `table`, `schema`, `resource`, `endpoint`
|
|
241
|
+
- Extract `name`, `filePath`, `summary`, `complexity` for each
|
|
242
|
+
5. Identify complexity hotspots — nodes with `complexity: "complex"` or `"high"`
|
|
243
|
+
6. Generate onboarding guide as markdown with these sections:
|
|
244
|
+
- **Project Overview**: name, languages, frameworks, description
|
|
245
|
+
- **Architecture**: each layer's name, description, and key files
|
|
246
|
+
- **Key Concepts**: important patterns and design decisions (from node summaries and tags)
|
|
247
|
+
- **Guided Tour**: step-by-step walkthrough (from the `tour` section, ordered by `order`)
|
|
248
|
+
- **File Map**: what each key file does, organized by layer
|
|
249
|
+
- **Complexity Hotspots**: areas to approach carefully (from complexity values)
|
|
250
|
+
- **Getting Started**: how to run, configure, and contribute (from config/pipeline nodes)
|
|
251
|
+
7. Offer to save as `docs/ONBOARDING.md` in the project
|
|
252
|
+
8. Suggest committing it so the team benefits from it
|
package/bundles/antigravity-plugin-extras/skills/understand-anything/references/graph-schema.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Knowledge Graph Schema Reference
|
|
2
|
+
|
|
3
|
+
## Node Types (13 total)
|
|
4
|
+
|
|
5
|
+
| Type | Description | ID Convention |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| `file` | Source code file | `file:<relative-path>` |
|
|
8
|
+
| `function` | Function or method | `function:<relative-path>:<name>` |
|
|
9
|
+
| `class` | Class, interface, or type | `class:<relative-path>:<name>` |
|
|
10
|
+
| `module` | Logical module or package | `module:<name>` |
|
|
11
|
+
| `concept` | Abstract concept or pattern | `concept:<name>` |
|
|
12
|
+
| `config` | Config file (YAML, JSON, TOML, env) | `config:<relative-path>` |
|
|
13
|
+
| `document` | Docs file (Markdown, RST, TXT) | `document:<relative-path>` |
|
|
14
|
+
| `service` | Deployable service (Dockerfile, K8s) | `service:<relative-path>` |
|
|
15
|
+
| `table` | Database table or migration | `table:<relative-path>:<table-name>` |
|
|
16
|
+
| `endpoint` | API endpoint or route | `endpoint:<relative-path>:<endpoint-name>` |
|
|
17
|
+
| `pipeline` | CI/CD pipeline config | `pipeline:<relative-path>` |
|
|
18
|
+
| `schema` | Schema definition (GraphQL, Protobuf, Prisma) | `schema:<relative-path>` |
|
|
19
|
+
| `resource` | Infrastructure resource (Terraform, CloudFormation) | `resource:<relative-path>` |
|
|
20
|
+
|
|
21
|
+
**File-level types** (assigned to layers, used in tour):
|
|
22
|
+
`file`, `config`, `document`, `service`, `table`, `endpoint`, `pipeline`, `schema`, `resource`
|
|
23
|
+
|
|
24
|
+
**Sub-file types** (not assigned to layers):
|
|
25
|
+
`function`, `class`, `module`, `concept`
|
|
26
|
+
|
|
27
|
+
**Domain/knowledge types** (used by `/understand-knowledge` and `/understand-domain`):
|
|
28
|
+
`domain`, `flow`, `step`, `article`, `entity`, `topic`, `claim`, `source`
|
|
29
|
+
|
|
30
|
+
## Node Fields
|
|
31
|
+
|
|
32
|
+
| Field | Required | Description |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| `id` | ✓ | Unique identifier (type-prefixed) |
|
|
35
|
+
| `type` | ✓ | One of the 13 types above |
|
|
36
|
+
| `name` | ✓ | Display name |
|
|
37
|
+
| `summary` | ✓ | Plain-English description |
|
|
38
|
+
| `tags` | ✓ | Array of topic strings |
|
|
39
|
+
| `filePath` | ✓ (file-level) | Relative path from project root |
|
|
40
|
+
| `complexity` | — | `simple`, `moderate`, or `complex` |
|
|
41
|
+
| `languageNotes` | — | Language-specific idioms worth noting |
|
|
42
|
+
| `languageLesson` | — | Teaching note for the guided tour |
|
|
43
|
+
|
|
44
|
+
## Edge Types (26 total)
|
|
45
|
+
|
|
46
|
+
| Category | Types |
|
|
47
|
+
|---|---|
|
|
48
|
+
| Structural | `imports`, `exports`, `contains`, `inherits`, `implements` |
|
|
49
|
+
| Behavioral | `calls`, `subscribes`, `publishes`, `middleware` |
|
|
50
|
+
| Data flow | `reads_from`, `writes_to`, `transforms`, `validates` |
|
|
51
|
+
| Dependencies | `depends_on`, `tested_by`, `configures` |
|
|
52
|
+
| Semantic | `related`, `similar_to` |
|
|
53
|
+
| Infrastructure | `deploys`, `serves`, `provisions`, `triggers` |
|
|
54
|
+
| Schema/Data | `migrates`, `documents`, `routes`, `defines_schema` |
|
|
55
|
+
| Knowledge graph | `contains_flow`, `flow_step`, `cites` |
|
|
56
|
+
|
|
57
|
+
## Edge Fields
|
|
58
|
+
|
|
59
|
+
| Field | Description |
|
|
60
|
+
|---|---|
|
|
61
|
+
| `source` | Source node ID |
|
|
62
|
+
| `target` | Target node ID |
|
|
63
|
+
| `type` | One of the 26 edge types |
|
|
64
|
+
| `direction` | `outgoing` (source→target) or `incoming` |
|
|
65
|
+
| `weight` | 0.0–1.0 relevance weight |
|
|
66
|
+
|
|
67
|
+
## Edge Weight Conventions
|
|
68
|
+
|
|
69
|
+
| Type | Weight |
|
|
70
|
+
|---|---|
|
|
71
|
+
| `contains` | 1.0 |
|
|
72
|
+
| `inherits`, `implements` | 0.9 |
|
|
73
|
+
| `calls`, `exports`, `defines_schema` | 0.8 |
|
|
74
|
+
| `imports`, `deploys`, `migrates` | 0.7 |
|
|
75
|
+
| `depends_on`, `configures`, `triggers` | 0.6 |
|
|
76
|
+
| `tested_by`, `documents`, `provisions`, `serves`, `routes` | 0.5 |
|
|
77
|
+
| All others | 0.5 (default) |
|
|
78
|
+
|
|
79
|
+
## Architecture Layers (Standard)
|
|
80
|
+
|
|
81
|
+
Typical layer assignments (may vary by project):
|
|
82
|
+
|
|
83
|
+
| Layer | Description | Typical types |
|
|
84
|
+
|---|---|---|
|
|
85
|
+
| `layer:api` | API endpoints, controllers, routes | `endpoint`, `file` |
|
|
86
|
+
| `layer:service` | Business logic, services | `file`, `function`, `class` |
|
|
87
|
+
| `layer:data` | Database access, models, migrations | `table`, `file`, `schema` |
|
|
88
|
+
| `layer:ui` | UI components, views, styles | `file` |
|
|
89
|
+
| `layer:utility` | Shared utilities, helpers, types | `file`, `module`, `concept` |
|
|
90
|
+
| `layer:config` | Configuration, environment | `config` |
|
|
91
|
+
| `layer:infra` | Infrastructure, CI/CD, containers | `service`, `pipeline`, `resource` |
|
|
92
|
+
| `layer:docs` | Documentation | `document` |
|
|
93
|
+
|
|
94
|
+
## Graph-Level Structure
|
|
95
|
+
|
|
96
|
+
```json
|
|
97
|
+
{
|
|
98
|
+
"version": "1.0.0",
|
|
99
|
+
"project": {
|
|
100
|
+
"name": "string",
|
|
101
|
+
"description": "string",
|
|
102
|
+
"languages": ["string"],
|
|
103
|
+
"frameworks": ["string"],
|
|
104
|
+
"analyzedAt": "ISO 8601",
|
|
105
|
+
"gitCommitHash": "string"
|
|
106
|
+
},
|
|
107
|
+
"nodes": [/* GraphNode objects */],
|
|
108
|
+
"edges": [/* GraphEdge objects */],
|
|
109
|
+
"layers": [
|
|
110
|
+
{ "id": "layer:<name>", "name": "string", "description": "string", "nodeIds": ["string"] }
|
|
111
|
+
],
|
|
112
|
+
"tour": [
|
|
113
|
+
{ "order": 1, "title": "string", "description": "string", "nodeIds": ["string"], "languageLesson?": "string" }
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
```
|