AGENT SKILL

testing

Use when implementing any feature or bugfix and a test-driven approach is appropriate (red-green-refactor, seams-first), or when the user asks to find testing gaps, mutation test, or identify surviving mutants. Unit and integration tests only; browser journeys go to e2e-testing, test infrastructure to observability-quality, completion claims to gates.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 0
Forks
1

01 前言 Front Matter

name
testing
triggers
[ "user", "model" ]
description
Use when implementing any feature or bugfix and a test-driven approach is appropriate (red-green-refactor, seams-first), or when the user asks to find testing gaps, mutation test, or identify surviving mutants. Unit and integration tests only; browser journeys go to e2e-testing, test infrastructure to observability-quality, completion claims to gates.

02 资源文件 5

03 SKILL.md 正文

Testing

Two modes; full detail in modes/<mode>.md. Reference: reference/writing-good-tests.md, reference/mocking.md, reference/tests.md.

Mode When Detail
TDD Implementing a feature/bugfix test-first modes/tdd.md
Mutation Finding coverage gaps via surviving mutants modes/mutation.md

Suite-scale assembly/audit (a suite derived from an explicit edge inventory, not intuition): use skills/edge-coverage.

TDD — the contract

RED → verify RED → GREEN → verify GREEN → REFLECT → REFACTOR

Iron law: NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST. Code written before the test gets deleted — not kept, not adapted. Verify RED fails for the expected reason (feature missing, not a typo). REFLECT: could a wrong implementation pass? Then the test is too weak — rewrite before continuing.

Seams-first: agree WHERE to test (public interface, highest seam) before writing tests; the iron law enforces HOW. Refactoring → characterization tests first. Bug fix → failing test reproducing the bug at the right seam. Throwaway prototype → confirm with user, then skip.

Mutation testing — essentials

A mutant = small deliberate change mimicking a realistic bug. Killed = tests fail (good). Survives = tests pass → coverage gap.

Priority targets: security/auth checks, control-flow inversions, validation removal, state/constant alteration, swallowed errors. Bias toward survivors: boundary conditions, error paths, recently changed code.

Never mutate: test code/helpers/fakes, logging-only blocks, generated/vendored code. Verify each mutant compiles/loads; report killed vs survived with the mutations that exposed gaps.

04 同仓库更多 Skills

Leostruka
Leostruka/devin-bundle

montador-de-ideias

Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.

★ 0
Leostruka
Leostruka/devin-bundle

git-github-adaptive-engineering

Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.

★ 0
Leostruka
Leostruka/devin-bundle

adaptive-agenda-calendar-routine-engine

Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.

★ 0
Leostruka
Leostruka/devin-bundle

demo

Use when demonstrating a skill in a fixture project.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0