Write Tests
Generates missing tests for uncommitted, untracked, or latest-commit changes, prioritizing critical business logic.
- CCM score
- 44 of 100
- skills.sh installs
- 1.3K
- GitHub stars
- 1.9K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers local git changes by running
git status -u, falling back togit show --name-statuswhen everything is committed - Routes multi-file or complex changes to coverage-reviewer and developer agents, while simple single-file changes are tested directly
- Enforces preservation of existing tests by only adding new test cases, never modifying current ones
- Designed for developers who want test coverage for new logic after implementing features or refactoring code
Install
$ npx -y skills add neolabhq/context-engineering-kit --skill write-tests -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Cover Local Changes with Tests
User Arguments
User can provide a what tests or modules to focus on:
$ARGUMENTS
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
Details
- Repository
- github.com/neolabhq/context-engineering-kit
- Category
- Testing & QA
- First seen
- Jun 3, 2026
More from neolabhq/context-engineering-kit
All 62- Analyse Problem1.3K
- Create Rule1.3K
- Do In Steps1.3K
- Do In Parallel1.3K
- Review Pr1.3K
- Analyse1.3K
- Add Task1.3K
- Test Skill1.3K
- Create Agent1.3K
- Launch Sub Agent1.3K
- Tree Of Thoughts1.3K
- Cause And Effect1.3K
- Apply Anthropic Skill Best Practices1.3K
- Create Skill1.3K
- Do Competitively1.3K
- Create Ideas1.3K
- Fix Tests1.3K
- Plan Do Check Act1.3K
- Commit1.3K
- Analyze Issue1.3K
- Create Hook1.2K
- Create Command1.2K
- Setup Codemap Cli1.2K
- Create Pr1.2K
Similar to Write Tests
More Testing & QAtest-gapsSkillruvnet/ruflo755 installsDetects untested code paths and suggests test cases to write next, via CLI or the testgaps worker.
test-generatorSkilllaolaoshiren/claude-code-skills-zh927 starsGenerates unit and integration tests from real code contracts, validating them against existing test suites.
test-driven-developmentSkillneolabhq/context-engineering-kit1.3K installsStrict test-first workflow that requires watching each new test fail before writing implementation code.
test-writerPluginrohitg00/awesome-claude-code-toolkit2.9K starsGenerate comprehensive unit and integration tests with full coverage
fix-testsSkillneolabhq/context-engineering-kit1.3K installsRepeatable workflow that fixes all failing tests after business logic changes by orchestrating parallel developer agents.
test-coverage-improverSkillonewave-ai/claude-skills319 installsAnalyzes coverage gaps and writes missing tests for JavaScript and TypeScript projects using Jest, Vitest, or NYC.