bootstrap-env-banner
Installation
SKILL.md
Bootstrap Environment Banner
Add a sticky bar at the top of every HTML page that makes it unmistakable when the app is not running in production (e.g. local dev, or a non-production deployment).
Prerequisites
Verify before starting:
- Phoenix 1.8 app with HEEx layouts (a
*Web.Layoutsmodule embeddinglayouts/*) - At least one root layout (
root.html.heex) with a<body>tag - Tailwind CSS (daisyUI optional — see Styling note in Step 2)
App Name Detection
Detect from mix.exs:
- OTP app name (e.g.,
my_app) — used in config keys andApplication.get_env/2 - Web module (e.g.,
MyAppWeb) — the module holdingEndpointandLayouts
Replace all my_app / MyAppWeb template references accordingly.