/base:environment-variablesfrom base
Manages and validates environment variables. Use when adding, modifying, or referencing env vars, working with .env files, or separating client vs. server variables.
Ships in base. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
If src/lib/env.ts does not exist, install dependencies and create the files before proceeding:
bun add @t3-oss/env-core zod
import { createEnv } from "@t3-oss/env-core";
export const env = createEnv({
emptyStringAsUndefined: true,
runtimeEnv: process.env,
server: {},
});
// src/lib/env.test.ts
import { describe, expect, test } from "vitest";
import { env } from "./env";
describe("env", () => {
test("initializes without error", () => {
expect(env).toBeDefined();
});
});
| Type | Prefix | Exposed to client | Example |
|---|---|---|---|
| Client | VITE_ | Yes | VITE_API_URL |
| Server | None | No | DATABASE_URL |
| Shared | None | Both (build-time) | NODE_ENV, DEV |
Client = public endpoints, publishable keys, UI feature flags. Server = secrets, DB strings, internal URLs.
| File | Purpose | Git |
|---|---|---|
.env | Development defaults (local URLs, non-sensitive) | Committed |
.env.local | Secrets, API keys, overrides | Ignored |
Load order: .env.local overrides .env.
src/lib/env.ts in client, server, or shared.env; secret → .env.localsrc/lib/env.test.tsimport { env } from "@/lib/env";
| Task | Action |
|---|---|
| Access var | import { env } from "@/lib/env" |
| Client var | client section, VITE_ prefix |
| Server var | server section, no prefix |
| Shared var | shared section, build-time values |
| Validation | Zod schemas: z.string(), z.boolean(), etc. |
src/lib/env.ts exists with t3-env + Zod configsrc/lib/env.test.ts exists with validation testsclient, server, shared).env, secrets in .env.localWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kvnwolf/devtools --plugin base9 skills in this plugin
/baseScaffolds a new TypeScript project from scratch. Use when starting a new project, bootstrapping a codebase, or setting up a project from zero./commitWraps up work by syncing documentation, committing, pushing, and opening a pull request. Use when committing code, finishing a task, pushing changes, or creating a PR./create-planPlans development tasks through codebase exploration, exhaustive user interviews, and structured file-based plans. Use when tackling a feature, bug fix, refactor, or any task that benefits from upfront planning. Generates plan files in .agents/plans/ for later execution with /execute-plan.Other plugins' skills for the same job