During normal work, CSBP does not create new practices. It does not evaluate candidates, it does not revise existing entries, and it does not write anything to any file. It only applies already-promoted active practices — and only when theirDocumentation 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.
applies_when condition matches the current operation. If no active practice is relevant, CSBP contributes nothing to the session and Codex continues without it.
Read order
When CSBP readsshared-best-practice.txt during a session, it follows a strict sequence for each practice block:
- Check
status— if the block isdeprecated, skip it immediately. Deprecated practices are not eligible for runtime use regardless of their content. - Check
applies_when— evaluate the operational condition. If it does not match what is currently being done, skip the block. - Use
goalto interpret the practice’s intended effect — understand what the practice is trying to achieve before applying it. - Apply
doas the primary default action — this is the main instruction. When the practice is active and relevant,dois what Codex follows by default. - Use
avoidas the guard against the recurring wrong pattern —avoididentifies the failure mode the practice is designed to prevent. It acts as a check against the competing pattern that the practice was created to stop.
applies_when check, or applying do before reading goal, breaks the intended reading order.
Active vs deprecated
Each practice block carries astatus field with one of two values:
| Status | Runtime behavior |
|---|---|
active | Eligible for runtime use. The block is read fully, applies_when is evaluated, and the practice may guide current work. |
deprecated | Excluded from runtime use. The block is skipped immediately after the status check. It remains in the file for review history and maintenance reference. |
shared-best-practice.txt so they are available for review during maintenance work. But they contribute nothing to active sessions.
Empty state
If
shared-best-practice.txt contains no active practices that are relevant to the current work, Codex continues without CSBP runtime guidance. No active match means no forced behavior. CSBP does not manufacture guidance when no relevant practice exists — the session proceeds normally without it.What runtime mode cannot do
Mode separation
CSBP operates in two distinct modes. They must stay separate. Runtime mode cannot borrow formation logic, and formation mode does not behave as active runtime policy.| Mode | Primary file | Purpose | Can do | Must not do |
|---|---|---|---|---|
| Runtime mode | shared-best-practice.txt | Apply already-promoted practices. | Guide decisions when applies_when matches current work. | Invent, revise, promote, deprecate, or remove practices silently. |
| Practice formation mode | shared-best-practice-compiler.txt | Evaluate and shape candidate practices. | Propose promotion, revision, deprecation, rejection, or removal. | Auto-promote without operator approval or behave as active runtime policy. |
Scope values
Every practice block includes ascope field that signals how broadly the practice applies:
global— the practice is stable across work contexts. It applies regardless of the specific environment, project, or working setup in a session. A global practice is not tied to any particular context and should hold wherever the operational condition it describes can arise.environment-global— the practice applies across the current working environment across sessions. It is tied to the environment rather than a specific project or task. It persists across sessions within that environment but does not necessarily extend beyond it.
Kind values
Every practice block includes akind field that identifies the primary role of the practice for runtime interpretation:
| Kind | Meaning | Example use case |
|---|---|---|
environment | A stable environment condition, constraint, or affordance. Describes something about the working environment that should always be accounted for. | Noting a persistent tool constraint or environment-level limitation that affects how work is done. |
orientation | A setup, framing, or initial approach. Applies at the start of a task or working session before execution begins. | A default for how to frame or approach a category of work before diving in. |
operation | An execution step or working method during real work. Applies during active task execution. | A default action to take at a specific point during a recurring operational pattern. |
verification | A check, confirmation, or closure practice. Applies after execution to confirm the work is correct or complete. | A step to verify output or confirm a condition before closing out a task. |