They are ordinary workspace files, so you create them the same way you create anything else - upload, write through the API, or let an agent write them.
Project instructions
CLAUDE.md (or AGENTS.md) at the workspace root is read on every run. Keep it short and durable: conventions, where things live, what never to touch.
Skills
A skill is a folder under.skills/ with a SKILL.md inside. The frontmatter is what the agent sees when deciding whether the skill applies, so write the description as “when to use this”, not as a title.
.skills/monthly-report/SKILL.md:
Subagents
A subagent is a markdown file under.agents/. The main agent delegates a self-contained task to it, and the subagent works in its own context - useful for work that would otherwise flood the main conversation, like reading fifty files to answer one question.
A workspace loads up to 50 subagents.
Seeing what a workspace offers
name or description is skipped silently, so check here after adding one.
Turning them off for a single run
Skills and subagents apply automatically. To exclude one from a specific run without deleting it:Related
- Agent runs - the run options these fields belong to
- Unattended runs - where durable instructions pay off most
- Files - writing these files through the API