manage-secrets

Installation
SKILL.md

Prerequisite: This skill requires a schema0 template project. Before using, ensure CLAUDE.md exists in the project root and read it for project rules and conventions.

Manage Secrets & Backend Integration

Process for adding and managing secure environment variables and integrating external services (AI providers, payment processors, email services, etc.).

Instructions

When you need to add a new secret (like an API key for a third-party service):

  1. Add the secret using the MCP tool:

    • Use the appropriate MCP tool or command to securely store the secret value.
    • Ensure the secret is available in the runtime environment (e.g., local .env or deployment secrets).
  2. Update Type Definitions in packages/auth/env.ts:

    • Edit packages/auth/env.ts to include the new variable in the server schema.
    • Use z.string().optional() for keys that might not be present in all environments.
Related skills
Installs
2
First Seen
Mar 30, 2026