IM

implement-datasource

Provides standard procedures for building and modifying Terraform provider data sources.

Install

mkdir -p .claude/skills/implement-datasource && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/19244" && unzip -o skill.zip -d .claude/skills/implement-datasource && rm skill.zip

Installs to .claude/skills/implement-datasource

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

How to add or modify a Terraform data source in this provider. Covers scaffolding, unknown input handling, list data sources with pagination, and API response validation.
170 charsno explicit “when” trigger
Advanced

Key capabilities

  • Add data source definition to `datasources.yml`
  • Generate schema and model types
  • Scaffold the data source using a command
  • Implement the data source with mapping conventions
  • Handle unknown input during `terraform plan`
  • Validate API responses and register the data source

How it works

This skill guides the implementation of a Terraform data source by defining it in `datasources.yml`, generating code, scaffolding, and then implementing the data source with specific mapping conventions. It includes critical steps for handling unknown inputs and validating API responses.

Inputs & outputs

You give it
A data source definition in `datasources.yml`
You get back
A fully implemented and tested Terraform data source

When to use implement-datasource

  • Adding new Terraform data sources
  • Modifying existing providers
  • Implementing API response validation

About implement-datasource

Details the generation process, scaffolding steps for provider frameworks, and mapping conventions for data source implementation.

How to add or modify a Terraform data source in this provider. Covers scaffolding, unknown input handling, list data sources with pagination, and API response validation.

When not to use it

  • When writing data source code from scratch without scaffolding
  • When returning `Null` instead of `Unknown` for undetermined values
  • When returning `null` for computed-only list attributes

Limitations

  • Requires using the scaffold command
  • Requires checking for unknown inputs before making API calls
  • Requires returning an empty list `[]` instead of `null` for computed-only list attributes

How it compares

This skill provides a structured, step-by-step process for implementing Terraform data sources, ensuring adherence to best practices like scaffolding, unknown input handling, and API response validation, unlike manual implementation.

Compared to similar skills

implement-datasource side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
implement-datasource (this skill)01moReviewAdvanced
new-terraform-provider05moNo flagsBeginner
aws-solution-architect204moReviewAdvanced
terraform-module-library75moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

new-terraform-provider

hashicorp

Use this when scaffolding a new Terraform provider.

00

aws-solution-architect

alirezarezvani

Design AWS architectures for startups using serverless patterns and IaC templates. Use when asked to design serverless architecture, create CloudFormation templates, optimize AWS costs, set up CI/CD pipelines, or migrate to AWS. Covers Lambda, API Gateway, DynamoDB, ECS, Aurora, and cost optimization.

2047

terraform-module-library

wshobson

Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

759

azure-deployment-preflight

github

Performs comprehensive preflight validation of Bicep deployments to Azure, including template syntax validation, what-if analysis, and permission checks. Use this skill before any deployment to Azure to preview changes, identify potential issues, and ensure the deployment will succeed. Activate when users mention deploying to Azure, validating Bicep files, checking deployment permissions, previewing infrastructure changes, running what-if, or preparing for azd provision.

746

terraform-azurerm-set-diff-analyzer

github

Analyze Terraform plan JSON output for AzureRM Provider to distinguish between false-positive diffs (order-only changes in Set-type attributes) and actual resource changes. Use when reviewing terraform plan output for Azure resources like Application Gateway, Load Balancer, Firewall, Front Door, NSG, and other resources with Set-type attributes that cause spurious diffs due to internal ordering changes.

534

terraform-skill

sickn33

Terraform infrastructure as code best practices

829

Search skills

Search the agent skills registry