Skip to content
Back to skills

Test First

ASecurity

TDD workflow using codemap's impact analysis. Write tests before implementation, verify with dependency awareness.

  • 715 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentstypescriptpythonrustgotesting

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add JordanCoin/codemap --skill test-first --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test First?

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

Security grade badge for Test First
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jordancoin-test-first/badge)](https://www.skillsdirectory.com/skills/jordancoin-test-first)

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-first
description: TDD workflow using codemap's impact analysis. Write tests before implementation, verify with dependency awareness.
---

# Test-First Development with Code Intelligence

## The cycle

1. **Write a failing test** for the behavior you want
2. **Run the test** to confirm it fails for the right reason
3. **Implement** the minimum code to make it pass
4. **Run all tests** (not just the new one)
5. **Check hub impact**: if you touched a hub file, run importer tests too

## Using codemap for test planning

- `codemap --importers <file>`: which files depend on what you're testing?
- `codemap --deps .`: understand the dependency chain before writing mocks
- Working set shows what you've already touched: test those files

## What to test when editing hub files

Hub files affect many dependents. Test:
1. The hub file's own tests
2. Direct importers' tests
3. Integration tests that cross the hub boundary

## Test file conventions

| Language | Convention |
|----------|-----------|
| Go | `*_test.go` in same package |
| TypeScript | `*.test.ts` or `*.spec.ts` |
| Python | `test_*.py` or `*_test.py` |
| Rust | `#[cfg(test)]` module or `tests/` dir |

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.