terraform-refresh-lock

terraform-refresh-lock is a skill for Claude Code, Codex from tony/skills. It costs 23 tokens per session (1,927 once invoked), scanned A, original, MIT.

A workflow for refreshing Terraform or OpenTofu dependency lock files without changing their existing version constraints. Lock files record the provider versions and supported installation platforms selected for a configuration.

In plain words
What is it for?
Use it to refresh lock files in every root module and report which providers actually changed.
Why use it?
It updates providers that can move within the current rules while avoiding accidental constraint changes or loss of platform coverage.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool; mentions Claude Code; installed under .agents/ (shared by several agents).

Good fit Use it to refresh lock files in every root module and report which providers actually changed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tony/skills/terraform-refresh-lock
View source ↗ tony/skills
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tony/skills --skill terraform-refresh-lock
Clone the repo
git clone --depth 1 https://github.com/tony/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for terraform-refresh-lock

README.md
[![agentmods](https://agentmods.dev/badge/skills/tony/skills/terraform-refresh-lock/github.svg)](https://agentmods.dev/skills/tony/skills/terraform-refresh-lock)
Your own site
<a href="https://agentmods.dev/skills/tony/skills/terraform-refresh-lock"><img src="https://agentmods.dev/badge/skills/tony/skills/terraform-refresh-lock/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for terraform-refresh-lock

Your own site · 80×15
<a href="https://agentmods.dev/skills/tony/skills/terraform-refresh-lock"><img src="https://agentmods.dev/badge/skills/tony/skills/terraform-refresh-lock.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,927 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.01927
Opus 5.5 $0.00009 $0.00771
Sonnet 5.5 $0.00005 $0.00385
Haiku 4.5 $0.00002 $0.00193

Measured 2d ago against content hash 7e1390f1f0b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

terraform-refresh-lock scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/lockctl.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/terraform-refresh-lock/SKILL.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Refresh Terraform lock files

Re-resolve provider selections in every root module under the existing constraints, and report the changes read back from the locks.

This changes no constraint. When a constraint blocks a confirmed newer release, use the terraform-bump-provider skill; an unchanged selection alone does not establish that a constraint is responsible.

Follow the conventions in the terraform-bumping-terraform skill (recorded tree state, script paths, commit message rules, non-interactive defaults, the plan, stopped and audit-only runs). This skill uses references/layout-discovery.md and references/lock-and-init.md.

When python3 is missing or older than 3.14, follow references/python.md.

User arguments: $ARGUMENTS

Procedure

1. Discover every root module

Root modules come from configuration files and from lock files tracked, untracked, or gitignored, per references/layout-discovery.md. --root-module limits the run to the named directories. Report nothing to refresh only when no directory has a backend or a lock file. A directory with a backend or an untracked or ignored lock but no committed one is a finding, not an absence.

2. Record the starting state

Per root module: the version selected for each provider and its h1: checksum count (the lock reference has the command). The count detects checksum loss; it does not establish platform coverage. Record the platform names the repository's CI and task files pass to providers lock (the lock reference has the command), when they pass any; include those declared names in an audit without claiming they were checked.

3. Present the plan and wait

Per the umbrella's Orchestration Plan, show the root modules to be refreshed, each provider's h1: count and the declared platform names. With --audit-only, answer using the audit form under Output; run no refresh or check that writes files.

4. Refresh, one root module at a time

Apply the lock reference's guard to each root module: the lock must be committed and unmodified, else skip and report it. Then run its init -upgrade command to re-resolve all provider selections. Check the declared platform names with providers lock for changed providers, per the lock reference, then compare each lock with lockctl.py diff --allow '*' against its committed copy; a non-zero exit means an h1: count dropped or a provider block vanished. A count drop needs the required platform names from CI/task files or the user. If the count is still short without explicit approval for that file's reduction, or the question goes unanswered (headless included), restore that lock from git and leave it out of the commit. When other root modules were refreshed, list this one under ## Failures with the before and after counts; when none were, end with the stopped line. When the names were not found, the stopped step asks for them and says nothing about where the search looked or what it did not find. The step ends with its request, with no "and I'll refresh it again" clause. When no other root module was refreshed and the lock is restored, the reply reads:

Read the full file on GitHub · 186 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +3 lines 7e1390f1f0b2
  2. 1mo ago Changed · +37 lines c5a58877591c
  3. 2mo ago First seen · 146 lines · 23 tokens per session scan A 551c07244c4e

Subscribe to this mod's changes

terraform-refresh-lock is a skill published in the GitHub repository tony/skills (0 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 1,927 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

terraform-refresh-lock compared with skills from other repositories

terraform-refresh-lock next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
terraform-refresh-locktony/skillsSkill0todayMITA23Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code