Mav bp environment management

From thermiteau/maverick · View interactive version

Mav bp environment management is an AI agent skill from the GitHub repository thermiteau/maverick. Environment management conventions for all projects. Covers reproducible local development, environment parity, .env patterns, developer onboarding, and containerised development. Applied when setting up or reviewing development environments.

How to use this skill

Skill file

Environment Management Standards

Maverick's hard rules for reproducible local development environments and environment-specific configuration.

Maverick's Rules

.env.example format:

DATABASE_URL=              # PostgreSQL connection string (e.g., postgres://user:pass@localhost:5432/mydb)
STRIPE_API_KEY=            # Stripe secret key (starts with sk_test_ or sk_live_)
LOG_LEVEL=error            # error | warn | debug
PORT=3000                  # HTTP server port

Project Implementation Lookup

Check for docs/maverick/skills/environment-management/SKILL.md. If present, read it — it wins on specifics (library, config, conventions). If missing, proceed with these standards and note the gap in your summary.

Detecting Environment Management Issues in Code Review

| Pattern | Issue | Fix |

| ------- | ----- | --- |

| Hard-coded URLs, ports, or credentials in source code | Environment coupling | Extract to environment variables |

| if (env === "production") logic scattered in code | Environment branching | Use configuration values, not environment names |

| No .env.example but application reads env vars | Undocumented configuration | Create .env.example with all required vars |

| .env file committed to repository | Credential exposure risk | Add to .gitignore, remove from history |

| No version pinning for language runtime | Non-reproducible builds | Add .node-version, .python-version, or equivalent |

| docker-compose.yml using latest tags | Non-deterministic services | Pin to specific image versions |

| Setup instructions that require asking a team member | Tribal knowledge dependency | Document all steps in README or CONTRIBUTING.md |

| Database engine differs between dev and production | Environment parity violation | Use the same engine locally via Docker |

| No health checks in Docker Compose services | Startup race conditions | Add health checks and depends_on with condition |

Boundaries

This skill covers local/dev environments only (devcontainers, Docker Compose for local services, .env, version pinning, onboarding). Deployed environments — Terraform, CloudFormation, Kubernetes, cloud provisioning — belong to mav-bp-infrastructure-as-code. When an artifact serves both (e.g., Compose used in local dev and CI), follow both.

<!-- maverick-plugin-version: 5.3.1 -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.