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.zipInstalls 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.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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| implement-datasource (this skill) | 0 | 1mo | Review | Advanced |
| new-terraform-provider | 0 | 5mo | No flags | Beginner |
| aws-solution-architect | 20 | 4mo | Review | Advanced |
| terraform-module-library | 7 | 5mo | No flags | Advanced |
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.
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.
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.
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.
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.
terraform-skill
sickn33
Terraform infrastructure as code best practices