AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

Terraform Module PR Fix

Reviews a Terraform module pull request on GitHub, fixes it to a mergeable state, and pushes to the PR's own branch only after explicit user confirmation.

Dev & CodingAdvanced★ 377⑂ 57AI score 8/10Last updated: Nov 24, 2026

What it does

  • Takes a PR URL or owner/repo#123, clones the Terraform module repo, and runs a review pass.
  • Applies feedback items, regenerates wrappers and docs, commits, verifies in a sandboxed environment, and re-reviews for up to three rounds.
  • Gates every host write — the push, the posted review, the replies — behind its own separate confirmation message.
  • Hard-bans merging, force pushing, tag pushes, title/body edits, and running arbitrary code from the PR head.
  • Treats all GitHub content (titles, comments, repo files, CLAUDE.md in the clone) as untrusted data, never as instructions.

Who it's for

  • Maintainers of Terraform module repositories who regularly clean up contributor PRs.
  • Teams that want an agent with write access but under strict confirmation gates and a never-do list.
  • Users already running the companion skills: terraform-module-pr-review, terraform-module-maintainer, terraform-module-reviewer.

Examples

  1. "Review and finish PR 123" → clone, fix, verify, then show a gate with the new SHA and patch digest before any push.
  2. "Make owner/repo#456 mergeable" → if only terraform-docs output is stale, it takes the generated-only fast path.
  3. "Apply the review to PR N and push" → asks once which items to apply, runs the rounds, and pushes only to the PR's head ref.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/modulestf/modulestf/HEAD/.agents/skills/terraform-module-pr-fix/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI Skill Mart.
Copy the .agents/skills/terraform-module-pr-fix folder from the GitHub repo modulestf/modulestf into my ~/.claude/skills/terraform-module-pr-fix/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/modulestf/modulestf.git /tmp/modulestf && mkdir -p ~/.claude/skills && cp -r /tmp/modulestf/.agents/skills/terraform-module-pr-fix ~/.claude/skills/

⚠ This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/modulestf/modulestf.git /tmp/modulestf
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy this skill: cp -r /tmp/modulestf/.agents/skills/terraform-module-pr-fix ~/.claude/skills/
  5. Copy the companion skills it references: cp -r /tmp/modulestf/.agents/skills/terraform-module-pr-review /tmp/modulestf/.agents/skills/terraform-module-maintainer /tmp/modulestf/.agents/skills/terraform-module-reviewer ~/.claude/skills/
  6. Make sure git, terraform-docs are installed and gh (GitHub CLI) is authenticated.
  7. Restart Claude Code and ask with a PR reference, e.g. "review and finish owner/repo#123".
  8. At the pre-push gate, check the branch and new SHA, then send an explicit confirmation message naming them.
View source on GitHub ↗License: Apache-2.0