Skip to content
Use Sprocket

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:

  1. ~/.agents/AGENTS.md, your personal file for every project.
  2. Every AGENTS.md from 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:

.agents/skills/release-notes/SKILL.md
---
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:

  1. .sprocket/skills/ in the project root
  2. .agents/skills/ in the project root
  3. ~/.sprocket/skills/
  4. ~/.agents/skills/
  5. 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, and purchases. Enabled integrations add skills such as PCB design and deployment once ready on this computer. Type $ in the composer to browse the available skills.

These built-in skills require an explicit request:

SkillWhat it does
/cleanupCleans up the agent’s latest design and code changes
/recover-prBrings an old pull request up to date
/broRestates the agent’s last message in plain language