Rechercher

PythonReactSEOPDF
OpenClaw

tdd-helper

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

cerbug450 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install cerbug45/agents-skill-tdd-helper

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

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"

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/cerbug45/agents-skill-tdd-helper
Version
—
Commit
d2ac904017560422051e1358dd45b46e4f403927
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

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.

Contenu extrait

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.

Skills associés

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.