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

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.sh gate 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

  1. "review and merge owner/repo#123" → fresh review, plan shown, waits for your SHA confirmation.
  2. Paste a PR URL with "merge PR 42" → refuses and explains if checks fail or the branch conflicts.
  3. 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)
  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-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.

  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-merge ~/.claude/skills/
  5. Copy the companion skill it depends on: cp -r /tmp/modulestf/.agents/skills/terraform-module-pr-review ~/.claude/skills/ (add terraform-module-pr-fix if you need it).
  6. Verify GitHub CLI access: gh auth status (install gh and run gh auth login if needed).
  7. Restart Claude Code and ask: "review and merge owner/repo#123".
View source on GitHub ↗License: Apache-2.0