Skip to content
Agentmart
Submit a tool

fix-security-finding

Validate a security finding from a scanner or review, implement the minimal remediation, add regression coverage, and document residual risk without exposing…

Skill by ravisingh11

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ravisingh11-fix-security-finding

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Validate a security finding from a scanner or review, implement the minimal remediation, add regression coverage, and document residual risk without exposing secrets. Use when Semgrep, CodeQL, Gitleaks, Snyk, a security review, or ai-toolkit check reports a security defect to fix.

Use cases: documents, testing, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/fix-security-finding

What's inside

Skill name
fix-security-finding
Description
Validate a security finding from a scanner or review, implement the minimal remediation, add regression coverage, and document residual risk without exposing secrets. Use when Semgrep, CodeQL, Gitleaks, Snyk, a security review, or ai-toolkit check reports a security defect to fix.
License
MIT
Instructions
82 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • VERIFICATION.md
  • openai.yaml · agents/

SKILL.md (first lines)

# Fix Security Finding

Confirm the finding is real, fix the root cause, and prove it stays fixed.
`security-audit-lite` finds and rates issues; this skill remediates one. Use
the shared verification conventions from `_shared-project-ops` when the
repository has them installed.

## Inputs

- The finding: tool, rule or CWE, file and line, severity, and the evidence
  link (a scanner result, a `pr-review` finding JSON, or an `ai-toolkit check`
  row with its reason code).
- The repository's security policy (`SECURITY.md`, `policies/security.md`
  when present) and the affected component's threat model if documented.

## Permitted changes

- The vulnerable code path and its direct callers.
- New regression tests that exercise the previously vulnerable input.
- Dependency bumps only when the finding is a vulnerable dependency and the
  fix is a patch or minor upgrade; otherwise hand off to `dependency-upgrade`.
- Scanner configuration only to add a justified, narrowly scoped, documented
  suppression after the user agrees the finding is a false positive.

Not permitted: committing, printing, or logging secret values; rotating
credentials on the user's behalf; disabling a rule repository-wide; or
suppressing a true positive.

## Method

1. Reproduce or trace the finding to a concrete attacker-controlled input and
   an impact. If it is not reachable, record why and propose a suppression
   rather than a code change.
2. Choose the remediation that removes the vulnerability class (parameterized
   query, allow-list, safe API) over one that patches the instance.
3. For a behavioral code defect, write a regression test using an inert canary and mocked dangerous sink,
   or an isolated disposable sandbox with no credentials, external network, or
   access to developer files. Never execute an exploit against a live vulnerable
   environment. Confirm the safe red test fails before the fix and passes after.
4. Re-run the reporting scanner locally when available (`.proof/scan.py`
   or the tool itself) so the same rule no longer fires.
5. For leaked secrets: remove them from the tree, tell the user which
   credential must be rotated, and never paste the value anywhere.

## Stop conditions

Stop and report when the fix changes a public interface or data format,
when the finding lives in vendored or generated code, when remediation
requires a credential rotation only the user can perform, or when the
scanner cannot be rerun and the fix cannot be proven.

## Verification

- Behavioral code defects: an inert regression fails on the old code and passes
  on the new code.
- False positives: record reachability/threat-model analysis, the user's approval
  of any narrowly scoped suppression, and a rerun of the originating scanner
  against the exact changed revision. A suppression alone is not proof; retain
  the analysis and confirm it cannot hide a reachable instance. No artificial
  red/green code test is required when behavior did not change.
- Exposed credentials: verify removal without revealing the value and record a
  clean originating secret-scan result for its relevant scope (including history
  when supported). Removal or suppression does not revoke an exposed credential:
  keep remediation incomplete until its owner confirms revocation/rotation and
  any required history cleanup. Do not manufacture a test containing the secret.
- The originating scanner or check reports the finding resolved for the new
  revision (`ai-toolkit check` row `passed`, or the finding absent).
- Existing tests still pass.

## Outcome report

```text
Finding: <tool / rule / location / severity>
Confirmed: <yes, with reachable input | false positive, with reason>
Remediation: <what changed and why it removes the class>
Verification path: <behavioral regression | false-positive analysis | credential remediation>
Regression test: <path and what it proves | not applicable, with reason>
Residual risk: <what remains, credentials to rotate, follow-ups>
Verified: <commands run and results>
```

From ravisingh11/ai-software-toolkit, MIT.

More from ravisingh11/ai-software-toolkit

Signals

Stars
5
Forks
10
Open issues
0
Last commit (this folder)
Sep 27, 2026 (1 month ago)
Last release
Oct 23, 2026 (5 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ravisingh11

Cite this page

fix-security-finding skill. Agent Mart. https://agentmart.dev/skills/ravisingh11-fix-security-finding (last updated 2026-10-24)