BeyondDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/openai/skills/llms.txt
Use this file to discover all available pages before exploring further.
SKILL.md, a skill can bundle three types of resources: executable scripts, reference documentation, and output assets. Each type serves a distinct purpose in how Codex operates — some are executed without reading, some are read into context on demand, and some are copied directly into outputs. Understanding which type to use, and when, is the key to building efficient, effective skills.
The Three Resource Types
scripts/
Executable code run directly by Codex. Token-efficient, deterministic, not loaded into context unless Codex needs to patch them.
references/
Documentation loaded into context on demand. Keeps SKILL.md lean while making domain knowledge available when needed.
assets/
Files used in the output — templates, boilerplate, images. Never loaded into context; copied or referenced in the final result.
scripts/: Executable Code
The scripts/ directory holds executable Python, Bash, or other scripts that perform specific operations on behalf of Codex.
When to include scripts:
- The same code would otherwise be rewritten from scratch on every run
- Deterministic reliability is more important than flexibility (e.g., PDF manipulation, file format conversion)
- An operation is complex enough that ad-hoc code generation produces inconsistent results
- The task involves a specific sequence of steps that must be followed exactly
- Token-efficient: Scripts can be executed without loading their source into the context window
- Deterministic: A tested script produces consistent results across runs
- Patchable: Codex can still read and modify scripts when environment-specific adjustments are needed
scripts/rotate_pdf.py directly rather than regenerating that logic from scratch.
Testing requirement: Every script in a skill must be tested by actually running it before the skill is published. If there are many similar scripts, test a representative sample. Untested scripts that fail at runtime undermine the skill’s reliability.
references/: On-Demand Documentation
The references/ directory holds documentation that Codex reads into context when it determines the information is needed for a specific task.
When to include reference files:
- Database schemas that Codex would otherwise have to re-discover each run
- API documentation for tools that aren’t well-represented in training data
- Domain-specific policies, business logic, or company standards
- Detailed workflow guides too long for SKILL.md
- Information that is only relevant for specific sub-tasks
- Table of contents for long files: For any reference file longer than 100 lines, add a table of contents at the top. This lets Codex scan the full scope of a file before deciding which section to focus on.
-
Grep hints for very large files: For files over ~10,000 words, include search patterns in SKILL.md so Codex can locate relevant sections without reading the entire file:
-
Avoid duplication: Information should live in either SKILL.md or a reference file — never both. If a schema is in
references/schema.md, don’t also summarize it in SKILL.md. Add a pointer instead.
assets/: Output Files
The assets/ directory holds files that become part of the output Codex produces — not documentation that gets read, but actual files that get copied, filled in, or referenced in the final deliverable.
When to include assets:
- The skill generates output based on a consistent template (slides, reports, documents)
- The skill scaffolds a new project and needs boilerplate code to copy
- The skill requires images, icons, or fonts as part of its output
Organization Patterns
When a skill covers multiple domains, frameworks, or use cases, organize reference files to avoid loading irrelevant content. By domain:sales.md.
By cloud provider or framework:
aws.md.
By feature: