experimental/test-writer/SKILL.md
Write tests to reach a coverage target. Uses 4 agents (analyzer, writer, checker, fixer) to iteratively generate and fix tests. Exits non-zero with explanation if production code needs changes.
npx skillsauth add memgrafter/skills-flatagents test-writerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run to generate tests for a Python file or project:
~/.agents/skills/test-writer/run.sh "<target>"
| Option | Description | Default |
|--------|-------------|---------|
| --target=N | Coverage percentage to reach | 80 |
| --max-rounds=N | Max test generation rounds | 3 |
# Cover a specific file to 80%
run.sh src/mymodule.py
# Cover entire project to 90%
run.sh --target=90 .
# Cover specific file to 95%
run.sh --target=95 src/utils.py
| Code | Meaning | |------|---------| | 0 | Success - coverage target met | | 1 | Production code likely has a bug (explanation provided) | | 2 | Max iterations reached, tests still failing |
development
Deterministically fixes broken OpenAI Deep Research markdown citations without using an LLM: creates a .bkp backup, rewrites citation markers, rebuilds references, and runs strict regex validation.
tools
Use this as the default toolset for coding sessions when you want faster navigation, search, file inspection, and git workflow execution with lower command overhead: tools: - fzf - ripgrep - bat - delta - lazygit - starship - zoxide - eza - atuin - yazi
development
Turn a URL into a durable knowledge artifact: searchable markdown summary + local raw text archive, so you can recall it later without revisiting the web.
development
Run shell commands and analyze output with validated summaries. Use for build logs, test output, or any command with substantial output. Protects context by returning concise summaries with grep-validated citations.