Skip to content
Use Sprocket

Instructions and skills

Set project rules with AGENTS.md and add workflows with skills.

AGENTS.md

Put project instructions, such as test commands or the target branch for pull requests, in AGENTS.md. Sprocket loads:

  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, deployment, and purchases. 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