secdevai-fix

secdevai-fix is a skill for Claude Code from RedHatProductSecurity/prodsec-skills. It costs 44 tokens per session (701 once invoked), scanned A, original, Apache-2.0.

A security-fix workflow for applying findings from an earlier code review. It shows proposed before-and-after changes and waits for approval before editing files.

In plain words
What is it for?
Use it to remediate approved security findings, limit fixes by severity, review diffs, and understand what each change prevents.
Why use it?
It prevents security fixes from being applied without checking the original finding and seeing the exact code change first.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the prodsec-skills plugin — 133 skills shipped together

Good fit Use it to remediate approved security findings, limit fixes by severity, review…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/redhatproductsecurity/prodsec-skills/secdevai-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.

Any agent
npx skills add RedHatProductSecurity/prodsec-skills --skill secdevai-fix
Clone the repo
git clone --depth 1 https://github.com/RedHatProductSecurity/prodsec-skills

Made for: Claude Code.

Or install prodsec-skills, the plugin that ships this one along with the rest of its 133 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/redhatproductsecurity/prodsec-skills/secdevai-fix.svg)](https://agentmods.dev/skills/redhatproductsecurity/prodsec-skills/secdevai-fix)
Your own site
<a href="https://agentmods.dev/skills/redhatproductsecurity/prodsec-skills/secdevai-fix"><img src="https://agentmods.dev/badge/skills/redhatproductsecurity/prodsec-skills/secdevai-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 701 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.00044 $0.00701
Opus 5 $0.00022 $0.00351
Sonnet 5 $0.00009 $0.00140
Haiku 4.5 $0.00004 $0.00070

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

Security

Grade A, and why

secdevai-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 7d 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.

experimental/secdevai-fix/SKILL.md · 95 lines

How it starts

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

Security Fix Application

Applies security fixes identified by a prior code review. Always shows a diff preview and requires explicit user approval before modifying any file.

When to Use This Skill

  • Applying fixes for findings from a prior secdevai-review or equivalent security review
  • Applying a filtered subset of fixes (e.g., only critical severity findings)
  • Previewing proposed code changes before deciding whether to apply them

Workflow

Step 1: Verify Prerequisites

Confirm that a prior security review has been run and findings are available. If no prior review exists, inform the user and suggest running a security review first.

Step 2: Apply Severity Filter (optional)

If the user specifies a severity level (critical, high, medium, low), limit fixes to findings at that level or above. If no filter is specified, present all available fixes.

Step 3: Present Fixes

For each fix, show:

  • Finding: Description and location (file and line number)
  • Severity: The severity of the finding being fixed
  • OWASP / CWE reference: Category and ID
  • Before: The vulnerable code
  • After: The fixed code
  • Security impact: What the fix prevents

Example:

## Fix #1 (Critical)

**Finding**: SQL Injection in `app.py:42`
**OWASP Category**: [A03: Injection](https://owasp.org/Top10/A03_2021-Injection/) ([CWE-89](https://cwe.mitre.org/data/definitions/89.html))

**Before**:
query = f"SELECT * FROM users WHERE id = {user_id}"

**After**:
cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,))

**Security impact**: Eliminates SQL injection by using a parameterized query.
The database driver handles escaping, preventing attacker-controlled input from
modifying query structure.

Step 4: Require Explicit Approval

Before applying any changes:

  • Show all proposed diffs
  • Ask the user to confirm which fixes to apply
  • Never modify code without explicit approval
  • Never apply fixes in bulk without showing each change first

Read the full file on GitHub · 95 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. 7d ago First seen · 95 lines · 44 tokens per session scan A d742601ca114

Subscribe to this mod's changes

secdevai-fix is a skill published in the GitHub repository RedHatProductSecurity/prodsec-skills (52 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 44 tokens to every session and 701 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-08-30.