ワンクリックで
test-analysis
テスト品質を動作カバレッジの観点から分析し、クリティカルなテストギャップを特定する。テストファイルの追加・変更時に使用。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
テスト品質を動作カバレッジの観点から分析し、クリティカルなテストギャップを特定する。テストファイルの追加・変更時に使用。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Enforces error handling standards: silent error prohibition, custom error class hierarchy (AppError base with ValidationError, NotFoundError, InternalError), Result pattern (Result.ok/Result.fail), proper try-catch with error type checking, structured error logging with context metadata, and HTTP status code mapping. Use when implementing error handling, reviewing catch blocks, or designing error responses.
Enforces project coding standards during code review: naming conventions (PascalCase for classes, camelCase for methods/variables, UPPER_SNAKE_CASE for constants, kebab-case for files), standard file structure, anti-magic-number policy, file size limits (500/800 lines), security patterns, and design patterns. Use when reviewing code, writing new code, or checking adherence to project conventions.
Guides test implementation following the test pyramid (75% unit, 20% integration, 5% E2E), Arrange-Act-Assert pattern, and project coverage thresholds (branches 70%, functions 80%, lines 80%, statements 80%). Covers test naming conventions, test independence, mock and stub patterns, test data management with fixtures and builders, and CI integration. Use when writing tests, reviewing test code, or setting up test infrastructure.
Creates and reviews agent skills safely by enforcing deletion-prevention harness rules: no fixed absolute temp paths, no cwd-dependent cleanup, no wildcard deletes, no workspace-external file operations, no silent cleanup failures, and mandatory temp-root validation before any destructive command. Use when creating a new skill, updating an existing SKILL.md, or reviewing prompts/runbooks that include temp files, extraction, cleanup, PowerShell, bash, rm, del, Remove-Item, or archive expansion.
プロジェクトガイドラインへの準拠をチェックし、バグ、スタイル違反、コード品質問題を検出する。PRレビュー時に使用。
機能を保持したまま不要な複雑性を排除し、コードの簡潔性と可読性を向上させる。30行超の関数や3段以上のネスト検出時に使用。
SOC 職業分類に基づく
| name | test-analysis |
| description | テスト品質を動作カバレッジの観点から分析し、クリティカルなテストギャップを特定する。テストファイルの追加・変更時に使用。 |
動作カバレッジの観点からテスト品質を分析し、クリティカルなギャップを特定する。
| 優先度 | 意味 | 例 |
|---|---|---|
| 9-10 | クリティカル | データ損失、セキュリティ、システム障害の可能性 |
| 7-8 | 重要 | ユーザー向けエラーの可能性 |
| 5-6 | エッジケース | 混乱や軽微な問題 |
| 3-4 | Nice-to-have | 完全性のため |
| 1-2 | オプショナル | 改善の余地 |
報告対象: 優先度7以上
# Test Analysis Results
## Critical Gaps (優先度 9-10)
### [機能/関数名]
- ファイル: path/to/file.ts
- テストされていない動作: エラー時のリトライロジック
- リスク: データ損失の可能性
- 優先度: 10
- 推奨テストケース:
- エラー発生時にリトライが実行されることを確認
- 最大リトライ回数後にエラーがスローされることを確認
## Important Gaps (優先度 7-8)
...
## Summary
- Critical Gaps: X
- Important Gaps: X