B2B サイトの戦略・情報設計。価値提案・メッセージマップ・ジャーニー導線・意思決定マップ・信頼棚卸・トーン/禁止表現まで一気通貫でテンプレ化する。実装前フェーズ専用(全PJ共通)。
review-security
変更差分のセキュリティレビュー。OWASP Top 10 を起点に認証・認可・秘密・入力・依存関係を検証する。
実行スコア 未検証
インストール方法を見る含まれるファイル(1)
- SKILL.md6.9 KB
SKILL.md(原文)
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Purpose
OWASP 系・認証認可・機密・サプライチェーンを diff から検証し、悪用可能な欠陥を重大度付きで返す。
When to Use
- 並列レビューのセキュリティ柱として常に 1 本走らせるとき
- 認証・認可・秘密・入力・依存更新を触るとき
- API 公開・ファイルアップロード・管理画面を変更するとき
- インフラと重なる場合は infra スキル と役割分担し、重複は明示する
Review Checklist — CONCRETE items (security + OWASP Top 10 2021)
OWASP Top 10 2021(各項目に少なくとも 1 つの検証を当てる)
- A01 Broken Access Control: オブジェクト ID 直指定・権限昇格・管理 API の認可抜け。多テナント境界。
- A02 Cryptographic Failures: 不適切な暗号化・鍵管理・ハードコード秘密・TLS 設定の欠落(該当時)。
- A03 Injection: SQL/NoSQL/OS/LDAP インジェクション、テンプレートインジェクション、コマンド注入。
- A04 Insecure Design: 脅威モデルなしの設計(レート制限なし・無制限リトライ等)。セキュアデフォルトの欠如。
- A05 Security Misconfiguration: デバッグ有効・デフォルト認証情報・過剰エラー詳細・CORS 設定ミス。
- A06 Vulnerable and Outdated Components: 依存の既知 CVE・EOL ライブラリ・ロックファイル未更新。
- A07 Identification and Authentication Failures: 認証バイパス・弱いパスワードポリシー・セッション固定・MFA 不足(該当時)。
- A08 Software and Data Integrity Failures: 署名なし更新・サプライチェーン・CI の信頼境界。
- A09 Security Logging and Monitoring Failures: 認可失敗・認証失敗の記録漏れ、アラート不在、改ざん耐性。
- A10 Server-Side Request Forgery (SSRF): 内部メタデータ・内ネットワークへの任意リクエスト。
追加 11. シークレット管理: Secret Manager / env、リポに平文なし。 12. CORS / CSRF(該当時)の整合性。 13. クライアント露出(API キー・トークン)を禁止。 14. ファイルアップロード: MIME/拡張子・サイズ・ストレージパストラバーサル。 15. レート制限・ブルートフォース対策(該当時)。 16. SBOM / 既知 CVE の匂い(スキャン結果が無ければ UNVERIFIED)。 17. ログへのトークン・PII 混入。 18. 認可とビジネスロジックの二重チェック(クライアントのみの制限禁止)。 19. サードパーティスクリプト・サブリソース整合性(該当時)。 20. コンテナ/イメージのユーザー権限・read-only root(該当時)。 21. 依存の固定バージョンと更新方針。 22. セキュリティヘッダー(CSP/HSTS 等、該当時)。
Anti-Bias Guardrails
- Read the actual code/content FIRST. Do not output a verdict before reading.
- Every finding must cite file + line or plan section. No abstract prose.
- Cite evidence, not vibes. Phrases like "looks clean" / "seems fine" are forbidden — quote evidence or admit uncertainty.
- If you cannot verify, say "UNVERIFIED: [reason]" instead of assuming OK.
- Forbidden phrases when concluding: "probably fine", "seems good", "should work". Use verifiable assertions.
- Review length must be at least 20% of target length when target > 500 LOC, or ≥ target length when smaller.
- Do NOT grade above B if any rubric-triggering finding exists.
- End with the mandatory machine gate JSON block for THIS skill (review-summary / review-briefing / acceptance-plan as specified in Machine Gate section) — DO NOT omit, DO NOT vary the keys.
Output Contract
総合評価: A / B / C / D
- A: 即プロダクション投入可(0 Critical, 0 High, 0 Medium)
- B: 軽微修正で出せる(0 Critical, 0 High, ≤3 Medium)
- C: Critical/High 指摘あり、修正必須
- D: 根本設計問題、やり直し推奨
強み (3-5 bullets, 具体参照付き)
- 強み1 — file:line or section ...
重大な問題 (Critical/High)
- [Critical] path/file.ts:42 — 指摘と修正提案
- [High] docs/plan.md §3.2 — 指摘と修正提案
改善推奨 (Medium/Low, ROI高い順)
- [Medium] ... — ...
- [Low] ... — ...
結論: YES / WITH EDITS / NO
WITH EDITS — 一行理由(例: Critical なし、High 2件修正で出荷可)
{"grade": "B", "verdict": "WITH EDITS", "critical": 0, "high": 0, "medium": 2, "low": 3}
Scoring Rubric
| Severity | Definition — Technical | Definition — Business/Strategy |
|---|---|---|
| Critical | Ship-blocking: data loss, security breach, outage risk, legal violation | Fundamental misreading of client business, data numbers wrong at >20% magnitude, strategy that harms client economics |
| High | Incorrect behavior affecting key user flow / KPI | KPI mis-definition, broken causal logic (e.g. AI-KPI not connected to economic value), framework mis-use, missing strategic selection |
| Medium | Quality, maintainability, minor performance | Incomplete scenarios, unclear responsible party, placeholder ratio >30% |
| Low | Style, nice-to-have, docs polish | Minor inconsistencies, stylistic variation |
The Verdict decision tree and Grade map apply regardless of which column (Technical vs Business/Strategy) grounds a finding.
Verdict decision tree:
- ≥1 Critical → verdict "NO"
- ≥2 High OR ≥6 total issues → verdict "NO"
- 0 Critical, 0 High, ≤3 Medium → verdict "WITH EDITS"
- 0 Critical, 0 High, 0 Medium → verdict "YES"
Grade map:
- A: 0 Critical, 0 High, 0 Medium
- B: 0 Critical, 0 High, ≤3 Medium
- C: ≥1 Critical OR ≥2 High OR ≥4 Medium
- D: ≥2 Critical OR fundamental architectural issue
Common Pitfalls
- 「フレームワークが守る」前提で認可を読まない。
- ログにトークンや秘密を出してしまう。
- IDOR(他ユーザーデータ参照)を見逃す。
- 依存更新を見ずに「問題なさそう」とする。
- OWASP 項目を列挙せずに抽象的な指摘だけにする。
Workflow (Codex)
- Read target: 認証・認可・入力・依存・設定ファイルを特定。
- Skim: エントリポイントとデータ境界。
- Deep-read: A01→A10 の順に当てはめ、追加チェックを続ける。
- Cite:
file:lineと OWASP 項目を対応。 - Grade: 集計。
- Verdict: Output Contract →
review-summary。
Machine Gate
レビュー本文の 最終行 は Output Contract の review-summary フェンス(キー固定: grade, verdict, critical, high, medium, low)とする。省略・キー名変更は禁止。
レビュー
まだレビューはありません。使ってみた感想をお寄せください。
コメント
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
同じリポジトリのスキル
babysit
無料Keep a PR merge-ready by triaging comments, resolving clear conflicts, and fixing CI in a loop.
日本語の概要は準備中です。原文の説明を表示しています。
法人向けHTMLプレゼンスライドの実装エンジン。Claude Codeから指示書(アウトライン+テンプレート指定+カラー+コンテンツ)を受け取り、単一HTMLファイルとして実装する。43種テンプレート+14種アニメーション。トリガー:プレゼン実装、スライドHTML生成、提案資料コーディング。
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
日本語の概要は準備中です。原文の説明を表示しています。
canvas
無料A Cursor Canvas is a live React app that the user can open beside the chat. You MUST use a canvas when the agent produces a standalone analytical artifact — quantitative analyses, billing investigations, security audits, architecture reviews, data-heavy content, timelines, charts, tables, interactive explorations, repeatable tools, or any response that benefits from visual layout. Especially prefer a canvas when presenting results from MCP tools (Datadog, Databricks, Linear, Sentry, Slack, etc.) where the data is the deliverable — render it in a rich canvas rather than dumping it into a markdown table or code block. If you catch yourself about to write a markdown table, stop and use a canvas instead. You MUST also read this skill whenever you create, edit, or debug any .canvas.tsx file.
日本語の概要は準備中です。原文の説明を表示しています。
Authors Cursor Rules (.cursor/rules/*.mdc) and custom Subagents (.cursor/agents/*.md or ~/.cursor/agents). Use when creating or refactoring rules/subagents, splitting large rules, choosing subagent vs skill, setting model/readonly/background, or replacing repeated delegation prompts.
日本語の概要は準備中です。原文の説明を表示しています。