AGENTS.md and skills
Set project rules with AGENTS.md and add workflows with SKILL.md. Covers file locations, precedence, and requesting skills.
Use AGENTS.md to give Sprocket project rules, such as test commands and coding conventions. Use skills to define workflows the agent loads when a task needs them.
AGENTS.md
Sprocket loads instructions from:
~/.agents/AGENTS.md, your personal file for every project.- Every
AGENTS.mdfrom the project root down to the folder you opened.
Each file applies to the folder that contains it and everything below it. Deeper files win when instructions conflict. Sprocket tells the agent to check for more AGENTS.md files when it moves into a subfolder.
Sprocket reads up to 32 KiB from your personal file and up to 32 KiB across all project files. It cuts off text past those limits.
Skills
A skill is a folder with a SKILL.md file that describes a workflow. The agent sees each skill’s name and description and reads its instructions when a task matches. To request a skill, type $name in the composer. The / menu lists skills that require an explicit request.
Add a skill
Create a folder named after the skill with a SKILL.md inside it:
---
name: release-notes
description: Use when writing release notes from merged pull requests.
---
1. List the pull requests merged since the last tag with `gh pr list --state merged`.
2. Group them under Features, Fixes, and Other.Both name and description are required. The name must match the folder name and contain 1 to 64 lowercase letters, digits, or hyphens. It can’t start or end with a hyphen or contain consecutive hyphens.
Add disable-model-invocation: true to the frontmatter to hide a skill from the agent’s list. Request it with $name or /name.
Where skills live
Sprocket loads skills from these locations, in order. When skills share a name, the first match wins:
.sprocket/skills/in the project root.agents/skills/in the project root~/.sprocket/skills/~/.agents/skills/- Skills built into Sprocket
The project root is the git repository root, or the working directory outside git. Sprocket loads up to 64 skills.
Built-in skills
Sprocket ships skills for browser and desktop automation, UI design, hardware, deployment, and purchases. Type $ in the composer to browse the available skills.
These built-in skills require an explicit request:
| Skill | What it does |
|---|---|
/cleanup | Cleans up the agent’s latest design and code changes |
/recover-pr | Brings an old pull request up to date |
/bro | Restates the agent’s last message in plain language |