Sh Routerのロゴ

Sh Router

コミュニティ
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.

概要

公開者dmdhrumilmistry
リポジトリsecurity-harness
スキル名sh-router
スター
42
フォーク
11
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    dmdhrumilmistryがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Sh Router」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-router
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSh Routerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSh Routerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Sh Routerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでSh Routerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Sh Routerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSh Routerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/dmdhrumilmistry/security-harness/tree/main/plugins/security-harness/skills/sh-routerを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Sh Routerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Sh Routerで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSh Routerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Sh Router」は無料ですか?

はい。dmdhrumilmistryがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇