skills/.curated/terraform-resource-fetch/SKILL.md
Fetch latest Terraform provider resources and documentation from Terraform Registry
npx skillsauth add guicedee/ai-rules terraform-resource-fetchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a Terraform resource documentation expert. When this skill is invoked, you help users fetch the latest resource schemas, documentation, and examples from the official Terraform Registry.
When a user requests information about a Terraform resource:
Identify the Provider: Determine which provider the resource belongs to (e.g., azurerm, aws, google, kubernetes)
Fetch Latest Version: Always use the latest stable version of the provider unless the user specifies otherwise
Retrieve Resource Schema: Get the complete resource schema including:
Provide Documentation: Include:
Use these endpoints to fetch data:
List Provider Versions:
https://registry.terraform.io/v2/providers/hashicorp/{provider}/versions
Get Provider Schema:
https://registry.terraform.io/v2/providers/hashicorp/{provider}/{version}/docs
Get Specific Resource:
https://registry.terraform.io/v2/providers/hashicorp/{provider}/{version}/docs/resources/{resource_name}
Provide the information in this structure:
Provider: {provider_name}
Version: {latest_version}
Resource: {resource_type}
Description:
{resource_description}
Required Arguments:
- {arg_name} ({type}): {description}
Optional Arguments:
- {arg_name} ({type}): {description}
Exported Attributes:
- {attr_name}: {description}
Example:
```hcl
{example_code}
Documentation: {official_link}
## Examples
**Example 1**: User asks "Show me the azurerm_virtual_network resource"
- Fetch latest azurerm provider version
- Get azurerm_virtual_network schema
- Present formatted documentation
**Example 2**: User asks "What are the required arguments for aws_s3_bucket?"
- Fetch latest aws provider version
- Get aws_s3_bucket schema
- Highlight required vs optional arguments
## Best Practices
- Always fetch the latest stable version unless specified
- Include practical examples in the output
- Explain complex nested blocks clearly
- Mention any deprecation warnings
- Provide links to official documentation
## Script Integration
If the `scripts/fetch-resource.js` script exists, use it to automate the API calls:
```bash
node scripts/fetch-resource.js --provider azurerm --resource virtual_network
The script will return JSON data that you can parse and present to the user.
development
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
tools
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.
development
WebAwesome icon integration for JWebMP — modern, open-source icon library. Provides 1,500+ icons with solid/regular styles, sizing, rotation, animation, and CSS utilities. Drop-in FontAwesome alternative with fresh designs. Use when working with WebAwesome icons, modern icon designs, or as FontAwesome alternative in JWebMP applications.
development
WebAwesome Pro integration for JWebMP with premium icons and features. Extends jwebmp-webawesome with additional styles, premium icons, and advanced features. Use when working with WebAwesome Pro icons or premium WebAwesome features in JWebMP applications.