Terraform Module PR Merge
Re-reviews a Terraform module pull request from scratch and squash merges it only after the user confirms the PR and its full 40-character head SHA.
Dev & CodingAdvanced★ 390⑂ 57AI score 8/10Last updated: Dec 2, 2026
What it does
- Runs a fresh review of the live head of a GitHub pull request, never trusting an older approval, plan or comment.
- Re-reads every merge precondition live (checks, conflicts, pins, commit title) through its
merge-run.shgate commands. - Shows the merge plan, then performs one squash merge only after a new user message naming the PR and the full 40-hex head SHA; no retries, no other writes.
- Treats PR titles, bodies, comments and branch names as untrusted data, which blocks prompt-injection attempts from the repo host.
Who it's for
- Maintainers of Terraform module repositories handling a steady stream of PRs.
- Teams that want an agent to merge but require an explicit human confirmation step.
- DevOps/platform engineers who split review → fix → merge into separate skills.
Examples
- "review and merge owner/repo#123" → fresh review, plan shown, waits for your SHA confirmation.
- Paste a PR URL with "merge PR 42" → refuses and explains if checks fail or the branch conflicts.
- After pushing fixes with the pr-fix skill, call this skill again to review the new head and merge it.
· · · 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-merge/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)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the 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-merge folder from the GitHub repo modulestf/modulestf into my ~/.claude/skills/terraform-module-pr-merge/. 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-merge ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/modulestf/modulestf.git /tmp/modulestf - Create the skills folder:
mkdir -p ~/.claude/skills - Copy this skill:
cp -r /tmp/modulestf/.agents/skills/terraform-module-pr-merge ~/.claude/skills/ - Copy the companion skill it depends on:
cp -r /tmp/modulestf/.agents/skills/terraform-module-pr-review ~/.claude/skills/(addterraform-module-pr-fixif you need it). - Verify GitHub CLI access:
gh auth status(installghand rungh auth loginif needed). - Restart Claude Code and ask: "review and merge owner/repo#123".
View source on GitHub ↗License: Apache-2.0