원클릭으로
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: