Security Reviewのロゴ

Security Review

コミュニティ
dianyike
security-review

Run a read-only dual-verification security audit (Semgrep + Codex cross-validation). Use when: user says "security review", "audit code", "scan for vulnerabilities", "is this safe", "check for secrets", "before merge security scan", or invokes /security:review. Produces a confidence-scored report; never modifies source code. For remediation, see /security:fix.

Add to TypingMind

概要

公開者dianyike
リポジトリclaude-code-insights
スキル名security-review
スター
69
フォーク
13
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dianyike/claude-code-insights.git /tmp/claude-code-insights
mkdir -p .claude/skills
cp -r /tmp/claude-code-insights/examples/security-reviewer/skills/security-review .claude/skills/security-review
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

/security:review — Read-Only Security Audit

Run the security-reviewer subagent to produce a dual-verification security report. This command is always read-only — it will never modify source code files.

Command Syntax

/security:review [options] [path...]
  --base <branch>              # Diff against a base branch (merge-base)
  --scope staged|working-tree  # Explicit change scope
  --background                 # Run in background, return job ID
  --wait                       # Run in foreground (default)

Target Resolution

Determine the review scope before invoking the subagent:

Priority Order

  1. If --base <branch> is specified → branch diff mode
    • Run: git merge-base HEAD <branch> → git diff --name-only <merge-base>..HEAD
  2. If --scope is specified → explicit scope mode
    • staged: git diff --staged --name-only
    • working-tree: git diff --name-only + git ls-files --others --exclude-standard
  3. If neither specified and working tree is dirty → auto: working-tree
  4. If neither specified and working tree is clean → auto: branch diff against default branch

Path Filtering

If [path...] arguments are provided, filter the resolved file list to only include files whose paths start with any of the given prefixes.

Handoff to Subagent

Pass the resolved scope to the security-reviewer subagent:

Review scope:
- Mode: <branch-diff|staged|working-tree>
- Base: <branch> (if applicable)
- Files: <resolved file list>
- Path filters: <prefixes> (if applicable)

Background Execution

When --background is specified:

  1. Launch the security-reviewer subagent with run_in_background: true
  2. Return immediately with: "Security review started. Use /security:status to check progress."
  3. When the subagent completes, the notification will include the verdict and report path.

When --wait (default):

  1. Launch the security-reviewer subagent in foreground
  2. Display the verdict and report path when complete

Related Commands

  • /security:fix <report> — Opt-in remediation based on a review report (requires explicit user action)

Job Management (Phase 1 — not yet implemented)

The following commands are planned but not yet available as separate skills. Until implemented, use natural language (e.g., "check the security scan status") and the main agent will handle it via the Agent tool's built-in background notification.

  • /security:status [job-id] — Check background job progress. Without ID, list all active jobs
  • /security:result <job-id> — Retrieve completed job verdict and report path
  • /security:cancel <job-id> — Mark a running job as CANCELLED (subagent may still complete in background)

Expected behavior (for future implementation):

  • Job state is persisted at .agents-output/security/jobs/<job-id>.json
  • States: QUEUED → RUNNING → COMPLETED / FAILED / CANCELLED
  • On session restart, any RUNNING job is marked STALE (detected by checking status == RUNNING with created_at older than the current session start)

Completion Criteria

  • Target resolution produced a concrete file list (or "no changes found" if empty)
  • security-reviewer subagent invoked with resolved scope
  • Verdict and report path displayed to user
  • If --background: job ID returned immediately, no blocking
  • No source code files modified

Gotchas

  • --base and --scope are mutually exclusive in practice — if both specified, --base wins (priority order). Don't warn the user; just follow priority
  • When working tree is clean AND no default branch is detectable (e.g., fresh repo with only one commit), auto mode falls through to an empty file list. Surface this clearly instead of running Semgrep on zero files
  • --background relies on Claude Code's run_in_background for the Agent tool — the subagent cannot be cancelled mid-execution; /security:cancel only marks the job as CANCELLED and stops waiting for results
  • Path filters are prefix-matched, not glob-matched. src/auth matches src/auth/login.ts and src/auth-utils/helper.ts. If users expect glob semantics, clarify
  • Iterate this section: After each real usage, append new gotchas here

What This Command Does NOT Do

  • Does not modify source code (read-only)
  • Does not enter the Fix-Verify Loop (Section 4 of the protocol)
  • Does not auto-remediate findings
  • Does not require Write or Edit tool permissions

よくある質問

AIスキル「Security Review」では何ができますか?

Run a read-only dual-verification security audit (Semgrep + Codex cross-validation). Use when: user says "security review", "audit code", "scan for vulnerabilities", "is this safe", "check for secrets", "before merge security scan", or invokes /security:review. Produces a confidence-scored report; never modifies source code. For remediation, see /security:fix.

TypingMindでSecurity Reviewを使うメリットは何ですか?

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

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

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

Security Reviewを使えるAIモデルはどれですか?

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

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

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

AIスキル「Security Review」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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