fix-finding

fix-finding is a command for coding agents from uttej-badwane/secure-cloud-prompt-engineering. It costs 18 tokens per session (357 once invoked), scanned A, original, MIT.

A command that applies a targeted security correction to an Infrastructure as Code (IaC) file, such as a Terraform configuration that defines cloud resources.

In plain words
What is it for?
Use it to fix a numbered finding from a security report or describe a problem and file, such as public S3 access in a Terraform file.
Why use it?
It fixes a known security problem without changing unrelated code. It shows the proposed edit for confirmation and checks the result afterward.

Command

Part of the secure-cloud-prompt-engineering plugin — 1 skill, 5 commands, 3 agents, 3 hooks shipped together

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.

agentmods
npx agentmods add commands/uttej-badwane/secure-cloud-prompt-engineering/fix-finding
Clone the repo
git clone --depth 1 https://github.com/uttej-badwane/secure-cloud-prompt-engineering

Or install secure-cloud-prompt-engineering, the plugin that ships this one along with the rest of its 1 skill, 5 commands, 3 agents, 3 hooks.

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 fix-finding

README.md
[![agentmods](https://agentmods.dev/badge/commands/uttej-badwane/secure-cloud-prompt-engineering/fix-finding.svg)](https://agentmods.dev/commands/uttej-badwane/secure-cloud-prompt-engineering/fix-finding)
Your own site
<a href="https://agentmods.dev/commands/uttej-badwane/secure-cloud-prompt-engineering/fix-finding"><img src="https://agentmods.dev/badge/commands/uttej-badwane/secure-cloud-prompt-engineering/fix-finding.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 357 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00018 $0.00357
Opus 5 $0.00009 $0.00179
Sonnet 5 $0.00004 $0.00071
Haiku 4.5 $0.00002 $0.00036

Measured 4d ago against content hash 0fb140fb46b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fix-finding 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 4d ago.

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.

commands/fix-finding.md · 43 lines

What it actually says

Apply a targeted fix to a specific security finding identified in a prior review.

Steps

  1. Parse the argument — accept either:

    • A finding number from the most recent report (e.g., /fix-finding 3)
    • A description of what to fix (e.g., /fix-finding "s3 public access" terraform/main.tf)
  2. Read the relevant file(s) to understand current state.

  3. Apply the minimal, correct fix:

    • Do not refactor unrelated code
    • Preserve existing formatting and style
    • Add an inline comment explaining why the change was made (if non-obvious)
  4. Show a diff of the change before applying it and ask for confirmation.

  5. After applying, re-check the fixed lines against the security checklist to confirm the finding is resolved and no new issues were introduced.

  6. Report: "Fixed [finding title] in [file:line]. Control [framework ID] now satisfied."

Safety Rules

  • Never delete resource definitions — only add security controls to existing ones
  • Never change resource names, IDs, or tags unless the finding explicitly requires it
  • If the fix requires secret values (e.g., KMS key ARN), use a TODO placeholder and instruct the user to fill it in
  • If unsure about the correct fix, explain the options and ask the user to choose

Usage

/fix-finding 2
/fix-finding "open security group" terraform/vpc.tf
/fix-finding "container running as root" kubernetes/deployment.yaml
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. 4d ago First seen · 43 lines · 18 tokens per session scan A 0fb140fb46b3

Subscribe to this mod's changes

fix-finding is a command published in the GitHub repository uttej-badwane/secure-cloud-prompt-engineering (2 stars, last pushed 6mo ago), licensed MIT. It adds 18 tokens to every session and 357 once invoked, about $0.0001 per session on Opus 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-08-31.