Communitygithub.com

リポジトリセキュリティスキャン

リポジトリ内の高確度なセキュリティ問題をスキャンし、レポートを生成します。コードベースの漏洩シークレットや脆弱性依存関係を監査する際、リリース前、または未知のリポジトリをオンボーディングする際に使用します。gitleaksによるシークレットスキャンとosv-scannerによる依存関係チェックを実行します。

リポジトリセキュリティスキャン とは?

このスキルは、リポジトリに対して高精度なセキュリティスキャンを実行し、包括的なレポートを生成するAIエージェントスキルです。主に2つの機能を提供します。1つ目はgitleaksを使用したシークレットスキャンで、コードベースに埋め込まれたAPIキーやパスワードなどの機密情報を検出します。2つ目はosv-scannerを使った依存関係の脆弱性スキャンで、プロジェクトが使用するライブラリやパッケージに既知の脆弱性がないかをOSVデータベースと照合してチェックします。これらのツールはともに高いシグナル対ノイズ比を誇り、誤検知を抑制する設定も簡単です。出力は人間が読みやすいreport.mdと機械可読なsummary.json、そして各ツールの生出力ファイルです。スキャンは読み取り専用で行われ、ソースコードがアップロードされることはありません。また、シークレットはログで伏せられるため安全です。このスキルはClaude CodeやCursor、CodexなどのAIエージェントプラットフォームで、リポジトリのセキュリティ監査やリリース前のチェック、新しいリポジトリのオンボーディング時に利用できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/unisone/openclaw-skill-suite/tree/main/skills/repo-security-scan

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

リポジトリセキュリティスキャン は何をしますか?

対象リポジトリの高確度なセキュリティ問題をスキャンし、レポートを生成します。

機能(MVP)

  • シークレットスキャン - gitleaks を使用(ローカルスキャン、ログ内のシークレットは伏せ字になります)
  • 依存関係脆弱性スキャン - osv-scanner を使用(依存関係をOSVと照合)

出力物:

  • report.md — 人間が読めるサマリー
  • summary.json — 機械可読なサマリー
  • 各ツールの生出力(gitleaks.json、osv.json)+ ログ

このスタックを選んだ理由(シグナル/ノイズ)

  • gitleaks:標準設定が優れており、高速、.gitleaks.toml / .gitleaksignore で誤検知を簡単に抑制できます。
  • osv-scanner:OSV 経由で正確な依存関係脆弱性マッチングを行います(広範なエコシステムをサポートし、一般的にエコシステム固有の「audit」コマンドよりノイズが少ない)。

(Semgrep/SAST や言語固有の監査ツールなどの他のスキャナーは、後で明示的な --deep モードの背後で追加可能で、ノイズの多いCI失敗を避けられます。)

安全性

  • ファイルの読み取り専用スキャンです。
  • ソースコードをアップロードしません。
  • gitleaks の出力は伏せられ(--redact)、レポートはシークレットを出力しません。
  • osv-scanner はデフォルトでネットワークアクセスを使用してOSVに問い合わせます(deps.devからパッケージメタデータを参照することもあります)。依存関係メタデータを送信しますが、ソースコードは送信しません。

使い方

ローカル

このリポジトリから実行:

# このリポジトリをスキャンし、出力を .repo-security-scan/out に書き込む
bash scripts/repo-security-scan/scan.sh --repo .

# 別のリポジトリをスキャン
bash scripts/repo-security-scan/scan.sh --repo /path/to/target --out /tmp/repo-security-scan-out

# レポートを表示
cat .repo-security-scan/out/report.md

デモ

bash scripts/demo.sh            # このリポジトリをスキャン
bash scripts/demo.sh /path/repo # 対象リポジトリをスキャン

出力物

出力ディレクトリ内(デフォルト: <skill-suite>/.repo-security-scan/out):

  • report.md
  • summary.json
  • gitleaks.json、gitleaks.log
  • osv.json、osv.log

終了コード:

  • 0 検出結果なし
  • 1 検出結果あり
  • 2 スキャナーエラー(ツールの欠落、実行失敗)

設定 / 許可リスト

特定のプロジェクトをスキャンする際は、リポジトリローカルの設定を推奨します:

  • gitleaks:
    • <repo>/.gitleaks.toml
    • <repo>/.gitleaksignore
  • osv-scanner:
    • <repo>/osv-scanner.toml(そのディレクトリにのみ適用)

このスキルスイートには、以下のデフォルト設定も同梱されています:

  • .repo-security-scan/gitleaks.toml
  • .repo-security-scan/.gitleaksignore
  • .repo-security-scan/osv-scanner.toml

特定のosv-scanner設定ファイルを強制する場合:

bash scripts/repo-security-scan/scan.sh --repo /path/repo --osv-config /path/to/osv-scanner.toml

前提条件のインストール

  • macOS:
    • brew install gitleaks osv-scanner jq
  • Ubuntu:
    • sudo apt-get update && sudo apt-get install -y jq
    • gitleaks + osv-scanner をリリースからインストールするか、go install でコンパイルしてください。

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

astra-operator

Delegate computer-use and browser tasks to OpenAI

design-inspo

Find design inspiration from curated gallery sites. Use when a user needs UI/UX references, design examples, or inspiration for specific components (navbars, CTAs, hero sections, landing pages, etc.), full websites, SaaS products, mobile apps, animations, icons, branding, or design systems. Helps select the right inspiration source and browse examples.

graphrag

Build a GraphRAG pipeline over documents. Use when plain vector search returns chunks without connections, when questions need multi-hop reasoning (

mundane-demos

Demo strategy that leads with mundane real-life utility instead of benchmarks. Use when presenting an AI agent or product to non-technical audiences. Covers picking tasks the viewer did this morning, showing end-to-end completion, and letting speed be the wow factor.

release-notes

Generate polished release notes from git history. Use when cutting a release, before publishing a GitHub release, or when you need a changelog from commits between two tags. Groups changes by type, surfaces breaking changes, and drafts highlights.

remotion-product-demos

Create Apple-keynote-quality product demo videos with Remotion. Covers glass phone mockups, floating 3D spheres, typing animations, card UIs, ripple effects, and smooth scene transitions. Use when asked to create product demos, app showcase videos, UI walkthrough animations, or

secure-agent-design

Security architecture patterns for personal AI agents that touch real accounts. Use when designing an agent with access to inbox, calendar, finances, or shopping. Covers per-user isolated VMs, pre-action sentinel checks, least-privilege connectors, human approval gates, and single-use payment credentials.

testimonial-launch

Turn user testimonials into launch distribution. Use when launching a product or feature and you want real user proof to carry the announcement instead of marketing copy. Covers soliciting specific testimonials, curating them, and amplifying via quote-posts.

unisone/openclaw-skill-suite

Create Apple-keynote-quality product demo videos with Remotion. Covers glass phone mockups, floating 3D spheres, typing animations, card UIs, ripple effects, and smooth scene transitions. Use when asked to create product demos, app showcase videos, UI walkthrough animations, or

validator-quotes

Earn and deploy third-party validator quotes for a launch. Use when you need credibility beyond your own claims. Covers who to approach, how to get honest reactions, and how to amplify them via quote-posts, based on the founder/CEO validators behind the Muse launch.

関連スキル