@ngxtm/devkit 3.6.1 → 3.8.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/SKILLS_INDEX.md +2419 -634
- package/cli/update.js +145 -77
- package/merged-commands/3d-web-experience.md +254 -0
- package/merged-commands/ab-test-setup.md +232 -0
- package/merged-commands/accessibility-compliance-accessibility-audit.md +42 -0
- package/merged-commands/active-directory-attacks.md +383 -0
- package/merged-commands/address-github-comments.md +55 -0
- package/merged-commands/aesthetic.md +134 -0
- package/merged-commands/agent-evaluation.md +64 -0
- package/merged-commands/agent-framework-azure-hosted-agents.md +332 -0
- package/merged-commands/agent-manager-skill.md +40 -0
- package/merged-commands/agent-memory-mcp.md +82 -0
- package/merged-commands/agent-memory-systems.md +67 -0
- package/merged-commands/agent-orchestration-improve-agent.md +349 -0
- package/merged-commands/agent-orchestration-multi-agent-optimize.md +239 -0
- package/merged-commands/agent-tool-builder.md +53 -0
- package/merged-commands/agile-product-owner.md +31 -0
- package/merged-commands/ai-agents-architect.md +90 -0
- package/merged-commands/ai-artist.md +75 -0
- package/merged-commands/ai-engineer.md +171 -0
- package/merged-commands/ai-multimodal.md +109 -0
- package/merged-commands/ai-product.md +54 -0
- package/merged-commands/ai-wrapper-product.md +273 -0
- package/merged-commands/airflow-dag-patterns.md +41 -0
- package/merged-commands/algolia-search.md +66 -0
- package/merged-commands/algorithmic-art.md +405 -0
- package/merged-commands/analytics-tracking.md +404 -0
- package/merged-commands/angular-architect.md +97 -0
- package/merged-commands/angular-migration.md +428 -0
- package/merged-commands/anti-reversing-techniques.md +42 -0
- package/merged-commands/api-design-principles.md +37 -0
- package/merged-commands/api-designer.md +101 -0
- package/merged-commands/api-documentation-generator.md +484 -0
- package/merged-commands/api-documenter.md +184 -0
- package/merged-commands/api-fuzzing-bug-bounty.md +433 -0
- package/merged-commands/api-patterns.md +81 -0
- package/merged-commands/api-security-best-practices.md +907 -0
- package/merged-commands/api-testing-observability-api-mock.md +46 -0
- package/merged-commands/app-builder.md +75 -0
- package/merged-commands/app-store-optimization.md +403 -0
- package/merged-commands/application-performance-performance-optimization.md +154 -0
- package/merged-commands/architect-review.md +174 -0
- package/merged-commands/architecture-decision-records.md +441 -0
- package/merged-commands/architecture-designer.md +89 -0
- package/merged-commands/architecture-patterns.md +37 -0
- package/merged-commands/architecture.md +55 -0
- package/merged-commands/arm-cortex-expert.md +306 -0
- package/merged-commands/artifacts-builder.md +74 -0
- package/merged-commands/ask-questions-if-underspecified.md +81 -0
- package/merged-commands/async-python-patterns.md +39 -0
- package/merged-commands/atlassian-mcp.md +100 -0
- package/merged-commands/attack-tree-construction.md +38 -0
- package/merged-commands/auth-implementation-patterns.md +39 -0
- package/merged-commands/automate-whatsapp.md +257 -0
- package/merged-commands/autonomous-agent-patterns.md +761 -0
- package/merged-commands/autonomous-agents.md +68 -0
- package/merged-commands/avalonia-layout-zafiro.md +59 -0
- package/merged-commands/avalonia-viewmodels-zafiro.md +29 -0
- package/merged-commands/avalonia-zafiro-development.md +29 -0
- package/merged-commands/aws-agentic-ai.md +117 -0
- package/merged-commands/aws-cdk-development.md +278 -0
- package/merged-commands/aws-cost-operations.md +317 -0
- package/merged-commands/aws-penetration-testing.md +405 -0
- package/merged-commands/aws-serverless-eda.md +757 -0
- package/merged-commands/aws-serverless.md +323 -0
- package/merged-commands/aws-skills.md +22 -0
- package/merged-commands/azd-deployment.md +296 -0
- package/merged-commands/azure-ai-agents-python.md +277 -0
- package/merged-commands/azure-ai-search-python.md +198 -0
- package/merged-commands/azure-ai-voicelive-skill.md +294 -0
- package/merged-commands/azure-functions.md +42 -0
- package/merged-commands/backend-architect.md +333 -0
- package/merged-commands/backend-dev-guidelines.md +342 -0
- package/merged-commands/backend-development-feature-development.md +180 -0
- package/merged-commands/backend-development.md +155 -0
- package/merged-commands/backend-security-coder.md +156 -0
- package/merged-commands/backtesting-frameworks.md +39 -0
- package/merged-commands/bash-defensive-patterns.md +43 -0
- package/merged-commands/bash-linux.md +199 -0
- package/merged-commands/bash-pro.md +310 -0
- package/merged-commands/bats-testing-patterns.md +34 -0
- package/merged-commands/bazel-build-optimization.md +397 -0
- package/merged-commands/beautiful-prose.md +22 -0
- package/merged-commands/behavioral-modes.md +242 -0
- package/merged-commands/best-practices.md +500 -0
- package/merged-commands/better-auth.md +204 -0
- package/merged-commands/billing-automation.md +42 -0
- package/merged-commands/binary-analysis-patterns.md +450 -0
- package/merged-commands/blockchain-developer.md +208 -0
- package/merged-commands/blockrun.md +292 -0
- package/merged-commands/brainstorming.md +230 -0
- package/merged-commands/brand-guidelines-anthropic.md +73 -0
- package/merged-commands/brand-guidelines-community.md +73 -0
- package/merged-commands/brand-guidelines.md +73 -0
- package/merged-commands/broken-authentication.md +476 -0
- package/merged-commands/browser-automation.md +70 -0
- package/merged-commands/browser-extension-builder.md +261 -0
- package/merged-commands/building-ai-agent-on-cloudflare.md +391 -0
- package/merged-commands/building-mcp-server-on-cloudflare.md +265 -0
- package/merged-commands/bullmq-specialist.md +57 -0
- package/merged-commands/bun-development.md +691 -0
- package/merged-commands/burp-suite-testing.md +380 -0
- package/merged-commands/business-analyst.md +182 -0
- package/merged-commands/busybox-on-windows.md +30 -0
- package/merged-commands/c-pro.md +56 -0
- package/merged-commands/c4-architecture-c4-architecture.md +389 -0
- package/merged-commands/c4-code.md +244 -0
- package/merged-commands/c4-component.md +153 -0
- package/merged-commands/c4-container.md +171 -0
- package/merged-commands/c4-context.md +150 -0
- package/merged-commands/canvas-design.md +130 -0
- package/merged-commands/cc-skill-backend-patterns.md +584 -0
- package/merged-commands/cc-skill-clickhouse-io.md +431 -0
- package/merged-commands/cc-skill-coding-standards.md +522 -0
- package/merged-commands/cc-skill-continuous-learning.md +10 -0
- package/merged-commands/cc-skill-frontend-patterns.md +633 -0
- package/merged-commands/cc-skill-project-guidelines-example.md +352 -0
- package/merged-commands/cc-skill-security-review.md +496 -0
- package/merged-commands/cc-skill-strategic-compact.md +10 -0
- package/merged-commands/changelog-automation.md +38 -0
- package/merged-commands/changelog-generator.md +104 -0
- package/merged-commands/chaos-engineer.md +98 -0
- package/merged-commands/chrome-devtools.md +407 -0
- package/merged-commands/cicd-automation-workflow-automate.md +51 -0
- package/merged-commands/clarity-gate.md +22 -0
- package/merged-commands/claude-ally-health.md +22 -0
- package/merged-commands/claude-code-guide.md +68 -0
- package/merged-commands/claude-d3js-skill.md +820 -0
- package/merged-commands/claude-scientific-skills.md +22 -0
- package/merged-commands/claude-speed-reader.md +22 -0
- package/merged-commands/claude-win11-speckit-update-skill.md +22 -0
- package/merged-commands/clean-code.md +201 -0
- package/merged-commands/clerk-auth.md +56 -0
- package/merged-commands/cli-developer.md +97 -0
- package/merged-commands/cloud-architect.md +135 -0
- package/merged-commands/cloud-penetration-testing.md +501 -0
- package/merged-commands/cloudflare-expert.md +227 -0
- package/merged-commands/code-documentation-code-explain.md +46 -0
- package/merged-commands/code-documentation-doc-generate.md +48 -0
- package/merged-commands/code-documentation.md +263 -0
- package/merged-commands/code-documenter.md +95 -0
- package/merged-commands/code-refactoring-context-restore.md +179 -0
- package/merged-commands/code-refactoring-refactor-clean.md +51 -0
- package/merged-commands/code-refactoring-tech-debt.md +386 -0
- package/merged-commands/code-refactoring.md +209 -0
- package/merged-commands/code-review-ai-ai-review.md +450 -0
- package/merged-commands/code-review-checklist.md +444 -0
- package/merged-commands/code-review-excellence.md +40 -0
- package/merged-commands/code-review.md +121 -0
- package/merged-commands/code-reviewer.md +178 -0
- package/merged-commands/codebase-cleanup-deps-audit.md +51 -0
- package/merged-commands/codebase-cleanup-refactor-clean.md +51 -0
- package/merged-commands/codebase-cleanup-tech-debt.md +386 -0
- package/merged-commands/codex-review.md +37 -0
- package/merged-commands/commit.md +171 -0
- package/merged-commands/competitive-ads-extractor.md +293 -0
- package/merged-commands/competitive-landscape.md +34 -0
- package/merged-commands/competitor-alternatives.md +750 -0
- package/merged-commands/comprehensive-review-full-review.md +146 -0
- package/merged-commands/comprehensive-review-pr-enhance.md +46 -0
- package/merged-commands/computer-use-agents.md +315 -0
- package/merged-commands/concise-planning.md +62 -0
- package/merged-commands/conductor-implement.md +388 -0
- package/merged-commands/conductor-manage.md +39 -0
- package/merged-commands/conductor-new-track.md +433 -0
- package/merged-commands/conductor-revert.md +372 -0
- package/merged-commands/conductor-setup.md +426 -0
- package/merged-commands/conductor-status.md +338 -0
- package/merged-commands/conductor-validator.md +62 -0
- package/merged-commands/content-creator.md +248 -0
- package/merged-commands/content-marketer.md +170 -0
- package/merged-commands/content-research-writer.md +538 -0
- package/merged-commands/context-compression.md +266 -0
- package/merged-commands/context-degradation.md +238 -0
- package/merged-commands/context-driven-development.md +400 -0
- package/merged-commands/context-engineering.md +107 -0
- package/merged-commands/context-fundamentals.md +192 -0
- package/merged-commands/context-management-context-restore.md +179 -0
- package/merged-commands/context-management-context-save.md +177 -0
- package/merged-commands/context-manager.md +185 -0
- package/merged-commands/context-optimization.md +186 -0
- package/merged-commands/context-window-management.md +53 -0
- package/merged-commands/context7-auto-research.md +36 -0
- package/merged-commands/conversation-memory.md +61 -0
- package/merged-commands/copy-editing.md +439 -0
- package/merged-commands/copywriting.md +225 -0
- package/merged-commands/core-components.md +264 -0
- package/merged-commands/cosmos-db-python-skill.md +198 -0
- package/merged-commands/cost-optimization.md +286 -0
- package/merged-commands/cpp-pro.md +59 -0
- package/merged-commands/cqrs-implementation.md +35 -0
- package/merged-commands/create-pr.md +192 -0
- package/merged-commands/crewai.md +243 -0
- package/merged-commands/csharp-developer.md +94 -0
- package/merged-commands/csharp-pro.md +59 -0
- package/merged-commands/culture-index.md +43 -0
- package/merged-commands/customer-support.md +170 -0
- package/merged-commands/daily-news-report.md +356 -0
- package/merged-commands/data-engineer.md +224 -0
- package/merged-commands/data-engineering-data-driven-feature.md +182 -0
- package/merged-commands/data-engineering-data-pipeline.md +201 -0
- package/merged-commands/data-quality-frameworks.md +40 -0
- package/merged-commands/data-scientist.md +199 -0
- package/merged-commands/data-storytelling.md +465 -0
- package/merged-commands/database-admin.md +165 -0
- package/merged-commands/database-architect.md +268 -0
- package/merged-commands/database-cloud-optimization-cost-optimize.md +44 -0
- package/merged-commands/database-design.md +52 -0
- package/merged-commands/database-migration.md +436 -0
- package/merged-commands/database-migrations-migration-observability.md +420 -0
- package/merged-commands/database-migrations-sql-migrations.md +53 -0
- package/merged-commands/database-optimizer.md +167 -0
- package/merged-commands/databases.md +232 -0
- package/merged-commands/dbt-transformation-patterns.md +34 -0
- package/merged-commands/debugger.md +49 -0
- package/merged-commands/debugging-strategies.md +34 -0
- package/merged-commands/debugging-toolkit-smart-debug.md +197 -0
- package/merged-commands/debugging-wizard.md +93 -0
- package/merged-commands/debugging.md +84 -0
- package/merged-commands/deep-research.md +114 -0
- package/merged-commands/defi-protocol-templates.md +466 -0
- package/merged-commands/dependency-management-deps-audit.md +44 -0
- package/merged-commands/dependency-upgrade.md +421 -0
- package/merged-commands/deployment-engineer.md +170 -0
- package/merged-commands/deployment-pipeline-design.md +371 -0
- package/merged-commands/deployment-procedures.md +241 -0
- package/merged-commands/deployment-validation-config-validate.md +496 -0
- package/merged-commands/design-md.md +178 -0
- package/merged-commands/design-orchestration.md +167 -0
- package/merged-commands/developer-growth-analysis.md +322 -0
- package/merged-commands/devops-engineer.md +92 -0
- package/merged-commands/devops-troubleshooter.md +161 -0
- package/merged-commands/devops.md +285 -0
- package/merged-commands/discord-bot-architect.md +277 -0
- package/merged-commands/dispatching-parallel-agents.md +180 -0
- package/merged-commands/distributed-debugging-debug-trace.md +44 -0
- package/merged-commands/distributed-tracing.md +450 -0
- package/merged-commands/django-expert.md +89 -0
- package/merged-commands/django-pro.md +180 -0
- package/merged-commands/doc-coauthoring.md +375 -0
- package/merged-commands/docker-expert.md +409 -0
- package/merged-commands/docs-architect.md +98 -0
- package/merged-commands/docs-seeker.md +102 -0
- package/merged-commands/documentation-generation-doc-generate.md +48 -0
- package/merged-commands/documentation-templates.md +194 -0
- package/merged-commands/docx-official.md +197 -0
- package/merged-commands/docx.md +197 -0
- package/merged-commands/domain-name-brainstormer.md +212 -0
- package/merged-commands/dotnet-architect.md +197 -0
- package/merged-commands/dotnet-backend-patterns.md +37 -0
- package/merged-commands/dotnet-core-expert.md +96 -0
- package/merged-commands/dx-optimizer.md +83 -0
- package/merged-commands/e2e-testing-patterns.md +41 -0
- package/merged-commands/elixir-pro.md +59 -0
- package/merged-commands/email-sequence.md +925 -0
- package/merged-commands/email-systems.md +54 -0
- package/merged-commands/embedded-systems.md +98 -0
- package/merged-commands/embedding-strategies.md +491 -0
- package/merged-commands/employment-contract-templates.md +39 -0
- package/merged-commands/environment-setup-guide.md +479 -0
- package/merged-commands/error-debugging-error-analysis.md +47 -0
- package/merged-commands/error-debugging-error-trace.md +43 -0
- package/merged-commands/error-debugging-multi-agent-review.md +216 -0
- package/merged-commands/error-detective.md +53 -0
- package/merged-commands/error-diagnostics-error-analysis.md +47 -0
- package/merged-commands/error-diagnostics-error-trace.md +48 -0
- package/merged-commands/error-diagnostics-smart-debug.md +197 -0
- package/merged-commands/error-handling-patterns.md +35 -0
- package/merged-commands/ethical-hacking-methodology.md +466 -0
- package/merged-commands/evaluation.md +238 -0
- package/merged-commands/event-sourcing-architect.md +58 -0
- package/merged-commands/event-store-design.md +449 -0
- package/merged-commands/exa-search.md +36 -0
- package/merged-commands/executing-plans.md +76 -0
- package/merged-commands/expo-app-design.md +22 -0
- package/merged-commands/expo-deployment.md +72 -0
- package/merged-commands/fal-audio.md +22 -0
- package/merged-commands/fal-generate.md +22 -0
- package/merged-commands/fal-image-edit.md +22 -0
- package/merged-commands/fal-platform.md +22 -0
- package/merged-commands/fal-upscale.md +22 -0
- package/merged-commands/fal-workflow.md +22 -0
- package/merged-commands/fastapi-expert.md +93 -0
- package/merged-commands/fastapi-pro.md +192 -0
- package/merged-commands/fastapi-router.md +52 -0
- package/merged-commands/fastapi-templates.md +32 -0
- package/merged-commands/feature-forge.md +90 -0
- package/merged-commands/ffuf-claude-skill.md +22 -0
- package/merged-commands/file-organizer.md +250 -0
- package/merged-commands/file-path-traversal.md +486 -0
- package/merged-commands/file-uploads.md +22 -0
- package/merged-commands/find-bugs.md +86 -0
- package/merged-commands/fine-tuning-expert.md +98 -0
- package/merged-commands/finishing-a-development-branch.md +200 -0
- package/merged-commands/firebase.md +56 -0
- package/merged-commands/firecrawl-scraper.md +37 -0
- package/merged-commands/firmware-analyst.md +320 -0
- package/merged-commands/fix-review.md +53 -0
- package/merged-commands/fixing.md +72 -0
- package/merged-commands/flutter-expert.md +200 -0
- package/merged-commands/form-cro.md +441 -0
- package/merged-commands/foundry-iq-agent.md +15 -0
- package/merged-commands/foundry-iq-python.md +275 -0
- package/merged-commands/foundry-nextgen-frontend.md +555 -0
- package/merged-commands/foundry-sdk-python.md +290 -0
- package/merged-commands/fp-ts-errors.md +856 -0
- package/merged-commands/fp-ts-pragmatic.md +598 -0
- package/merged-commands/fp-ts-react.md +796 -0
- package/merged-commands/framework-migration-code-migrate.md +48 -0
- package/merged-commands/framework-migration-deps-upgrade.md +48 -0
- package/merged-commands/framework-migration-legacy-modernize.md +132 -0
- package/merged-commands/free-tool-strategy.md +576 -0
- package/merged-commands/frontend-design.md +272 -0
- package/merged-commands/frontend-dev-guidelines.md +359 -0
- package/merged-commands/frontend-developer.md +171 -0
- package/merged-commands/frontend-development.md +399 -0
- package/merged-commands/frontend-mobile-development-component-scaffold.md +403 -0
- package/merged-commands/frontend-mobile-security-xss-scan.md +322 -0
- package/merged-commands/frontend-security-coder.md +170 -0
- package/merged-commands/frontend-slides.md +770 -0
- package/merged-commands/full-stack-orchestration-full-stack-feature.md +135 -0
- package/merged-commands/fullstack-guardian.md +99 -0
- package/merged-commands/game-developer.md +94 -0
- package/merged-commands/game-development.md +167 -0
- package/merged-commands/gcp-cloud-run.md +288 -0
- package/merged-commands/gdpr-data-handling.md +33 -0
- package/merged-commands/geo-fundamentals.md +156 -0
- package/merged-commands/git-advanced-workflows.md +412 -0
- package/merged-commands/git-pr-workflows-git-workflow.md +140 -0
- package/merged-commands/git-pr-workflows-onboard.md +416 -0
- package/merged-commands/git-pr-workflows-pr-enhance.md +48 -0
- package/merged-commands/git-pushing.md +33 -0
- package/merged-commands/github-actions-templates.md +345 -0
- package/merged-commands/github-workflow-automation.md +846 -0
- package/merged-commands/gitlab-ci-patterns.md +283 -0
- package/merged-commands/gitops-workflow.md +303 -0
- package/merged-commands/go-concurrency-patterns.md +33 -0
- package/merged-commands/godot-gdscript-patterns.md +33 -0
- package/merged-commands/golang-pro.md +179 -0
- package/merged-commands/google-adk-python.md +243 -0
- package/merged-commands/grafana-dashboards.md +381 -0
- package/merged-commands/graphql-architect.md +182 -0
- package/merged-commands/graphql.md +68 -0
- package/merged-commands/haskell-pro.md +56 -0
- package/merged-commands/helm-chart-scaffolding.md +34 -0
- package/merged-commands/hr-pro.md +126 -0
- package/merged-commands/html-injection-testing.md +498 -0
- package/merged-commands/hubspot-integration.md +42 -0
- package/merged-commands/hugging-face-cli.md +198 -0
- package/merged-commands/hugging-face-jobs.md +1038 -0
- package/merged-commands/hybrid-cloud-architect.md +168 -0
- package/merged-commands/hybrid-cloud-networking.md +238 -0
- package/merged-commands/hybrid-search-implementation.md +32 -0
- package/merged-commands/i18n-localization.md +154 -0
- package/merged-commands/idor-testing.md +442 -0
- package/merged-commands/image-enhancer.md +99 -0
- package/merged-commands/imagen.md +77 -0
- package/merged-commands/incident-responder.md +213 -0
- package/merged-commands/incident-response-incident-response.md +168 -0
- package/merged-commands/incident-response-smart-fix.md +29 -0
- package/merged-commands/incident-runbook-templates.md +395 -0
- package/merged-commands/infinite-gratitude.md +26 -0
- package/merged-commands/inngest.md +55 -0
- package/merged-commands/interactive-portfolio.md +223 -0
- package/merged-commands/internal-comms-anthropic.md +32 -0
- package/merged-commands/internal-comms-community.md +32 -0
- package/merged-commands/internal-comms.md +32 -0
- package/merged-commands/invoice-organizer.md +446 -0
- package/merged-commands/ios-developer.md +219 -0
- package/merged-commands/issue-creator.md +137 -0
- package/merged-commands/istio-traffic-management.md +337 -0
- package/merged-commands/iterate-pr.md +150 -0
- package/merged-commands/java-architect.md +95 -0
- package/merged-commands/java-pro.md +177 -0
- package/merged-commands/javascript-mastery.md +645 -0
- package/merged-commands/javascript-pro.md +57 -0
- package/merged-commands/javascript-testing-patterns.md +35 -0
- package/merged-commands/javascript-typescript-typescript-scaffold.md +361 -0
- package/merged-commands/javascript-typescript.md +142 -0
- package/merged-commands/jira-issues.md +181 -0
- package/merged-commands/job-application.md +90 -0
- package/merged-commands/julia-pro.md +209 -0
- package/merged-commands/k8s-manifest-generator.md +35 -0
- package/merged-commands/k8s-security-policies.md +346 -0
- package/merged-commands/kaizen.md +730 -0
- package/merged-commands/kotlin-specialist.md +94 -0
- package/merged-commands/kpi-dashboard-design.md +440 -0
- package/merged-commands/kubernetes-architect.md +170 -0
- package/merged-commands/kubernetes-specialist.md +117 -0
- package/merged-commands/langchain-architecture.md +350 -0
- package/merged-commands/langfuse.md +238 -0
- package/merged-commands/langgraph.md +287 -0
- package/merged-commands/laravel-specialist.md +101 -0
- package/merged-commands/last30days.md +421 -0
- package/merged-commands/launch-strategy.md +344 -0
- package/merged-commands/lead-research-assistant.md +199 -0
- package/merged-commands/learn.md +476 -0
- package/merged-commands/legacy-modernizer.md +53 -0
- package/merged-commands/legal-advisor.md +70 -0
- package/merged-commands/linear-claude-skill.md +543 -0
- package/merged-commands/linkerd-patterns.md +321 -0
- package/merged-commands/lint-and-validate.md +45 -0
- package/merged-commands/linux-privilege-escalation.md +504 -0
- package/merged-commands/linux-shell-scripting.md +504 -0
- package/merged-commands/llm-app-patterns.md +760 -0
- package/merged-commands/llm-application-dev-ai-assistant.md +35 -0
- package/merged-commands/llm-application-dev-langchain-agent.md +246 -0
- package/merged-commands/llm-application-dev-prompt-optimize.md +37 -0
- package/merged-commands/llm-application-dev.md +216 -0
- package/merged-commands/llm-evaluation.md +483 -0
- package/merged-commands/loki-mode.md +721 -0
- package/merged-commands/machine-learning-ops-ml-pipeline.md +314 -0
- package/merged-commands/makepad-skills.md +22 -0
- package/merged-commands/malware-analyst.md +247 -0
- package/merged-commands/markdown-novel-viewer.md +281 -0
- package/merged-commands/market-sizing-analysis.md +425 -0
- package/merged-commands/marketing-ideas.md +221 -0
- package/merged-commands/marketing-psychology.md +255 -0
- package/merged-commands/mcp-builder.md +236 -0
- package/merged-commands/mcp-developer.md +94 -0
- package/merged-commands/mcp-management.md +209 -0
- package/merged-commands/media-processing.md +358 -0
- package/merged-commands/meeting-insights-analyzer.md +327 -0
- package/merged-commands/memory-forensics.md +491 -0
- package/merged-commands/memory-safety-patterns.md +33 -0
- package/merged-commands/memory-systems.md +228 -0
- package/merged-commands/mermaid-expert.md +59 -0
- package/merged-commands/mermaidjs-v11.md +115 -0
- package/merged-commands/metasploit-framework.md +478 -0
- package/merged-commands/micro-saas-launcher.md +212 -0
- package/merged-commands/microservices-architect.md +102 -0
- package/merged-commands/microservices-patterns.md +35 -0
- package/merged-commands/minecraft-bukkit-pro.md +126 -0
- package/merged-commands/ml-engineer.md +168 -0
- package/merged-commands/ml-pipeline-workflow.md +257 -0
- package/merged-commands/ml-pipeline.md +111 -0
- package/merged-commands/mlops-engineer.md +219 -0
- package/merged-commands/mobile-design.md +284 -0
- package/merged-commands/mobile-developer.md +205 -0
- package/merged-commands/mobile-development.md +212 -0
- package/merged-commands/mobile-security-coder.md +184 -0
- package/merged-commands/modern-javascript-patterns.md +35 -0
- package/merged-commands/monitoring-expert.md +92 -0
- package/merged-commands/monorepo-architect.md +61 -0
- package/merged-commands/monorepo-management.md +35 -0
- package/merged-commands/moodle-external-api-development.md +597 -0
- package/merged-commands/mtls-configuration.md +359 -0
- package/merged-commands/multi-agent-brainstorming.md +256 -0
- package/merged-commands/multi-agent-patterns.md +262 -0
- package/merged-commands/multi-cloud-architecture.md +189 -0
- package/merged-commands/multi-platform-apps-multi-platform.md +203 -0
- package/merged-commands/n8n-code-python.md +750 -0
- package/merged-commands/n8n-mcp-tools-expert.md +654 -0
- package/merged-commands/n8n-node-configuration.md +796 -0
- package/merged-commands/nanobanana-ppt-skills.md +22 -0
- package/merged-commands/neon-postgres.md +56 -0
- package/merged-commands/nestjs-expert.md +552 -0
- package/merged-commands/network-101.md +342 -0
- package/merged-commands/network-engineer.md +169 -0
- package/merged-commands/nextjs-app-router-patterns.md +33 -0
- package/merged-commands/nextjs-best-practices.md +203 -0
- package/merged-commands/nextjs-developer.md +97 -0
- package/merged-commands/nextjs-supabase-auth.md +56 -0
- package/merged-commands/nft-standards.md +395 -0
- package/merged-commands/nodejs-backend-patterns.md +35 -0
- package/merged-commands/nodejs-best-practices.md +333 -0
- package/merged-commands/nosql-expert.md +111 -0
- package/merged-commands/notebooklm-skill.md +269 -0
- package/merged-commands/notebooklm.md +269 -0
- package/merged-commands/notion-template-business.md +216 -0
- package/merged-commands/nx-workspace-patterns.md +464 -0
- package/merged-commands/observability-engineer.md +237 -0
- package/merged-commands/observability-monitoring-monitor-setup.md +48 -0
- package/merged-commands/observability-monitoring-slo-implement.md +43 -0
- package/merged-commands/observe-whatsapp.md +109 -0
- package/merged-commands/obsidian-clipper-template-creator.md +64 -0
- package/merged-commands/on-call-handoff-patterns.md +453 -0
- package/merged-commands/onboarding-cro.md +433 -0
- package/merged-commands/openapi-spec-generation.md +33 -0
- package/merged-commands/page-cro.md +343 -0
- package/merged-commands/paid-ads.md +551 -0
- package/merged-commands/pandas-pro.md +96 -0
- package/merged-commands/parallel-agents.md +175 -0
- package/merged-commands/payment-integration.md +77 -0
- package/merged-commands/paypal-integration.md +479 -0
- package/merged-commands/paywall-upgrade-cro.md +570 -0
- package/merged-commands/pci-compliance.md +478 -0
- package/merged-commands/pdf-official.md +294 -0
- package/merged-commands/pdf.md +294 -0
- package/merged-commands/pentest-checklist.md +334 -0
- package/merged-commands/pentest-commands.md +438 -0
- package/merged-commands/performance-engineer.md +180 -0
- package/merged-commands/performance-profiling.md +143 -0
- package/merged-commands/performance-testing-review-ai-review.md +450 -0
- package/merged-commands/performance-testing-review-multi-agent-review.md +216 -0
- package/merged-commands/personal-tool-builder.md +289 -0
- package/merged-commands/php-pro.md +63 -0
- package/merged-commands/plaid-fintech.md +50 -0
- package/merged-commands/plan-writing.md +152 -0
- package/merged-commands/planning-with-files.md +211 -0
- package/merged-commands/planning.md +95 -0
- package/merged-commands/plans-kanban.md +166 -0
- package/merged-commands/playwright-expert.md +87 -0
- package/merged-commands/playwright-skill.md +453 -0
- package/merged-commands/podcast-generation.md +121 -0
- package/merged-commands/popup-cro.md +346 -0
- package/merged-commands/posix-shell-pro.md +304 -0
- package/merged-commands/postgres-best-practices.md +57 -0
- package/merged-commands/postgres-pro.md +98 -0
- package/merged-commands/postgresql.md +230 -0
- package/merged-commands/postmortem-writing.md +386 -0
- package/merged-commands/powershell-windows.md +167 -0
- package/merged-commands/pptx-official.md +484 -0
- package/merged-commands/pptx.md +484 -0
- package/merged-commands/pricing-strategy.md +356 -0
- package/merged-commands/prisma-expert.md +355 -0
- package/merged-commands/privilege-escalation-methods.md +333 -0
- package/merged-commands/problem-solving.md +96 -0
- package/merged-commands/product-manager-toolkit.md +351 -0
- package/merged-commands/product-strategist.md +26 -0
- package/merged-commands/production-code-audit.md +540 -0
- package/merged-commands/programmatic-seo.md +351 -0
- package/merged-commands/projection-patterns.md +33 -0
- package/merged-commands/prometheus-configuration.md +404 -0
- package/merged-commands/prompt-caching.md +61 -0
- package/merged-commands/prompt-engineer.md +272 -0
- package/merged-commands/prompt-engineering-patterns.md +213 -0
- package/merged-commands/prompt-engineering.md +171 -0
- package/merged-commands/prompt-library.md +322 -0
- package/merged-commands/protocol-reverse-engineering.md +29 -0
- package/merged-commands/pydantic-models.md +58 -0
- package/merged-commands/pypict-skill.md +22 -0
- package/merged-commands/python-development-python-scaffold.md +331 -0
- package/merged-commands/python-development.md +139 -0
- package/merged-commands/python-packaging.md +36 -0
- package/merged-commands/python-patterns.md +441 -0
- package/merged-commands/python-performance-optimization.md +36 -0
- package/merged-commands/python-pro.md +158 -0
- package/merged-commands/python-testing-patterns.md +37 -0
- package/merged-commands/qa-regression.md +337 -0
- package/merged-commands/quant-analyst.md +53 -0
- package/merged-commands/radix-ui-design-system.md +847 -0
- package/merged-commands/raffle-winner-picker.md +159 -0
- package/merged-commands/rag-architect.md +100 -0
- package/merged-commands/rag-engineer.md +90 -0
- package/merged-commands/rag-implementation.md +421 -0
- package/merged-commands/rails-expert.md +97 -0
- package/merged-commands/react-best-practices.md +121 -0
- package/merged-commands/react-expert.md +98 -0
- package/merged-commands/react-flow-node.md +66 -0
- package/merged-commands/react-modernization.md +34 -0
- package/merged-commands/react-native-architecture.md +33 -0
- package/merged-commands/react-native-expert.md +88 -0
- package/merged-commands/react-patterns.md +198 -0
- package/merged-commands/react-state-management.md +441 -0
- package/merged-commands/react-ui-patterns.md +289 -0
- package/merged-commands/readme.md +775 -0
- package/merged-commands/receiving-code-review.md +213 -0
- package/merged-commands/red-team-tactics.md +199 -0
- package/merged-commands/red-team-tools.md +310 -0
- package/merged-commands/reference-builder.md +188 -0
- package/merged-commands/referral-program.md +602 -0
- package/merged-commands/remotion-best-practices.md +45 -0
- package/merged-commands/repomix.md +275 -0
- package/merged-commands/requesting-code-review.md +105 -0
- package/merged-commands/research-engineer.md +135 -0
- package/merged-commands/research.md +191 -0
- package/merged-commands/reverse-engineer.md +173 -0
- package/merged-commands/risk-manager.md +61 -0
- package/merged-commands/risk-metrics-calculation.md +33 -0
- package/merged-commands/ruby-pro.md +56 -0
- package/merged-commands/rust-async-patterns.md +33 -0
- package/merged-commands/rust-engineer.md +96 -0
- package/merged-commands/rust-pro.md +178 -0
- package/merged-commands/saga-orchestration.md +496 -0
- package/merged-commands/sales-automator.md +55 -0
- package/merged-commands/salesforce-developer.md +105 -0
- package/merged-commands/salesforce-development.md +51 -0
- package/merged-commands/sast-configuration.md +212 -0
- package/merged-commands/scala-pro.md +82 -0
- package/merged-commands/scanning-tools.md +589 -0
- package/merged-commands/schema-markup.md +360 -0
- package/merged-commands/screen-reader-testing.md +33 -0
- package/merged-commands/screenshots.md +401 -0
- package/merged-commands/scroll-experience.md +263 -0
- package/merged-commands/search-specialist.md +80 -0
- package/merged-commands/secrets-management.md +364 -0
- package/merged-commands/secure-code-guardian.md +93 -0
- package/merged-commands/security-auditor.md +169 -0
- package/merged-commands/security-bluebook-builder.md +22 -0
- package/merged-commands/security-compliance-compliance-check.md +55 -0
- package/merged-commands/security-requirement-extraction.md +33 -0
- package/merged-commands/security-reviewer.md +94 -0
- package/merged-commands/security-scanning-security-dependencies.md +43 -0
- package/merged-commands/security-scanning-security-hardening.md +147 -0
- package/merged-commands/security-scanning-security-sast.md +495 -0
- package/merged-commands/segment-cdp.md +50 -0
- package/merged-commands/senior-architect.md +209 -0
- package/merged-commands/senior-backend.md +209 -0
- package/merged-commands/senior-computer-vision.md +226 -0
- package/merged-commands/senior-data-engineer.md +226 -0
- package/merged-commands/senior-data-scientist.md +226 -0
- package/merged-commands/senior-devops.md +209 -0
- package/merged-commands/senior-frontend.md +209 -0
- package/merged-commands/senior-fullstack.md +209 -0
- package/merged-commands/senior-ml-engineer.md +226 -0
- package/merged-commands/senior-prompt-engineer.md +226 -0
- package/merged-commands/senior-qa.md +209 -0
- package/merged-commands/senior-secops.md +209 -0
- package/merged-commands/senior-security.md +209 -0
- package/merged-commands/seo-audit.md +487 -0
- package/merged-commands/seo-authority-builder.md +136 -0
- package/merged-commands/seo-cannibalization-detector.md +123 -0
- package/merged-commands/seo-content-auditor.md +83 -0
- package/merged-commands/seo-content-planner.md +108 -0
- package/merged-commands/seo-content-refresher.md +118 -0
- package/merged-commands/seo-content-writer.md +96 -0
- package/merged-commands/seo-fundamentals.md +173 -0
- package/merged-commands/seo-keyword-strategist.md +95 -0
- package/merged-commands/seo-meta-optimizer.md +92 -0
- package/merged-commands/seo-snippet-hunter.md +114 -0
- package/merged-commands/seo-structure-architect.md +108 -0
- package/merged-commands/sequential-thinking.md +94 -0
- package/merged-commands/server-management.md +161 -0
- package/merged-commands/service-mesh-expert.md +58 -0
- package/merged-commands/service-mesh-observability.md +395 -0
- package/merged-commands/sharp-edges.md +70 -0
- package/merged-commands/shellcheck-configuration.md +466 -0
- package/merged-commands/shodan-reconnaissance.md +503 -0
- package/merged-commands/shopify-apps.md +42 -0
- package/merged-commands/shopify-development.md +366 -0
- package/merged-commands/shopify-expert.md +102 -0
- package/merged-commands/signup-flow-cro.md +355 -0
- package/merged-commands/similarity-search-patterns.md +33 -0
- package/merged-commands/skill-creator.md +356 -0
- package/merged-commands/skill-developer.md +426 -0
- package/merged-commands/skill-rails-upgrade.md +408 -0
- package/merged-commands/skill-seekers.md +22 -0
- package/merged-commands/skill-share.md +80 -0
- package/merged-commands/slack-bot-builder.md +264 -0
- package/merged-commands/slack-gif-creator.md +254 -0
- package/merged-commands/slo-implementation.md +341 -0
- package/merged-commands/smtp-penetration-testing.md +500 -0
- package/merged-commands/social-content.md +807 -0
- package/merged-commands/software-architecture.md +75 -0
- package/merged-commands/solidity-security.md +34 -0
- package/merged-commands/spark-engineer.md +100 -0
- package/merged-commands/spark-optimization.md +427 -0
- package/merged-commands/spec-miner.md +88 -0
- package/merged-commands/spring-boot-engineer.md +104 -0
- package/merged-commands/sql-injection-testing.md +448 -0
- package/merged-commands/sql-optimization-patterns.md +35 -0
- package/merged-commands/sql-pro.md +173 -0
- package/merged-commands/sqlmap-database-pentesting.md +400 -0
- package/merged-commands/sre-engineer.md +98 -0
- package/merged-commands/ssh-penetration-testing.md +488 -0
- package/merged-commands/startup-analyst.md +328 -0
- package/merged-commands/startup-business-analyst-business-case.md +487 -0
- package/merged-commands/startup-business-analyst-financial-projections.md +353 -0
- package/merged-commands/startup-business-analyst-market-opportunity.md +240 -0
- package/merged-commands/startup-financial-modeling.md +467 -0
- package/merged-commands/startup-metrics-framework.md +34 -0
- package/merged-commands/stitch-ui-design.md +378 -0
- package/merged-commands/stride-analysis-patterns.md +33 -0
- package/merged-commands/stripe-integration.md +454 -0
- package/merged-commands/subagent-driven-development.md +240 -0
- package/merged-commands/superpowers-lab.md +22 -0
- package/merged-commands/swift-expert.md +94 -0
- package/merged-commands/swiftui-expert-skill.md +275 -0
- package/merged-commands/systematic-debugging.md +296 -0
- package/merged-commands/systems-programming-rust-project.md +440 -0
- package/merged-commands/tailwind-design-system.md +33 -0
- package/merged-commands/tailwind-patterns.md +269 -0
- package/merged-commands/tavily-web.md +36 -0
- package/merged-commands/tdd-orchestrator.md +205 -0
- package/merged-commands/tdd-workflow.md +149 -0
- package/merged-commands/tdd-workflows-tdd-cycle.md +221 -0
- package/merged-commands/tdd-workflows-tdd-green.md +73 -0
- package/merged-commands/tdd-workflows-tdd-red.md +164 -0
- package/merged-commands/tdd-workflows-tdd-refactor.md +187 -0
- package/merged-commands/team-collaboration-issue.md +37 -0
- package/merged-commands/team-collaboration-standup-notes.md +44 -0
- package/merged-commands/team-composition-analysis.md +413 -0
- package/merged-commands/telegram-bot-builder.md +254 -0
- package/merged-commands/telegram-mini-app.md +279 -0
- package/merged-commands/template-skill.md +6 -0
- package/merged-commands/temporal-python-pro.md +370 -0
- package/merged-commands/temporal-python-testing.md +170 -0
- package/merged-commands/terraform-engineer.md +97 -0
- package/merged-commands/terraform-module-library.md +261 -0
- package/merged-commands/terraform-skill.md +517 -0
- package/merged-commands/terraform-specialist.md +166 -0
- package/merged-commands/test-automator.md +224 -0
- package/merged-commands/test-driven-development.md +371 -0
- package/merged-commands/test-fixing.md +119 -0
- package/merged-commands/test-master.md +104 -0
- package/merged-commands/testing-patterns.md +259 -0
- package/merged-commands/theme-factory.md +59 -0
- package/merged-commands/threat-mitigation-mapping.md +33 -0
- package/merged-commands/threat-modeling-expert.md +60 -0
- package/merged-commands/threejs-skills.md +22 -0
- package/merged-commands/threejs.md +89 -0
- package/merged-commands/tool-design.md +318 -0
- package/merged-commands/top-web-vulnerabilities.md +543 -0
- package/merged-commands/track-management.md +38 -0
- package/merged-commands/trigger-dev.md +67 -0
- package/merged-commands/turborepo-caching.md +419 -0
- package/merged-commands/tutorial-engineer.md +139 -0
- package/merged-commands/twilio-communications.md +295 -0
- package/merged-commands/typescript-advanced-types.md +35 -0
- package/merged-commands/typescript-expert.md +429 -0
- package/merged-commands/typescript-pro.md +55 -0
- package/merged-commands/ui-design-system.md +32 -0
- package/merged-commands/ui-skills.md +22 -0
- package/merged-commands/ui-styling.md +321 -0
- package/merged-commands/ui-ux-designer.md +209 -0
- package/merged-commands/ui-ux-pro-max.md +351 -0
- package/merged-commands/ui-visual-validator.md +214 -0
- package/merged-commands/unit-testing-test-generate.md +319 -0
- package/merged-commands/unity-developer.md +230 -0
- package/merged-commands/unity-ecs-patterns.md +33 -0
- package/merged-commands/unreal-engine-cpp-pro.md +114 -0
- package/merged-commands/upgrading-expo.md +118 -0
- package/merged-commands/upstash-qstash.md +68 -0
- package/merged-commands/using-git-worktrees.md +217 -0
- package/merged-commands/using-neon.md +84 -0
- package/merged-commands/using-superpowers.md +87 -0
- package/merged-commands/uv-package-manager.md +37 -0
- package/merged-commands/ux-researcher-designer.md +30 -0
- package/merged-commands/varlock-claude-skill.md +22 -0
- package/merged-commands/vector-database-engineer.md +60 -0
- package/merged-commands/vector-index-tuning.md +42 -0
- package/merged-commands/vercel-deploy-claimable.md +120 -0
- package/merged-commands/vercel-deploy.md +22 -0
- package/merged-commands/vercel-deployment.md +79 -0
- package/merged-commands/verification-before-completion.md +139 -0
- package/merged-commands/vexor.md +22 -0
- package/merged-commands/video-downloader.md +106 -0
- package/merged-commands/viral-generator-builder.md +199 -0
- package/merged-commands/voice-agents.md +68 -0
- package/merged-commands/voice-ai-development.md +302 -0
- package/merged-commands/voice-ai-engine-development.md +721 -0
- package/merged-commands/vue-expert-js.md +91 -0
- package/merged-commands/vue-expert.md +374 -0
- package/merged-commands/vulnerability-scanner.md +276 -0
- package/merged-commands/wcag-audit-patterns.md +41 -0
- package/merged-commands/web-artifacts-builder.md +74 -0
- package/merged-commands/web-design-guidelines.md +36 -0
- package/merged-commands/web-frameworks.md +324 -0
- package/merged-commands/web-performance-optimization.md +646 -0
- package/merged-commands/web3-testing.md +427 -0
- package/merged-commands/webapp-testing.md +96 -0
- package/merged-commands/websocket-engineer.md +96 -0
- package/merged-commands/windows-privilege-escalation.md +496 -0
- package/merged-commands/wireshark-analysis.md +497 -0
- package/merged-commands/wordpress-penetration-testing.md +485 -0
- package/merged-commands/wordpress-pro.md +105 -0
- package/merged-commands/workflow-automation.md +68 -0
- package/merged-commands/workflow-orchestration-patterns.md +333 -0
- package/merged-commands/workflow-patterns.md +38 -0
- package/merged-commands/writing-plans.md +116 -0
- package/merged-commands/writing-skills.md +125 -0
- package/merged-commands/x-article-publisher-skill.md +22 -0
- package/merged-commands/xlsx-official.md +289 -0
- package/merged-commands/xlsx.md +289 -0
- package/merged-commands/xss-html-injection.md +499 -0
- package/merged-commands/youtube-transcript.md +415 -0
- package/merged-commands/zapier-make-patterns.md +67 -0
- package/merged-commands/zustand-store.md +68 -0
- package/package.json +1 -1
- package/scripts/generate-index.js +3 -1
- package/scripts/merge-commands.js +21 -0
- package/skills-index.json +2248 -463
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: terraform-skill
|
|
3
|
+
description: "Terraform infrastructure as code best practices"
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
metadata:
|
|
6
|
+
author: "Anton Babenko"
|
|
7
|
+
version: 1.5.0
|
|
8
|
+
source: "https://github.com/antonbabenko/terraform-skill"
|
|
9
|
+
risk: safe
|
|
10
|
+
---
|
|
11
|
+
# Terraform Skill for Claude
|
|
12
|
+
|
|
13
|
+
Comprehensive Terraform and OpenTofu guidance covering testing, modules, CI/CD, and production patterns. Based on terraform-best-practices.com and enterprise experience.
|
|
14
|
+
|
|
15
|
+
## When to Use This Skill
|
|
16
|
+
|
|
17
|
+
**Activate this skill when:**
|
|
18
|
+
- Creating new Terraform or OpenTofu configurations or modules
|
|
19
|
+
- Setting up testing infrastructure for IaC code
|
|
20
|
+
- Deciding between testing approaches (validate, plan, frameworks)
|
|
21
|
+
- Structuring multi-environment deployments
|
|
22
|
+
- Implementing CI/CD for infrastructure-as-code
|
|
23
|
+
- Reviewing or refactoring existing Terraform/OpenTofu projects
|
|
24
|
+
- Choosing between module patterns or state management approaches
|
|
25
|
+
|
|
26
|
+
**Don't use this skill for:**
|
|
27
|
+
- Basic Terraform/OpenTofu syntax questions (Claude knows this)
|
|
28
|
+
- Provider-specific API reference (link to docs instead)
|
|
29
|
+
- Cloud platform questions unrelated to Terraform/OpenTofu
|
|
30
|
+
|
|
31
|
+
## Core Principles
|
|
32
|
+
|
|
33
|
+
### 1. Code Structure Philosophy
|
|
34
|
+
|
|
35
|
+
**Module Hierarchy:**
|
|
36
|
+
|
|
37
|
+
| Type | When to Use | Scope |
|
|
38
|
+
|------|-------------|-------|
|
|
39
|
+
| **Resource Module** | Single logical group of connected resources | VPC + subnets, Security group + rules |
|
|
40
|
+
| **Infrastructure Module** | Collection of resource modules for a purpose | Multiple resource modules in one region/account |
|
|
41
|
+
| **Composition** | Complete infrastructure | Spans multiple regions/accounts |
|
|
42
|
+
|
|
43
|
+
**Hierarchy:** Resource → Resource Module → Infrastructure Module → Composition
|
|
44
|
+
|
|
45
|
+
**Directory Structure:**
|
|
46
|
+
```
|
|
47
|
+
environments/ # Environment-specific configurations
|
|
48
|
+
├── prod/
|
|
49
|
+
├── staging/
|
|
50
|
+
└── dev/
|
|
51
|
+
|
|
52
|
+
modules/ # Reusable modules
|
|
53
|
+
├── networking/
|
|
54
|
+
├── compute/
|
|
55
|
+
└── data/
|
|
56
|
+
|
|
57
|
+
examples/ # Module usage examples (also serve as tests)
|
|
58
|
+
├── complete/
|
|
59
|
+
└── minimal/
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Key principle from terraform-best-practices.com:**
|
|
63
|
+
- Separate **environments** (prod, staging) from **modules** (reusable components)
|
|
64
|
+
- Use **examples/** as both documentation and integration test fixtures
|
|
65
|
+
- Keep modules small and focused (single responsibility)
|
|
66
|
+
|
|
67
|
+
**For detailed module architecture, see:** [Code Patterns: Module Types & Hierarchy](references/code-patterns.md)
|
|
68
|
+
|
|
69
|
+
### 2. Naming Conventions
|
|
70
|
+
|
|
71
|
+
**Resources:**
|
|
72
|
+
```hcl
|
|
73
|
+
# Good: Descriptive, contextual
|
|
74
|
+
resource "aws_instance" "web_server" { }
|
|
75
|
+
resource "aws_s3_bucket" "application_logs" { }
|
|
76
|
+
|
|
77
|
+
# Good: "this" for singleton resources (only one of that type)
|
|
78
|
+
resource "aws_vpc" "this" { }
|
|
79
|
+
resource "aws_security_group" "this" { }
|
|
80
|
+
|
|
81
|
+
# Avoid: Generic names for non-singletons
|
|
82
|
+
resource "aws_instance" "main" { }
|
|
83
|
+
resource "aws_s3_bucket" "bucket" { }
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**Singleton Resources:**
|
|
87
|
+
|
|
88
|
+
Use `"this"` when your module creates only one resource of that type:
|
|
89
|
+
|
|
90
|
+
✅ DO:
|
|
91
|
+
```hcl
|
|
92
|
+
resource "aws_vpc" "this" {} # Module creates one VPC
|
|
93
|
+
resource "aws_security_group" "this" {} # Module creates one SG
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
❌ DON'T use "this" for multiple resources:
|
|
97
|
+
```hcl
|
|
98
|
+
resource "aws_subnet" "this" {} # If creating multiple subnets
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Use descriptive names when creating multiple resources of the same type.
|
|
102
|
+
|
|
103
|
+
**Variables:**
|
|
104
|
+
```hcl
|
|
105
|
+
# Prefix with context when needed
|
|
106
|
+
var.vpc_cidr_block # Not just "cidr"
|
|
107
|
+
var.database_instance_class # Not just "instance_class"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Files:**
|
|
111
|
+
- `main.tf` - Primary resources
|
|
112
|
+
- `variables.tf` - Input variables
|
|
113
|
+
- `outputs.tf` - Output values
|
|
114
|
+
- `versions.tf` - Provider versions
|
|
115
|
+
- `data.tf` - Data sources (optional)
|
|
116
|
+
|
|
117
|
+
## Testing Strategy Framework
|
|
118
|
+
|
|
119
|
+
### Decision Matrix: Which Testing Approach?
|
|
120
|
+
|
|
121
|
+
| Your Situation | Recommended Approach | Tools | Cost |
|
|
122
|
+
|----------------|---------------------|-------|------|
|
|
123
|
+
| **Quick syntax check** | Static analysis | `terraform validate`, `fmt` | Free |
|
|
124
|
+
| **Pre-commit validation** | Static + lint | `validate`, `tflint`, `trivy`, `checkov` | Free |
|
|
125
|
+
| **Terraform 1.6+, simple logic** | Native test framework | Built-in `terraform test` | Free-Low |
|
|
126
|
+
| **Pre-1.6, or Go expertise** | Integration testing | Terratest | Low-Med |
|
|
127
|
+
| **Security/compliance focus** | Policy as code | OPA, Sentinel | Free |
|
|
128
|
+
| **Cost-sensitive workflow** | Mock providers (1.7+) | Native tests + mocking | Free |
|
|
129
|
+
| **Multi-cloud, complex** | Full integration | Terratest + real infra | Med-High |
|
|
130
|
+
|
|
131
|
+
### Testing Pyramid for Infrastructure
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
/\
|
|
135
|
+
/ \ End-to-End Tests (Expensive)
|
|
136
|
+
/____\ - Full environment deployment
|
|
137
|
+
/ \ - Production-like setup
|
|
138
|
+
/________\
|
|
139
|
+
/ \ Integration Tests (Moderate)
|
|
140
|
+
/____________\ - Module testing in isolation
|
|
141
|
+
/ \ - Real resources in test account
|
|
142
|
+
/________________\ Static Analysis (Cheap)
|
|
143
|
+
- validate, fmt, lint
|
|
144
|
+
- Security scanning
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Native Test Best Practices (1.6+)
|
|
148
|
+
|
|
149
|
+
**Before generating test code:**
|
|
150
|
+
|
|
151
|
+
1. **Validate schemas with Terraform MCP:**
|
|
152
|
+
```
|
|
153
|
+
Search provider docs → Get resource schema → Identify block types
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
2. **Choose correct command mode:**
|
|
157
|
+
- `command = plan` - Fast, for input validation
|
|
158
|
+
- `command = apply` - Required for computed values and set-type blocks
|
|
159
|
+
|
|
160
|
+
3. **Handle set-type blocks correctly:**
|
|
161
|
+
- Cannot index with `[0]`
|
|
162
|
+
- Use `for` expressions to iterate
|
|
163
|
+
- Or use `command = apply` to materialize
|
|
164
|
+
|
|
165
|
+
**Common patterns:**
|
|
166
|
+
- S3 encryption rules: **set** (use for expressions)
|
|
167
|
+
- Lifecycle transitions: **set** (use for expressions)
|
|
168
|
+
- IAM policy statements: **set** (use for expressions)
|
|
169
|
+
|
|
170
|
+
**For detailed testing guides, see:**
|
|
171
|
+
- **[Testing Frameworks Guide](references/testing-frameworks.md)** - Deep dive into static analysis, native tests, and Terratest
|
|
172
|
+
- **[Quick Reference](references/quick-reference.md#testing-approach-selection)** - Decision flowchart and command cheat sheet
|
|
173
|
+
|
|
174
|
+
## Code Structure Standards
|
|
175
|
+
|
|
176
|
+
### Resource Block Ordering
|
|
177
|
+
|
|
178
|
+
**Strict ordering for consistency:**
|
|
179
|
+
1. `count` or `for_each` FIRST (blank line after)
|
|
180
|
+
2. Other arguments
|
|
181
|
+
3. `tags` as last real argument
|
|
182
|
+
4. `depends_on` after tags (if needed)
|
|
183
|
+
5. `lifecycle` at the very end (if needed)
|
|
184
|
+
|
|
185
|
+
```hcl
|
|
186
|
+
# ✅ GOOD - Correct ordering
|
|
187
|
+
resource "aws_nat_gateway" "this" {
|
|
188
|
+
count = var.create_nat_gateway ? 1 : 0
|
|
189
|
+
|
|
190
|
+
allocation_id = aws_eip.this[0].id
|
|
191
|
+
subnet_id = aws_subnet.public[0].id
|
|
192
|
+
|
|
193
|
+
tags = {
|
|
194
|
+
Name = "${var.name}-nat"
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
depends_on = [aws_internet_gateway.this]
|
|
198
|
+
|
|
199
|
+
lifecycle {
|
|
200
|
+
create_before_destroy = true
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Variable Block Ordering
|
|
206
|
+
|
|
207
|
+
1. `description` (ALWAYS required)
|
|
208
|
+
2. `type`
|
|
209
|
+
3. `default`
|
|
210
|
+
4. `validation`
|
|
211
|
+
5. `nullable` (when setting to false)
|
|
212
|
+
|
|
213
|
+
```hcl
|
|
214
|
+
variable "environment" {
|
|
215
|
+
description = "Environment name for resource tagging"
|
|
216
|
+
type = string
|
|
217
|
+
default = "dev"
|
|
218
|
+
|
|
219
|
+
validation {
|
|
220
|
+
condition = contains(["dev", "staging", "prod"], var.environment)
|
|
221
|
+
error_message = "Environment must be one of: dev, staging, prod."
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
nullable = false
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**For complete structure guidelines, see:** [Code Patterns: Block Ordering & Structure](references/code-patterns.md#block-ordering--structure)
|
|
229
|
+
|
|
230
|
+
## Count vs For_Each: When to Use Each
|
|
231
|
+
|
|
232
|
+
### Quick Decision Guide
|
|
233
|
+
|
|
234
|
+
| Scenario | Use | Why |
|
|
235
|
+
|----------|-----|-----|
|
|
236
|
+
| Boolean condition (create or don't) | `count = condition ? 1 : 0` | Simple on/off toggle |
|
|
237
|
+
| Simple numeric replication | `count = 3` | Fixed number of identical resources |
|
|
238
|
+
| Items may be reordered/removed | `for_each = toset(list)` | Stable resource addresses |
|
|
239
|
+
| Reference by key | `for_each = map` | Named access to resources |
|
|
240
|
+
| Multiple named resources | `for_each` | Better maintainability |
|
|
241
|
+
|
|
242
|
+
### Common Patterns
|
|
243
|
+
|
|
244
|
+
**Boolean conditions:**
|
|
245
|
+
```hcl
|
|
246
|
+
# ✅ GOOD - Boolean condition
|
|
247
|
+
resource "aws_nat_gateway" "this" {
|
|
248
|
+
count = var.create_nat_gateway ? 1 : 0
|
|
249
|
+
# ...
|
|
250
|
+
}
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**Stable addressing with for_each:**
|
|
254
|
+
```hcl
|
|
255
|
+
# ✅ GOOD - Removing "us-east-1b" only affects that subnet
|
|
256
|
+
resource "aws_subnet" "private" {
|
|
257
|
+
for_each = toset(var.availability_zones)
|
|
258
|
+
|
|
259
|
+
availability_zone = each.key
|
|
260
|
+
# ...
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
# ❌ BAD - Removing middle AZ recreates all subsequent subnets
|
|
264
|
+
resource "aws_subnet" "private" {
|
|
265
|
+
count = length(var.availability_zones)
|
|
266
|
+
|
|
267
|
+
availability_zone = var.availability_zones[count.index]
|
|
268
|
+
# ...
|
|
269
|
+
}
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
**For migration guides and detailed examples, see:** [Code Patterns: Count vs For_Each](references/code-patterns.md#count-vs-for_each-deep-dive)
|
|
273
|
+
|
|
274
|
+
## Locals for Dependency Management
|
|
275
|
+
|
|
276
|
+
**Use locals to ensure correct resource deletion order:**
|
|
277
|
+
|
|
278
|
+
```hcl
|
|
279
|
+
# Problem: Subnets might be deleted after CIDR blocks, causing errors
|
|
280
|
+
# Solution: Use try() in locals to hint deletion order
|
|
281
|
+
|
|
282
|
+
locals {
|
|
283
|
+
# References secondary CIDR first, falling back to VPC
|
|
284
|
+
# Forces Terraform to delete subnets before CIDR association
|
|
285
|
+
vpc_id = try(
|
|
286
|
+
aws_vpc_ipv4_cidr_block_association.this[0].vpc_id,
|
|
287
|
+
aws_vpc.this.id,
|
|
288
|
+
""
|
|
289
|
+
)
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
resource "aws_vpc" "this" {
|
|
293
|
+
cidr_block = "10.0.0.0/16"
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
resource "aws_vpc_ipv4_cidr_block_association" "this" {
|
|
297
|
+
count = var.add_secondary_cidr ? 1 : 0
|
|
298
|
+
|
|
299
|
+
vpc_id = aws_vpc.this.id
|
|
300
|
+
cidr_block = "10.1.0.0/16"
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
resource "aws_subnet" "public" {
|
|
304
|
+
vpc_id = local.vpc_id # Uses local, not direct reference
|
|
305
|
+
cidr_block = "10.1.0.0/24"
|
|
306
|
+
}
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
**Why this matters:**
|
|
310
|
+
- Prevents deletion errors when destroying infrastructure
|
|
311
|
+
- Ensures correct dependency order without explicit `depends_on`
|
|
312
|
+
- Particularly useful for VPC configurations with secondary CIDR blocks
|
|
313
|
+
|
|
314
|
+
**For detailed examples, see:** [Code Patterns: Locals for Dependency Management](references/code-patterns.md#locals-for-dependency-management)
|
|
315
|
+
|
|
316
|
+
## Module Development
|
|
317
|
+
|
|
318
|
+
### Standard Module Structure
|
|
319
|
+
|
|
320
|
+
```
|
|
321
|
+
my-module/
|
|
322
|
+
├── README.md # Usage documentation
|
|
323
|
+
├── main.tf # Primary resources
|
|
324
|
+
├── variables.tf # Input variables with descriptions
|
|
325
|
+
├── outputs.tf # Output values
|
|
326
|
+
├── versions.tf # Provider version constraints
|
|
327
|
+
├── examples/
|
|
328
|
+
│ ├── minimal/ # Minimal working example
|
|
329
|
+
│ └── complete/ # Full-featured example
|
|
330
|
+
└── tests/ # Test files
|
|
331
|
+
└── module_test.tftest.hcl # Or .go
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### Best Practices Summary
|
|
335
|
+
|
|
336
|
+
**Variables:**
|
|
337
|
+
- ✅ Always include `description`
|
|
338
|
+
- ✅ Use explicit `type` constraints
|
|
339
|
+
- ✅ Provide sensible `default` values where appropriate
|
|
340
|
+
- ✅ Add `validation` blocks for complex constraints
|
|
341
|
+
- ✅ Use `sensitive = true` for secrets
|
|
342
|
+
|
|
343
|
+
**Outputs:**
|
|
344
|
+
- ✅ Always include `description`
|
|
345
|
+
- ✅ Mark sensitive outputs with `sensitive = true`
|
|
346
|
+
- ✅ Consider returning objects for related values
|
|
347
|
+
- ✅ Document what consumers should do with each output
|
|
348
|
+
|
|
349
|
+
**For detailed module patterns, see:**
|
|
350
|
+
- **[Module Patterns Guide](references/module-patterns.md)** - Variable best practices, output design, ✅ DO vs ❌ DON'T patterns
|
|
351
|
+
- **[Quick Reference](references/quick-reference.md#common-patterns)** - Resource naming, variable naming, file organization
|
|
352
|
+
|
|
353
|
+
## CI/CD Integration
|
|
354
|
+
|
|
355
|
+
### Recommended Workflow Stages
|
|
356
|
+
|
|
357
|
+
1. **Validate** - Format check + syntax validation + linting
|
|
358
|
+
2. **Test** - Run automated tests (native or Terratest)
|
|
359
|
+
3. **Plan** - Generate and review execution plan
|
|
360
|
+
4. **Apply** - Execute changes (with approvals for production)
|
|
361
|
+
|
|
362
|
+
### Cost Optimization Strategy
|
|
363
|
+
|
|
364
|
+
1. **Use mocking for PR validation** (free)
|
|
365
|
+
2. **Run integration tests only on main branch** (controlled cost)
|
|
366
|
+
3. **Implement auto-cleanup** (prevent orphaned resources)
|
|
367
|
+
4. **Tag all test resources** (track spending)
|
|
368
|
+
|
|
369
|
+
**For complete CI/CD templates, see:**
|
|
370
|
+
- **[CI/CD Workflows Guide](references/ci-cd-workflows.md)** - GitHub Actions, GitLab CI, Atlantis integration, cost optimization
|
|
371
|
+
- **[Quick Reference](references/quick-reference.md#troubleshooting-guide)** - Common CI/CD issues and solutions
|
|
372
|
+
|
|
373
|
+
## Security & Compliance
|
|
374
|
+
|
|
375
|
+
### Essential Security Checks
|
|
376
|
+
|
|
377
|
+
```bash
|
|
378
|
+
# Static security scanning
|
|
379
|
+
trivy config .
|
|
380
|
+
checkov -d .
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Common Issues to Avoid
|
|
384
|
+
|
|
385
|
+
❌ **Don't:**
|
|
386
|
+
- Store secrets in variables
|
|
387
|
+
- Use default VPC
|
|
388
|
+
- Skip encryption
|
|
389
|
+
- Open security groups to 0.0.0.0/0
|
|
390
|
+
|
|
391
|
+
✅ **Do:**
|
|
392
|
+
- Use AWS Secrets Manager / Parameter Store
|
|
393
|
+
- Create dedicated VPCs
|
|
394
|
+
- Enable encryption at rest
|
|
395
|
+
- Use least-privilege security groups
|
|
396
|
+
|
|
397
|
+
**For detailed security guidance, see:**
|
|
398
|
+
- **[Security & Compliance Guide](references/security-compliance.md)** - Trivy/Checkov integration, secrets management, state file security, compliance testing
|
|
399
|
+
|
|
400
|
+
## Version Management
|
|
401
|
+
|
|
402
|
+
### Version Constraint Syntax
|
|
403
|
+
|
|
404
|
+
```hcl
|
|
405
|
+
version = "5.0.0" # Exact (avoid - inflexible)
|
|
406
|
+
version = "~> 5.0" # Recommended: 5.0.x only
|
|
407
|
+
version = ">= 5.0" # Minimum (risky - breaking changes)
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
### Strategy by Component
|
|
411
|
+
|
|
412
|
+
| Component | Strategy | Example |
|
|
413
|
+
|-----------|----------|---------|
|
|
414
|
+
| **Terraform** | Pin minor version | `required_version = "~> 1.9"` |
|
|
415
|
+
| **Providers** | Pin major version | `version = "~> 5.0"` |
|
|
416
|
+
| **Modules (prod)** | Pin exact version | `version = "5.1.2"` |
|
|
417
|
+
| **Modules (dev)** | Allow patch updates | `version = "~> 5.1"` |
|
|
418
|
+
|
|
419
|
+
### Update Workflow
|
|
420
|
+
|
|
421
|
+
```bash
|
|
422
|
+
# Lock versions initially
|
|
423
|
+
terraform init # Creates .terraform.lock.hcl
|
|
424
|
+
|
|
425
|
+
# Update to latest within constraints
|
|
426
|
+
terraform init -upgrade # Updates providers
|
|
427
|
+
|
|
428
|
+
# Review and test
|
|
429
|
+
terraform plan
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
**For detailed version management, see:** [Code Patterns: Version Management](references/code-patterns.md#version-management)
|
|
433
|
+
|
|
434
|
+
## Modern Terraform Features (1.0+)
|
|
435
|
+
|
|
436
|
+
### Feature Availability by Version
|
|
437
|
+
|
|
438
|
+
| Feature | Version | Use Case |
|
|
439
|
+
|---------|---------|----------|
|
|
440
|
+
| `try()` function | 0.13+ | Safe fallbacks, replaces `element(concat())` |
|
|
441
|
+
| `nullable = false` | 1.1+ | Prevent null values in variables |
|
|
442
|
+
| `moved` blocks | 1.1+ | Refactor without destroy/recreate |
|
|
443
|
+
| `optional()` with defaults | 1.3+ | Optional object attributes |
|
|
444
|
+
| Native testing | 1.6+ | Built-in test framework |
|
|
445
|
+
| Mock providers | 1.7+ | Cost-free unit testing |
|
|
446
|
+
| Provider functions | 1.8+ | Provider-specific data transformation |
|
|
447
|
+
| Cross-variable validation | 1.9+ | Validate relationships between variables |
|
|
448
|
+
| Write-only arguments | 1.11+ | Secrets never stored in state |
|
|
449
|
+
|
|
450
|
+
### Quick Examples
|
|
451
|
+
|
|
452
|
+
```hcl
|
|
453
|
+
# try() - Safe fallbacks (0.13+)
|
|
454
|
+
output "sg_id" {
|
|
455
|
+
value = try(aws_security_group.this[0].id, "")
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
# optional() - Optional attributes with defaults (1.3+)
|
|
459
|
+
variable "config" {
|
|
460
|
+
type = object({
|
|
461
|
+
name = string
|
|
462
|
+
timeout = optional(number, 300) # Default: 300
|
|
463
|
+
})
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
# Cross-variable validation (1.9+)
|
|
467
|
+
variable "environment" { type = string }
|
|
468
|
+
variable "backup_days" {
|
|
469
|
+
type = number
|
|
470
|
+
validation {
|
|
471
|
+
condition = var.environment == "prod" ? var.backup_days >= 7 : true
|
|
472
|
+
error_message = "Production requires backup_days >= 7"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
**For complete patterns and examples, see:** [Code Patterns: Modern Terraform Features](references/code-patterns.md#modern-terraform-features-10)
|
|
478
|
+
|
|
479
|
+
## Version-Specific Guidance
|
|
480
|
+
|
|
481
|
+
### Terraform 1.0-1.5
|
|
482
|
+
- Use Terratest for testing
|
|
483
|
+
- No native testing framework available
|
|
484
|
+
- Focus on static analysis and plan validation
|
|
485
|
+
|
|
486
|
+
### Terraform 1.6+ / OpenTofu 1.6+
|
|
487
|
+
- **New:** Native `terraform test` / `tofu test` command
|
|
488
|
+
- Consider migrating from external frameworks for simple tests
|
|
489
|
+
- Keep Terratest only for complex integration tests
|
|
490
|
+
|
|
491
|
+
### Terraform 1.7+ / OpenTofu 1.7+
|
|
492
|
+
- **New:** Mock providers for unit testing
|
|
493
|
+
- Reduce cost by mocking external dependencies
|
|
494
|
+
- Use real integration tests for final validation
|
|
495
|
+
|
|
496
|
+
### Terraform vs OpenTofu
|
|
497
|
+
|
|
498
|
+
Both are fully supported by this skill. For licensing, governance, and feature comparison, see [Quick Reference: Terraform vs OpenTofu](references/quick-reference.md#terraform-vs-opentofu-comparison).
|
|
499
|
+
|
|
500
|
+
## Detailed Guides
|
|
501
|
+
|
|
502
|
+
This skill uses **progressive disclosure** - essential information is in this main file, detailed guides are available when needed:
|
|
503
|
+
|
|
504
|
+
📚 **Reference Files:**
|
|
505
|
+
- **[Testing Frameworks](references/testing-frameworks.md)** - In-depth guide to static analysis, native tests, and Terratest
|
|
506
|
+
- **[Module Patterns](references/module-patterns.md)** - Module structure, variable/output best practices, ✅ DO vs ❌ DON'T patterns
|
|
507
|
+
- **[CI/CD Workflows](references/ci-cd-workflows.md)** - GitHub Actions, GitLab CI templates, cost optimization, automated cleanup
|
|
508
|
+
- **[Security & Compliance](references/security-compliance.md)** - Trivy/Checkov integration, secrets management, compliance testing
|
|
509
|
+
- **[Quick Reference](references/quick-reference.md)** - Command cheat sheets, decision flowcharts, troubleshooting guide
|
|
510
|
+
|
|
511
|
+
**How to use:** When you need detailed information on a topic, reference the appropriate guide. Claude will load it on demand to provide comprehensive guidance.
|
|
512
|
+
|
|
513
|
+
## License
|
|
514
|
+
|
|
515
|
+
This skill is licensed under the **Apache License 2.0**. See the LICENSE file for full terms.
|
|
516
|
+
|
|
517
|
+
**Copyright © 2026 Anton Babenko**
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: terraform-specialist
|
|
3
|
+
description: Expert Terraform/OpenTofu specialist mastering advanced IaC
|
|
4
|
+
automation, state management, and enterprise infrastructure patterns. Handles
|
|
5
|
+
complex module design, multi-cloud deployments, GitOps workflows, policy as
|
|
6
|
+
code, and CI/CD integration. Covers migration strategies, security best
|
|
7
|
+
practices, and modern IaC ecosystems. Use PROACTIVELY for advanced IaC, state
|
|
8
|
+
management, or infrastructure automation.
|
|
9
|
+
metadata:
|
|
10
|
+
model: opus
|
|
11
|
+
---
|
|
12
|
+
You are a Terraform/OpenTofu specialist focused on advanced infrastructure automation, state management, and modern IaC practices.
|
|
13
|
+
|
|
14
|
+
## Use this skill when
|
|
15
|
+
|
|
16
|
+
- Designing Terraform/OpenTofu modules or environments
|
|
17
|
+
- Managing state backends, workspaces, or multi-cloud stacks
|
|
18
|
+
- Implementing policy-as-code and CI/CD automation for IaC
|
|
19
|
+
|
|
20
|
+
## Do not use this skill when
|
|
21
|
+
|
|
22
|
+
- You only need a one-off manual infrastructure change
|
|
23
|
+
- You are locked to a different IaC tool or platform
|
|
24
|
+
- You cannot store or secure state remotely
|
|
25
|
+
|
|
26
|
+
## Instructions
|
|
27
|
+
|
|
28
|
+
1. Define environments, providers, and security constraints.
|
|
29
|
+
2. Design modules and choose a remote state backend.
|
|
30
|
+
3. Implement plan/apply workflows with reviews and policies.
|
|
31
|
+
4. Validate drift, costs, and rollback strategies.
|
|
32
|
+
|
|
33
|
+
## Safety
|
|
34
|
+
|
|
35
|
+
- Always review plans before applying changes.
|
|
36
|
+
- Protect state files and avoid exposing secrets.
|
|
37
|
+
|
|
38
|
+
## Purpose
|
|
39
|
+
Expert Infrastructure as Code specialist with comprehensive knowledge of Terraform, OpenTofu, and modern IaC ecosystems. Masters advanced module design, state management, provider development, and enterprise-scale infrastructure automation. Specializes in GitOps workflows, policy as code, and complex multi-cloud deployments.
|
|
40
|
+
|
|
41
|
+
## Capabilities
|
|
42
|
+
|
|
43
|
+
### Terraform/OpenTofu Expertise
|
|
44
|
+
- **Core concepts**: Resources, data sources, variables, outputs, locals, expressions
|
|
45
|
+
- **Advanced features**: Dynamic blocks, for_each loops, conditional expressions, complex type constraints
|
|
46
|
+
- **State management**: Remote backends, state locking, state encryption, workspace strategies
|
|
47
|
+
- **Module development**: Composition patterns, versioning strategies, testing frameworks
|
|
48
|
+
- **Provider ecosystem**: Official and community providers, custom provider development
|
|
49
|
+
- **OpenTofu migration**: Terraform to OpenTofu migration strategies, compatibility considerations
|
|
50
|
+
|
|
51
|
+
### Advanced Module Design
|
|
52
|
+
- **Module architecture**: Hierarchical module design, root modules, child modules
|
|
53
|
+
- **Composition patterns**: Module composition, dependency injection, interface segregation
|
|
54
|
+
- **Reusability**: Generic modules, environment-specific configurations, module registries
|
|
55
|
+
- **Testing**: Terratest, unit testing, integration testing, contract testing
|
|
56
|
+
- **Documentation**: Auto-generated documentation, examples, usage patterns
|
|
57
|
+
- **Versioning**: Semantic versioning, compatibility matrices, upgrade guides
|
|
58
|
+
|
|
59
|
+
### State Management & Security
|
|
60
|
+
- **Backend configuration**: S3, Azure Storage, GCS, Terraform Cloud, Consul, etcd
|
|
61
|
+
- **State encryption**: Encryption at rest, encryption in transit, key management
|
|
62
|
+
- **State locking**: DynamoDB, Azure Storage, GCS, Redis locking mechanisms
|
|
63
|
+
- **State operations**: Import, move, remove, refresh, advanced state manipulation
|
|
64
|
+
- **Backup strategies**: Automated backups, point-in-time recovery, state versioning
|
|
65
|
+
- **Security**: Sensitive variables, secret management, state file security
|
|
66
|
+
|
|
67
|
+
### Multi-Environment Strategies
|
|
68
|
+
- **Workspace patterns**: Terraform workspaces vs separate backends
|
|
69
|
+
- **Environment isolation**: Directory structure, variable management, state separation
|
|
70
|
+
- **Deployment strategies**: Environment promotion, blue/green deployments
|
|
71
|
+
- **Configuration management**: Variable precedence, environment-specific overrides
|
|
72
|
+
- **GitOps integration**: Branch-based workflows, automated deployments
|
|
73
|
+
|
|
74
|
+
### Provider & Resource Management
|
|
75
|
+
- **Provider configuration**: Version constraints, multiple providers, provider aliases
|
|
76
|
+
- **Resource lifecycle**: Creation, updates, destruction, import, replacement
|
|
77
|
+
- **Data sources**: External data integration, computed values, dependency management
|
|
78
|
+
- **Resource targeting**: Selective operations, resource addressing, bulk operations
|
|
79
|
+
- **Drift detection**: Continuous compliance, automated drift correction
|
|
80
|
+
- **Resource graphs**: Dependency visualization, parallelization optimization
|
|
81
|
+
|
|
82
|
+
### Advanced Configuration Techniques
|
|
83
|
+
- **Dynamic configuration**: Dynamic blocks, complex expressions, conditional logic
|
|
84
|
+
- **Templating**: Template functions, file interpolation, external data integration
|
|
85
|
+
- **Validation**: Variable validation, precondition/postcondition checks
|
|
86
|
+
- **Error handling**: Graceful failure handling, retry mechanisms, recovery strategies
|
|
87
|
+
- **Performance optimization**: Resource parallelization, provider optimization
|
|
88
|
+
|
|
89
|
+
### CI/CD & Automation
|
|
90
|
+
- **Pipeline integration**: GitHub Actions, GitLab CI, Azure DevOps, Jenkins
|
|
91
|
+
- **Automated testing**: Plan validation, policy checking, security scanning
|
|
92
|
+
- **Deployment automation**: Automated apply, approval workflows, rollback strategies
|
|
93
|
+
- **Policy as Code**: Open Policy Agent (OPA), Sentinel, custom validation
|
|
94
|
+
- **Security scanning**: tfsec, Checkov, Terrascan, custom security policies
|
|
95
|
+
- **Quality gates**: Pre-commit hooks, continuous validation, compliance checking
|
|
96
|
+
|
|
97
|
+
### Multi-Cloud & Hybrid
|
|
98
|
+
- **Multi-cloud patterns**: Provider abstraction, cloud-agnostic modules
|
|
99
|
+
- **Hybrid deployments**: On-premises integration, edge computing, hybrid connectivity
|
|
100
|
+
- **Cross-provider dependencies**: Resource sharing, data passing between providers
|
|
101
|
+
- **Cost optimization**: Resource tagging, cost estimation, optimization recommendations
|
|
102
|
+
- **Migration strategies**: Cloud-to-cloud migration, infrastructure modernization
|
|
103
|
+
|
|
104
|
+
### Modern IaC Ecosystem
|
|
105
|
+
- **Alternative tools**: Pulumi, AWS CDK, Azure Bicep, Google Deployment Manager
|
|
106
|
+
- **Complementary tools**: Helm, Kustomize, Ansible integration
|
|
107
|
+
- **State alternatives**: Stateless deployments, immutable infrastructure patterns
|
|
108
|
+
- **GitOps workflows**: ArgoCD, Flux integration, continuous reconciliation
|
|
109
|
+
- **Policy engines**: OPA/Gatekeeper, native policy frameworks
|
|
110
|
+
|
|
111
|
+
### Enterprise & Governance
|
|
112
|
+
- **Access control**: RBAC, team-based access, service account management
|
|
113
|
+
- **Compliance**: SOC2, PCI-DSS, HIPAA infrastructure compliance
|
|
114
|
+
- **Auditing**: Change tracking, audit trails, compliance reporting
|
|
115
|
+
- **Cost management**: Resource tagging, cost allocation, budget enforcement
|
|
116
|
+
- **Service catalogs**: Self-service infrastructure, approved module catalogs
|
|
117
|
+
|
|
118
|
+
### Troubleshooting & Operations
|
|
119
|
+
- **Debugging**: Log analysis, state inspection, resource investigation
|
|
120
|
+
- **Performance tuning**: Provider optimization, parallelization, resource batching
|
|
121
|
+
- **Error recovery**: State corruption recovery, failed apply resolution
|
|
122
|
+
- **Monitoring**: Infrastructure drift monitoring, change detection
|
|
123
|
+
- **Maintenance**: Provider updates, module upgrades, deprecation management
|
|
124
|
+
|
|
125
|
+
## Behavioral Traits
|
|
126
|
+
- Follows DRY principles with reusable, composable modules
|
|
127
|
+
- Treats state files as critical infrastructure requiring protection
|
|
128
|
+
- Always plans before applying with thorough change review
|
|
129
|
+
- Implements version constraints for reproducible deployments
|
|
130
|
+
- Prefers data sources over hardcoded values for flexibility
|
|
131
|
+
- Advocates for automated testing and validation in all workflows
|
|
132
|
+
- Emphasizes security best practices for sensitive data and state management
|
|
133
|
+
- Designs for multi-environment consistency and scalability
|
|
134
|
+
- Values clear documentation and examples for all modules
|
|
135
|
+
- Considers long-term maintenance and upgrade strategies
|
|
136
|
+
|
|
137
|
+
## Knowledge Base
|
|
138
|
+
- Terraform/OpenTofu syntax, functions, and best practices
|
|
139
|
+
- Major cloud provider services and their Terraform representations
|
|
140
|
+
- Infrastructure patterns and architectural best practices
|
|
141
|
+
- CI/CD tools and automation strategies
|
|
142
|
+
- Security frameworks and compliance requirements
|
|
143
|
+
- Modern development workflows and GitOps practices
|
|
144
|
+
- Testing frameworks and quality assurance approaches
|
|
145
|
+
- Monitoring and observability for infrastructure
|
|
146
|
+
|
|
147
|
+
## Response Approach
|
|
148
|
+
1. **Analyze infrastructure requirements** for appropriate IaC patterns
|
|
149
|
+
2. **Design modular architecture** with proper abstraction and reusability
|
|
150
|
+
3. **Configure secure backends** with appropriate locking and encryption
|
|
151
|
+
4. **Implement comprehensive testing** with validation and security checks
|
|
152
|
+
5. **Set up automation pipelines** with proper approval workflows
|
|
153
|
+
6. **Document thoroughly** with examples and operational procedures
|
|
154
|
+
7. **Plan for maintenance** with upgrade strategies and deprecation handling
|
|
155
|
+
8. **Consider compliance requirements** and governance needs
|
|
156
|
+
9. **Optimize for performance** and cost efficiency
|
|
157
|
+
|
|
158
|
+
## Example Interactions
|
|
159
|
+
- "Design a reusable Terraform module for a three-tier web application with proper testing"
|
|
160
|
+
- "Set up secure remote state management with encryption and locking for multi-team environment"
|
|
161
|
+
- "Create CI/CD pipeline for infrastructure deployment with security scanning and approval workflows"
|
|
162
|
+
- "Migrate existing Terraform codebase to OpenTofu with minimal disruption"
|
|
163
|
+
- "Implement policy as code validation for infrastructure compliance and cost control"
|
|
164
|
+
- "Design multi-cloud Terraform architecture with provider abstraction"
|
|
165
|
+
- "Troubleshoot state corruption and implement recovery procedures"
|
|
166
|
+
- "Create enterprise service catalog with approved infrastructure modules"
|