manage-secrets
Prerequisite: This skill requires a schema0 template project. Before using, ensure
CLAUDE.mdexists 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):
-
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
.envor deployment secrets).
-
Update Type Definitions in
packages/auth/env.ts:- Edit
packages/auth/env.tsto include the new variable in the server schema. - Use
z.string().optional()for keys that might not be present in all environments.
- Edit
More from schema0/ai-agent-plugins
schema-gen
Generates database table schema with Drizzle ORM (project)
2rls-setup
Set up database tables with Row-Level Security policies, configure authenticated connections, and implement secure user-scoped data access patterns (Do not apply this skill unless specifically asked by user) (project)
2api-router
Generates ORPC routers with drizzle-zod schemas from db package, bulk operations, and protected procedures (project)
2workflow-builder
>-
2handle-views
Generates route components - List Route and Detail Route (project)
2ai-integration
Generate AI-powered features using AI SDK with oRPC. Use when building chat apps, AI endpoints, or integrating LLMs.
2