Skip to content
Back to skills

Test Driven Changes

ASecurity

Plans and implements behavior changes using focused tests, regression coverage, and incremental verification. Use when adding a feature, fixing a bug, changing business logic, or refactoring behavior-sensitive code.

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 23, 2026
ai-agentsgorailstestingrefactoring

Security analysis

A100/100

Scanned October 23, 2026

npx -y skills add OpenSelfHosting/skills --skill test-driven-changes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Driven Changes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Driven Changes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/openselfhosting-test-driven-changes/badge)](https://www.skillsdirectory.com/skills/openselfhosting-test-driven-changes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-driven-changes
description: "Plans and implements behavior changes using focused tests, regression coverage, and incremental verification. Use when adding a feature, fixing a bug, changing business logic, or refactoring behavior-sensitive code."
license: MIT
metadata:
  author: OpenSelfHosting
  version: "1.0.0"
---

# Test-Driven Changes

## Goal
Turn the requested behavior into observable checks, implement the smallest change, and prove the intended behavior without overstating coverage.

## Workflow
1. Read project instructions and identify the existing testing conventions, framework, and nearest related tests.
2. Convert the request into explicit acceptance criteria. Include normal behavior, boundaries, invalid input, and failure modes that matter to the contract.
3. Choose the cheapest test level that gives meaningful confidence: unit, component, integration, contract, or end-to-end. Avoid excessive mocks when they would hide the behavior under test.
4. Add a focused test before implementation when practical. Confirm that it fails for the intended reason; a failure caused by broken setup does not validate the test.
5. Implement the smallest coherent change. Reuse established patterns and avoid unrelated refactors.
6. Run the focused test, inspect failures, and make the smallest necessary adjustments.
7. Add adjacent tests for important regressions, authorization boundaries, invalid states, error handling, and compatibility when relevant.
8. Run appropriate broader checks after focused tests: formatter, linter, type checker, relevant test suite, and build. Select checks proportionate to impact.
9. Review whether tests could pass while the defect remains. Verify assertions check results and side effects, not merely execution.
10. Inspect the final diff for scope creep, flaky timing, hard-coded environment assumptions, skipped tests, and accidental weakening of assertions.

## Test quality checklist
- The test name describes behavior, not implementation details.
- Arrange/act/assert or the project’s equivalent is easy to follow.
- Inputs include the condition that previously failed.
- Assertions would fail if the target behavior regressed.
- Cleanup is deterministic and external services are isolated appropriately.
- Test data contains no real secrets or personal data.

## Report
Summarize acceptance criteria, new/changed tests, exact checks executed, actual results, and any coverage or environment limits.

## Guardrails
- Never disable, skip, delete, or loosen a failing test solely to obtain a green run.
- Do not claim full coverage because tests pass.
- Do not run tests against production data or external systems with side effects without authorization.
- If the repository has no test harness, recommend a minimal practical approach and state that automated verification is limited.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.