home/writing/codex-prompts-2

CODEX PROMPTS

GPTClaudeGemini··934 copies·updated 2026-07-14
codex-prompts-2.prompt
# Codex Prompts — Prompt Lab v1.6

---

## Prompt 1: Ghost Variables (Logic Layer)

**Target files (modify only these):**
- `prompt-lab-extension/src/promptUtils.js`
- `prompt-lab-extension/src/hooks/usePromptEditor.js`

**Do NOT modify:** `App.jsx`, `background.js`, `manifest.json`, `platform.js`, or any other file.

### Context

Prompt Lab has a template variable system. When a user loads a saved prompt containing
`{{varName}}` placeholders, the app extracts the variable names, shows a form for the
user to fill in values, then substitutes them into the prompt text.

Current flow in `usePromptEditor.js` (line 294):

fill the variables

This prompt has 1 variable. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{{varName}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo DaveHomeAssist/prompt-lab (NOASSERTION). A "CODEX PROMPTS" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

writingcommunitygeneral

source

DaveHomeAssist/prompt-lab · NOASSERTION