Search

PythonReactSEOPDF
OpenClaw

tdd-helper

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

cerbug450 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install cerbug45/agents-skill-tdd-helper

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

tdd-helper

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

Features

  • tdd.py wraps a task: fails if tests are absent or failing, refuses to run "prod" code first.
  • Watches for lint/warnings (optional) and blocks on warnings-as-errors.
  • Simple config via env or JSON.

Usage

# Define tests in tests/ or specify via --tests
python tdd.py --tests tests/ --run "python your_script.py"

Source information

Source
github
Repository
openclaw/skills
Path
skills/cerbug45/agents-skill-tdd-helper
Version
—
Commit
d2ac904017560422051e1358dd45b46e4f403927
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

Skill: tdd-helper (forcing function for agents)

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

Features

  • tdd.py wraps a task: fails if tests are absent or failing, refuses to run "prod" code first.
  • Watches for lint/warnings (optional) and blocks on warnings-as-errors.
  • Simple config via env or JSON.

Usage

# Define tests in tests/ or specify via --tests
python tdd.py --tests tests/ --run "python your_script.py"

If tests fail or missing -> stops. If tests pass -> runs the command.

Config

  • --tests path (default: tests/)
  • --run command to execute after tests are green
  • WARN_AS_ERROR=1 to block on pylint/ruff warnings (optional hook)

Why

For agents whose output varies, TDD is the forcing function to keep quality deterministic: red → green → refactor. This helper makes “no tests, no run” the default.

Extracted content

SKILL.md
# tdd-helper

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

## Features
- `tdd.py` wraps a task: fails if tests are absent or failing, refuses to run "prod" code first.
- Watches for lint/warnings (optional) and blocks on warnings-as-errors.
- Simple config via env or JSON.

## Usage
```bash
# Define tests in tests/ or specify via --tests
python tdd.py --tests tests/ --run "python your_script.py"
```
README
# Skill: tdd-helper (forcing function for agents)

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

## Features
- `tdd.py` wraps a task: fails if tests are absent or failing, refuses to run "prod" code first.
- Watches for lint/warnings (optional) and blocks on warnings-as-errors.
- Simple config via env or JSON.

## Usage
```bash
# Define tests in tests/ or specify via --tests
python tdd.py --tests tests/ --run "python your_script.py"
```

If tests fail or missing -> stops. If tests pass -> runs the command.

## Config
- `--tests` path (default: tests/)
- `--run` command to execute after tests are green
- `WARN_AS_ERROR=1` to block on pylint/ruff warnings (optional hook)

## Why
For agents whose output varies, TDD is the forcing function to keep quality deterministic: red → green → refactor. This helper makes “no tests, no run” the default.

Related skills

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.