security-fix
Skill by dianyike
Fixes vulnerabilities listed in a /security:review report using a Fix-Verify Loop. It is for developers who want opt-in, user-confirmed remediation of security findings in their source code.
Install security-fix
Built from the published package, never by AI.
git clone --depth 1 https://github.com/dianyike/claude-code-insights /tmp/claude-code-insights && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-insights/examples/security-reviewer/skills/security-fix ~/.claude/skills/security-fixRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/dianyike/claude-code-insights /tmp/claude-code-insights && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-insights/examples/security-reviewer/skills/security-fix ~/.gemini/antigravity-cli/skills/security-fixAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
security-fix is an agent skill that fixes vulnerabilities listed in a report produced by /security:review. It is invoked with a report path, or when a user asks to fix security findings or remediate vulnerabilities. The command modifies source code and is explicit opt-in only, so it is never auto-triggered.
It runs the Fix-Verify Loop from Section 4 of the security-review-protocol skill, grouping findings by root cause and ordering them by severity. Before each fix, it shows a prediction summary and waits for user approval unless --yes is passed. A dry-run option shows the plan without changing files, and results are appended to the original report as a hypothesis log. It is aimed at developers who already have a security review report.
Written from the project's SKILL.md and checked against it.
What it can do
- Parse reportReads a security review report and extracts confirmed findings with confidence of at least 50%.
- Triage by root causeGroups findings into root-cause clusters and orders them from CRITICAL to MEDIUM.
- Fix-Verify LoopApplies fixes per cluster using Section 4 of the security-review-protocol skill.
- User confirmationShows a prediction block and waits for approval before each fix, unless --yes is used.
- Dry runShows which files would change and what changes would be made, without modifying files.
- Single finding fixFixes only the finding given by --finding <id>.
- Semgrep re-scanRe-scans with Semgrep after each fix to verify the change.
- Hypothesis logAppends a Fix-Verify Hypothesis Log to the original security review report.
What you need
- An existing security review report from /security:review
- Semgrep plugin tools
- Codex MCP server
- Git available for git commands
Try asking
- Fix the security findings in .agents-output/security/2026-03-31-auth-security-review.md
- Remediate vulnerabilities in my latest security review report
- Dry run the fixes for finding F-003 in my security review report
Good to know
- Modifies source code, so it is explicit opt-in only and never auto-triggered
- Requires an existing security review report as input
- Does not fix findings below 50% confidence; those are escalated to a human
- Dry run still calls Codex and uses tokens, though it does not modify files
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: examples/security-reviewer/skills/security-fix/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadGrepGlobBash(git *)WriteEditmcp__plugin_semgrep-plugin_semgrep__semgrep_scanmcp__plugin_semgrep-plugin_semgrep__semgrep_scan_with_custom_rulemcp__plugin_semgrep-plugin_semgrep__get_abstract_syntax_treemcp__codex__codexmcp__codex__codex-reply
Alternatives to security-fix
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
security-fix: common questions
Does security-fix change my code automatically?
It modifies source code only when invoked. By default it asks for user approval before each fix, and --yes skips those prompts.
What input does security-fix need?
It needs a path to a security review report produced by /security:review, usually under .agents-output/security/.
Can it fix only one finding?
Yes. The --finding option fixes a single finding by ID, but sibling findings in the same root-cause cluster are skipped.
How do I install security-fix?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is security-fix free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is security-fix safe to use?
It scores 64 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to security-fix?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
