ワンクリックで
test-and-fix-loop
Use after writing or modifying code to enforce the mandatory write → test → fix → repeat validation cycle.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use after writing or modifying code to enforce the mandatory write → test → fix → repeat validation cycle.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use for general product implementation work that is not primarily backend architecture, pure integration wiring, or screenshot-driven design-to-code.
Use when backend work requires contract-first thinking, schema changes, permission checks, side-effect analysis, or test planning.
Use immediately after codebase discovery to classify task scale and determine which workflow steps are required vs. optional.
Use when the user provides screenshots, mockups, or design assets and wants implementation that stays visually close to the source.
Use when the main deliverable is maintainable documentation such as repository rules, onboarding guides, runbooks, ADRs, or architecture notes.
Use when encountering compile errors, test failures, runtime exceptions, or unexpected behavior during implementation.
| name | test-and-fix-loop |
| description | Use after writing or modifying code to enforce the mandatory write → test → fix → repeat validation cycle. |
Use this skill to enforce iterative validation after every code change.
┌─────────────┐
│ Write code │
└──────┬──────┘
▼
┌─────────────┐
│ Run tests │ ← project test command (e.g., go test ./..., npm test, pytest)
└──────┬──────┘
▼
┌─────────────┐
│ Run lint │ ← project lint command (e.g., go vet, eslint, mypy)
└──────┬──────┘
▼
Pass? ──No──► Fix errors (minimal change) ──► Re-run from top
│
Yes
▼
┌─────────────┐
│ Done │
└─────────────┘
Adapt testing intensity based on the task scale from the demand-triage skill:
When adding new behavior (not fixing a bug in existing code), consider writing test expectations before implementation:
This is a recommendation, not a mandate. Use test-first when:
Do not force test-first when:
Check in order:
Makefile or Taskfile.yml → look for test, lint, check targetspackage.json → scripts.test, scripts.lintpyproject.toml / setup.cfg → pytest configurationgo.mod → go test ./...Cargo.toml → cargo testpom.xml / build.gradle → mvn test / gradle testREADME.md, CONTRIBUTING.md, or the adoption guide) → validation or verification commandsIf no test command is identifiable, state that explicitly.
Before marking the validation loop as complete, verify: