@ruaruababa/vibe-kit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CATALOG.md +317 -0
- package/README.md +121 -0
- package/aliases.json +65 -0
- package/bin/vibe.js +2 -0
- package/bundles.json +265 -0
- package/catalog.json +1560 -0
- package/dist/antigravity-skills/bin/cli.js +438 -0
- package/dist/antigravity-skills/lib/skill-utils.js +158 -0
- package/dist/antigravity-skills/scripts/build-catalog.js +305 -0
- package/dist/antigravity-skills/scripts/normalize-frontmatter.js +144 -0
- package/dist/antigravity-skills/scripts/validate-skills.js +230 -0
- package/dist/bin/vibe.js +2 -0
- package/dist/dist/src/cli/index.js +26 -0
- package/dist/lib/skill-utils.js +158 -0
- package/dist/scripts/build-catalog.js +50 -0
- package/dist/scripts/normalize-frontmatter.js +144 -0
- package/dist/scripts/validate-skills.js +56 -0
- package/dist/src/cli/index.js +146 -0
- package/dist/src/types/index.js +13 -0
- package/dist/src/utils/fs.js +1 -0
- package/package.json +43 -0
- package/skills/accessibility-compliance-accessibility-audit/SKILL.md +42 -0
- package/skills/accessibility-compliance-accessibility-audit/resources/implementation-playbook.md +502 -0
- package/skills/agent-orchestration-improve-agent/SKILL.md +349 -0
- package/skills/agent-orchestration-multi-agent-optimize/SKILL.md +239 -0
- package/skills/agent-orchestrator/SKILL.md +24 -0
- package/skills/ai-engineer/SKILL.md +171 -0
- package/skills/airflow-dag-patterns/SKILL.md +41 -0
- package/skills/airflow-dag-patterns/resources/implementation-playbook.md +509 -0
- package/skills/angular-migration/SKILL.md +428 -0
- package/skills/anti-reversing-techniques/SKILL.md +42 -0
- package/skills/anti-reversing-techniques/resources/implementation-playbook.md +539 -0
- package/skills/api-design-principles/SKILL.md +37 -0
- package/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/skills/api-design-principles/resources/implementation-playbook.md +513 -0
- package/skills/api-documenter/SKILL.md +184 -0
- package/skills/api-testing-observability-api-mock/SKILL.md +46 -0
- package/skills/api-testing-observability-api-mock/resources/implementation-playbook.md +1327 -0
- package/skills/application-performance-performance-optimization/SKILL.md +154 -0
- package/skills/architect-review/SKILL.md +174 -0
- package/skills/architecture-decision-records/SKILL.md +441 -0
- package/skills/architecture-patterns/SKILL.md +37 -0
- package/skills/architecture-patterns/resources/implementation-playbook.md +479 -0
- package/skills/arm-cortex-expert/SKILL.md +306 -0
- package/skills/async-python-patterns/SKILL.md +39 -0
- package/skills/async-python-patterns/resources/implementation-playbook.md +678 -0
- package/skills/attack-tree-construction/SKILL.md +38 -0
- package/skills/attack-tree-construction/resources/implementation-playbook.md +671 -0
- package/skills/auth-implementation-patterns/SKILL.md +39 -0
- package/skills/auth-implementation-patterns/resources/implementation-playbook.md +618 -0
- package/skills/backend-architect/SKILL.md +333 -0
- package/skills/backend-development-feature-development/SKILL.md +180 -0
- package/skills/backend-security-coder/SKILL.md +156 -0
- package/skills/backtesting-frameworks/SKILL.md +39 -0
- package/skills/backtesting-frameworks/resources/implementation-playbook.md +647 -0
- package/skills/bash-defensive-patterns/SKILL.md +43 -0
- package/skills/bash-defensive-patterns/resources/implementation-playbook.md +517 -0
- package/skills/bash-pro/SKILL.md +310 -0
- package/skills/bats-testing-patterns/SKILL.md +34 -0
- package/skills/bats-testing-patterns/resources/implementation-playbook.md +614 -0
- package/skills/bazel-build-optimization/SKILL.md +397 -0
- package/skills/billing-automation/SKILL.md +42 -0
- package/skills/billing-automation/resources/implementation-playbook.md +544 -0
- package/skills/binary-analysis-patterns/SKILL.md +450 -0
- package/skills/blockchain-developer/SKILL.md +208 -0
- package/skills/business-analyst/SKILL.md +182 -0
- package/skills/c-pro/SKILL.md +56 -0
- package/skills/c4-architecture-c4-architecture/SKILL.md +389 -0
- package/skills/c4-code/SKILL.md +244 -0
- package/skills/c4-component/SKILL.md +153 -0
- package/skills/c4-container/SKILL.md +171 -0
- package/skills/c4-context/SKILL.md +150 -0
- package/skills/changelog-automation/SKILL.md +38 -0
- package/skills/changelog-automation/resources/implementation-playbook.md +538 -0
- package/skills/cicd-automation-workflow-automate/SKILL.md +51 -0
- package/skills/cicd-automation-workflow-automate/resources/implementation-playbook.md +1333 -0
- package/skills/clean-markdown/SKILL.md +23 -0
- package/skills/cloud-architect/SKILL.md +135 -0
- package/skills/code-documentation-code-explain/SKILL.md +46 -0
- package/skills/code-documentation-code-explain/resources/implementation-playbook.md +802 -0
- package/skills/code-documentation-doc-generate/SKILL.md +48 -0
- package/skills/code-documentation-doc-generate/resources/implementation-playbook.md +640 -0
- package/skills/code-refactoring-context-restore/SKILL.md +179 -0
- package/skills/code-refactoring-refactor-clean/SKILL.md +51 -0
- package/skills/code-refactoring-refactor-clean/resources/implementation-playbook.md +879 -0
- package/skills/code-refactoring-tech-debt/SKILL.md +386 -0
- package/skills/code-review-ai-ai-review/SKILL.md +450 -0
- package/skills/code-review-excellence/SKILL.md +40 -0
- package/skills/code-review-excellence/resources/implementation-playbook.md +515 -0
- package/skills/code-reviewer/SKILL.md +178 -0
- package/skills/codebase-cleanup-deps-audit/SKILL.md +51 -0
- package/skills/codebase-cleanup-deps-audit/resources/implementation-playbook.md +766 -0
- package/skills/codebase-cleanup-refactor-clean/SKILL.md +51 -0
- package/skills/codebase-cleanup-refactor-clean/resources/implementation-playbook.md +879 -0
- package/skills/codebase-cleanup-tech-debt/SKILL.md +386 -0
- package/skills/competitive-landscape/SKILL.md +34 -0
- package/skills/competitive-landscape/resources/implementation-playbook.md +494 -0
- package/skills/comprehensive-review-full-review/SKILL.md +146 -0
- package/skills/comprehensive-review-pr-enhance/SKILL.md +46 -0
- package/skills/comprehensive-review-pr-enhance/resources/implementation-playbook.md +691 -0
- package/skills/conductor-implement/SKILL.md +388 -0
- package/skills/conductor-manage/SKILL.md +39 -0
- package/skills/conductor-manage/resources/implementation-playbook.md +1120 -0
- package/skills/conductor-new-track/SKILL.md +433 -0
- package/skills/conductor-revert/SKILL.md +372 -0
- package/skills/conductor-setup/SKILL.md +426 -0
- package/skills/conductor-status/SKILL.md +338 -0
- package/skills/conductor-validator/SKILL.md +62 -0
- package/skills/content-marketer/SKILL.md +170 -0
- package/skills/context-driven-development/SKILL.md +400 -0
- package/skills/context-management-context-restore/SKILL.md +179 -0
- package/skills/context-management-context-save/SKILL.md +177 -0
- package/skills/context-manager/SKILL.md +185 -0
- package/skills/cost-optimization/SKILL.md +286 -0
- package/skills/cpp-pro/SKILL.md +59 -0
- package/skills/cqrs-implementation/SKILL.md +35 -0
- package/skills/cqrs-implementation/resources/implementation-playbook.md +540 -0
- package/skills/csharp-pro/SKILL.md +59 -0
- package/skills/customer-support/SKILL.md +170 -0
- package/skills/data-engineer/SKILL.md +224 -0
- package/skills/data-engineering-data-driven-feature/SKILL.md +182 -0
- package/skills/data-engineering-data-pipeline/SKILL.md +201 -0
- package/skills/data-quality-frameworks/SKILL.md +40 -0
- package/skills/data-quality-frameworks/resources/implementation-playbook.md +573 -0
- package/skills/data-scientist/SKILL.md +199 -0
- package/skills/data-storytelling/SKILL.md +465 -0
- package/skills/database-admin/SKILL.md +165 -0
- package/skills/database-architect/SKILL.md +268 -0
- package/skills/database-cloud-optimization-cost-optimize/SKILL.md +44 -0
- package/skills/database-cloud-optimization-cost-optimize/resources/implementation-playbook.md +1441 -0
- package/skills/database-migration/SKILL.md +436 -0
- package/skills/database-migrations-migration-observability/SKILL.md +420 -0
- package/skills/database-migrations-sql-migrations/SKILL.md +53 -0
- package/skills/database-migrations-sql-migrations/resources/implementation-playbook.md +499 -0
- package/skills/database-optimizer/SKILL.md +167 -0
- package/skills/dbt-transformation-patterns/SKILL.md +34 -0
- package/skills/dbt-transformation-patterns/resources/implementation-playbook.md +547 -0
- package/skills/debugger/SKILL.md +49 -0
- package/skills/debugging-strategies/SKILL.md +34 -0
- package/skills/debugging-strategies/resources/implementation-playbook.md +511 -0
- package/skills/debugging-toolkit-smart-debug/SKILL.md +197 -0
- package/skills/defi-protocol-templates/SKILL.md +466 -0
- package/skills/dependency-management-deps-audit/SKILL.md +44 -0
- package/skills/dependency-management-deps-audit/resources/implementation-playbook.md +766 -0
- package/skills/dependency-upgrade/SKILL.md +421 -0
- package/skills/deployment-engineer/SKILL.md +170 -0
- package/skills/deployment-pipeline-design/SKILL.md +371 -0
- package/skills/deployment-validation-config-validate/SKILL.md +496 -0
- package/skills/devops-troubleshooter/SKILL.md +161 -0
- package/skills/distributed-debugging-debug-trace/SKILL.md +44 -0
- package/skills/distributed-debugging-debug-trace/resources/implementation-playbook.md +1307 -0
- package/skills/distributed-tracing/SKILL.md +450 -0
- package/skills/django-pro/SKILL.md +180 -0
- package/skills/docs-architect/SKILL.md +98 -0
- package/skills/documentation-generation-doc-generate/SKILL.md +48 -0
- package/skills/documentation-generation-doc-generate/resources/implementation-playbook.md +640 -0
- package/skills/dotnet-architect/SKILL.md +197 -0
- package/skills/dotnet-backend-patterns/SKILL.md +37 -0
- package/skills/dotnet-backend-patterns/assets/repository-template.cs +523 -0
- package/skills/dotnet-backend-patterns/assets/service-template.cs +336 -0
- package/skills/dotnet-backend-patterns/references/dapper-patterns.md +544 -0
- package/skills/dotnet-backend-patterns/references/ef-core-best-practices.md +355 -0
- package/skills/dotnet-backend-patterns/resources/implementation-playbook.md +799 -0
- package/skills/dummy-skill/SKILL.md +5 -0
- package/skills/dx-optimizer/SKILL.md +83 -0
- package/skills/e2e-testing-patterns/SKILL.md +41 -0
- package/skills/e2e-testing-patterns/resources/implementation-playbook.md +531 -0
- package/skills/elixir-pro/SKILL.md +59 -0
- package/skills/embedding-strategies/SKILL.md +491 -0
- package/skills/employment-contract-templates/SKILL.md +39 -0
- package/skills/employment-contract-templates/resources/implementation-playbook.md +493 -0
- package/skills/error-debugging-error-analysis/SKILL.md +47 -0
- package/skills/error-debugging-error-analysis/resources/implementation-playbook.md +1143 -0
- package/skills/error-debugging-error-trace/SKILL.md +43 -0
- package/skills/error-debugging-error-trace/resources/implementation-playbook.md +1361 -0
- package/skills/error-debugging-multi-agent-review/SKILL.md +216 -0
- package/skills/error-detective/SKILL.md +53 -0
- package/skills/error-diagnostics-error-analysis/SKILL.md +47 -0
- package/skills/error-diagnostics-error-analysis/resources/implementation-playbook.md +1143 -0
- package/skills/error-diagnostics-error-trace/SKILL.md +48 -0
- package/skills/error-diagnostics-error-trace/resources/implementation-playbook.md +1371 -0
- package/skills/error-diagnostics-smart-debug/SKILL.md +197 -0
- package/skills/error-handling-patterns/SKILL.md +35 -0
- package/skills/error-handling-patterns/resources/implementation-playbook.md +635 -0
- package/skills/event-sourcing-architect/SKILL.md +58 -0
- package/skills/event-store-design/SKILL.md +449 -0
- package/skills/fastapi-pro/SKILL.md +192 -0
- package/skills/fastapi-templates/SKILL.md +32 -0
- package/skills/fastapi-templates/resources/implementation-playbook.md +566 -0
- package/skills/final-test/SKILL.md +5 -0
- package/skills/firmware-analyst/SKILL.md +320 -0
- package/skills/flutter-expert/SKILL.md +200 -0
- package/skills/framework-migration-code-migrate/SKILL.md +48 -0
- package/skills/framework-migration-code-migrate/resources/implementation-playbook.md +1052 -0
- package/skills/framework-migration-deps-upgrade/SKILL.md +48 -0
- package/skills/framework-migration-deps-upgrade/resources/implementation-playbook.md +755 -0
- package/skills/framework-migration-legacy-modernize/SKILL.md +132 -0
- package/skills/frontend-developer/SKILL.md +171 -0
- package/skills/frontend-mobile-development-component-scaffold/SKILL.md +403 -0
- package/skills/frontend-mobile-security-xss-scan/SKILL.md +322 -0
- package/skills/frontend-security-coder/SKILL.md +170 -0
- package/skills/full-stack-orchestration-full-stack-feature/SKILL.md +135 -0
- package/skills/gdpr-data-handling/SKILL.md +33 -0
- package/skills/gdpr-data-handling/resources/implementation-playbook.md +615 -0
- package/skills/git-advanced-workflows/SKILL.md +412 -0
- package/skills/git-pr-workflows-git-workflow/SKILL.md +140 -0
- package/skills/git-pr-workflows-onboard/SKILL.md +416 -0
- package/skills/git-pr-workflows-pr-enhance/SKILL.md +48 -0
- package/skills/git-pr-workflows-pr-enhance/resources/implementation-playbook.md +701 -0
- package/skills/github-actions-templates/SKILL.md +345 -0
- package/skills/gitlab-ci-patterns/SKILL.md +283 -0
- package/skills/gitops-workflow/SKILL.md +303 -0
- package/skills/gitops-workflow/references/argocd-setup.md +134 -0
- package/skills/gitops-workflow/references/sync-policies.md +131 -0
- package/skills/go-concurrency-patterns/SKILL.md +33 -0
- package/skills/go-concurrency-patterns/resources/implementation-playbook.md +654 -0
- package/skills/godot-gdscript-patterns/SKILL.md +33 -0
- package/skills/godot-gdscript-patterns/resources/implementation-playbook.md +804 -0
- package/skills/golang-pro/SKILL.md +179 -0
- package/skills/grafana-dashboards/SKILL.md +381 -0
- package/skills/graphql-architect/SKILL.md +182 -0
- package/skills/haskell-pro/SKILL.md +56 -0
- package/skills/helm-chart-scaffolding/SKILL.md +34 -0
- package/skills/helm-chart-scaffolding/assets/Chart.yaml.template +42 -0
- package/skills/helm-chart-scaffolding/assets/values.yaml.template +185 -0
- package/skills/helm-chart-scaffolding/references/chart-structure.md +500 -0
- package/skills/helm-chart-scaffolding/resources/implementation-playbook.md +543 -0
- package/skills/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/skills/hr-pro/SKILL.md +126 -0
- package/skills/hybrid-cloud-architect/SKILL.md +168 -0
- package/skills/hybrid-cloud-networking/SKILL.md +238 -0
- package/skills/hybrid-search-implementation/SKILL.md +32 -0
- package/skills/hybrid-search-implementation/resources/implementation-playbook.md +567 -0
- package/skills/incident-responder/SKILL.md +213 -0
- package/skills/incident-response-incident-response/SKILL.md +168 -0
- package/skills/incident-response-smart-fix/SKILL.md +29 -0
- package/skills/incident-response-smart-fix/resources/implementation-playbook.md +838 -0
- package/skills/incident-runbook-templates/SKILL.md +395 -0
- package/skills/ios-developer/SKILL.md +219 -0
- package/skills/istio-traffic-management/SKILL.md +337 -0
- package/skills/java-pro/SKILL.md +177 -0
- package/skills/javascript-pro/SKILL.md +57 -0
- package/skills/javascript-testing-patterns/SKILL.md +35 -0
- package/skills/javascript-testing-patterns/resources/implementation-playbook.md +1024 -0
- package/skills/javascript-typescript-typescript-scaffold/SKILL.md +361 -0
- package/skills/julia-pro/SKILL.md +209 -0
- package/skills/k8s-manifest-generator/SKILL.md +35 -0
- package/skills/k8s-manifest-generator/assets/configmap-template.yaml +296 -0
- package/skills/k8s-manifest-generator/assets/deployment-template.yaml +203 -0
- package/skills/k8s-manifest-generator/assets/service-template.yaml +171 -0
- package/skills/k8s-manifest-generator/references/deployment-spec.md +753 -0
- package/skills/k8s-manifest-generator/references/service-spec.md +724 -0
- package/skills/k8s-manifest-generator/resources/implementation-playbook.md +510 -0
- package/skills/k8s-security-policies/SKILL.md +346 -0
- package/skills/k8s-security-policies/assets/network-policy-template.yaml +177 -0
- package/skills/k8s-security-policies/references/rbac-patterns.md +187 -0
- package/skills/kpi-dashboard-design/SKILL.md +440 -0
- package/skills/kubernetes-architect/SKILL.md +170 -0
- package/skills/langchain-architecture/SKILL.md +350 -0
- package/skills/legacy-modernizer/SKILL.md +53 -0
- package/skills/legal-advisor/SKILL.md +70 -0
- package/skills/linkerd-patterns/SKILL.md +321 -0
- package/skills/llm-application-dev-ai-assistant/SKILL.md +35 -0
- package/skills/llm-application-dev-ai-assistant/resources/implementation-playbook.md +1236 -0
- package/skills/llm-application-dev-langchain-agent/SKILL.md +246 -0
- package/skills/llm-application-dev-prompt-optimize/SKILL.md +37 -0
- package/skills/llm-application-dev-prompt-optimize/resources/implementation-playbook.md +591 -0
- package/skills/llm-evaluation/SKILL.md +483 -0
- package/skills/machine-learning-ops-ml-pipeline/SKILL.md +314 -0
- package/skills/malware-analyst/SKILL.md +247 -0
- package/skills/market-sizing-analysis/SKILL.md +425 -0
- package/skills/market-sizing-analysis/examples/saas-market-sizing.md +349 -0
- package/skills/market-sizing-analysis/references/data-sources.md +360 -0
- package/skills/memory-forensics/SKILL.md +491 -0
- package/skills/memory-safety-patterns/SKILL.md +33 -0
- package/skills/memory-safety-patterns/resources/implementation-playbook.md +603 -0
- package/skills/mermaid-expert/SKILL.md +59 -0
- package/skills/microservices-patterns/SKILL.md +35 -0
- package/skills/microservices-patterns/resources/implementation-playbook.md +607 -0
- package/skills/minecraft-bukkit-pro/SKILL.md +126 -0
- package/skills/ml-engineer/SKILL.md +168 -0
- package/skills/ml-pipeline-workflow/SKILL.md +257 -0
- package/skills/mlops-engineer/SKILL.md +219 -0
- package/skills/mobile-developer/SKILL.md +205 -0
- package/skills/mobile-security-coder/SKILL.md +184 -0
- package/skills/modern-javascript-patterns/SKILL.md +35 -0
- package/skills/modern-javascript-patterns/resources/implementation-playbook.md +910 -0
- package/skills/monorepo-architect/SKILL.md +61 -0
- package/skills/monorepo-management/SKILL.md +35 -0
- package/skills/monorepo-management/resources/implementation-playbook.md +621 -0
- package/skills/mtls-configuration/SKILL.md +359 -0
- package/skills/multi-cloud-architecture/SKILL.md +189 -0
- package/skills/multi-platform-apps-multi-platform/SKILL.md +203 -0
- package/skills/network-engineer/SKILL.md +169 -0
- package/skills/nextjs-app-router-patterns/SKILL.md +33 -0
- package/skills/nextjs-app-router-patterns/resources/implementation-playbook.md +543 -0
- package/skills/nft-standards/SKILL.md +395 -0
- package/skills/node-expert/SKILL.md +23 -0
- package/skills/nodejs-backend-patterns/SKILL.md +35 -0
- package/skills/nodejs-backend-patterns/resources/implementation-playbook.md +1019 -0
- package/skills/nx-workspace-patterns/SKILL.md +464 -0
- package/skills/observability-engineer/SKILL.md +237 -0
- package/skills/observability-monitoring-monitor-setup/SKILL.md +48 -0
- package/skills/observability-monitoring-monitor-setup/resources/implementation-playbook.md +505 -0
- package/skills/observability-monitoring-slo-implement/SKILL.md +43 -0
- package/skills/observability-monitoring-slo-implement/resources/implementation-playbook.md +1077 -0
- package/skills/on-call-handoff-patterns/SKILL.md +453 -0
- package/skills/openapi-spec-generation/SKILL.md +33 -0
- package/skills/openapi-spec-generation/resources/implementation-playbook.md +1027 -0
- package/skills/payment-integration/SKILL.md +77 -0
- package/skills/paypal-integration/SKILL.md +479 -0
- package/skills/pci-compliance/SKILL.md +478 -0
- package/skills/performance-engineer/SKILL.md +180 -0
- package/skills/performance-testing-review-ai-review/SKILL.md +450 -0
- package/skills/performance-testing-review-multi-agent-review/SKILL.md +216 -0
- package/skills/php-pro/SKILL.md +63 -0
- package/skills/posix-shell-pro/SKILL.md +304 -0
- package/skills/postgresql/SKILL.md +230 -0
- package/skills/postmortem-writing/SKILL.md +386 -0
- package/skills/projection-patterns/SKILL.md +33 -0
- package/skills/projection-patterns/resources/implementation-playbook.md +501 -0
- package/skills/prometheus-configuration/SKILL.md +404 -0
- package/skills/prompt-engineer/SKILL.md +272 -0
- package/skills/prompt-engineering-patterns/SKILL.md +213 -0
- package/skills/prompt-engineering-patterns/assets/few-shot-examples.json +106 -0
- package/skills/prompt-engineering-patterns/assets/prompt-template-library.md +246 -0
- package/skills/prompt-engineering-patterns/references/chain-of-thought.md +399 -0
- package/skills/prompt-engineering-patterns/references/few-shot-learning.md +369 -0
- package/skills/prompt-engineering-patterns/references/prompt-optimization.md +414 -0
- package/skills/prompt-engineering-patterns/references/prompt-templates.md +470 -0
- package/skills/prompt-engineering-patterns/references/system-prompts.md +189 -0
- package/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/skills/protocol-reverse-engineering/SKILL.md +29 -0
- package/skills/protocol-reverse-engineering/resources/implementation-playbook.md +509 -0
- package/skills/python-development-python-scaffold/SKILL.md +331 -0
- package/skills/python-packaging/SKILL.md +36 -0
- package/skills/python-packaging/resources/implementation-playbook.md +869 -0
- package/skills/python-performance-optimization/SKILL.md +36 -0
- package/skills/python-performance-optimization/resources/implementation-playbook.md +868 -0
- package/skills/python-pro/SKILL.md +158 -0
- package/skills/python-testing-patterns/SKILL.md +37 -0
- package/skills/python-testing-patterns/resources/implementation-playbook.md +906 -0
- package/skills/quant-analyst/SKILL.md +53 -0
- package/skills/rag-implementation/SKILL.md +421 -0
- package/skills/react-modernization/SKILL.md +34 -0
- package/skills/react-modernization/resources/implementation-playbook.md +512 -0
- package/skills/react-native-architecture/SKILL.md +33 -0
- package/skills/react-native-architecture/resources/implementation-playbook.md +670 -0
- package/skills/react-state-management/SKILL.md +441 -0
- package/skills/reference-builder/SKILL.md +188 -0
- package/skills/reverse-engineer/SKILL.md +173 -0
- package/skills/risk-manager/SKILL.md +61 -0
- package/skills/risk-metrics-calculation/SKILL.md +33 -0
- package/skills/risk-metrics-calculation/resources/implementation-playbook.md +554 -0
- package/skills/ruby-pro/SKILL.md +56 -0
- package/skills/rust-async-patterns/SKILL.md +33 -0
- package/skills/rust-async-patterns/resources/implementation-playbook.md +516 -0
- package/skills/rust-pro/SKILL.md +178 -0
- package/skills/saga-orchestration/SKILL.md +496 -0
- package/skills/sales-automator/SKILL.md +55 -0
- package/skills/sast-configuration/SKILL.md +212 -0
- package/skills/scala-pro/SKILL.md +82 -0
- package/skills/screen-reader-testing/SKILL.md +33 -0
- package/skills/screen-reader-testing/resources/implementation-playbook.md +544 -0
- package/skills/search-specialist/SKILL.md +80 -0
- package/skills/secrets-management/SKILL.md +364 -0
- package/skills/security-auditor/SKILL.md +169 -0
- package/skills/security-compliance-compliance-check/SKILL.md +55 -0
- package/skills/security-compliance-compliance-check/resources/implementation-playbook.md +963 -0
- package/skills/security-requirement-extraction/SKILL.md +33 -0
- package/skills/security-requirement-extraction/resources/implementation-playbook.md +676 -0
- package/skills/security-scanning-security-dependencies/SKILL.md +43 -0
- package/skills/security-scanning-security-dependencies/resources/implementation-playbook.md +544 -0
- package/skills/security-scanning-security-hardening/SKILL.md +147 -0
- package/skills/security-scanning-security-sast/SKILL.md +495 -0
- package/skills/seo-authority-builder/SKILL.md +136 -0
- package/skills/seo-cannibalization-detector/SKILL.md +123 -0
- package/skills/seo-content-auditor/SKILL.md +83 -0
- package/skills/seo-content-planner/SKILL.md +108 -0
- package/skills/seo-content-refresher/SKILL.md +118 -0
- package/skills/seo-content-writer/SKILL.md +96 -0
- package/skills/seo-keyword-strategist/SKILL.md +95 -0
- package/skills/seo-meta-optimizer/SKILL.md +92 -0
- package/skills/seo-snippet-hunter/SKILL.md +114 -0
- package/skills/seo-structure-architect/SKILL.md +108 -0
- package/skills/service-mesh-expert/SKILL.md +58 -0
- package/skills/service-mesh-observability/SKILL.md +395 -0
- package/skills/shellcheck-configuration/SKILL.md +466 -0
- package/skills/similarity-search-patterns/SKILL.md +33 -0
- package/skills/similarity-search-patterns/resources/implementation-playbook.md +557 -0
- package/skills/slo-implementation/SKILL.md +341 -0
- package/skills/solidity-security/SKILL.md +34 -0
- package/skills/solidity-security/resources/implementation-playbook.md +524 -0
- package/skills/spark-optimization/SKILL.md +427 -0
- package/skills/sql-optimization-patterns/SKILL.md +35 -0
- package/skills/sql-optimization-patterns/resources/implementation-playbook.md +504 -0
- package/skills/sql-pro/SKILL.md +173 -0
- package/skills/startup-analyst/SKILL.md +328 -0
- package/skills/startup-business-analyst-business-case/SKILL.md +487 -0
- package/skills/startup-business-analyst-financial-projections/SKILL.md +353 -0
- package/skills/startup-business-analyst-market-opportunity/SKILL.md +240 -0
- package/skills/startup-financial-modeling/SKILL.md +467 -0
- package/skills/startup-metrics-framework/SKILL.md +34 -0
- package/skills/startup-metrics-framework/resources/implementation-playbook.md +500 -0
- package/skills/stride-analysis-patterns/SKILL.md +33 -0
- package/skills/stride-analysis-patterns/resources/implementation-playbook.md +655 -0
- package/skills/stripe-integration/SKILL.md +454 -0
- package/skills/systems-programming-rust-project/SKILL.md +440 -0
- package/skills/tailwind-design-system/SKILL.md +33 -0
- package/skills/tailwind-design-system/resources/implementation-playbook.md +665 -0
- package/skills/tdd-orchestrator/SKILL.md +205 -0
- package/skills/tdd-workflows-tdd-cycle/SKILL.md +221 -0
- package/skills/tdd-workflows-tdd-green/SKILL.md +73 -0
- package/skills/tdd-workflows-tdd-green/resources/implementation-playbook.md +870 -0
- package/skills/tdd-workflows-tdd-red/SKILL.md +164 -0
- package/skills/tdd-workflows-tdd-refactor/SKILL.md +187 -0
- package/skills/team-collaboration-issue/SKILL.md +37 -0
- package/skills/team-collaboration-issue/resources/implementation-playbook.md +640 -0
- package/skills/team-collaboration-standup-notes/SKILL.md +44 -0
- package/skills/team-collaboration-standup-notes/resources/implementation-playbook.md +768 -0
- package/skills/team-composition-analysis/SKILL.md +413 -0
- package/skills/temporal-python-pro/SKILL.md +370 -0
- package/skills/temporal-python-testing/SKILL.md +170 -0
- package/skills/temporal-python-testing/resources/integration-testing.md +455 -0
- package/skills/temporal-python-testing/resources/local-setup.md +553 -0
- package/skills/temporal-python-testing/resources/replay-testing.md +462 -0
- package/skills/temporal-python-testing/resources/unit-testing.md +328 -0
- package/skills/terraform-module-library/SKILL.md +261 -0
- package/skills/terraform-module-library/references/aws-modules.md +63 -0
- package/skills/terraform-specialist/SKILL.md +166 -0
- package/skills/test-automator/SKILL.md +224 -0
- package/skills/threat-mitigation-mapping/SKILL.md +33 -0
- package/skills/threat-mitigation-mapping/resources/implementation-playbook.md +744 -0
- package/skills/threat-modeling-expert/SKILL.md +60 -0
- package/skills/track-management/SKILL.md +38 -0
- package/skills/track-management/resources/implementation-playbook.md +591 -0
- package/skills/turborepo-caching/SKILL.md +419 -0
- package/skills/tutorial-engineer/SKILL.md +139 -0
- package/skills/typescript-advanced-types/SKILL.md +35 -0
- package/skills/typescript-advanced-types/resources/implementation-playbook.md +716 -0
- package/skills/typescript-pro/SKILL.md +55 -0
- package/skills/ui-minimal/SKILL.md +23 -0
- package/skills/ui-ux-designer/SKILL.md +209 -0
- package/skills/ui-visual-validator/SKILL.md +214 -0
- package/skills/unit-testing-test-generate/SKILL.md +319 -0
- package/skills/unity-developer/SKILL.md +230 -0
- package/skills/unity-ecs-patterns/SKILL.md +33 -0
- package/skills/unity-ecs-patterns/resources/implementation-playbook.md +625 -0
- package/skills/uv-package-manager/SKILL.md +37 -0
- package/skills/uv-package-manager/resources/implementation-playbook.md +830 -0
- package/skills/vector-database-engineer/SKILL.md +60 -0
- package/skills/vector-index-tuning/SKILL.md +42 -0
- package/skills/vector-index-tuning/resources/implementation-playbook.md +507 -0
- package/skills/wcag-audit-patterns/SKILL.md +41 -0
- package/skills/wcag-audit-patterns/resources/implementation-playbook.md +541 -0
- package/skills/web3-testing/SKILL.md +427 -0
- package/skills/workflow-orchestration-patterns/SKILL.md +333 -0
- package/skills/workflow-patterns/SKILL.md +38 -0
- package/skills/workflow-patterns/resources/implementation-playbook.md +621 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: c4-code
|
|
3
|
+
description: Expert C4 Code-level documentation specialist. Analyzes code
|
|
4
|
+
directories to create comprehensive C4 code-level documentation including
|
|
5
|
+
function signatures, arguments, dependencies, and code structure. Use when
|
|
6
|
+
documenting code at the lowest C4 level for individual directories and code
|
|
7
|
+
modules.
|
|
8
|
+
metadata:
|
|
9
|
+
model: haiku
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# C4 Code Level: [Directory Name]
|
|
13
|
+
|
|
14
|
+
## Use this skill when
|
|
15
|
+
|
|
16
|
+
- Working on c4 code level: [directory name] tasks or workflows
|
|
17
|
+
- Needing guidance, best practices, or checklists for c4 code level: [directory name]
|
|
18
|
+
|
|
19
|
+
## Do not use this skill when
|
|
20
|
+
|
|
21
|
+
- The task is unrelated to c4 code level: [directory name]
|
|
22
|
+
- You need a different domain or tool outside this scope
|
|
23
|
+
|
|
24
|
+
## Instructions
|
|
25
|
+
|
|
26
|
+
- Clarify goals, constraints, and required inputs.
|
|
27
|
+
- Apply relevant best practices and validate outcomes.
|
|
28
|
+
- Provide actionable steps and verification.
|
|
29
|
+
- If detailed examples are required, open `resources/implementation-playbook.md`.
|
|
30
|
+
|
|
31
|
+
## Overview
|
|
32
|
+
|
|
33
|
+
- **Name**: [Descriptive name for this code directory]
|
|
34
|
+
- **Description**: [Short description of what this code does]
|
|
35
|
+
- **Location**: [Link to actual directory path]
|
|
36
|
+
- **Language**: [Primary programming language(s)]
|
|
37
|
+
- **Purpose**: [What this code accomplishes]
|
|
38
|
+
|
|
39
|
+
## Code Elements
|
|
40
|
+
|
|
41
|
+
### Functions/Methods
|
|
42
|
+
|
|
43
|
+
- `functionName(param1: Type, param2: Type): ReturnType`
|
|
44
|
+
- Description: [What this function does]
|
|
45
|
+
- Location: [file path:line number]
|
|
46
|
+
- Dependencies: [what this function depends on]
|
|
47
|
+
|
|
48
|
+
### Classes/Modules
|
|
49
|
+
|
|
50
|
+
- `ClassName`
|
|
51
|
+
- Description: [What this class does]
|
|
52
|
+
- Location: [file path]
|
|
53
|
+
- Methods: [list of methods]
|
|
54
|
+
- Dependencies: [what this class depends on]
|
|
55
|
+
|
|
56
|
+
## Dependencies
|
|
57
|
+
|
|
58
|
+
### Internal Dependencies
|
|
59
|
+
|
|
60
|
+
- [List of internal code dependencies]
|
|
61
|
+
|
|
62
|
+
### External Dependencies
|
|
63
|
+
|
|
64
|
+
- [List of external libraries, frameworks, services]
|
|
65
|
+
|
|
66
|
+
## Relationships
|
|
67
|
+
|
|
68
|
+
Optional Mermaid diagrams for complex code structures. Choose the diagram type based on the programming paradigm. Code diagrams show the **internal structure of a single component**.
|
|
69
|
+
|
|
70
|
+
### Object-Oriented Code (Classes, Interfaces)
|
|
71
|
+
|
|
72
|
+
Use `classDiagram` for OOP code with classes, interfaces, and inheritance:
|
|
73
|
+
|
|
74
|
+
```mermaid
|
|
75
|
+
---
|
|
76
|
+
title: Code Diagram for [Component Name]
|
|
77
|
+
---
|
|
78
|
+
classDiagram
|
|
79
|
+
namespace ComponentName {
|
|
80
|
+
class Class1 {
|
|
81
|
+
+attribute1 Type
|
|
82
|
+
+method1() ReturnType
|
|
83
|
+
}
|
|
84
|
+
class Class2 {
|
|
85
|
+
-privateAttr Type
|
|
86
|
+
+publicMethod() void
|
|
87
|
+
}
|
|
88
|
+
class Interface1 {
|
|
89
|
+
<<interface>>
|
|
90
|
+
+requiredMethod() ReturnType
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
Class1 ..|> Interface1 : implements
|
|
95
|
+
Class1 --> Class2 : uses
|
|
96
|
+
```
|
|
97
|
+
````
|
|
98
|
+
|
|
99
|
+
### Functional/Procedural Code (Modules, Functions)
|
|
100
|
+
|
|
101
|
+
For functional or procedural code, you have two options:
|
|
102
|
+
|
|
103
|
+
**Option A: Module Structure Diagram** - Use `classDiagram` to show modules and their exported functions:
|
|
104
|
+
|
|
105
|
+
```mermaid
|
|
106
|
+
---
|
|
107
|
+
title: Module Structure for [Component Name]
|
|
108
|
+
---
|
|
109
|
+
classDiagram
|
|
110
|
+
namespace DataProcessing {
|
|
111
|
+
class validators {
|
|
112
|
+
<<module>>
|
|
113
|
+
+validateInput(data) Result~Data, Error~
|
|
114
|
+
+validateSchema(schema, data) bool
|
|
115
|
+
+sanitize(input) string
|
|
116
|
+
}
|
|
117
|
+
class transformers {
|
|
118
|
+
<<module>>
|
|
119
|
+
+parseJSON(raw) Record
|
|
120
|
+
+normalize(data) NormalizedData
|
|
121
|
+
+aggregate(items) Summary
|
|
122
|
+
}
|
|
123
|
+
class io {
|
|
124
|
+
<<module>>
|
|
125
|
+
+readFile(path) string
|
|
126
|
+
+writeFile(path, content) void
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
transformers --> validators : uses
|
|
131
|
+
transformers --> io : reads from
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Option B: Data Flow Diagram** - Use `flowchart` to show function pipelines and data transformations:
|
|
135
|
+
|
|
136
|
+
```mermaid
|
|
137
|
+
---
|
|
138
|
+
title: Data Pipeline for [Component Name]
|
|
139
|
+
---
|
|
140
|
+
flowchart LR
|
|
141
|
+
subgraph Input
|
|
142
|
+
A[readFile]
|
|
143
|
+
end
|
|
144
|
+
subgraph Transform
|
|
145
|
+
B[parseJSON]
|
|
146
|
+
C[validateInput]
|
|
147
|
+
D[normalize]
|
|
148
|
+
E[aggregate]
|
|
149
|
+
end
|
|
150
|
+
subgraph Output
|
|
151
|
+
F[writeFile]
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
A -->|raw string| B
|
|
155
|
+
B -->|parsed data| C
|
|
156
|
+
C -->|valid data| D
|
|
157
|
+
D -->|normalized| E
|
|
158
|
+
E -->|summary| F
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**Option C: Function Dependency Graph** - Use `flowchart` to show which functions call which:
|
|
162
|
+
|
|
163
|
+
```mermaid
|
|
164
|
+
---
|
|
165
|
+
title: Function Dependencies for [Component Name]
|
|
166
|
+
---
|
|
167
|
+
flowchart TB
|
|
168
|
+
subgraph Public API
|
|
169
|
+
processData[processData]
|
|
170
|
+
exportReport[exportReport]
|
|
171
|
+
end
|
|
172
|
+
subgraph Internal Functions
|
|
173
|
+
validate[validate]
|
|
174
|
+
transform[transform]
|
|
175
|
+
format[format]
|
|
176
|
+
cache[memoize]
|
|
177
|
+
end
|
|
178
|
+
subgraph Pure Utilities
|
|
179
|
+
compose[compose]
|
|
180
|
+
pipe[pipe]
|
|
181
|
+
curry[curry]
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
processData --> validate
|
|
185
|
+
processData --> transform
|
|
186
|
+
processData --> cache
|
|
187
|
+
transform --> compose
|
|
188
|
+
transform --> pipe
|
|
189
|
+
exportReport --> format
|
|
190
|
+
exportReport --> processData
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Choosing the Right Diagram
|
|
194
|
+
|
|
195
|
+
| Code Style | Primary Diagram | When to Use |
|
|
196
|
+
| -------------------------------- | -------------------------------- | ------------------------------------------------------- |
|
|
197
|
+
| OOP (classes, interfaces) | `classDiagram` | Show inheritance, composition, interface implementation |
|
|
198
|
+
| FP (pure functions, pipelines) | `flowchart` | Show data transformations and function composition |
|
|
199
|
+
| FP (modules with exports) | `classDiagram` with `<<module>>` | Show module structure and dependencies |
|
|
200
|
+
| Procedural (structs + functions) | `classDiagram` | Show data structures and associated functions |
|
|
201
|
+
| Mixed | Combination | Use multiple diagrams if needed |
|
|
202
|
+
|
|
203
|
+
**Note**: According to the [C4 model](https://c4model.com/diagrams), code diagrams are typically only created when needed for complex components. Most teams find system context and container diagrams sufficient. Choose the diagram type that best communicates the code structure regardless of paradigm.
|
|
204
|
+
|
|
205
|
+
## Notes
|
|
206
|
+
|
|
207
|
+
[Any additional context or important information]
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Example Interactions
|
|
212
|
+
|
|
213
|
+
### Object-Oriented Codebases
|
|
214
|
+
- "Analyze the src/api directory and create C4 Code-level documentation"
|
|
215
|
+
- "Document the service layer code with complete class hierarchies and dependencies"
|
|
216
|
+
- "Create C4 Code documentation showing interface implementations in the repository layer"
|
|
217
|
+
|
|
218
|
+
### Functional/Procedural Codebases
|
|
219
|
+
- "Document all functions in the authentication module with their signatures and data flow"
|
|
220
|
+
- "Create a data pipeline diagram for the ETL transformers in src/pipeline"
|
|
221
|
+
- "Analyze the utils directory and document all pure functions and their composition patterns"
|
|
222
|
+
- "Document the Rust modules in src/handlers showing function dependencies"
|
|
223
|
+
- "Create C4 Code documentation for the Elixir GenServer modules"
|
|
224
|
+
|
|
225
|
+
### Mixed Paradigm
|
|
226
|
+
- "Document the Go handlers package showing structs and their associated functions"
|
|
227
|
+
- "Analyze the TypeScript codebase that mixes classes with functional utilities"
|
|
228
|
+
|
|
229
|
+
## Key Distinctions
|
|
230
|
+
- **vs C4-Component agent**: Focuses on individual code elements; Component agent synthesizes multiple code files into components
|
|
231
|
+
- **vs C4-Container agent**: Documents code structure; Container agent maps components to deployment units
|
|
232
|
+
- **vs C4-Context agent**: Provides code-level detail; Context agent creates high-level system diagrams
|
|
233
|
+
|
|
234
|
+
## Output Examples
|
|
235
|
+
When analyzing code, provide:
|
|
236
|
+
- Complete function/method signatures with all parameters and return types
|
|
237
|
+
- Clear descriptions of what each code element does
|
|
238
|
+
- Links to actual source code locations
|
|
239
|
+
- Complete dependency lists (internal and external)
|
|
240
|
+
- Structured documentation following C4 Code-level template
|
|
241
|
+
- Mermaid diagrams for complex code relationships when needed
|
|
242
|
+
- Consistent naming and formatting across all code documentation
|
|
243
|
+
|
|
244
|
+
```
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: c4-component
|
|
3
|
+
description: Expert C4 Component-level documentation specialist. Synthesizes C4
|
|
4
|
+
Code-level documentation into Component-level architecture, defining component
|
|
5
|
+
boundaries, interfaces, and relationships. Creates component diagrams and
|
|
6
|
+
documentation. Use when synthesizing code-level documentation into logical
|
|
7
|
+
components.
|
|
8
|
+
metadata:
|
|
9
|
+
model: sonnet
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# C4 Component Level: [Component Name]
|
|
13
|
+
|
|
14
|
+
## Use this skill when
|
|
15
|
+
|
|
16
|
+
- Working on c4 component level: [component name] tasks or workflows
|
|
17
|
+
- Needing guidance, best practices, or checklists for c4 component level: [component name]
|
|
18
|
+
|
|
19
|
+
## Do not use this skill when
|
|
20
|
+
|
|
21
|
+
- The task is unrelated to c4 component level: [component name]
|
|
22
|
+
- You need a different domain or tool outside this scope
|
|
23
|
+
|
|
24
|
+
## Instructions
|
|
25
|
+
|
|
26
|
+
- Clarify goals, constraints, and required inputs.
|
|
27
|
+
- Apply relevant best practices and validate outcomes.
|
|
28
|
+
- Provide actionable steps and verification.
|
|
29
|
+
- If detailed examples are required, open `resources/implementation-playbook.md`.
|
|
30
|
+
|
|
31
|
+
## Overview
|
|
32
|
+
|
|
33
|
+
- **Name**: [Component name]
|
|
34
|
+
- **Description**: [Short description of component purpose]
|
|
35
|
+
- **Type**: [Component type: Application, Service, Library, etc.]
|
|
36
|
+
- **Technology**: [Primary technologies used]
|
|
37
|
+
|
|
38
|
+
## Purpose
|
|
39
|
+
|
|
40
|
+
[Detailed description of what this component does and what problems it solves]
|
|
41
|
+
|
|
42
|
+
## Software Features
|
|
43
|
+
|
|
44
|
+
- [Feature 1]: [Description]
|
|
45
|
+
- [Feature 2]: [Description]
|
|
46
|
+
- [Feature 3]: [Description]
|
|
47
|
+
|
|
48
|
+
## Code Elements
|
|
49
|
+
|
|
50
|
+
This component contains the following code-level elements:
|
|
51
|
+
|
|
52
|
+
- [c4-code-file-1.md](./c4-code-file-1.md) - [Description]
|
|
53
|
+
- [c4-code-file-2.md](./c4-code-file-2.md) - [Description]
|
|
54
|
+
|
|
55
|
+
## Interfaces
|
|
56
|
+
|
|
57
|
+
### [Interface Name]
|
|
58
|
+
|
|
59
|
+
- **Protocol**: [REST/GraphQL/gRPC/Events/etc.]
|
|
60
|
+
- **Description**: [What this interface provides]
|
|
61
|
+
- **Operations**:
|
|
62
|
+
- `operationName(params): ReturnType` - [Description]
|
|
63
|
+
|
|
64
|
+
## Dependencies
|
|
65
|
+
|
|
66
|
+
### Components Used
|
|
67
|
+
|
|
68
|
+
- [Component Name]: [How it's used]
|
|
69
|
+
|
|
70
|
+
### External Systems
|
|
71
|
+
|
|
72
|
+
- [External System]: [How it's used]
|
|
73
|
+
|
|
74
|
+
## Component Diagram
|
|
75
|
+
|
|
76
|
+
Use proper Mermaid C4Component syntax. Component diagrams show components **within a single container**:
|
|
77
|
+
|
|
78
|
+
```mermaid
|
|
79
|
+
C4Component
|
|
80
|
+
title Component Diagram for [Container Name]
|
|
81
|
+
|
|
82
|
+
Container_Boundary(container, "Container Name") {
|
|
83
|
+
Component(component1, "Component 1", "Type", "Description")
|
|
84
|
+
Component(component2, "Component 2", "Type", "Description")
|
|
85
|
+
ComponentDb(component3, "Component 3", "Database", "Description")
|
|
86
|
+
}
|
|
87
|
+
Container_Ext(externalContainer, "External Container", "Description")
|
|
88
|
+
System_Ext(externalSystem, "External System", "Description")
|
|
89
|
+
|
|
90
|
+
Rel(component1, component2, "Uses")
|
|
91
|
+
Rel(component2, component3, "Reads from and writes to")
|
|
92
|
+
Rel(component1, externalContainer, "Uses", "API")
|
|
93
|
+
Rel(component2, externalSystem, "Uses", "API")
|
|
94
|
+
```
|
|
95
|
+
````
|
|
96
|
+
|
|
97
|
+
**Key Principles** (from [c4model.com](https://c4model.com/diagrams/component)):
|
|
98
|
+
|
|
99
|
+
- Show components **within a single container** (zoom into one container)
|
|
100
|
+
- Focus on **logical components** and their responsibilities
|
|
101
|
+
- Show **component interfaces** (what they expose)
|
|
102
|
+
- Show how components **interact** with each other
|
|
103
|
+
- Include **external dependencies** (other containers, external systems)
|
|
104
|
+
|
|
105
|
+
````
|
|
106
|
+
|
|
107
|
+
## Master Component Index Template
|
|
108
|
+
|
|
109
|
+
```markdown
|
|
110
|
+
# C4 Component Level: System Overview
|
|
111
|
+
|
|
112
|
+
## System Components
|
|
113
|
+
|
|
114
|
+
### [Component 1]
|
|
115
|
+
- **Name**: [Component name]
|
|
116
|
+
- **Description**: [Short description]
|
|
117
|
+
- **Documentation**: [c4-component-name-1.md](./c4-component-name-1.md)
|
|
118
|
+
|
|
119
|
+
### [Component 2]
|
|
120
|
+
- **Name**: [Component name]
|
|
121
|
+
- **Description**: [Short description]
|
|
122
|
+
- **Documentation**: [c4-component-name-2.md](./c4-component-name-2.md)
|
|
123
|
+
|
|
124
|
+
## Component Relationships
|
|
125
|
+
[Mermaid diagram showing all components and their relationships]
|
|
126
|
+
````
|
|
127
|
+
|
|
128
|
+
## Example Interactions
|
|
129
|
+
|
|
130
|
+
- "Synthesize all c4-code-\*.md files into logical components"
|
|
131
|
+
- "Define component boundaries for the authentication and authorization code"
|
|
132
|
+
- "Create component-level documentation for the API layer"
|
|
133
|
+
- "Identify component interfaces and create component diagrams"
|
|
134
|
+
- "Group database access code into components and document their relationships"
|
|
135
|
+
|
|
136
|
+
## Key Distinctions
|
|
137
|
+
|
|
138
|
+
- **vs C4-Code agent**: Synthesizes multiple code files into components; Code agent documents individual code elements
|
|
139
|
+
- **vs C4-Container agent**: Focuses on logical grouping; Container agent maps components to deployment units
|
|
140
|
+
- **vs C4-Context agent**: Provides component-level detail; Context agent creates high-level system diagrams
|
|
141
|
+
|
|
142
|
+
## Output Examples
|
|
143
|
+
|
|
144
|
+
When synthesizing components, provide:
|
|
145
|
+
|
|
146
|
+
- Clear component boundaries with rationale
|
|
147
|
+
- Descriptive component names and purposes
|
|
148
|
+
- Comprehensive feature lists for each component
|
|
149
|
+
- Complete interface documentation with protocols and operations
|
|
150
|
+
- Links to all contained c4-code-\*.md files
|
|
151
|
+
- Mermaid component diagrams showing relationships
|
|
152
|
+
- Master component index with all components
|
|
153
|
+
- Consistent documentation format across all components
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: c4-container
|
|
3
|
+
description: Expert C4 Container-level documentation specialist. Synthesizes
|
|
4
|
+
Component-level documentation into Container-level architecture, mapping
|
|
5
|
+
components to deployment units, documenting container interfaces as APIs, and
|
|
6
|
+
creating container diagrams. Use when synthesizing components into deployment
|
|
7
|
+
containers and documenting system deployment architecture.
|
|
8
|
+
metadata:
|
|
9
|
+
model: sonnet
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# C4 Container Level: System Deployment
|
|
13
|
+
|
|
14
|
+
## Use this skill when
|
|
15
|
+
|
|
16
|
+
- Working on c4 container level: system deployment tasks or workflows
|
|
17
|
+
- Needing guidance, best practices, or checklists for c4 container level: system deployment
|
|
18
|
+
|
|
19
|
+
## Do not use this skill when
|
|
20
|
+
|
|
21
|
+
- The task is unrelated to c4 container level: system deployment
|
|
22
|
+
- You need a different domain or tool outside this scope
|
|
23
|
+
|
|
24
|
+
## Instructions
|
|
25
|
+
|
|
26
|
+
- Clarify goals, constraints, and required inputs.
|
|
27
|
+
- Apply relevant best practices and validate outcomes.
|
|
28
|
+
- Provide actionable steps and verification.
|
|
29
|
+
- If detailed examples are required, open `resources/implementation-playbook.md`.
|
|
30
|
+
|
|
31
|
+
## Containers
|
|
32
|
+
|
|
33
|
+
### [Container Name]
|
|
34
|
+
|
|
35
|
+
- **Name**: [Container name]
|
|
36
|
+
- **Description**: [Short description of container purpose and deployment]
|
|
37
|
+
- **Type**: [Web Application, API, Database, Message Queue, etc.]
|
|
38
|
+
- **Technology**: [Primary technologies: Node.js, Python, PostgreSQL, Redis, etc.]
|
|
39
|
+
- **Deployment**: [Docker, Kubernetes, Cloud Service, etc.]
|
|
40
|
+
|
|
41
|
+
## Purpose
|
|
42
|
+
|
|
43
|
+
[Detailed description of what this container does and how it's deployed]
|
|
44
|
+
|
|
45
|
+
## Components
|
|
46
|
+
|
|
47
|
+
This container deploys the following components:
|
|
48
|
+
|
|
49
|
+
- [Component Name]: [Description]
|
|
50
|
+
- Documentation: [c4-component-name.md](./c4-component-name.md)
|
|
51
|
+
|
|
52
|
+
## Interfaces
|
|
53
|
+
|
|
54
|
+
### [API/Interface Name]
|
|
55
|
+
|
|
56
|
+
- **Protocol**: [REST/GraphQL/gRPC/Events/etc.]
|
|
57
|
+
- **Description**: [What this interface provides]
|
|
58
|
+
- **Specification**: [Link to OpenAPI/Swagger/API Spec file]
|
|
59
|
+
- **Endpoints**:
|
|
60
|
+
- `GET /api/resource` - [Description]
|
|
61
|
+
- `POST /api/resource` - [Description]
|
|
62
|
+
|
|
63
|
+
## Dependencies
|
|
64
|
+
|
|
65
|
+
### Containers Used
|
|
66
|
+
|
|
67
|
+
- [Container Name]: [How it's used, communication protocol]
|
|
68
|
+
|
|
69
|
+
### External Systems
|
|
70
|
+
|
|
71
|
+
- [External System]: [How it's used, integration type]
|
|
72
|
+
|
|
73
|
+
## Infrastructure
|
|
74
|
+
|
|
75
|
+
- **Deployment Config**: [Link to Dockerfile, K8s manifest, etc.]
|
|
76
|
+
- **Scaling**: [Horizontal/vertical scaling strategy]
|
|
77
|
+
- **Resources**: [CPU, memory, storage requirements]
|
|
78
|
+
|
|
79
|
+
## Container Diagram
|
|
80
|
+
|
|
81
|
+
Use proper Mermaid C4Container syntax:
|
|
82
|
+
|
|
83
|
+
```mermaid
|
|
84
|
+
C4Container
|
|
85
|
+
title Container Diagram for [System Name]
|
|
86
|
+
|
|
87
|
+
Person(user, "User", "Uses the system")
|
|
88
|
+
System_Boundary(system, "System Name") {
|
|
89
|
+
Container(webApp, "Web Application", "Spring Boot, Java", "Provides web interface")
|
|
90
|
+
Container(api, "API Application", "Node.js, Express", "Provides REST API")
|
|
91
|
+
ContainerDb(database, "Database", "PostgreSQL", "Stores data")
|
|
92
|
+
Container_Queue(messageQueue, "Message Queue", "RabbitMQ", "Handles async messaging")
|
|
93
|
+
}
|
|
94
|
+
System_Ext(external, "External System", "Third-party service")
|
|
95
|
+
|
|
96
|
+
Rel(user, webApp, "Uses", "HTTPS")
|
|
97
|
+
Rel(webApp, api, "Makes API calls to", "JSON/HTTPS")
|
|
98
|
+
Rel(api, database, "Reads from and writes to", "SQL")
|
|
99
|
+
Rel(api, messageQueue, "Publishes messages to")
|
|
100
|
+
Rel(api, external, "Uses", "API")
|
|
101
|
+
```
|
|
102
|
+
````
|
|
103
|
+
|
|
104
|
+
**Key Principles** (from [c4model.com](https://c4model.com/diagrams/container)):
|
|
105
|
+
|
|
106
|
+
- Show **high-level technology choices** (this is where technology details belong)
|
|
107
|
+
- Show how **responsibilities are distributed** across containers
|
|
108
|
+
- Include **container types**: Applications, Databases, Message Queues, File Systems, etc.
|
|
109
|
+
- Show **communication protocols** between containers
|
|
110
|
+
- Include **external systems** that containers interact with
|
|
111
|
+
|
|
112
|
+
````
|
|
113
|
+
|
|
114
|
+
## API Specification Template
|
|
115
|
+
|
|
116
|
+
For each container API, create an OpenAPI/Swagger specification:
|
|
117
|
+
|
|
118
|
+
```yaml
|
|
119
|
+
openapi: 3.1.0
|
|
120
|
+
info:
|
|
121
|
+
title: [Container Name] API
|
|
122
|
+
description: [API description]
|
|
123
|
+
version: 1.0.0
|
|
124
|
+
servers:
|
|
125
|
+
- url: https://api.example.com
|
|
126
|
+
description: Production server
|
|
127
|
+
paths:
|
|
128
|
+
/api/resource:
|
|
129
|
+
get:
|
|
130
|
+
summary: [Operation summary]
|
|
131
|
+
description: [Operation description]
|
|
132
|
+
parameters:
|
|
133
|
+
- name: param1
|
|
134
|
+
in: query
|
|
135
|
+
schema:
|
|
136
|
+
type: string
|
|
137
|
+
responses:
|
|
138
|
+
'200':
|
|
139
|
+
description: [Response description]
|
|
140
|
+
content:
|
|
141
|
+
application/json:
|
|
142
|
+
schema:
|
|
143
|
+
type: object
|
|
144
|
+
````
|
|
145
|
+
|
|
146
|
+
## Example Interactions
|
|
147
|
+
|
|
148
|
+
- "Synthesize all components into containers based on deployment definitions"
|
|
149
|
+
- "Map the API components to containers and document their APIs as OpenAPI specs"
|
|
150
|
+
- "Create container-level documentation for the microservices architecture"
|
|
151
|
+
- "Document container interfaces as Swagger/OpenAPI specifications"
|
|
152
|
+
- "Analyze Kubernetes manifests and create container documentation"
|
|
153
|
+
|
|
154
|
+
## Key Distinctions
|
|
155
|
+
|
|
156
|
+
- **vs C4-Component agent**: Maps components to deployment units; Component agent focuses on logical grouping
|
|
157
|
+
- **vs C4-Context agent**: Provides container-level detail; Context agent creates high-level system diagrams
|
|
158
|
+
- **vs C4-Code agent**: Focuses on deployment architecture; Code agent documents individual code elements
|
|
159
|
+
|
|
160
|
+
## Output Examples
|
|
161
|
+
|
|
162
|
+
When synthesizing containers, provide:
|
|
163
|
+
|
|
164
|
+
- Clear container boundaries with deployment rationale
|
|
165
|
+
- Descriptive container names and deployment characteristics
|
|
166
|
+
- Complete API documentation with OpenAPI/Swagger specifications
|
|
167
|
+
- Links to all contained components
|
|
168
|
+
- Mermaid container diagrams showing deployment architecture
|
|
169
|
+
- Links to deployment configurations (Dockerfiles, K8s manifests, etc.)
|
|
170
|
+
- Infrastructure requirements and scaling considerations
|
|
171
|
+
- Consistent documentation format across all containers
|