APIエンドポイントの追加・変更で、DTO、入力検証、OpenAPI仕様、MCPツールの説明や公開範囲を揃え、エージェントからも扱いやすいAPIに整えます。
- APIエンドポイントを追加したいとき
- DTOと入力検証を整えたいとき
- MCPツールとしてAPIを公開したいとき
APIや認証、データベース、ファイル処理などの変更を確認し、アクセス制御や入力処理に関わる重大な脆弱性を特定して、確認できた問題を修正します。
Check code for the most common, high-risk security vulnerabilities (broken access control, tenant isolation, injection, secrets, SSRF, auth/session, unsafe file handling, mass assignment) before it ships. Use after editing any API controller, guard, or auth code (apps/api/src/auth/**), a Prisma schema/query, a file-upload/webhook handler, or before committing/pushing security-sensitive changes.
実行スコア 未検証
インストール方法を見る変更されたコードを対象に、アクセス制御の不備、組織間のデータ分離漏れ、インジェクション、秘密情報の露出、SSRF(外部URLへの意図しないリクエスト)、認証やセッションの問題、安全でないファイル処理、過剰な項目更新などを確認します。重大な問題はコード上で確認してから修正し、判断が必要な問題や優先度の低い指摘は、深刻度・場所・影響・修正案とともに報告します。一般的な lint や依存ライブラリの脆弱性を重複して指摘する用途ではありません。
APIコントローラーやサービス、認証・認可、Prismaのスキーマやクエリ、ファイルアップロード、Webhook、外部URLへのリクエストを変更したときに向いています。セキュリティに関わる変更をコミットする前の確認にも使えます。
修正後はbunx turbo run typecheck --filter=@trycompai/api --filter=@trycompai/appを実行します。認証や帰属情報の変更には回帰テストを追加します。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Review code for high-risk security vulnerabilities and fix confirmed high-severity issues immediately. Complements CI (CodeQL/Dependabot/SBOM) by catching logic/design flaws those miss — do not re-flag dependency CVEs or generic lint.
$ARGUMENTS names files/dirs, review those.git diff --name-only origin/main...HEAD (fall back to git diff --name-only for uncommitted work). Skip generated files, lockfiles, and *.spec.ts (unless the change is in a spec).Review whenever the change touches a trust boundary or a resource — judge by behavior, not path. That includes: any controller or service (services are where IDOR, tenant-scoping, and mass-assignment bugs actually live), Next.js route handlers (app/api/**, route.ts), Trigger.dev jobs (apps/api/src/trigger/** — SSRF, elevated context), guards/auth (apps/api/src/auth/**, packages/auth/**), any Prisma query (especially lookups/updates/deletes by a client-supplied id → IDOR), middleware, file upload/storage, webhooks, outbound requests to a dynamic URL, crypto/token handling, and any frontend that renders user-supplied HTML or builds redirects from input.
Only if the change is genuinely non-security (pure presentation, types, copy, config with no secrets) — say so and stop, don't invent findings.
Dispatch the security-reviewer agent on the scoped files. For a broad review (a full PR / many files), fan out parallel security-reviewer agents by dimension group so coverage is thorough:
@RequirePermission, API-key/service-token scope enforcement, authz-vs-attribution, IDOR, organizationId scoping.dangerouslySetInnerHTML/unsanitized HTML, ...dto spread into create/update.The agent's full checklist lives in .claude/agents/security-reviewer.md.
For each P1/P2 finding, adversarially verify before acting: dispatch one security-reviewer (or read the code yourself) prompted to refute it — trace the guard→controller→service→DB path. Drop anything that can't be confirmed. Attribution-only use of a resolved actor, org-scoped queries, and parameterized Prisma are NOT findings.
P1/P2 issues immediately (mirror the surrounding code; add a regression test for auth/attribution changes).P3s and anything needing a product decision, with severity · file:line · exploit/impact · fix.bunx turbo run typecheck --filter=@trycompai/api --filter=@trycompai/app after fixes.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
APIエンドポイントの追加・変更で、DTO、入力検証、OpenAPI仕様、MCPツールの説明や公開範囲を揃え、エージェントからも扱いやすいAPIに整えます。
既存コードのデザインシステム利用状況を調べ、旧UI部品やlucide-reactのアイコンを@trycompai/design-systemの部品・Carbonアイコンへ置き換えるスキルです。
指定されたファイルのフックやAPI利用を点検し、禁止パターンをSWRやapiClientなどの指定方式へ修正するための監査手順と実装規約をまとめています。
NestJSのAPIとフロントエンドを調べ、権限チェックや監査ログのルール違反を修正するための確認項目を示します。
権限で表示や操作が変わるコンポーネントの単体テストを点検し、不足分の追加や失敗の修正を行って、管理者と閲覧専用ユーザーの動作を確かめます。
Better Authを使ったTypeScript認証の設定を支援し、データベース接続、セッション管理、メール認証、OAuth、プラグインやセキュリティ項目を整理します。