Agent Skill
The TestShed skill teaches a coding agent how to write, fix and review tests with TestShed. It follows the open Agent Skills format, so any agent that reads skills picks it up.
At a Glance
- A coding agent that reads Agent Skills (Claude Code, Codex, Cursor, OpenCode, Gemini CLI and others).
npx skillsneeds Node.js 22.20 or later.
Install the Skill
npx skills add kloudkit/testshed/plugin marketplace add kloudkit/testshed
/plugin install testshed@testshednpx skills add asks which agents to install it for; -a claude-code picks one and -g installs it for every project. To install by hand, copy skills/testshed into the directory your agent loads skills from.
What the Agent Learns
The agent loads the skill when a task touches TestShed: a pytest config with --shed, a test using shed or a sidecar, or a request to add container tests to a project. It then:
- Reads the setup first: your
addopts,conftest.pydefaults and wrapper fixtures, and the stubs directory. - Picks the fixture: the shared
shedfor checks, a marker when the test changes the container,shed_deferredand sidecars for dependencies. - Waits with probes: no
sleep, and aLogProbebefore asserting on a later log line. - Avoids the traps: default
envsdropped by markers, read-only mounts, unquoted list commands,detach=Falseraising instead of failing. - Runs what it writes: and says so when Docker isn't reachable, instead of reporting a pass.
The skill's detail pages load only when the agent needs them, so it stays cheap to keep installed.
Without the Skill
Point the agent at the docs instead. llms.txt lists every page with a link to its raw Markdown, and llms-full.txt holds them all in one file.
Next Steps
- Containers: the fixtures and markers the skill chooses between.
- Readiness Probes: how the agent waits for a container.
- Fixtures and Markers: everything the skill can reach for.