
Sh fix
Turns verified security findings into root-cause code fixes with regression tests
Sh fix is an open-source agent skill for security. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 44
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Sh fix
Sh-fix takes findings a security review has already verified and changes the code so they no longer hold. It groups related findings by root cause, such as a shared helper, a middleware or a query layer, and applies the framework's own safe API at that point rather than patching each call site. Each finding gets a regression test built from its proof-of-concept that should fail before the change and pass after it, and the skill searches for other places that use the same pattern.
The workflow asks the agent to create a new branch or work in the working tree, record the starting state, run the project's existing tests and linters to get a baseline, and keep changes minimal and behaviour-preserving. It writes a fix record listing the root cause, the change, the test, variants found and residual risk, and it names the finding ids the change claims to close so a separate retest step can check them. Guardrails forbid weakening checks, touching secret values, committing to the default branch or pushing.
It expects a run folder containing verified findings from a prior review, or finding ids or a class slug, plus a git repository and a project with a runnable test suite. Its tests are meant to run in process or against a test client and never attack a live system.
When your agent uses it
Remediation: turn verified security findings into code fixes. Groups findings by root cause, fixes at the root (the shared helper, the middleware, the query layer) with the framework's own safe API, writes a regression test from each finding's PoC that fails before the fix and passes after, searches for variants of the pattern, runs the project's tests and linters, and records which finding ids the change claims to close so `sh-retest` can check them. Use when the user asks to fix, remediate or patch a finding, a class, or everything a review verified. Works on a new branch or in the working tree only; never commits to the default branch, never pushes.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Write, Edit, Grep, Glob, Bash(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (7 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the indra plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indraOr copy only this skill to ~/.claude/skills/sh-fix:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-fix &&
cp -R "$tmp/plugins/indra/skills/sh-fix" ~/.claude/skills/sh-fix &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/sh-fix inside it instead.
Copy the skill folder to ~/.agents/skills/sh-fix to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-fix &&
cp -R "$tmp/plugins/indra/skills/sh-fix" ~/.agents/skills/sh-fix &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/sh-fix inside it instead.
Copy the skill folder to ~/.cursor/skills/sh-fix to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-fix &&
cp -R "$tmp/plugins/indra/skills/sh-fix" ~/.cursor/skills/sh-fix &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/sh-fix inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-fixOr copy the folder to ~/.gemini/skills/sh-fix yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-fix:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-fix &&
cp -R "$tmp/plugins/indra/skills/sh-fix" ~/.copilot/skills/sh-fix &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/sh-fix inside it instead.
Get the folder:
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.gitThen copy indra/plugins/indra/skills/sh-fix into your agent's skills folder as sh-fix. Agents that support SKILL.md read one folder per skill.
What it does
- Root-cause grouping
- Groups related findings that share one unsafe helper, middleware or query layer so they are fixed together.
- Regression tests from PoCs
- Builds a test from each finding's proof-of-concept that must fail before the fix and pass after.
- Variant search
- Looks for the same vulnerable pattern elsewhere and fixes those that share the root cause.
- Safe framework APIs
- Prefers bound parameters, template escaping and vetted helpers over hand-rolled filters.
- Fix record for retesting
- Writes a markdown record naming the finding ids the change claims to close, for a separate retest step.
- Branch-safe workflow
- Works on a new branch or the working tree and never commits to the default branch or pushes.
Good for
- Fix the SQL injection findings from my last security review
- Patch every verified finding of the path traversal class
- Remediate a finding by changing the shared file-path helper
- Write regression tests for the verified XSS issues before fixing them
- Prepare a fix record listing which findings the change closes
Sh fix FAQ
What does the skill need before Sh fix runs?
A run folder with verified or needs-runtime findings, or specific finding ids or a class slug, and a git repository. With branch:current the current branch must not be the default branch.
Does Sh fix commit or push changes?
No. It works on a new branch or in the working tree, never commits to the default branch, and never pushes. Committing is left to the user unless they ask.
Does Sh fix mark findings as fixed?
No. It records which finding ids the change claims to close, and a separate retest step makes the verdict.
Does Sh fix test against live systems?
No. Regression tests call the code in process or against a test client, and the skill never sends the proof-of-concept over the network.
How do I install Sh fix in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/sh-fix to use it in all your projects, or to .claude/skills/sh-fix in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.
Does Sh fix run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Sh fix?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Sh fix?
The closest alternatives to Sh fix are Variant analysis, Security audit, Sh retest, Find bugs and Security remediation.
Where this comes from
- Description: from the skill's own SKILL.md.
More from dmdhrumilmistry/indra

Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines
- Open source
- 44 GitHub stars
- Security

Gives a security review agent persistent Markdown memory of past findings and learnings
- Open source
- 44 GitHub stars
- Knowledge and memory

Security-reviews a GitHub pull request and reports findings as inline comments
- Open source
- 44 GitHub stars
- Developer tools

Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion
- Open source
- 44 GitHub stars
- Knowledge and memory

Plans and runs approved purple-team tests to check whether SIEM detections fire
- Open source
- 44 GitHub stars
- Security

Re-checks one earlier security finding against current code or recorded traffic
- Open source
- 44 GitHub stars
- Security




