Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/devops/terraform-module-builder/skills/building-terraform-modules

building-terraform-modules

Verified

Execute this skill empowers AI assistant to build reusable terraform modules based on user specifications. it leverages the terraform-module-builder plugin to generate production-ready, well-documented terraform module code, incorporating best practices for sec... Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

FileKindSize
SKILL.mdskill md4.3 KB
assets/README.mdmarkdown451 B
assets/validation_rules.jsonconfig3.6 KB
references/README.mdmarkdown67 B
scripts/README.mdmarkdown507 B

assets/validation_rules.json

View on GitHub
{
  "_comment": "Validation rules for Terraform modules.  Each rule is a key, and the value is an object containing the regex, severity, and description.",
  "naming_convention_variables": {
    "regex": "^[a-z][a-z0-9_]*$",
    "severity": "error",
    "description": "Variable names should be lowercase, start with a letter, and contain only letters, numbers, and underscores."
  },
  "naming_convention_outputs": {
    "regex": "^[a-z][a-z0-9_]*$",
    "severity": "error",
    "description": "Output names should be lowercase, start with a letter, and contain only letters, numbers, and underscores."
  },
  "naming_convention_resources": {
    "regex": "^[a-z][a-z0-9_]*$",
    "severity": "warning",
    "description": "Resource names should be lowercase, start with a letter, and contain only letters, numbers, and underscores."
  },
  "variable_description_required": {
    "regex": "(description\\s*=\\s*\"[^\"]+\")",
    "severity": "error",
    "description": "All variables must have a description."
  },
  "output_description_required": {
    "regex": "(description\\s*=\\s*\"[^\"]+\")",
    "severity": "error",
    "description": "All outputs must have a description."
  },
  "variable_type_required": {
    "regex": "(type\\s*=\\s*(string|number|bool|list|map|object|set)\\(.*\\))",
    "severity": "error",
    "description": "All variables must have a type defined."
  },
  "no_sensitive_data_in_defaults": {
    "regex": "default\\s*=\\s*(\"[A-Za-z0-9+/=]{20,}\"|\\d{16})",
    "severity": "warning",
    "description": "Avoid storing sensitive data like passwords or API keys in variable defaults. Consider using input variables or secrets management instead."
  },
  "consistent_resource_naming": {
    "regex": "resource\\s+\"[a-zA-Z]+\"\\s+\"([a-z0-9_]+)\"\\s+\"([a-z0-9_]+)\"",
    "severity": "info",
    "description": "Ensure resource names are consistently named within the module (e.g., using a prefix)."
  },
  "provider_version_pinning": {
    "regex": "required_providers\\s*=\\s*\\{\\s*[a-z]+\\s*=\\s*\\{\\s*source\\s*=\\s*\"[a-z0-9/]+\"\\s*version\\s*=\\s*\"~>\\s*\\d+\\.\\d+\"",
    "severity": "warning",
    "description": "Pin provider versions to avoid unexpected changes. Use the '~>' operator for minor version updates."
  },
  "no_http_data_sources": {
    "regex": "(data\\s*\"http\")",
    "severity": "warning",
    "description": "Avoid using http data sources directly; they are less secure and harder to manage.  Consider alternatives."
  },
  "no_local_exec": {
    "regex": "(provisioner\\s*\"local-exec\")",
    "severity": "warning",
    "description": "Avoid using the local-exec provisioner; it makes modules less portable and harder to debug. Consider alternatives."
  },
  "required_files_present": {
    "files": ["variables.tf", "outputs.tf", "main.tf", "README.md"],
    "severity": "error",
    "description": "Ensure the module contains the required files: variables.tf, outputs.tf, main.tf, and README.md."
  },
  "readme_contains_example": {
    "regex": "(## Example)",
    "severity": "warning",
    "description": "README.md should contain an Example section."
  },
  "readme_contains_inputs": {
    "regex": "(## Inputs)",
    "severity": "warning",
    "description": "README.md should contain an Inputs section."
  },
  "readme_contains_outputs": {
    "regex": "(## Outputs)",
    "severity": "warning",
    "description": "README.md should contain an Outputs section."
  },
  "naming_convention_modules": {
    "regex": "^[a-z][a-z0-9_]*$",
    "severity": "warning",
    "description": "Module names should be lowercase, start with a letter, and contain only letters, numbers, and underscores."
  }
}
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 323kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall