tdd-driver — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited tdd-driver (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Implement ステージでテスト先行 (Red → Green → Refactor) を強制する skill です。本プロジェクトのワークフロー (docs/workflow.md) における Implement ステージを担います。
... → spec-leader (Plan 完了) → [tdd-driver (本 skill)] → developer agents → Verify本 skill は Plan のタスクを developer agent に割り当てる前に「テストが先に書かれているか」を確認する門番として機能します。Phase 4 で PreToolUse hook が追加された際、本 skill の呼び出し前処理と hook の両方で強制が効く二重防御になります。
spec-leader が Implement ステージに入った直後、本 skill を自動起動。入力: Plan ファイルパス。
Plan のチェックボックス T-1, T-2, ... を順番 (または Plan §5.2 の DAG に従って並列) に処理:
[x] にマーク、次タスクへPhase 4 で PreToolUse hook にする前に、Phase 3 では skill 内で同等のチェックを行います。
Edit / Write の対象が「実装ファイル」(src/ / lib/ / internal/ 配下等) なら:
<file>.test.ts, test_<file>.py, <file>_test.go 等) の存在を確認pass している状態で実装変更する場合、「テストを赤にしてから実装を始めてください」と促す編集後は関連テストを実行 (npm test <file> 等)。Phase 4 では PostToolUse hook で自動実行。
developer agent に渡す指示テンプレート:
タスク: T-N (<タスク名>)
Spec: worktrees/<spec-name>/specs/<spec-name>.md §<章>
Plan: worktrees/<spec-name>/plans/<spec-name>.md §5.1 T-N
【前提: テスト先行の遵守】
1. 先にテストを書く (実装が無いため Red 確認)
2. 最小実装で Green
3. Refactor
【成果物】
- テストファイル (<パス>)
- 実装ファイル (<パス>)
- コミット (テストと実装は分けても良いが同一 PR)Plan §5.2 で並列可能とされたタスク群を developer agent に並列起動する場合:
Phase 4 で PreToolUse hook を追加する際、本 skill は以下の方針で共存します。
| 責務 | Phase 3 (本 skill) | Phase 4 (hook 追加後) |
|---|---|---|
| テスト存在の確認 | skill 内でチェック | PreToolUse hook で物理的にブロック |
| テスト先行の指導 | skill が developer agent に指示 | 本 skill 継続 (hook は機械的判定のみ、思想は skill) |
| Refactor の促進 | skill 内で促す | 本 skill 継続 |
hook 追加時、本 skill §5 のチェック部分は hook 側に移り、skill は指導 / 促進に集中します。skill のインタフェース (developer agent への指示形式) は変更不要です。
[x] にマークする~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.