/loxihart-engineering:managing-credential-lifecyclefrom loxihart-engineering
Manages the lifecycle of API keys, tokens, and credentials across a multi-service production stack — inventory, rotation schedules, audit procedures, and emergency revocation for Vercel env vars, Supabase service keys, the n8n credential store, Anthropic API keys, and MCP server tokens. Use when the user mentions: rotate credentials, API key rotation, credential audit, service key expired, key compromised, secrets management, credential sprawl, or preparing a security review. Not for writing application auth or login flows (use kyle-vibe-coding) and not for storing secrets in code.
Ships in loxihart-engineering. 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.
Should trigger:
Should NOT trigger:
Use when — "the Anthropic key might be leaked, rotate it" — emergency revocation path. "run the quarterly credential audit for the FlashFusion stack" — inventory and schedule review.
Do NOT use when — "write a login form with Supabase auth" — that is a build; route to kyle-vibe-coding.
Credentials accumulate silently. A production system that started with three API keys typically has thirty within a year. This skill covers the discipline of knowing what exists, rotating it regularly, and revoking it when no longer needed.
Run this audit quarterly. Update the table in Notion after each pass.
| Service | Credential type | Location in stack | Rotation schedule | Last rotated |
|---|---|---|---|---|
| Anthropic API | API key | Vercel env + n8n | 90 days | — |
| Supabase service key | JWT secret | Vercel env + n8n | 180 days | — |
| Supabase anon key | Public JWT | Frontend code | Annual | — |
| n8n webhook secrets | Shared secret | n8n + source systems | 90 days | — |
| Base44 Bearer token | Short-lived token | n8n credential store | 30 days | — |
| HubSpot API key | API key | n8n + Clay | 90 days | — |
| Apollo.io API key | API key | n8n | 90 days | — |
| Datadog API key | API key | Vercel drain + code | 180 days | — |
| PostHog project key | API key | Frontend + backend | Annual | — |
| MCP server tokens | Varies | Claude project config | Per provider | — |
flashfusion-prod-YYYY-MM (date-stamped)⚠️ Rotating the service role key invalidates all existing JWTs signed with it. Do this during a maintenance window or off-peak hours.
See operating-n8n-production Section 1 for the full Base44 procedure.
Short version: Base44 Settings → API → Generate Token → update n8n credential.
If a credential may be compromised (leaked in logs, committed to git, sent in an email):
Within 5 minutes:
Within 30 minutes:
Within 24 hours:
Signs you have a sprawl problem:
Audit procedure:
Naming convention going forward:
{service}-{environment}-{YYYY-MM}
Example: anthropic-prod-2026-06
This makes it immediately obvious what each key is for, whether it's production or staging, and when it was created.
Named failure modes for this skill. Each is a hard stop, not a warning.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-engineering22 skills in this plugin
/administering-supabaseManages Supabase database operations for FlashFusion's production stack — schema design, Row Level Security policies, migrations, Edge Functions, and debugging. Active project: flashnframe-app (etctmappdhpjuwptdbeb). Use when the user mentions: Supabase, RLS, row level security, migration, schema, database, table, Edge Function, auth, policies, Postgres, supabase query, database admin, add a column, create a table, why is my query blocked, or any task involving the Supabase project or database structure.
/auditing-logicAudits code for logical errors before they become bugs — control flow gaps, data contract violations, schema/type drift, business logic inconsistencies, and silent failure paths. Produces a severity-rated issue list with a one-line diagnosis and one-line fix per finding. Use this skill whenever code is pasted with a review request, or when the user says "audit this", "check the logic", "does this make sense", "any issues with this", "logic audit", "what's wrong here", "review this function", "is this correct", or hands you any code file and wants a critical eye. Even if the user does not say "logic" — if code is present and they want feedback, use this skill. Also triggers on: "find the bug", "something feels off", "is this right", "sanity check this", "does this hold", "validate my logic", "code review", "PR review", "review this PR".
/code-auditorPerforms comprehensive codebase analysis covering architecture, code quality, security, performance, testing, and maintainability. Use when user wants to audit code quality, identify technical debt, find security issues, assess test coverage, or get a codebase health check./code-transferTransfer code between files with line-based precision. Use when users request copying code from one location to another, moving functions or classes between files, extracting code blocks, or inserting code at specific line numbers./debug-like-expertDeep analysis debugging mode for complex issues. Activates methodical investigation protocol with evidence gathering, hypothesis testing, and rigorous verification. Use when standard troubleshooting fails or when issues require systematic root cause analysis. Triggers on: debug this, root cause analysis, systematic debugging, why is this failing, trace this bug, diagnose this issue, investigation protocol, hypothesis testing./engineering-patternsProduction engineering pattern library spanning 11 phases — Foundation, Resilience, Performance, Data Integrity, Observability, Deployment, Scalability, Edge Cases, Security Deep, Compliance/DR/FinOps, and AI/HITL. Use when auditing code for production readiness, applying hardening patterns, reviewing system design, pattern audit, apply phase, harden this, production-ready, resilience patterns, observability gaps, security review, DR plan, FinOps, or AI guardrails. Use alongside engineering-staff-workflows for execution. Not for writing the implementation itself — that is engineering-staff-workflows.