agentleFS
seankoji-comseankoji-com/.agents/skills/test-writer/SKILL.md

test-writer

Skill2 starsChanged 10 days agoMITView on GitHub

Use when writing or reviewing tests, choosing regression coverage, or assessing test value, reliability and CI runtime.

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use debug-fix, changelog-writer 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.
  • zebbernSkill

    debug-fix

    Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)

    Also in 4 projects that use this

  • zbruhnkeSkill

    changelog-writer

    Maintain CHANGELOG.md with properly categorized entries. Use after implementing features, fixing bugs, or making any notable changes. Follows Keep a Changelog format.

    Also in 5 projects that use this

  • glinckerSkill

    readme-generator

    Generates comprehensive README.md files for software projects by analyzing codebase structure

    Also in 4 projects that use this

  • JohnJBorenSkill

    debugger

    Systematic debugging workflows, root cause analysis, and troubleshooting patterns

    Also in 3 projects that use this

  • get-proofpilotSkill

    context-budget

    Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.

    Also in 3 projects that use this

  • nimbalystSkill

    prd-writer

    Create structured Product Requirements Documents (PRDs) with prioritized requirements. Use when writing product specs, feature requirements, or project briefs.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 7

    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:

    Prefer high-value tests over high coverage.

    line 10
  2. Distinctive:

    Read the behavior, repository test rules and existing protection.

    line 22
  3. Distinctive:

    When a test emulates another project's behavior, cite its upstream revision, matching the deployed version.

    line 33
  4. Distinctive:

    Prefer testing the actual system when practical within the execution budget.

    line 36
  5. Distinctive:

    Run required checks and relevant failure cases.

    line 39
  6. Distinctive:

    Before adopting an existing test bundle, apply proof quality.

    line 42
  7. Distinctive:

    Read the audit reference for suite-wide reviews or costly test removal.

    line 52

“Common” is measured: kept by at least 6 in 10 of the 27 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

Write tests worth running

Philosophy

Prefer high-value tests over high coverage. Every test should catch a plausible, consequential failure and justify its runtime, maintenance and debugging cost. Coverage percentages, test counts and test-level ratios are not quality targets.

Required CI execution has a hard ten-minute (600-second) cap. It covers setup, build, checks and reporting along the pipeline's critical path, excluding queue delay. Measure queue delay separately and report its effect on total feedback time. Treat execution over the cap as a design problem, not an acceptable price for more coverage.

Workflow

  1. Read the behavior, repository test rules and existing protection. Name the consequential failure and the gap each new test addresses. Prioritize regressions, important user behavior, rejection and recovery. Skip additions when existing protection suffices or a low-impact edit has no meaningful behavior to protect.
  2. Choose the cheapest level that detects the real failure. Use small, deterministic fixtures, observable assertions and independently derived expected results. Mock unstable boundaries without mocking away the behavior under test. Avoid duplicates, implementation mirrors and snapshots that cannot be usefully reviewed. When a fixture removes or shims executables, especially credential, network or deploy tools, set a closed PATH or absolute commands before the first run so a missing shim cannot fall through to the real host tool. When a test emulates another project's behavior, cite its upstream revision, matching the deployed version. Derive fixtures from upstream special cases and identify exclusions. Name that emulator and revision in the review brief. Prefer testing the actual system when practical within the execution budget; do not make a passing approximation the only oracle for production inputs.
  3. For regressions, verify failure before the fix and success afterward when feasible. Run required checks and relevant failure cases. Investigate flakes instead of hiding them with retries, longer timeouts or weaker assertions. Report verification gaps plainly. Before adopting an existing test bundle, apply proof quality; stale output after a failed launch is not evidence for a new run.
  4. Enforce the 600-second execution cap across the required dependency path, including setup, build, checks and reporting. Measure per-job runtime, critical path execution, queue delay, total elapsed feedback and runner cost separately; do not sum parallel jobs as elapsed execution. If over budget, repair the bottleneck within authority or report the blocker. Never weaken assertions, skip required checks or treat a timed-out run as a pass to meet the cap.

Read the audit reference for suite-wide reviews or costly test removal; establish retained and lost detection before recommending removal. The optional timing helper summarizes observations, not elapsed CI time or causal speedup.

Outputs

Report protection added, checks/results, runtime impact and gaps in the requested format. A short answer can stay in chat. Distinguish local timings, current-head hosted CI and estimates. Unmeasured CI cost does not prove budget compliance. Delegates return complete plain-text reports to their coordinator. In T3 Code, only the main-thread coordinator uses html_preview then html_render for substantive suite audits and timing comparisons; use readable text when native HTML is unavailable or the result is brief.

Boundaries

Reuse existing authority. Auditing alone does not authorize test deletion, runner spending, CI policy changes or publication. Preserve unrelated work. Efficiency must preserve useful protection.

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.