← All skills
writing-tests
82 / 100 · Low risk
Fine to try.
By kirodotdev/KiroCrew (GitHub) · writing · 4,889 stars · scanned at commit f2c5c50
Kiro Crew repo only: how to write a backend pytest test with NO side effects that does not flake. Use when adding, editing, reviewing or debugging a test there: which conftest applies, what leaks (temp dirs, data home, ~/.kiro, cron, threads), the seven flake classes, cross-platform traps.
Works with any agent that supports SKILL.md skills.
What this skill can do
Runs commands on your computer
This is disclosed by the author in the skill's SKILL.md or README.
Found in 15 places.
Show 12 more
- docs/system-specs/common/testing-conventions.md, line 147
subprocess.run(cmd, timeout=60) # use FALLBACK_TIMEOUT_SECS - docs/system-specs/common/testing-conventions.md, line 149
subprocess.run(cmd, timeout=_T) # local constant counts - docs/system-specs/common/testing-conventions.md, line 1520
spawn funnel (`subprocess.Popen.__init__`, - docs/system-specs/common/testing-conventions.md, line 1785
The same hook can watch `subprocess.Popen` (a spawn without `cwd=`), `socket.connect` - docs/system-specs/common/testing-conventions.md, line 2372
pytest-timeout's SIGALRM fires *before* `subprocess.run`'s own deadline, `Popen.__exit__` - docs/system-specs/common/testing-conventions.md, line 2618
- **A fake `subprocess.run` that routes by SUBSTRING of the joined argv is - docs/system-specs/common/testing-conventions.md, line 3863
`restore_signals`), so `yes | head` in a spawned `bash -c` gets `EPIPE` -- a latent defect - docs/system-specs/common/testing-conventions.md, line 4163
expose the seam, so the tests now pin it: `runner=partial(subprocess.run, cwd=...)`, or - docs/system-specs/common/testing-conventions.md, line 5372
`subprocess.communicate()` with no timeout. The ceiling is not a race to tune (it only - docs/system-specs/common/testing-conventions.md, line 5961
stdin=asyncio.subprocess.PIPE, - docs/system-specs/common/testing-conventions.md, line 5962
stdout=asyncio.subprocess.PIPE, - docs/system-specs/common/testing-conventions.md, line 5963
stderr=asyncio.subprocess.DEVNULL,
Downloads and installs other software
The author does not mention this.
Found in 3 places.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'writing-tests' ] || [ -L ~/.agents/skills/'writing-tests' ]; then echo 'A skill folder named writing-tests already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/kirodotdev/KiroCrew' "$d" && git -C "$d" checkout --quiet 'f2c5c50d602f1e6c2059a407b3a0c6fca6db44da' -- 'src/kiro_crew/builtin_skills/kirocrew-dev/writing-tests' && mkdir -p ~/.agents/skills && cp -R "$d"/'src/kiro_crew/builtin_skills/kirocrew-dev/writing-tests' ~/.agents/skills/'writing-tests' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'writing-tests' ~/.claude/skills/'writing-tests' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for kirodotdev/KiroCrew shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/kirodotdev/KiroCrew/)
Score history
| Date | Version | Score |
|---|
| 2026-11-11 | f2c5c50 | 82 |