agentsclimarketplace

Remediation engine

Skill Rootx202/appsec-skills/remediation-engine

AppSec Skills — 15 plug-and-play Claude Code security skills that audit, harden, and fix any website or app before you ship it. OWASP Top 10, auth, API, database, frontend, backend, cloud, dependencies, secrets, and pentest-style checks — all defensive, all evidence-based.

Install
npx -y skills add Rootx202/appsec-skills --skill remediation-engine

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

3 things to look at

  • 26 days oldThe repository was created 26 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Secure code fixer — takes findings from other security skills (code-audit, vulnerability-scanner, etc.) and implements the actual code fixes safely, preserving functionality, for any language or stack. Use whenever the user asks to fix, patch, or remediate previously identified vulnerabilities directly in their codebase, not just describe the fix.

SKILL.md

3.1 KB, 642 tokens by cl100k_base, as published. Nobody here has run it

Remediation Engine — Secure Code Fixer

The most important skill in the chain: don't just describe the vulnerability — actually implement the fix in the code.

When to use this

  • After another skill (code-audit, vulnerability-scanner, etc.) has identified vulnerabilities, and the user wants them actually fixed
  • Direct request: "fix these vulnerabilities in the code"

Mandatory Principles

  1. No functional regressions. The code must behave the same way the user needs it to after the fix — minus the vulnerability.
  2. Minimal footprint. Change only what's necessary to close the gap; don't perform an unrelated full refactor of the file.
  3. Clear patch. Always show the code before and after for every change.
  4. Fix the root cause, not just the symptom. For example, don't just suppress an error message — address why the information was leaking in the first place.
  5. Re-verify after every fix. Confirm the change didn't introduce a new issue (a common trap: over-aggressive encoding to fix XSS can break legitimate content rendering — check the balance).

Workflow

  1. Gather the list of vulnerabilities to fix (from a prior scan's output, or directly described by the user).
  2. Sort by severity: Critical first.
  3. For each vulnerability:
    • Show the current (vulnerable) code clearly
    • Explain in one or two lines why it's unsafe
    • Provide the corrected code, complete and ready to apply
    • If the fix requires installing a new library (e.g., DOMPurify, bcrypt, helmet), state the install command
  4. After all fixes, summarize:
    • Number of vulnerabilities fixed
    • Any vulnerabilities that need the user's decision (major architectural change, or a tradeoff between security and UX) and weren't auto-fixed
    • A recommendation to run a full re-scan (vulnerability-scanner) to confirm

Common Fix Patterns

SQL Injection → Parameterized Query

// Before (vulnerable)
db.query(`SELECT * FROM users WHERE id = ${userId}`);
// After (safe)
db.query('SELECT * FROM users WHERE id = $1', [userId]);

Hardcoded Secret → Environment Variable

// Before
const apiKey = "sk-abc123...";
// After
const apiKey = process.env.API_KEY;

Weak Hash → bcrypt

// Before
const hash = crypto.createHash('md5').update(password).digest('hex');
// After
const hash = await bcrypt.hash(password, 12);

Missing Security Headers → helmet

// Before
app.use(express.json());
// After
const helmet = require('helmet');
app.use(helmet());
app.use(express.json());

Rules

  • If a fix touches sensitive business logic that the user's workflow may depend on, ask before applying it instead of assuming.
  • Don't touch files or code sections unrelated to the vulnerability being fixed.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,970. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.