bootstrap-api-keys
Installation
SKILL.md
Bootstrap API Keys
Add complete API key management to a Phoenix 1.8 app — schema, context, LiveView UI, and Bearer token auth plug.
Prerequisites
Verify before starting:
- Phoenix 1.8 app with
phx.gen.authcompleted - DaisyUI installed
- A parent association exists for scoping keys (e.g.,
users,account_users, oraccountstable)
App Name Detection
Detect the app module name from mix.exs (e.g., MyApp) and the OTP app name (e.g., my_app). Replace all occurrences of MyApp/my_app/MyAppWeb/my_app_web in reference templates with the actual names.
Phase 0: Discovery — Check What Already Exists
CRITICAL: Before generating anything, audit the target app to understand what's already in place. Search for each component and track what exists vs what's missing. Only create what's missing.