agentleFS
lsy041015lsy041015/orchestra/skills/test-driven-development/SKILL.md

test-driven-development

Skill4 starsChanged 2 months agoMITView on GitHub

Use when adding or changing program behavior, fixing a bug, or refactoring behavior that needs regression protection.

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions and 10 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.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • steven123397Skill

    accessibility-engineering

    Audits existing interfaces for WCAG 2.2 AA conformance and remediates the violations found. Use when auditing a page or component for accessibility, running axe-core or pa11y, triaging a11y violations, or checking screen reader and contrast issues before shipping.

    Also in 4 projects that use this

  • LLl0k0laDSkill

    using-agent-skills

    Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.

    Also in 46 projects that use this

  • MrCipherSmithSkill

    constraint-driven-development

    Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.

    Also in 21 projects that use this

  • LLl0k0laDSkill

    git-workflow-and-versioning

    Use when making any code change. Use when committing, branching, resolving conflicts, or when you need to organize work across multiple parallel streams.

    Also in 54 projects that use this

  • +3 more from Leodorareluctant259
  • +2 more from LLl0k0laD

The file

Files
SKILL.md

Behavior-first verification

For a new behavior or bug fix, write a minimal regression test before implementation. Name the production behavior that would make it fail. Run it and confirm RED is the expected assertion failure, not a syntax, import or environment error. Then implement the smallest correct change, observe GREEN, and refactor only while checks remain green.

Tests exercise observable behavior and meaningful boundaries, not mocks or implementation wording. Reuse the project's test setup. Prefer real dependencies where practical; understand side effects before mocking. Keep test-only behavior out of production code. Read writing good tests when designing new or changed tests.

For a behavior-preserving refactor, establish passing coverage before the change and verify it afterwards; do not invent an artificial failure. For docs, formatting and non-behavioral config edits, use relevant diff, parser/schema, render or link checks instead of synthetic unit tests. A config change that affects runtime behavior still needs a behavioral check. Throwaway probes must not be described as production-ready without appropriate verification.

Preserve existing user code. If implementation already exists, add the missing regression and demonstrate it against the original behavior in an isolated copy or a safely reversible task-owned change. Never delete or reset user work to recreate test order. If RED cannot be demonstrated, report that evidence gap; do not claim test-first evidence.

During development run focused checks. Before completion run the project's required checks, including its normal full test command for production code changes, or reuse matching evidence under orchestra:verification-before-completion. A focused pass does not prove a green suite. Report every observed failure and its scope, including pre-existing failures; never imply checks passed when blocked.

Diagnose unexpected failures with orchestra:systematic-debugging. Preserve security, data-loss prevention, accessibility and hardware safety. Do not lower acceptance criteria to save tokens. Record command, state, environment, exit code and log before claiming success.

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.