SKILL·68EEC8

new-terraform-provider

hashicorp
Updated 13 days ago
6 views
845
125
845
View on GitHub
Metaaiapidesign

About

This skill scaffolds a new Terraform provider using the Plugin Framework, setting up the initial workspace layout, Go module, and core provider files. Use it when starting a new `terraform-provider-*` project or building a provider for a new API. It automates the foundational steps like creating `main.go` and `provider.go` with schema and configuration.

Quick Install

Claude Code

Recommended
Primary
npx skills add hashicorp/agent-skills -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/hashicorp/agent-skills
Git CloneAlternative
git clone https://github.com/hashicorp/agent-skills.git ~/.claude/skills/new-terraform-provider

Copy and paste this command in Claude Code to install this skill

Documentation

To scaffold a new Terraform provider with Plugin Framework:

  1. If I am already in a Terraform provider workspace, then confirm that I want to create a new workspace. If I do not want to create a new workspace, then skip all remaining steps.
  2. Create a new workspace root directory. The root directory name should be prefixed with "terraform-provider-". Perform all subsequent steps in this new workspace.
  3. Initialize a new Go module.
  4. Run go get -u github.com/hashicorp/terraform-plugin-framework@latest.
  5. Write a main.go file that follows the example.
  6. Write an internal/provider/provider.go file that follows the example. Rename the demo provider, the DEMO_* environment variables, and the authentication attributes to match the target API.
  7. Remove TODO comments from main.go and provider.go.
  8. Run go mod tidy
  9. Run go build -o /dev/null
  10. Run go test ./... The scaffold resolves credentials as explicit config with environment variable fallback. To grow that into a full credential provider chain (shared credentials files, profiles, platform identity, configure-time validation), use the provider-configuration skill (if available). To add the first resource or data source, use the provider-resources skill (if available).

GitHub Repository

hashicorp/agent-skills
Path: plugins/terraform/skills/new-terraform-provider
0
doormat-managed
FAQ

Frequently asked questions

What is the new-terraform-provider skill?

new-terraform-provider is a Claude Skill by hashicorp. Skills package instructions and resources that Claude loads on demand, so Claude can perform new-terraform-provider-related tasks without extra prompting.

How do I install new-terraform-provider?

Use the install commands on this page: add new-terraform-provider to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.

What category does new-terraform-provider belong to?

new-terraform-provider is in the Meta category.

Is new-terraform-provider free to use?

Yes. new-terraform-provider is listed on AIMCP and free to install.

Related Skills

content-collections
Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill
polymarket
Meta

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

View skill
creating-opencode-plugins
Meta

This skill helps developers create OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It provides the plugin structure, event API specifications, and implementation patterns for JavaScript/TypeScript modules. Use it when you need to intercept, monitor, or extend the OpenCode AI assistant's lifecycle with custom event-driven logic.

View skill
sglang
Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill