by modulestf
Agent skills for Claude Code and Codex that review, change and create reusable Terraform modules by the rules of terraform-aws-modules.
# Add to your Claude Code skills
git clone https://github.com/modulestf/modulestfmodulestf is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by modulestf. Agent skills for Claude Code and Codex that review, change and create reusable Terraform modules by the rules of terraform-aws-modules. It has 387 GitHub stars.
modulestf's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/modulestf/modulestf" and add it to your Claude Code skills directory (see the Installation section above).
modulestf is primarily written in Shell. It is open-source under modulestf on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh modulestf against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Agent skills that review reusable Terraform modules against a written profile of the module family's rules, and help you make the change the review asks for. One profile ships today: terraform-aws-modules. They run in your coding agent (Claude Code or Codex) on your machine, with your own GitHub login.
| Skill | You give it | You get back |
|---|---|---|
terraform-module-pr-review |
A pull request or commit URL, or owner/repo#123 |
A verdict and a comment to post, after you confirm |
terraform-module-pr-fix |
A pull request URL or owner/repo#123 to finish |
A reviewed fix pushed to the pull request's branch, after you confirm, or a patch |
terraform-module-pr-merge |
A pull request URL or owner/repo#123 to merge |
A fresh review, then a squash merge after you confirm the pull request and its full head SHA |
terraform-module-reviewer |
A module checkout and a diff, a base ref or a list of changed files | A list of findings. Read-only, no verdict |
terraform-module-maintainer |
A change to make, review feedback to work through, a module to create or a provider to upgrade | Edits in your checkout, a report of the checks it ran, and reply drafts |
change-scope |
A proposed addition, in any language or project | Whether it belongs in the thing being changed, and where it goes if not |
The pull request review calls the reviewer, and both call change-scope. The pull request fix calls the pull request review, the maintainer and the reviewer. The pull request merge calls the pull request review. The rules of the module family live in a profile: terraform-aws-modules.
Two more skills are work in progress and not usable yet. Each refuses every request and points you to the maintainer:
terraform-module-issue: will turn a GitHub issue into a module change and a pull request.terraform-module-create: will create a new module repository from a profile.How the skills fit together, and which skills come next: docs/skills-architecture.md.
Install the skills as the modulestf plugin from the antonbabenko/agent-plugins marketplace. It holds all four skills and the two work in progress skeletons; the Terraform skills link into each other, so they ship together.
# Claude Code
/plugin marketplace add antonbabenko/agent-plugins
/plugin install modulestf@antonbabenko
# Codex: add the marketplace, then install modulestf from /plugins
codex plugin marketplace add antonbabenko/agent-plugins
Or copy or symlink all the directories under .agents/skills/ side by side into your agent's skills directory: ~/.claude/skills/ for Claude Code, ~/.agents/skills/ for Codex. change-scope also works alone.
git clone https://github.com/modulestf/modulestf.git
mkdir -p ~/.claude/skills
ln -sfn "$PWD"/modulestf/.agents/skills/* ~/.claude/skills/ # Claude Code
mkdir -p ~/.agents/skills
ln -sfn "$PWD"/modulestf/.agents/skills/* ~/.agents/skills/ # Codex
Add HashiCorp's Terraform MCP server to your agent under the name terraform, so its tools appear as mcp__terraform__get_latest_provider_version, mcp__terraform__search_provider_docs and mcp__terraform__get_provider_details. The skills read provider schemas from it, not from memory. Without it, every rule that needs a provider fact is reported as not run, so a pull request review is inconclusive at best.
Log in to GitHub with gh auth login as yourself, and install terraform, git, jq, perl and mtf-facts. A pull request review needs mtf-facts for a conclusive verdict.
brew install modulestf/tap/mtf-facts
Without Homebrew, install the release this repository pins, its SHA-256 checked against the pin file, into a directory on your PATH:
# from the root of your clone of this repository
mkdir -p ~/.local/bin
bash .agents/skills/terraform-module-pr-review/references/mtf-facts-install.sh ~/.local/bin
Ask your agent:
review terraform-aws-modules/terraform-aws-lambda#780
The skill clones the pull request into a temporary directory, runs terraform init -backend=false and terraform validate in each example, the ones the change touches first, and shows you a verdict, the findings and the comment it would post. It posts nothing until you confirm the comment and its review event: comment, approve or request changes.
Write requests in plain words. The examples show what each skill needs to hear.
review https://github.com/terraform-aws-modules/terraform-aws-lambda/pull/780
is terraform-aws-modules/terraform-aws-lambda#780 ready to merge?
what should I reply on terraform-aws-modules/terraform-aws-lambda#780?
review https://github.com/terraform-aws-modules/terraform-aws-lambda/commit/<sha>
You get a verdict, a comment with every finding and its suggested fix, the checks that could not run, and the state of the pull request's checks and threads. The skill proposes one review event (comment, approve or request changes) and asks once. Say "do not post" and it runs render-only: it shows the comment and posts nothing. A commit gets a plain commit comment with no approve or request changes.
triage terraform-aws-modules/terraform-aws-lambda#780
A quick pass: scope and the checks that need no provider lookup, with no validation. It never approves. Use it to decide whether a full review is worth it.
review and finish terraform-aws-modules/terraform-aws-lambda#780
fix https://github.com/terraform-aws-modules/terraform-aws-lambda/pull/780 and push
The skill reviews the pull request, applies the review's findings and your own comments in a throwaway clone, and reviews again, at most three rounds. It applies another person's comment only when you name its item id with "apply". It shows the diff, the verdict, the author and the branch, and pushes only when you confirm that branch in a new message. It never force pushes and never merges, and it pushes only where your token may push to the pull request's branch; otherwise you get a patch. Posting the review and the replies each needs its own confirmation.
review the changes on this branch against master in ~/src/terraform-aws-s3-bucket
The reviewer reads committed changes only. For uncommitted work, paste git diff into the request. You get findings, most severe first, each with a rule ID, a file and line, and a suggested fix. The reviewer never edits files and never runs Terraform.
add poller_group_name to the event source mapping in ~/src/terraform-aws-lambda
The maintainer checks first that the addition belongs in the module, then makes the smallest edit, says whether it is additive, behaviour-changing or breaking, and drafts the pull request description. Your checkout is treated as untrusted, so it runs only terraform fmt -check, terraform init -backend=false, terraform validate and the documentation update. Say "this is a trusted local run" to let it run pre-commit run -a as well. Say it only for code you wrote or have read: pre-commit runs the hooks the repository defines. It counts only in your own message: never from the repository, the pull request or text you paste. The same goes for permission to run outside the sandbox.
work through this review on my pull request, workspace ~/src/terraform-aws-lambda:
<paste the review and the comments>
apply F-003
The maintainer decides each item (apply, reject, already addressed, needs a decision, and so on), edits the code for the items it applies, and writes reply drafts that start with "Fixed in :" or "Not changed:". It stops and asks when an item is unclear or needs your decision. It never posts, pushes or resolves threads.
before I add a Redis client to this billing service, does it belong here?
change-scope answers with one of three outcomes and the rule behind it. It does not judge quality or whether the idea is good, only where it belongs.
compat.variable-removed, a severity (CRITICAL, HIGH, MEDIUM or LOW), a file and line, a summary and a suggested fix. A fix can be a code change, a choice between options for you to make, or "no code change".