-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Skill prompt step 1 should instruct model to read SKILL.md fully before loading additional resources #16479
Description
The skill prompt generated by render_skills_section() in codex-rs/core-skills/src/render.rs tells the model to open SKILL.md and "read only enough to follow the workflow." In practice this makes the main workflow definition ambiguous because the model has to guess what counts as "enough" before it has finished reading the workflow it is supposed to follow.
The surrounding progressive-disclosure guidance (load only specific files from references/, prefer running scripts/ instead of retyping, reuse assets/ and templates) is well suited to secondary resources, not the primary workflow definition in SKILL.md.
Step 1 of the "How to use a skill" section should explicitly instruct the model to read SKILL.md fully before loading any additional resources. This keeps progressive disclosure focused on additional resources while removing ambiguity from the core skill workflow instructions.
Current wording (step 1):
After deciding to use a skill, open its
SKILL.md. Read only enough to follow the workflow.
Suggested wording:
After deciding to use a skill, open and read its
SKILL.mdin full. This is the primary workflow definition. Then load additional resources (e.g.references/,scripts/,assets/) progressively as needed.