engineering-fix

engineering-fix is a command for Claude Code from Fmarzochi/EGC. It costs 48 tokens per session (1,207 once invoked), scanned A, original, Apache-2.0.

A controlled command that applies fixes identified by a previous engineering audit. It creates a separate Git branch, changes files incrementally, and checks linting, type safety, and tests after each file.

In plain words
What is it for?
Use it to apply selected audit fixes after reviewing the proposed scope and explicitly confirming the changes.
Why use it?
It reduces the risk of applying a large set of corrections directly to your current work and stops if a verification step fails.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to apply selected audit fixes after reviewing the proposed scope and explicitly confirming the changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fmarzochi/egc/engineering-fix
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.

Clone the repo
git clone --depth 1 https://github.com/Fmarzochi/EGC

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/fmarzochi/egc/engineering-fix/github.svg)](https://agentmods.dev/commands/fmarzochi/egc/engineering-fix)
Your own site
<a href="https://agentmods.dev/commands/fmarzochi/egc/engineering-fix"><img src="https://agentmods.dev/badge/commands/fmarzochi/egc/engineering-fix/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 engineering-fix

Your own site · 80×15
<a href="https://agentmods.dev/commands/fmarzochi/egc/engineering-fix"><img src="https://agentmods.dev/badge/commands/fmarzochi/egc/engineering-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,207 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.00048 $0.01207
Opus 5 $0.00024 $0.00603
Sonnet 5 $0.00010 $0.00241
Haiku 4.5 $0.00005 $0.00121

Measured 5d ago against content hash 6c0202a84fdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

engineering-fix 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 5d 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/engineering-fix.md · 179 lines

How it starts

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

Engineering Fix

Input: $ARGUMENTS

Applies the remediation plan produced by /engineering-audit. Operates exclusively on an isolated branch. Never modifies files directly on the current branch. Always requires explicit user confirmation before starting.


Pre-conditions

Before running any fix:

  1. Confirm audit exists:
ls .egc/audits/engineering-audit-*.md 2>/dev/null | sort | tail -1

If no audit report exists, stop: "Run /engineering-audit first."

  1. Confirm working tree is clean:
git status --porcelain

If uncommitted changes exist, stop: "Stash or commit your changes before running engineering-fix."

  1. Confirm user intent: print the scope and ask explicitly:
Ready to apply engineering fixes.

Scope: <CRITICAL only | CRITICAL + HIGH | etc. based on $ARGUMENTS>
Branch: engineering-fix/<date>
Files to modify: N

This will:
  1. Create branch engineering-fix/<date>
  2. Apply each fix incrementally
  3. Run lint + typecheck + tests after each file
  4. Revert and stop if any check fails

Confirm? (yes / no)

Do NOT proceed without a "yes" response.


Argument Handling

Argument Behavior
--severity critical Apply CRITICAL fixes only (default)
--severity high Apply CRITICAL + HIGH fixes
--severity medium Apply CRITICAL + HIGH + MEDIUM fixes
--severity all Apply all findings
--file <path> Apply fixes to one specific file only
blank CRITICAL fixes only

Execution

Step 1: Create Isolated Branch

git checkout -b engineering-fix/$(date +%Y-%m-%d)

Step 2: Load Remediation Plan

Read the most recent audit report:

cat .egc/audits/engineering-audit-$(ls .egc/audits/ | grep engineering-audit | sort | tail -1 | sed 's/engineering-audit-//' | sed 's/\.md//')

Extract the list of files and fixes matching the requested severity.

Step 3: Apply Fixes Incrementally

For each file in the plan (CRITICAL first, then HIGH, etc.):

Read the full file on GitHub · 179 lines

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. 5d ago First seen · 179 lines · 48 tokens per session scan A 6c0202a84fdb

Subscribe to this mod's changes

engineering-fix is a command published in the GitHub repository Fmarzochi/EGC (49 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 1,207 once invoked, about $0.0002 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-09-03.