Skip to content
Development
Skill

/test-first

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

From plugin
codemap
7057 skills1 MCP

Claude Code

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

SKILL.md

test-first.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 |

@jordancoin
Ships withcodemap

codemap — structural ground truth for coding agents. Resolves what your code actually imports, tells you what breaks if you change it, and is explicit about what it couldn't figure out.

7057 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
705
Star history of JordanCoin/codemap on GitHub, a chart by star-history.com

Other skills on codemap.

More skills from other plugins.

brainstorming
Skill
Popular
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
accessibility
Skill
Popular
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2d293k
@affaan-m@affaan-mInstall Skill
compiler-commit
Skill
Popular

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about test-first.

Which coding agents can use test-first?
test-first installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.