home/roleplay/all-prompts-use-replace

All Prompts Use Replace

GPTClaudeGemini··612 copies·updated 2026-07-14
all-prompts-use-replace.prompt
# All prompts use .replace() substitution

## Status
Accepted

## Context
`content_prompt()` and `distill_prompt()` used `.replace()` but `syllabus_prompt()` used `.format(**kwargs)`. Injected domain content contains `{braces}` that break `.format()`.

## Decision
All prompts use chained `.replace()` calls. Placeholder syntax stays `{NAMED}`.

## Consequences
Prevents `{braces}` in domain content from breaking substitution. All prompts use one consistent pattern.

fill the variables

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

{braces}{NAMED}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo kphutt/interview-prep (MIT). A "All Prompts Use Replace" 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

roleplaycommunitygeneral

source

kphutt/interview-prep · MIT