agentleFS
orbyn-devorbyn-dev/orbyn-fullstack-skills/skills/tdd/SKILL.md

tdd

Skill4 starsChanged 10 days agoMITView on GitHub

Design focused contract tests, failing-before regressions or verification of critical properties; use for requested TDD, model checking and verification drift, with practical boundaries and explicit evidence limits.

195 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use capture-learning-tools, design-frontend-dev and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • The-Vibe-CompanySkill

    capture-learning-tools

    Turn technical conversations, bugs, CI failures, review comments,

    Also in 5 projects that use this

  • The-Vibe-CompanySkill

    design-frontend-dev

    Clean Impeccable frontend design skill. Use when the user wants to

    Also in 5 projects that use this

  • tristanphvnSkill

    ketchup-video

    Catch the user up like /keel:ketchup, with a short silent video of slides for what happened and the waiting calls as text under it. Use for /keel:ketchup-video.

    Also in 14 projects that use this

  • jaydubya818Skill

    principle-laziness-protocol

    Apply when a refactor is adding wrappers or abstractions instead of simplifying.

    Also in 45 projects that use this

  • jaydubya818Skill

    principle-minimize-reader-load

    Apply when layers, wrappers, or hidden state make simple behavior hard to follow.

    Also in 45 projects that use this

  • +2 more from The-Vibe-Company
  • +4 more from jaydubya818

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 186 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the consuming project's instructions and requested scope.

    line 8
  2. Distinctive:

    No production databases or unapproved live-provider calls.

    line 49

“Common” is measured: kept by at least 6 in 10 of the 186 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

TDD

Follow the consuming project's instructions and requested scope; use the portable defaults only where guidance is missing.

Respect tests excluded by the current user, session or consumer policy; this skill grants no production or live-provider authority.

Do we need a unit test here?

Decide before writing one. Tests are for where they earn their place.

SituationChoice
Deterministic code where a silent break is costly: moving or deleting files, secrets, money, stored data, parsing, security boundaries, or a fixed bug that could returnUnit test
Agent behaviour and whole outcomesAn answer-key check or an eval
Skill text and docs, thin glue, one-off scripts, or anything an existing test or type check already coversNeither; UI gets a visual check instead

Record the choice in one line in the task record or PR evidence, for example Tests: none, docs only or Tests: unit, deletes files.

Method

  1. Freeze the observed defect, expected invariant and the smallest observable contract at a practical authorized test boundary. Use the reproduction contract for baseline, fixture and runner discovery.
  2. Write one regression at the owning boundary (the repository's preferred layer, cover each behavior once), exercising the actual production path rather than a copy of the implementation. Assert state or externally meaningful behavior rather than private helper calls; two-edit check. Keep mocks on unavailable effects at real effect/adaptor boundaries, away from private helper choreography.
  3. Run it against the unchanged candidate first. Confirm the intended test actually ran; zero selected tests, an unrelated setup error or a skipped mode is not regression proof. Check that it fails for the reported contract violation, not a missing dependency or broken fixture. Retain failing attempts.
  4. Make the smallest coherent production correction, then rerun the same case, directly affected controls and relevant adjacent cases. Never weaken assertions to obtain green. Adding the regression to the existing test file is expected; a key that restores protected tests judges the fix by the original tests.
  5. Extend one failing contract at a time from observed behavior. Confirm the first signal catches the defect before writing more, rather than a speculative batch.
  6. Refactor only after the meaningful signal is green. Internal reorganization should preserve useful behavior tests, so keep contract tests rather than coupling them to the new implementation.

For a stale version write, place the regression at the API/version boundary. Arrange an existing record and newer version, send the stale mutation, and assert both rejection and unchanged persisted data. A snapshot of the error string alone misses a write that succeeds before returning an error. Include a legitimate current-version control when it distinguishes an overbroad rejection. Add a UI check only when the changed user flow needs separate evidence and that check is authorized.

A model that reviews its own code repeats the blind spot that produced it, so its "looks correct" is not evidence. Give every fixed bug an automated test, and make it cover every path that can reach the bug, including the alternate ones (sandbox and production, flag on and off, cached and fresh). Synthetic example: a field was added to the production query but not the sandbox one; a test run over both modes fails at once.

When the ideal test is out of reach

  • Baseline execution unavailable: record that limit. A passing new test without a demonstrated baseline failure is weaker regression evidence, so state that distinction and do not call it failing-before evidence.
  • The practical test requires unrelated harness churn or unrealistic mocks: explain the limitation and use the closest authorized evidence.
  • No production databases or unapproved live-provider calls. Production databases and paid providers require their own applicable authority. Read development for guarded database and package prerequisites.

Read when needed

  • A repair that retains a previously ignored value: the propagated-value method.
  • A critical invariant, event-order race, explicit formal verification request or stale verification model: property verification and its drift review. Choose tools from the property and real code, agree the intent both ways, list what the proof trusts, plant a failing control per clause, and distinguish model results from implementation evidence. Skip the formal model for ordinary small UI edits.
  • Requested test design: test strategy to select the real boundary, fixtures, failure controls and execution scope. A plan can be the requested output; this skill does not turn every test request into mandatory production edits.
  • Model-powered application quality: pair deterministic permission/state tests with task evaluations. A correct schema or one expected answer is not a reliability estimate; preserve held-out cases, repeated-trial failures and critical slices. Ordinary deterministic changes do not require live model calls.
  • Clocks, async cleanup, readiness, module identity or runner legs that can hide the assertion: test reliability. Preserve actual production/fixture boundaries and first-attempt evidence.
  • Actual Expo/RN requested-screen, binary/device and native evidence: mobile verification. Deterministic fixtures and screenshots do not close missing platforms or paid-service cells.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.