Once practices are promoted intoDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/xxyoudeadpunkxx/csbp-codex-shared-best-practice/llms.txt
Use this file to discover all available pages before exploring further.
shared-best-practice.txt, CSBP applies them passively during work. No special invocation is needed. At the start of each session, Codex reads CSBP-entry-point.txt first, then loads shared-best-practice.txt. As work proceeds, Codex checks each active practice’s applies_when condition against the current operation — if a condition matches, the practice guides the decision. If nothing matches, CSBP stays silent.
How practices activate
Codex applies a strict read order when evaluating each block inshared-best-practice.txt:
- Check status — if the block is
deprecated, skip it entirely. Deprecated practices are not applied at runtime. - Check
applies_when— does the operational condition described in the field match what is happening right now? - Use
goalto interpret the practice — the goal field explains the intended effect and provides context for applying the practice correctly. - Apply
doas the default action — this is the primary instruction. When the practice is relevant, this is what Codex does. - Use
avoidas the guard — the avoid field names the recurring wrong pattern. It prevents regression to the old behavior.
If no active practice matches the current operation, Codex continues without CSBP runtime guidance. There is no forced behavior, no fallback practice, and no default intervention. An empty match is a clean pass-through.
Example: a practice in action
SupposeP001 is a verification practice with the following shape:
applies_when condition — “finishing a task or change” — matches the current operation. Codex applies the do instruction: confirm the change is visible before marking done. The avoid field acts as a guard, preventing Codex from closing without that confirmation step.
If Codex were in the middle of drafting content or running a search, the applies_when condition would not match, and P001 would not activate.
What runtime mode does not do
Reading deprecated practices
Deprecated blocks remain inshared-best-practice.txt after deprecation — they are not deleted. During runtime, Codex skips any block with status: deprecated at the first read-order check. Deprecated practices do not influence behavior in any way.
They remain in the file to support maintenance history: you can review them, understand why they were deprecated, and reference them if a similar candidate is raised in the future.
Scope in practice
Each block carries ascope value that signals how broadly the practice applies:
| Scope | Meaning in an active session |
|---|---|
global | Always potentially relevant — this practice is stable across work contexts and is evaluated whenever its applies_when condition is checked. |
environment-global | Relevant across the current working environment across sessions — applies consistently within the environment where the practice was formed, regardless of the specific task or project. |
applies_when condition is still the primary activation gate — scope does not override it.
Checking active practices
You can ask Codex to list or summarize the current active practices inshared-best-practice.txt at any time. This is a normal runtime operation and does not require opening formation mode. Codex will read the file and report which practices have status: active, along with their applies_when conditions and kind classifications.
This gives you direct visibility into what is guiding work without needing to open the file manually.