본문으로 건너뛰기
cccskills
무료GitHub에 공개

review-test

テストコードのレビュー。テストピラミッド・フレーク・ミューテーション・カバレッジゲート・契約テストを検証する。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ax-inc-dev/claude-cursor-orchestration스타 3(GitHub 3 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Purpose

テストの意味・フレーク・ピラミッド・契約を変更差分から検証し、虚偽の緑や重要分岐の未検証を重大度付きで返す。

When to Use

  • テスト追加・変更がある PR または並列レビュー
  • 契約/API テスト・E2E の配置を見直すとき
  • フレークや遅いテストが増えているとき
  • カバレッジ閾値を変更するとき
  • ミューテーションテストや契約テストを導入する場合

Review Checklist — CONCRETE items (test quality)

Test pyramid(ピラミッド)

  1. 単体・統合・E2E の比率が変更のリスクに見合うか。高コスト E2E の過剰化を指摘。
  2. 重要なビジネスルールが単体で十分に縛られているか。

Flakes(フレーク) 3. 時間依存・await なし・共有可変状態・グローバル乱数・並列実行の競合。 4. ネットワーク・外部 I/O をモックせずに不安定なテストになっていないか。

Mutation testing(ミューテーション) 5. ミューテーションテストや同等の厳しさを導入している場合、アサーションが弱いかを確認。 6. 意味のあるアサーションか(expect(true).toBe(true) 等を禁止)。

Coverage gates(カバレッジゲート) 7. カバレッジ数値だけでなく 分岐・重要パス がカバーされているか。 8. カバレッジ閾値を下げる変更の正当性(リスクの説明)。 9. 未カバーが Critical パスに触れていないか。

Contract / API tests(契約) 10. スキーマ・OpenAPI・consumer-driven contract(該当時)とテストが同期しているか。 11. 破壊的変更を検知する契約テストの有無。

その他 12. テストデータの決定性(シード・固定時刻・ファクトリ)。 13. モック過多による虚偽緑(実挙動と乖離)。 14. 統合テストの置き場(DB・コンテナ)と速度のトレードオフ。 15. テストの名前・Given-When-Then が意図を読ませるか。 16. セットアップ・ティアダウンの漏れ(リーク・汚染)。 17. スナップショットテストの過剰・メンテ負債。 18. テストの並列化・分離(ファイルシステム・DB のスコープ)。 19. 回帰のための最小テスト追加(YAGNI と両立)。 20. セキュリティ・認可の分岐は専用テストで触れているか(該当時)。 21. パフォーマンス/ベンチテストの扱い(該当時)。 22. テスト失敗時のメッセージがデバッグに役立つか。

Anti-Bias Guardrails

  1. Read the actual code/content FIRST. Do not output a verdict before reading.
  2. Every finding must cite file + line or plan section. No abstract prose.
  3. Cite evidence, not vibes. Phrases like "looks clean" / "seems fine" are forbidden — quote evidence or admit uncertainty.
  4. If you cannot verify, say "UNVERIFIED: [reason]" instead of assuming OK.
  5. Forbidden phrases when concluding: "probably fine", "seems good", "should work". Use verifiable assertions.
  6. Review length must be at least 20% of target length when target > 500 LOC, or ≥ target length when smaller.
  7. Do NOT grade above B if any rubric-triggering finding exists.
  8. 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

SeverityDefinition — TechnicalDefinition — Business/Strategy
CriticalShip-blocking: data loss, security breach, outage risk, legal violationFundamental misreading of client business, data numbers wrong at >20% magnitude, strategy that harms client economics
HighIncorrect behavior affecting key user flow / KPIKPI mis-definition, broken causal logic (e.g. AI-KPI not connected to economic value), framework mis-use, missing strategic selection
MediumQuality, maintainability, minor performanceIncomplete scenarios, unclear responsible party, placeholder ratio >30%
LowStyle, nice-to-have, docs polishMinor 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

  • 実装追従のみのテストで重要分岐を抜かす。
  • フレークを「たまに」で許容する。
  • モックだらけで本番コードのパスを検証していない。
  • カバレッジ % だけを見て安心する。
  • 契約テストなしで API 変更を承認する。

Workflow (Codex)

  1. Read target: テストファイル・設定・カバレッジレポートを特定。
  2. Skim: 何を守るテストか(対象製品コード)を列挙。
  3. Deep-read: ピラミッド → フレーク・決定性 → 契約・カバレッジゲート → ミューテーション相当。
  4. Cite: file:line。
  5. Grade: 集計。
  6. Verdict: Output Contract → review-summary。

Machine Gate

レビュー本文の 最終行 は Output Contract の review-summary フェンス(キー固定: grade, verdict, critical, high, medium, low)とする。省略・キー名変更は禁止。

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

B2B サイトの戦略・情報設計。価値提案・メッセージマップ・ジャーニー導線・意思決定マップ・信頼棚卸・トーン/禁止表現まで一気通貫でテンプレ化する。実装前フェーズ専用(全PJ共通)。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ax-inc-dev/claude-cursor-orchestration32026년 4월 25일 업데이트

babysit

무료

Keep a PR merge-ready by triaging comments, resolving clear conflicts, and fixing CI in a loop.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ax-inc-dev/claude-cursor-orchestration32026년 4월 25일 업데이트

法人向けHTMLプレゼンスライドの実装エンジン。Claude Codeから指示書(アウトライン+テンプレート指定+カラー+コンテンツ)を受け取り、単一HTMLファイルとして実装する。43種テンプレート+14種アニメーション。トリガー:プレゼン実装、スライドHTML生成、提案資料コーディング。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ax-inc-dev/claude-cursor-orchestration32026년 4월 25일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ax-inc-dev/claude-cursor-orchestration32026년 4월 25일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ax-inc-dev/claude-cursor-orchestration32026년 4월 25일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ax-inc-dev/claude-cursor-orchestration32026년 4월 25일 업데이트

ax-inc-dev의 스킬 모두 보기

이 스킬의 문제 신고