fix-risks

fix-risks is a command for coding agents from odere-pro/claude-oop-excellence. It costs 90 tokens per session (1,391 once invoked), scanned A, original, MIT.

A command for applying fixes to selected code risks through the plugin's coordinator. It resolves the requested issue or issue family, makes corrective refactors, and verifies them with the project's own checks.

In plain words
What is it for?
Use it to fix one issue, a family of issues, or all supported issues across the full project, changed files, or a component. Plan-only mode creates a change plan without modifying source files.
Why use it?
It provides a controlled path from an audit finding to a source-code change, with scope selection and verification to limit unintended work.

Command

Part of the claude-oop-excellence plugin — 5 skills, 2 commands, 6 agents, 1 hook 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/odere-pro/claude-oop-excellence/fix-risks
Clone the repo
git clone --depth 1 https://github.com/odere-pro/claude-oop-excellence

Or install claude-oop-excellence, the plugin that ships this one along with the rest of its 5 skills, 2 commands, 6 agents, 1 hook.

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-risks

README.md
[![agentmods](https://agentmods.dev/badge/commands/odere-pro/claude-oop-excellence/fix-risks.svg)](https://agentmods.dev/commands/odere-pro/claude-oop-excellence/fix-risks)
Your own site
<a href="https://agentmods.dev/commands/odere-pro/claude-oop-excellence/fix-risks"><img src="https://agentmods.dev/badge/commands/odere-pro/claude-oop-excellence/fix-risks.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 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,391 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.00090 $0.01391
Opus 5 $0.00045 $0.00696
Sonnet 5 $0.00018 $0.00278
Haiku 4.5 $0.00009 $0.00139

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

Security

Grade A, and why

fix-risks 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-risks.md · 117 lines

How it starts

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

The gated FIX action front door — the side-effecting command that the /audit report's Recommended Actions section hands off to. Run the fix verb against this repository. Because it writes to your source tree, it is user-invoked only. It resolves your selection against the glossary (skills/glossary/glossary.json) and delegates to the improve skill, which drives the oop-orchestrator in fix mode (one entity-fixer per in-scope entity, fanned out in parallel batched by family). Each fixer detects instances of its one injected entity, applies the smallest corrective refactor, and verifies with the project's own detected test/typecheck/lint commands.

Selection grammar

[<entity-id> | <family> | all] [full | changed | component <path>] [--plan-only]
  • Selection (default all) — a single glossary issue id (e.g. god-class, feature-envy, shotgun-surgery), an issue family (oop, code, architecture, testing, concurrency, database, security, dependency), or all issue entities.
  • Scope (default full) — full, changed (vs the base branch), or component <path>.
  • --plan-only (or a leading plan token) — produce the corrective plan (detected instances + intended diffs) and make no edits. Use it to preview the refactor before committing to it.

Only issue entities are in scope for the fix verb — design patterns belong to /implement-patterns.

Phase 1 — Parse and acquire context

  1. Parse $ARGUMENTS into a selection (default all), a scope (default full), and the optional --plan-only flag (set it when --plan-only or a leading plan token is present).

  2. Check for the most recent saved /audit report for context (optional, not required):

    ls -t tmp/audit-report-*.md 2>/dev/null | head -1
    

    If one exists, read it to prioritise which entities have live findings — its Recommended Actions section is the handoff that points here. If none exists, proceed — the fix verb re-detects within scope; you do not need a report to run.

Read the full file on GitHub · 117 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. 4d ago First seen · 117 lines · 90 tokens per session scan A c5653eb53263

Subscribe to this mod's changes

fix-risks is a command published in the GitHub repository odere-pro/claude-oop-excellence (1 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 1,391 once invoked, about $0.0005 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.