Terraform and OpenTofu Guide
agentscope-ai/QwenPaw
Guidance for writing and testing Terraform and OpenTofu code: module structure, naming, test approaches, CI/CD workflows, state handling and security scanning.
Given a Go SDK contract (DTOs), generate the corresponding Terraform schema attributes and model structs with high fidelity.
$ npx skills add microsoft/terraform-provider-fabric --skill schema-model-generator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install microsoft/terraform-provider-fabric schema-model-generator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/microsoft/terraform-provider-fabric.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/schema-model-generator .claude/skills/schema-model-generator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "schema-model-generator" agent skill from https://github.com/microsoft/terraform-provider-fabric/tree/main/.github/skills/schema-model-generator into .claude/skills/schema-model-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "schema-model-generator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/microsoft/terraform-provider-fabric/tree/main/.github/skills/schema-model-generatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add microsoft/terraform-provider-fabric --skill schema-model-generator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install microsoft/terraform-provider-fabric schema-model-generator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/terraform-provider-fabric.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/schema-model-generator .agents/skills/schema-model-generator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "schema-model-generator" agent skill from https://github.com/microsoft/terraform-provider-fabric/tree/main/.github/skills/schema-model-generator into .agents/skills/schema-model-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "schema-model-generator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/terraform-provider-fabric --skill schema-model-generator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install microsoft/terraform-provider-fabric schema-model-generator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/terraform-provider-fabric.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/schema-model-generator .cursor/skills/schema-model-generator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "schema-model-generator" agent skill from https://github.com/microsoft/terraform-provider-fabric/tree/main/.github/skills/schema-model-generator into .cursor/skills/schema-model-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "schema-model-generator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/microsoft/terraform-provider-fabric.git --path .github/skills/schema-model-generator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add microsoft/terraform-provider-fabric --skill schema-model-generator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install microsoft/terraform-provider-fabric schema-model-generator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/terraform-provider-fabric.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/schema-model-generator .gemini/skills/schema-model-generator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "schema-model-generator" agent skill from https://github.com/microsoft/terraform-provider-fabric/tree/main/.github/skills/schema-model-generator into .gemini/skills/schema-model-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "schema-model-generator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install microsoft/terraform-provider-fabric schema-model-generatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add microsoft/terraform-provider-fabric --skill schema-model-generator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/microsoft/terraform-provider-fabric.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/schema-model-generator .github/skills/schema-model-generator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "schema-model-generator" agent skill from https://github.com/microsoft/terraform-provider-fabric/tree/main/.github/skills/schema-model-generator into .github/skills/schema-model-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "schema-model-generator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/terraform-provider-fabric --skill schema-model-generator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install microsoft/terraform-provider-fabric schema-model-generator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/terraform-provider-fabric.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/schema-model-generator .opencode/skills/schema-model-generator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "schema-model-generator" agent skill from https://github.com/microsoft/terraform-provider-fabric/tree/main/.github/skills/schema-model-generator into .opencode/skills/schema-model-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "schema-model-generator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
schema-model-generatorGiven a Go SDK contract (DTOs), generate the corresponding Terraform schema attributes and model structs with high fidelity.
Schema Model Generator is an agent skill from microsoft/terraform-provider-fabric, published by the product's own GitHub organization. Given a Go SDK contract (DTOs), generate the corresponding Terraform schema attributes and model structs with high fidelity. USE FOR: creating schema.go and models.go files from SDK DTOs, mapping Go types to Terraform attribute types and custom types.
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in DevOps & Cloud, covering Infrastructure as code. It works with Terraform. The repository describes itself as: Terraform Provider for Microsoft Fabric. The licence is MPL-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 86c83be. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are go).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Schema Model Generator loads about 2.5k tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 562 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from microsoft/terraform-provider-fabric at commit 86c83be, republished under its MPL-2.0 licence (© microsoft). 562 words, ~2,542 tokens.
.claude/skills/schema-model-generator/SKILL.md (or your agent's skills folder).Given a Go SDK contract (DTOs), generate the corresponding Terraform schema attributes and model structs with high fidelity.
#skill:sdk-contract-navigator)[]Type or *Typeset() methodsupertypes.ListNestedObjectValueOf (nested objects) vs supertypes.ListValueOf (scalars) vs supertypes.SingleNestedObjectValueOf (optional nested)For each field in the SDK DTO struct, determine its category using the "Attribute Behaviors" table in .github/instructions/schema-model-patterns.instructions.md.
Classification criteria:
| Category | Criterion |
|---|---|
| Read-only | Only appears in Get response Properties struct |
| Create-time-only | Appears in CreationPayload and cannot be updated |
| Updatable required | User must provide, can be changed after create |
| Updatable optional | User may provide, can be changed after create |
| Optional with default | Server sets a default if not provided |
Map each SDK field type to the corresponding Terraform model type using the "SDK Type → Model Type Mapping" table in .github/instructions/schema-model-patterns.instructions.md.
Every field must have a tfsdk:"<snake_case_name>" tag.
<item><purpose>Model — e.g. lakehousePropertiesModel, lakehouseConfigurationModel<item><nested>Model — e.g. lakehouseSQLEndpointPropertiesModeltfsdk:"snake_case" tagOneLakeFilesPath → onelake_files_pathtype lakehousePropertiesModel struct {
OneLakeFilesPath types.String `tfsdk:"onelake_files_path"`
OneLakeTablesPath types.String `tfsdk:"onelake_tables_path"`
SQLEndpointProperties supertypes.SingleNestedObjectValueOf[lakehouseSQLEndpointPropertiesModel] `tfsdk:"sql_endpoint_properties"`
DefaultSchema types.String `tfsdk:"default_schema"`
}type lakehouseConfigurationModel struct {
EnableSchemas types.Bool `tfsdk:"enable_schemas"`
}type lakehouseSQLEndpointPropertiesModel struct {
ID customtypes.UUID `tfsdk:"id"`
ConnectionString types.String `tfsdk:"connection_string"`
ProvisioningStatus types.String `tfsdk:"provisioning_status"`
}Generate both directions of mapping: response set() (SDK → TF) and request builders (TF → SDK).
set() — SDK → TF (both Fabric Items and non-items)Every model struct needs a set() method that maps SDK response DTO → TF model.
Top-level set() (with nested objects):
Signature includes context.Context and returns diag.Diagnostics:
func (to *<item>PropertiesModel) set(ctx context.Context, from fab<package>.<DTO>) diag.Diagnostics {
to.SimpleField = types.StringPointerValue(from.SimpleField)
// ... other simple fields
// Handle nested struct
nestedValue := supertypes.NewSingleNestedObjectValueOfNull[<nestedModel>](ctx)
if from.NestedField != nil {
nestedModel := &<nestedModel>{}
nestedModel.set(*from.NestedField) // or with ctx if nested has its own nested
if diags := nestedValue.Set(ctx, nestedModel); diags.HasError() {
return diags
}
}
to.NestedField = nestedValue
return nil
}Leaf set() (no nested objects):
Simpler signature without context.Context or diag.Diagnostics:
func (to *<nestedModel>) set(from fab<package>.<NestedDTO>) {
to.ID = customtypes.NewUUIDPointerValue(from.ID)
to.StringField = types.StringPointerValue(from.StringField)
to.EnumField = types.StringPointerValue((*string)(from.EnumField))
}Setter patterns by type: Use the "Setter Pattern" column in the "SDK Type → Model Type Mapping" table and collection iteration templates in schema-model-patterns.instructions.md.
Both Fabric Items and non-items need TF→SDK mapping for writable fields. The pattern differs by category:
creationPayloadSetter closure (simple — typically 1-3 fields from configuration model). See fabric-item-patterns.instructions.md § "Closure Examples".set() method that builds the SDK request directly (complex — full request DTOs)Non-item request builder struct — embeds the SDK request type, set() populates it:
type requestCreate<Type> struct {
fabcore.Create<Type>Request // embedded SDK request type
}
func (to *requestCreate<Type>) set(ctx context.Context, from <type>ResourceModel) diag.Diagnostics {
to.DisplayName = from.DisplayName.ValueStringPointer()
to.Description = from.Description.ValueStringPointer()
// ... map each writable field into the embedded struct
return nil
}Usage: r.client.Create<Type>(ctx, reqCreate.Create<Type>Request, nil)
Inverse mapping rules: Use the inverse of the "SDK Type → Model Type Mapping" table in schema-model-patterns.instructions.md. For each TF type, call its Value*Pointer() method (e.g., types.String → .ValueStringPointer(), types.Bool → .ValueBoolPointer()).
Non-obvious cases:
| TF Model Type | SDK Type | Pattern |
|---|---|---|
types.Int64 | *int32 | ptr.To(int32(from.Field.ValueInt64())) — type narrowing required |
supertypes.SingleNestedObjectValueOf[M] | *NestedDTO | .Get(ctx) → construct nested DTO from sub-model |
supertypes.ListNestedObjectValueOf[M] | []NestedDTO | .Get(ctx) → iterate slice, build each DTO |
Reference: internal/services/connection/models_resource_connection.go
For Fabric Item resources, schema attributes go in separate functions:
// schema_resource_<item>.go
func getResource<Item>PropertiesAttributes(ctx context.Context) map[string]schema.Attribute {
return map[string]schema.Attribute{
"<field_name>": schema.StringAttribute{
MarkdownDescription: "<description>.",
Computed: true,
},
// ... more attributes
}
}func getResource<Item>ConfigurationAttributes() map[string]schema.Attribute {
return map[string]schema.Attribute{
"<field_name>": schema.BoolAttribute{
MarkdownDescription: "<description>.",
Required: true,
PlanModifiers: []planmodifier.Bool{
boolplanmodifier.RequiresReplace(),
},
},
}
}Use the "SDK Type → Schema Mapping" table in .github/instructions/schema-model-patterns.instructions.md.
For attribute behavior flags, plan modifiers, and validators, refer to the "Attribute Behaviors", "Plan Modifiers", and "Validators" sections in .github/instructions/schema-model-patterns.instructions.md.
Additional rules:
MarkdownDescription (never Description)CustomType: supertypes.NewSingleNestedObjectTypeOf[<model>](ctx)CustomType: customtypes.UUIDType{}"sql_endpoint_properties": schema.SingleNestedAttribute{
MarkdownDescription: "An object containing the properties of the SQL endpoint.",
Computed: true,
CustomType: supertypes.NewSingleNestedObjectTypeOf[lakehouseSQLEndpointPropertiesModel](ctx),
Attributes: map[string]schema.Attribute{
"provisioning_status": schema.StringAttribute{
MarkdownDescription: "The SQL endpoint provisioning status.",
Computed: true,
},
"connection_string": schema.StringAttribute{
MarkdownDescription: "SQL endpoint connection string.",
Computed: true,
},
"id": schema.StringAttribute{
MarkdownDescription: "SQL endpoint ID.",
Computed: true,
CustomType: customtypes.UUIDType{},
},
},
},internal/services/lakehouse/models.gointernal/services/lakehouse/schema_resource_lakehouse.gointernal/services/lakehouse/schema_data_lakehouse.gointernal/services/connection/schema.gointernal/services/connection/models_resource_connection.go© microsoft, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/schema-model-generator of microsoft/terraform-provider-fabric.
Open the folder on GitHubat commit 86c83be
Schema Model Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Schema Model Generator this skillmicrosoft/terraform-provider-fabric | 128 | — | ~2.5k | Automated safety check: Pass | MPL-2.0 | |
| Terraform and OpenTofu Guideagentscope-ai/QwenPaw | 35k | 6 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Terraform Skillantonbabenko/terraform-skill | 2.4k | 1 repos | ~5.1k | Automated safety check: Pass | Apache-2.0 | |
| Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit | 259 | 6 repos | ~1.1k | Automated safety check: Notes | Custom licence | |
| Cloudflarehodgef/apiker | 127 | 7 repos | ~2.2k | Automated safety check: Pass | MIT | |
| Terravision Cloud Diagramspatrickchugh/terravision | 1.6k | — | ~5.6k | Automated safety check: Notes | AGPL-3.0-only |
agentscope-ai/QwenPaw
Guidance for writing and testing Terraform and OpenTofu code: module structure, naming, test approaches, CI/CD workflows, state handling and security scanning.
antonbabenko/terraform-skill
A skill your agent uses when writing, reviewing, or debugging Terraform/OpenTofu modules, tests, CI, scans, or state ops - diagnoses failure mode (identity churn, secrets, blast radius, CI drift…
maslennikov-ig/claude-code-orchestrator-kit
Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…
hodgef/apiker
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF…
patrickchugh/terravision
Draw cloud architecture diagrams for AWS, Azure or GCP with the official provider icon sets, using TerraVision.
dmmulroy/cloudflare-skill
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking (Tunnel, Spectrum), security (WAF, DDoS), and…
microsoft/terraform-provider-fabric
Given SDK analysis results, automatically determine the correct itemgen archetype and build the full go run tools/itemgen/main.go command.
microsoft/terraform-provider-fabric
Navigate the fabric-sdk-go SDK source to find the correct client factory, DTOs, item type constants, and pager methods for a given Fabric Item or non-item resource.
microsoft/terraform-provider-fabric
Analyze dependencies and determine what infrastructure must be added to tools/scripts/Set-WellKnown.ps1 and internal/testhelp/wellknown.go so that acceptance tests for a new resource have all…
microsoft/terraform-provider-fabric
Research SDK contracts, design Terraform schema approach, and compose a GitHub issue for a new resource, data source, ephemeral resource, or enhancement to an existing resource.
Works with
Categories
Given a Go SDK contract (DTOs), generate the corresponding Terraform schema attributes and model structs with high fidelity. Schema Model Generator is an agent skill from microsoft/terraform-provider-fabric, published by the product's own GitHub organization. Given a Go SDK contract (DTOs), generate the corresponding Terraform schema attributes and model structs with high fidelity.
Schema Model Generator fits situations like: : creating schema.go and models.go files from SDK DTOs; mapping Go types to Terraform attribute types and custom types.
Run `npx skills add microsoft/terraform-provider-fabric --skill schema-model-generator -a claude-code`. Or copy the skill folder (.github/skills/schema-model-generator in microsoft/terraform-provider-fabric) into .claude/skills/schema-model-generator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add microsoft/terraform-provider-fabric --skill schema-model-generator -a codex`. Or copy the skill folder (.github/skills/schema-model-generator in microsoft/terraform-provider-fabric) into .agents/skills/schema-model-generator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/terraform-provider-fabric --skill schema-model-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/schema-model-generator, .gemini/skills/schema-model-generator, .github/skills/schema-model-generator and .opencode/skills/schema-model-generator in your project.
SKILL.md names no scripts, command-line tools or credentials: Schema Model Generator is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Schema Model Generator is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Schema Model Generator: Terraform and OpenTofu Guide (agentscope-ai/QwenPaw, 35k stars), Terraform Skill (antonbabenko/terraform-skill, 2.4k stars), Senior DevOps Toolkit (maslennikov-ig/claude-code-orchestrator-kit, 259 stars) and Cloudflare (hodgef/apiker, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
microsoft (a GitHub organization, an official publisher) maintains it in microsoft/terraform-provider-fabric, which has 128 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 6, 2026.
Source: microsoft/terraform-provider-fabric on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.