Custom Instructions + Two Random Files
Follow this workflow to consistently apply custom instructions and gather lightweight repo context.
Workflow
- •Ask the user for their custom instructions if they have not provided them yet.
- •Restate the instructions briefly and commit to following them for the rest of the task.
- •Sample two random files from the repo:
bash
.codex/skills/custom-instructions-random-files/scripts/pick_two_random_files.py
- •Open both files and extract only the most relevant signals (patterns, conventions, utilities, constraints).
- •Continue the task using both the custom instructions and any learned repo conventions.
Notes
- •Treat the two random files as context hints, not requirements.
- •Prefer
rgfor follow-up exploration once you discover relevant patterns. - •If the sampled files are obviously irrelevant (e.g., large generated assets), sample again.