test-driven-development
Apply Test-Driven Development
Teams often add tests after code and miss broken behavior. This skill enforces test-first work with red, green, and refactor checkpoints.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "test-driven-development" from https://skillstore.io/skills/codingcossack-test-driven-development.md and its manifest at https://skillstore.io/api/skills/codingcossack-test-driven-development/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "test-driven-development". Add retry behavior to a network client.
Expected outcome:
- A first failing test that describes retry count and final success.
- A minimal implementation plan that only satisfies that test.
- A refactor checkpoint after the test passes.
Using "test-driven-development". Fix empty email addresses being accepted.
Expected outcome:
- A regression test that fails when empty email is accepted.
- A small validation change that makes the test pass.
- A recommendation to keep the test as permanent coverage.
Using "test-driven-development". Clean up a legacy service without tests.
Expected outcome:
- A characterization test list for current behavior.
- A safe refactoring order with tests kept green.
- A boundary for new behavior that must use failing tests first.
Security Audit
SafeAll 29 static findings were adjudicated as false positives. The detections are Markdown fences, TypeScript snippets, local npm test examples, inline test API names, and a retry test-list bullet, with no malicious execution or network reconnaissance. No prompt injection or semantic security issue was found.
Risk Factors
โ๏ธ External commands (28)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/codingcossack-test-driven-development/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/codingcossack-test-driven-development?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/codingcossack-test-driven-development?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/codingcossack-test-driven-development/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/codingcossack-test-driven-development.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
CodingCossack. (2026). test-driven-development security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/codingcossack-test-driven-development/audits/8BibTeX citation
@techreport{codingcossack-codingcossack-test-driven-development-2026,
author = {CodingCossack},
title = {test-driven-development security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/codingcossack-test-driven-development/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "test-driven-development security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "CodingCossack"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/codingcossack-test-driven-development/audits/8"
identifiers:
- type: other
value: "skillstore:codingcossack-test-driven-development:audit:8"
description: "Skillstore immutable audit report identifier"
Compare variants
9 installable variantsEach author remains a separate installable skill. The recommended variant is ranked by Skillstore evidence.
Why this variant is first
dmjgilbert-test-driven-development
2026-08-21
obra-test-driven-development
2026-08-21
cycleaddict-test-driven-development
2026-08-21
cygnusfear-test-driven-development
2026-08-21
dyai2025-test-driven-development
2026-08-21
codingcossack-test-driven-development
2026-08-21
zhanlincui-test-driven-development
2026-08-21
sickn33-test-driven-development
2026-08-21
davila7-test-driven-development
2026-08-21
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Implement a Feature Safely
Create one failing test, add the smallest passing code, then refactor while tests stay green.
Fix a Regression
Reproduce the bug with a failing test before changing production code, then keep the test as coverage.
Improve Legacy Code
Add characterization tests to capture current behavior before refactoring or adding new behavior.
Try These Prompts
Use test-driven development for this feature: [describe feature]. Start with one failing test and wait for verification before implementation.
Apply TDD to fix this bug: [describe bug]. First write a test that fails for the current behavior and explains the regression.
Help me refactor [component or module]. Identify existing behavior tests first, add characterization tests if needed, then keep behavior unchanged.
Review these tests for TDD quality, mock overuse, brittle assertions, and missing behavior coverage. Recommend concrete changes before implementation continues.
Best Practices
- Run the new test and confirm it fails before writing production code.
- Assert observable behavior instead of internal implementation details.
- Refactor only after tests pass, and keep the full suite green.
Avoid
- Writing production behavior first and adding tests afterward.
- Testing mock existence instead of real user-visible behavior.
- Adding test-only methods to production classes for convenience.
Frequently Asked Questions
Does this skill write tests for me?
Can I use it on legacy code?
Does every refactor need a new failing test?
What if the test passes immediately?
Does it require a specific test framework?
Is this safe for publication?
Developer Details
Author
CodingCossackLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Repository
https://github.com/CodingCossack/agent-skills-library/tree/main/skills/test-driven-developmentRef
d11af420e07cd866fe39cfa937efef3223896c06
Maintenance freshness
7/18/2026
Usage
9 downloads ยท 297 views
File structure