본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

agents-skill-tdd-helper

cerbug45 제작

CLI Utilities
570clawskills.sh가 보고한 다운로드 수
1조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Lightweight helper to enforce TDD-style loops for non-deterministic agents.

설명

이 스킬이 하는 일

tdd-helper wraps task execution to enforce test-first discipline. It refuses to run production code if tests are absent or failing, and can optionally treat lint warnings as errors. Configuration is via environment variables or a JSON file.

Unlike invoking pytest directly, it enforces the test-first constraint at the process level, so agents cannot bypass the cycle even when code is generated dynamically.

사용 시점

  • Blocking agent-generated code from running before tests pass
  • Enforcing test presence in automated pipelines
  • Running pytest suites before executing generated scripts
  • Treating lint warnings as hard errors in CI workflows
  • Guarding non-deterministic agent outputs with regression checks

예시 워크플로

입력

User asks: run my_script.py, but only if all tests in tests/ pass

에이전트
  1. 1

    Agent calls tdd.py with --tests tests/ --run 'python my_script.py'

  2. 2

    tdd.py checks that tests/ exists and contains test files

  3. 3

    tdd.py runs pytest on the test suite

  4. 4

    If any test fails or no tests are found, tdd.py exits with an error and blocks execution

  5. 5

    If all tests pass, tdd.py runs my_script.py

출력

my_script.py executes only after the full test suite passes

설치

clawhub install cerbug45/agents-skill-tdd-helper

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크