Testing Patterns
softspark/ai-toolkit
Testing strategy: pyramid, AAA, mocks/fakes/stubs, flaky tests, coverage.
Analyze the repo's unit and E2E tests and propose rebalancing toward a test pyramid — which E2E tests (or assertions inside them) can be covered by unit tests, which unit-level gaps genuinely need…
$ npx skills add kubernetes-sigs/agent-sandbox --skill test-pyramid -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kubernetes-sigs/agent-sandbox test-pyramid --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/kubernetes-sigs/agent-sandbox.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/test-pyramid .claude/skills/test-pyramid && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "test-pyramid" agent skill from https://github.com/kubernetes-sigs/agent-sandbox/tree/main/.agents/skills/test-pyramid into .claude/skills/test-pyramid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-pyramid", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/kubernetes-sigs/agent-sandbox/tree/main/.agents/skills/test-pyramidType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add kubernetes-sigs/agent-sandbox --skill test-pyramid -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kubernetes-sigs/agent-sandbox test-pyramid --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kubernetes-sigs/agent-sandbox.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/test-pyramid .agents/skills/test-pyramid && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "test-pyramid" agent skill from https://github.com/kubernetes-sigs/agent-sandbox/tree/main/.agents/skills/test-pyramid into .agents/skills/test-pyramid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-pyramid", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kubernetes-sigs/agent-sandbox --skill test-pyramid -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kubernetes-sigs/agent-sandbox test-pyramid --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kubernetes-sigs/agent-sandbox.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/test-pyramid .cursor/skills/test-pyramid && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "test-pyramid" agent skill from https://github.com/kubernetes-sigs/agent-sandbox/tree/main/.agents/skills/test-pyramid into .cursor/skills/test-pyramid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-pyramid", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/kubernetes-sigs/agent-sandbox.git --path .agents/skills/test-pyramid--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add kubernetes-sigs/agent-sandbox --skill test-pyramid -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kubernetes-sigs/agent-sandbox test-pyramid --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kubernetes-sigs/agent-sandbox.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/test-pyramid .gemini/skills/test-pyramid && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "test-pyramid" agent skill from https://github.com/kubernetes-sigs/agent-sandbox/tree/main/.agents/skills/test-pyramid into .gemini/skills/test-pyramid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-pyramid", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install kubernetes-sigs/agent-sandbox test-pyramidInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add kubernetes-sigs/agent-sandbox --skill test-pyramid -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/kubernetes-sigs/agent-sandbox.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/test-pyramid .github/skills/test-pyramid && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "test-pyramid" agent skill from https://github.com/kubernetes-sigs/agent-sandbox/tree/main/.agents/skills/test-pyramid into .github/skills/test-pyramid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-pyramid", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kubernetes-sigs/agent-sandbox --skill test-pyramid -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install kubernetes-sigs/agent-sandbox test-pyramid --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kubernetes-sigs/agent-sandbox.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/test-pyramid .opencode/skills/test-pyramid && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "test-pyramid" agent skill from https://github.com/kubernetes-sigs/agent-sandbox/tree/main/.agents/skills/test-pyramid into .opencode/skills/test-pyramid/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "test-pyramid", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
test-pyramidAnalyze the repo's unit and E2E tests and propose rebalancing toward a test pyramid — which E2E tests (or assertions inside them) can be covered by unit tests, which unit-level gaps genuinely need…
Test Pyramid is an agent skill from kubernetes-sigs/agent-sandbox, published by the product's own GitHub organization. Analyze the repo's unit and E2E tests and propose rebalancing toward a test pyramid — which E2E tests (or assertions inside them) can be covered by unit tests, which unit-level gaps genuinely need E2E coverage, and where coverage is duplicated. Use when the user asks about test pyramid, test rebalancing, "should this be an e2e or unit test", E2E-to-unit migration, or slow/flaky E2E suites that might shrink.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Test strategy, Unit testing and End-to-end testing. It works with Kubernetes, Python and Git. The repository describes itself as: agent-sandbox enables easy management of isolated, stateful, singleton workloads, ideal for use cases like AI agent runtimes and reinforcement learning (RL). The licence is Apache-2.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit b668082. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Test Pyramid loads about 1.6k tokens when it runs. Until then it costs about 106 tokens; SKILL.md has 834 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from kubernetes-sigs/agent-sandbox at commit b668082, republished under its Apache-2.0 licence (© kubernetes-sigs). 834 words, ~1,642 tokens.
.claude/skills/test-pyramid/SKILL.md (or your agent's skills folder).Goal: anything that can be tested as a unit test should be a unit test; only what genuinely needs a real cluster should be E2E. The end state is a pyramid — many fast unit tests, few E2E tests. This skill produces an evidence-backed rebalancing report; it does NOT move tests itself unless the user asks afterward.
Enumerate both layers and count actual test functions (not just files), so the report can show the pyramid shape numerically:
git ls-files '*_test.go' | grep -v '^test/e2e/' plus git ls-files 'test/e2e/framework/*_test.go' and Python unit tests across all client packages (discover with git ls-files 'clients/**' | grep '/test[s]*/unit/' — covers clients/python/, clients/integrations/deepagents/, and clients/integrations/mcp-server/). Count func Test... per package (grep -c '^func Test') and def test_ for Python.test/e2e/*_test.go (excluding test/e2e/framework/), plus test/e2e/extensions/ (density, python-runtime, rollout, and other cluster-physics E2E), test/e2e/clients/python/ (SDK E2E), dev/tools/test-migration.py (upgrade/rollback), and test/stress/ (load). Count func Test... (and def test_ for Python / migration tests), and for table-driven E2E, the sub-scenarios.dev/ci/, TestGrid tab names) — the payoff argument for each migration is time and flake surface removed from presubmit.Read each E2E test body (fan out parallel subagents over batches of 3-5 files for speed; each returns structured notes). For every test, record:
isAdoptable, computeAndSetStatus, merge_flaky_by_test). If you cannot name the seam, you cannot claim a unit test can cover it.controller-runtime's fake client and newScheme(t) (see extensions/controllers/sandboxclaim_controller_test.go for the house style), direct function calls, or Python unittest.mock. A whole E2E test is a removal candidate only if ALL its assertions are logic assertions; otherwise propose extracting the logic assertions to unit tests and thinning the E2E to its cluster-physics core.Every suggestion must survive these checks (drop or downgrade to "uncertain" if not):
*_test.go and verify the test invokes the function); if it exists, the finding is "redundant E2E assertion", not "missing unit test".kind/flake issues, TestGrid history for the presubmit tabs, or dev/tools/flake-report output if that tool exists in your checkout. Migrating a flaky E2E assertion to a unit test is the highest-value move.Rank suggestions by confidence; separate "verified" (seam confirmed, patterns exist) from "needs maintainer judgment" (cluster-coupling unclear). Do not inflate the E2E→unit list — a wrong migration that deletes real coverage is worse than a kept E2E test.
© kubernetes-sigs, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/test-pyramid of kubernetes-sigs/agent-sandbox.
Open the folder on GitHubat commit b668082
Test Pyramid next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Test Pyramid this skillkubernetes-sigs/agent-sandbox | 4.2k | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Testing Patternssoftspark/ai-toolkit | 179 | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Testing Test Strategydzhalaevd/Donatello | 135 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| OpenHarness End-to-End EvalsHKUDS/OpenHarness | 16k | 1 repos | ~2.1k | Automated safety check: Notes | MIT | |
| Designing TestsCloudAI-X/claude-workflow-v2 | 1.4k | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| Studio Testingsupabase/supabase | 111k | — | ~2.2k | Automated safety check: Pass | Apache-2.0 |
softspark/ai-toolkit
Testing strategy: pyramid, AAA, mocks/fakes/stubs, flaky tests, coverage.
dzhalaevd/Donatello
Use as the lead skill when choosing what backend tests to write, reviewing test plans, or balancing unit, integration, API, concurrency, and E2E coverage
HKUDS/OpenHarness
Validates OpenHarness features by running real multi-turn agent loops with live LLM calls against an unfamiliar codebase, checking actual tool execution.
CloudAI-X/claude-workflow-v2
Designs and implements testing strategies for any codebase. An agent skill from CloudAI-X/claude-workflow-v2.
supabase/supabase
Testing strategy for Supabase Studio. An agent skill from supabase/supabase.
affaan-m/ECC
Python testing strategies using pytest, TDD methodology, fixtures, mocking, parametrization, and coverage requirements.
kubernetes-sigs/agent-sandbox
Bumps the Go version to the latest release across go.mod, tools.mod, and Dockerfiles.
kubernetes-sigs/agent-sandbox
Diagnose and fix flaky tests tracked as open kind/flake issues in kubernetes-sigs/agent-sandbox — reproduce the flake, apply a minimal fix, and open a PR linking the issue.
kubernetes-sigs/agent-sandbox
An MCP server skill for managing Kubernetes sandboxes. An agent skill from kubernetes-sigs/agent-sandbox.
kubernetes-sigs/agent-sandbox
Guides the agent to follow Kubernetes API conventions for OSS standards.
kubernetes-sigs/agent-sandbox
Enforces project-specific development rules and conventions.
kubernetes-sigs/agent-sandbox
Triage open GitHub issues for kubernetes-sigs/agent-sandbox by mapping them to roadmap.md and assigning k8s priority labels + Kanban Priority (P0–P4) on Project
Works with
Categories
Analyze the repo's unit and E2E tests and propose rebalancing toward a test pyramid — which E2E tests (or assertions inside them) can be covered by unit tests, which unit-level gaps genuinely need…. Test Pyramid is an agent skill from kubernetes-sigs/agent-sandbox, published by the product's own GitHub organization. Analyze the repo's unit and E2E tests and propose rebalancing toward a test pyramid — which E2E tests (or assertions inside them) can be covered by unit tests, which unit-level gaps genuinely need E2E coverage, and where coverage is duplicated.
Test Pyramid fits situations like: the user asks about test pyramid; test rebalancing; should this be an e2e; E2E-to-unit migration.
Run `npx skills add kubernetes-sigs/agent-sandbox --skill test-pyramid -a claude-code`. Or copy the skill folder (.agents/skills/test-pyramid in kubernetes-sigs/agent-sandbox) into .claude/skills/test-pyramid in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kubernetes-sigs/agent-sandbox --skill test-pyramid -a codex`. Or copy the skill folder (.agents/skills/test-pyramid in kubernetes-sigs/agent-sandbox) into .agents/skills/test-pyramid in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kubernetes-sigs/agent-sandbox --skill test-pyramid -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-pyramid, .gemini/skills/test-pyramid, .github/skills/test-pyramid and .opencode/skills/test-pyramid in your project.
Going by SKILL.md and its folder, Test Pyramid needs the command-line tools its instructions call (git). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Test Pyramid is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Test Pyramid: Testing Patterns (softspark/ai-toolkit, 179 stars), Testing Test Strategy (dzhalaevd/Donatello, 135 stars), OpenHarness End-to-End Evals (HKUDS/OpenHarness, 16k stars) and Designing Tests (CloudAI-X/claude-workflow-v2, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
kubernetes-sigs (a GitHub organization, an official publisher) maintains it in kubernetes-sigs/agent-sandbox, which has 4,198 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 9, 2026.
Source: kubernetes-sigs/agent-sandbox on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.