# provider-configuration

Guides Terraform provider authentication and credential resolution. Use it when designing a provider schema, wiring Configure(), or investigating missing credentials.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 951 installs · ★ 909
- Author: hashicorp
- License: MPL-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hashicorp/agent-skills/tree/HEAD/plugins/terraform/skills/provider-configuration/SKILL.md
- Updated: 2026-10-05
- HTML: https://affpapa.org/en/nevibecode/skills/provider-configuration

## What it does

This skill covers authentication setup for providers built with the Terraform Plugin Framework. It explains schema attributes, environment-variable fallbacks, and a credential chain that checks provider configuration, environment variables, a shared credentials file, then platform identity. The chain accepts the first complete credential set; it does not combine a key from one source with a secret from another.

The material also covers unknown-value checks in `Configure()`, secret redaction, and diagnostics that report why sources were skipped. Authentication attributes should be `Optional`, and secrets should be `Sensitive`. Marking credentials `Required` prevents users from relying on environment variables or a credentials file, so that schema choice changes how the provider can be configured.

## Requirements
- Works with: Terraform

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add hashicorp/agent-skills --skill provider-configuration -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/provider-configuration/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/provider-configuration/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add hashicorp/agent-skills --skill provider-configuration -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/provider-configuration/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add hashicorp/agent-skills --skill provider-configuration -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/provider-configuration/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install hashicorp/agent-skills provider-configuration
```

2. **Manually: put the files in place**
- File: `.github/skills/provider-configuration/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add hashicorp/agent-skills --skill provider-configuration -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/hashicorp/agent-skills --path plugins/terraform/skills/provider-configuration
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/provider-configuration/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add hashicorp/agent-skills --skill provider-configuration -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/hashicorp/agent-skills/tree/HEAD/plugins/terraform/skills/provider-configuration/SKILL.md

## When to use it
- design authentication attributes for a provider schema
- set precedence for credential sources
- diagnose missing or unusable credentials
- handle secrets in `Configure()`
- test credential resolution

## Example prompts
- Design authentication settings for a Terraform provider using the Plugin Framework.
- Review `Configure()` and propose a credential chain with useful diagnostics.
- Write tests for credentials from provider configuration, environment variables, and a shared file.

## Similar
- [wizard](https://affpapa.org/en/nevibecode/skills/wizard.md) — skill · 553369 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [using-git-worktrees](https://affpapa.org/en/nevibecode/skills/using-git-worktrees.md) — skill · 217153 installs
- [finishing-a-development-branch](https://affpapa.org/en/nevibecode/skills/finishing-a-development-branch.md) — skill · 214439 installs
- [orca-cli](https://affpapa.org/en/nevibecode/skills/orca-cli.md) — skill · 353600 installs

From the same set: [hashicorp/agent-skills](https://affpapa.org/en/nevibecode/by/hashicorp/agent-skills.md) — 20 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
