Sh Router logo

Sh Router

Community
dmdhrumilmistry
sh-router

Entry point / dispatcher for the security-harness. Use when the user asks for any application-security work - 'security review', 'audit this codebase', 'pentest', 'find vulnerabilities', 'check for SQLi/XSS/IDOR/SSRF', 'generate a security report/SARIF'. Interprets the request and routes it to the full sh-security-review pipeline, a single stage, or a single vulnerability-class knowledge base.

Overview

Publisherdmdhrumilmistry
Repositorysecurity-harness
Skill namesh-router
Stars
42
Forks
11
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dmdhrumilmistry on GitHub. Read the source before you install it.

Installation

Install the Sh Router AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-router
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dmdhrumilmistry/security-harness.git /tmp/security-harness
mkdir -p .claude/skills
cp -r /tmp/security-harness/plugins/security-harness/skills/sh-router .claude/skills/sh-router
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sh Router in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sh Router on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sh Router is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Security Harness - Router

You are the front door. Read the user's request, decide the smallest flow that satisfies it, and hand off. Prefer routing over doing the work inline - the specialized skills/agents carry the knowledge and contracts.

Routing table

The user wants…Route to
To review a pull request (a GitHub PR link, "review PR 42", "check this PR", "review these changes before merge")Invoke the sh-pr-review skill. Pass the PR link verbatim if the user gave one, else the number; with neither it uses the PR for the current branch.
A full security review / audit / pentest of a codebaseInvoke the sh-security-review skill (all stages). Pass the target path and any class filters.
To find specific class(es) only ("just SQLi and IDOR")Invoke sh-security-review with classes:<slugs>; it runs recon + those hunters + verify + report, skipping chaining if a single class.
To re-run one stage on an existing run ("re-verify", "regenerate the report", "re-scan deps")Invoke sh-security-review with stage:<recon|hunt|chain|verify|report>.
Just to learn how a class is detected/exploited, or to hand a hunter its knowledgeInvoke the matching sh-kb-<class> skill directly (no pipeline).
To map/understand a codebase only (no vuln hunt)Invoke sh-security-review with stage:recon.

Class slug map (route free-text to the right sh-kb-* skill / class filter)

  • access control, authorization, IDOR, BOLA, privilege escalation, missing authz -> access-control
  • SQL injection, SQLi, NoSQL injection (query) -> sqli
  • XSS, cross-site scripting, DOM XSS -> xss
  • SSRF, server-side request forgery -> ssrf
  • command/OS injection, template injection (SSTI), LDAP, eval -> injection
  • authentication, login, session, JWT, password, MFA -> auth
  • deserialization, pickle, unmarshal, gadget -> deserialization
  • path traversal, LFI, RFI, directory traversal, arbitrary file read -> path-traversal
  • secrets, hardcoded credentials, API keys, tokens in code -> secrets
  • CSRF, cross-site request forgery -> csrf
  • XXE, XML external entity -> xxe
  • open redirect, unvalidated redirect -> open-redirect
  • crypto, weak hashing, insecure random, encryption misuse -> crypto
  • race condition, TOCTOU, concurrency bug -> race-conditions
  • file upload, unrestricted upload, malicious file -> file-upload
  • outdated/vulnerable dependency, CVE, SBOM -> handled in recon (stage:recon or full run)

Steps

  1. Is this about a pull request? If the request contains a GitHub PR link, names a PR number, says "this PR", "these changes", "before merge", or the user is on a branch with an open PR and asks for a review, route to sh-pr-review and stop. A PR review is scoped to the diff, posts back to the PR, and sets a commit status; a codebase review is not and does neither. Do not substitute one for the other.
  2. Identify the target path (default: current working directory) and whether the user restricted the scope to specific classes or a single stage.
  3. Confirm authorization context briefly if the request implies attacking systems the user may not own (this harness does static analysis only; decline live attacks on third-party targets).
  4. Route per the table. When ambiguous between "full review" and "specific classes", default to a full review but state the assumption so the user can narrow it.
  5. Hand off by invoking the chosen skill with the parsed arguments. Pass through any classes:, stage:, depth:, and models: tokens verbatim so the pipeline honors them (see the model-override options in sh-security-review). Do not duplicate its work here.

Notes

  • Model / cost control: sh-security-review runs each stage on a cost-appropriate model by default (recon=sonnet, hunt=tiered haiku/sonnet/opus per class, chain/verify=opus, report=haiku). Users can override with models: (e.g. models:max, models:cheap, models:verify=opus,hunt=sonnet) - pass these through unchanged.
  • The pipeline writes everything under <target>/.security-harness/<run-id>/; point the user there.
  • If the user asks something outside security review (general coding), say this harness is scoped to security work and let the normal assistant handle it.

Frequently asked questions

What does the Sh Router AI skill do?

Entry point / dispatcher for the security-harness. Use when the user asks for any application-security work - 'security review', 'audit this codebase', 'pentest', 'find vulnerabilities', 'check for SQLi/XSS/IDOR/SSRF', 'generate a security report/SARIF'. Interprets the request and routes it to the full sh-security-review pipeline, a single stage, or a single vulnerability-class knowledge base.

Why use Sh Router on TypingMind?

Because you install it once and use it with any model. Sh Router is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sh Router in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-router. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Sh Router?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sh Router?

As many as you like. As long as a model supports skills, you can use Sh Router with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sh Router AI skill free?

Yes. It is published on GitHub by dmdhrumilmistry under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇