persist-env-var-with-rebuild SKILL.md skillA
persist-env-var-with-rebuild from fractera/web4-node-starter-kit is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add fractera/web4-node-starter-kit/persist-env-var-with-rebuild@git:20260918.284f588Pins git:20260918.284f588 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- fractera/web4-node-starter-kit
- Path
.claude/skills/persist-env-var-with-rebuild/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260918.284f588, committed Sep 18, 2026
- Size
- 4,225 bytes
- Repository stars
- 60
- License
- MIT
Make a BUILD-TIME environment variable survive a production redeploy. Use whenever a feature needs a value baked at build — any NEXT_PUBLIC_* (inlined into the browser bundle), the language set, Stripe keys + product ids, a custom API/DB URL, a feature flag, analytics IDs. Write the value into the slot's own app/.env.local through the proper setter, then trigger a rebuild: the slot-scoped build bakes the slot's own .env.local. Use when adding payments, a new integration key, a feature flag, or…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# persist-env-var-with-rebuild > Informational, not binding. **Know a better way for the case in front of you — do it your way and > say so.** You are trusted with the creative work on this project. Give the deployed app a build-time environment variable that actually reaches visitors, on this redeploy and every future one. This is the agent-facing side of the **build-time env & redeploy** standard. There is no separate reference document: this skill is the whole standard. (It used to point at `CRUD-DOCS/workspace-standards/build-time-env-and-redeploy.md`, removed in step 500.) ## The one rule **A build-time value changes only by a rebuild, and the rebuild bakes the slot's own `app/.env.local`. Write the value there through the proper setter, then trigger a rebuild — never hand-wait a restart, never make a page dynamic to "show it instantly".** ## Is your variable build-time? (decide first) - **Build-time** (this skill): every `NEXT_PUBLIC_*` (inlined into the client bundle), and anything read while pages are generated — the language set, a Stripe **publishable** key, a feature flag, analytics IDs. Frozen at `next build`. Editing the file does nothing until a rebuild. …
Read the whole file at its exact version.
How to install
mdr add fractera/web4-node-starter-kit/persist-env-var-with-rebuild@sha256:83029acd94122d9fThe line at the top of this page pins the label git:20260918.284f588, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_3bvhb6nctaoc557y)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Sep 18, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4225 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
fractera/web4-node-starter-kit · 60 stars · license MIT · pushed 2026-11-03 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_3bvhb6nctaoc557y GET https://markdownregistry.com/api/v1/resolve?ref=fractera/web4-node-starter-kit/persist-env-var-with-rebuild GET https://markdownregistry.com/api/v1/blob/83029acd94122d9f58b3b91a13d7b8498320ca43698b50ec158d65b73072b5ce
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.