Agent skill

Managing Test Environments

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Test provision and manage isolated test environments with configuration and data.

MITAuto-check: notesTesting & QA

Install Managing Test Environments

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill managing-test-environments -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace managing-test-environments --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/managing-test-environments .claude/skills/managing-test-environments && rm -rf skills-src

Use ~/.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/

Facts

Skill name
managing-test-environments
GitHub stars
2.8k
Token cost
~1.3k tokens
SKILL.md length
435 words
Files
9 (incl. scripts, references, assets)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Test provision and manage isolated test environments with configuration and data.

  • Works in 7 steps: Read the project's existing… → Inventory all external dependencies the… → Create or update a… → …
  • Performing specialized testing
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 3 more sections
  • Runs Python scripts from its folder; calls docker-compose; needs POSTGRES_PASSWORD

What it does

Managing Test Environments is an agent skill from jeremylongshore/tons-of-skills-marketplace. Test provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts, reference files and assets (for example `assets/README.md`, `assets/docker-compose-template.yml` and `assets/example_test_script.py`). Compatibility notes: Designed for Claude Code

It sits in Testing & QA. It works with Docker. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Performing specialized testing
  • With phrases like manage test environment
  • Provision test env
  • Setup test infrastructure

Example prompts

  • “manage test environment”
  • “provision test env”
  • “setup test infrastructure”
  • “/managing-test-environments”

Requirements

  • Python 3
  • Docker
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Grep, Glob, Bash(test:env-*)

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Read the project's existing configuration files (docker-compose.yml, .env.test, jest.config.*, pytest.ini) to understand current…
  2. Inventory all external dependencies the test suite requires (databases, message queues, cache servers, third-party API stubs).
  3. Create or update a docker-compose.test.yml defining isolated service containers
  4. Write seed data scripts that populate databases with baseline test data
  5. Generate environment configuration files (.env.test) with connection strings, API keys, and feature flags appropriate for testing.
  6. Create a startup script that orchestrates the full environment lifecycle
  7. Validate the environment by running a small smoke test suite against the provisioned services.

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Bash(test:env-*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • docker-compose

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.docker.com
    • testcontainers.com
    • github.com
    • 12factor.net

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • POSTGRES_PASSWORD

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Managing Test Environments loads about 1.3k tokens when it runs, and up to ~1.3k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 435 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.3k

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.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:32
    - Environment variable management via `.env` files or secrets manager
  • NoteMentions a .env fileSKILL.md:37
    figuration files (`docker-compose.yml`, `.env.test`, `jest.config.*`, `pytest.ini`) to understand current environment se
  • NoteMentions a .env fileSKILL.md:47
    nerate environment configuration files (`.env.test`) with connection strings, API keys, and feature flags appropriate fo
  • NoteMentions a .env fileSKILL.md:59
    - `.env.test` with test-specific configuration values
  • NoteMentions a .env fileSKILL.md:71
    | Environment variable not found | `.env.test` not loaded or variable misspelled | Verify dotenv loading order; use `env

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); the scripts in this folder are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 435 words, ~1,251 tokens.

Download SKILL.mdSave it as .claude/skills/managing-test-environments/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
managing-test-environments
description
Test provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".
allowed-tools
Read, Write, Edit, Grep, Glob, Bash(test:env-*)
compatibility
Designed for Claude Code
version
1.25.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
testing, test-environments

Test Environment Manager

Overview

Provision, configure, and manage isolated test environments for reliable test execution. Supports Docker Compose environments, Testcontainers, local service stacks, and ephemeral CI environments.

Prerequisites

  • Docker and Docker Compose installed (for containerized environments)
  • Testcontainers library installed if using programmatic container management
  • Database client tools (psql, mysql, mongosh) for seed data operations
  • Environment variable management via .env files or secrets manager
  • Sufficient disk space and memory for running service containers

Instructions

  1. Read the project's existing configuration files (docker-compose.yml, .env.test, jest.config.*, pytest.ini) to understand current environment setup.
  2. Inventory all external dependencies the test suite requires (databases, message queues, cache servers, third-party API stubs).
  3. Create or update a docker-compose.test.yml defining isolated service containers:
    • Assign non-conflicting ports to avoid collisions with development services.
    • Configure health checks for each service to prevent tests from starting before services are ready.
    • Set resource limits (memory, CPU) to match CI runner constraints.
  4. Write seed data scripts that populate databases with baseline test data:
    • Use idempotent migrations that can run repeatedly without error.
    • Create separate seed datasets for unit, integration, and E2E test tiers.
    • Include cleanup scripts that truncate tables without dropping schemas.
  5. Generate environment configuration files (.env.test) with connection strings, API keys, and feature flags appropriate for testing.
  6. Create a startup script that orchestrates the full environment lifecycle:
    • Start containers and wait for health checks to pass.
    • Run database migrations and seed data.
    • Export environment variables for the test runner.
    • Execute the test suite.
    • Tear down containers and clean up volumes.
  7. Validate the environment by running a small smoke test suite against the provisioned services.
Show full SKILL.md (168 more words)Show less

Output

  • docker-compose.test.yml with all required service definitions
  • .env.test with test-specific configuration values
  • Database seed scripts (seeds/test-data.sql or equivalent)
  • Environment startup/teardown shell script (scripts/test-env.sh)
  • Health check verification report confirming all services are operational

Error Handling

ErrorCauseSolution
Port already in useAnother process or dev environment occupies the portUse dynamic port allocation or specify alternate ports in docker-compose.test.yml
Container health check timeoutService takes too long to initializeIncrease health check interval and retries; ensure sufficient memory allocation
Database seed failureMigration conflicts or missing schemaRun migrations before seeds; verify migration order; check for schema drift
Environment variable not found.env.test not loaded or variable misspelledVerify dotenv loading order; use env-cmd or dotenv-cli to inject variables
Stale Docker volumesPrevious test data persists across runsAdd --volumes flag to docker-compose down in teardown; use tmpfs mounts

Examples

Docker Compose test environment with PostgreSQL and Redis:

yaml
# docker-compose.test.yml
services:
  postgres-test:
    image: postgres:16-alpine
    environment:
      POSTGRES_DB: testdb
      POSTGRES_PASSWORD: testpass
    ports: ["5433:5432"]  # 5432: 5433: PostgreSQL port
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 2s
      retries: 10
  redis-test:
    image: redis:7-alpine
    ports: ["6380:6379"]  # 6379: 6380: Redis TLS port
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]

Testcontainers setup in Jest:

typescript
import { PostgreSqlContainer } from '@testcontainers/postgresql';

let container;
beforeAll(async () => {
  container = await new PostgreSqlContainer().start();
  process.env.DATABASE_URL = container.getConnectionUri();
}, 30000);  # 30000: 30 seconds in ms
afterAll(async () => { await container.stop(); });

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts, references, assets) in skills/.curated/managing-test-environments of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • assets/README.md
  • assets/docker-compose-template.yml
  • assets/example_test_script.py
  • assets/test-environment-diagram-brief.md
  • references/README.md
  • scripts/README.md
  • scripts/setup_environment.py
  • scripts/teardown_environment.py

Open the folder on GitHubat commit cfae287

Compare with similar skills

Managing Test Environments 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.

Managing Test Environments compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Managing Test Environments this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.3kAutomated safety check: NotesMIT
DeerFlow Smoke Testbytedance/deer-flow84k—~2.5kAutomated safety check: NotesMIT
Remote Executor Integration Testsopeninterpreter/openinterpreter69k2 repos~842Automated safety check: PassApache-2.0
MongoDB Source Connector E2E Harnessairbytehq/airbyte22k—~1.9kAutomated safety check: PassCustom licence
Codex Plugin QAcode-yeongyu/oh-my-openagent70k—~1.9kAutomated safety check: PassCustom licence
source-mssql E2E Test Harnessairbytehq/airbyte22k—~4.4kAutomated safety check: PassCustom licence

Similar skills

  • DeerFlow Smoke Test

    bytedance/deer-flow

    Walks through an end-to-end smoke test of a DeerFlow deployment: pull the latest code, deploy with Docker or locally, verify services, run health checks and write a report.

    84k GitHub stars~2.5k tokensUpdated today
    Testing & QAAuto-check: notes
  • Remote Executor Integration Tests

    openinterpreter/openinterpreter

    Explains how to run agent integration tests against remote executors, using Docker for Linux or Wine for Windows, and how to opt tests in or skip them.

    69k GitHub starsUsed in 2 repos~842 tokens
    Testing & QAAuto-check passed
  • Official

    Starts a throwaway MongoDB 7.0 replica set and runs the Airbyte spec, check, discover and read commands against source-mongodb-v2 images for local end-to-end testing.

    22k GitHub stars~1.9k tokensUpdated today
    Testing & QAAuto-check passed
  • Codex Plugin QA

    code-yeongyu/oh-my-openagent

    Tests the omo Codex plugin in an isolated CODEX_HOME with a local mock model, proving hooks fired through app-server notifications without touching ~/.codex.

    70k GitHub stars~1.9k tokensUpdated today
    Testing & QAAuto-check passed
  • Official

    Stands up a throwaway local SQL Server 2022 backend, applies SQL fixtures and runs Airbyte spec, check, discover and read against source-mssql images.

    22k GitHub stars~4.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Weavebench Cua Reproduce

    AMAP-ML/LongHorizon-Harness

    Reproduce CUA-Harness experiments on WeaveBench from a GitHub checkout.

    1.7k GitHub stars~1.6k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Managing Test Environments

What does Managing Test Environments do?

Test provision and manage isolated test environments with configuration and data. Managing Test Environments is an agent skill from jeremylongshore/tons-of-skills-marketplace. Test provision and manage isolated test environments with configuration and data.

When should I use Managing Test Environments?

Managing Test Environments fits situations like: performing specialized testing; with phrases like manage test environment; provision test env; setup test infrastructure.

How do I install Managing Test Environments in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill managing-test-environments -a claude-code`. Or copy the skill folder (skills/.curated/managing-test-environments in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/managing-test-environments in your project. Claude Code loads it when a task matches its description.

How do I install Managing Test Environments in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill managing-test-environments -a codex`. Or copy the skill folder (skills/.curated/managing-test-environments in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/managing-test-environments in your project. Codex loads it when a task matches its description.

Can I use Managing Test Environments in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill managing-test-environments -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/managing-test-environments, .gemini/skills/managing-test-environments, .github/skills/managing-test-environments and .opencode/skills/managing-test-environments in your project.

What does Managing Test Environments need to run?

Going by SKILL.md and its folder, Managing Test Environments needs Python for the scripts in its folder, the command-line tools its instructions call (docker-compose) and credentials named POSTGRES_PASSWORD. Our summary lists: Python 3; Docker. Its frontmatter pre-approves these tools: Read, Write, Edit, Grep, Glob, Bash(test:env-*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Managing Test Environments access the network?

SKILL.md names 4 domains. As links in the text: docs.docker.com, testcontainers.com, github.com and 12factor.net. This is read from the text; nothing was executed.

Is Managing Test Environments safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Managing Test Environments use?

Managing Test Environments is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Managing Test Environments use?

About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 39 tokens, read only when the agent opens those files.

What are the alternatives to Managing Test Environments?

Skills that share tags, products or a category with Managing Test Environments: DeerFlow Smoke Test (bytedance/deer-flow, 84k stars), Remote Executor Integration Tests (openinterpreter/openinterpreter, 69k stars), MongoDB Source Connector E2E Harness (airbytehq/airbyte, 22k stars) and Codex Plugin QA (code-yeongyu/oh-my-openagent, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Managing Test Environments?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.