Agent skill · neolabhq
write-tests
Add missing test coverage for your local code changes by generating new test files (covers uncommitted and untracked changes, or the latest commit if everything is committed). Use when you want write tests for new logic or increase test coverage.
What it needs
About 5k tokens when loaded.
What this skill does
Cover Local Changes with Tests User Arguments User can provide a what tests or modules to focus on: If nothing is provided, focus on all changes in current git diff that not commited. If everything is commited, then will cover latest commit. Context After implementing new features or refactoring existing code, it's critical to ensure all business logic changes are covered by tests. This command orchestrates automated test creation for local changes using coverage analysis and specialized agents. Goal Achieve comprehensive test coverage for all critical business logic in local code changes. Important Constraints Focus on critical business logic - not every line needs 100% coverage Preserve existing tests - only add new tests, don't modify existing ones "Analyse complexity of changes" - if there 2 or more changed files, or one file with complex logic, then Do not write tests yourself - only orchestrate agents! if there is only one changed file, and it's a simple change, then you can write tests yourself. Workflow Steps Preparation 1. Read sadd skill if available If available, read the sadd skill to understand best practices for managing agents 2. Discover test infrastructure Read @README.md and package.json (or equivalent project config) Identify commands to run tests and coverage reports Understand project structure and testing conventions 3. Run all tests Execute full test suite to establish baseline Analysis Do steps 4-5 in parallel using haiku agents: 4. Verify single test execution Choose any passing test file Launch haiku agent with instructions to find proper command to run this only test file Ask him to iterate until you can reliably run individual tests After he complete try running a specific test file if it exists This ensures agents can run tests in isolation 5. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills neolabhq/write-tests--50074d