skills
AGENTS.md557 starsChanged 38 days agoMITView on GitHub
A collection of Agent Skills published by Posit PBC. Skills are structured markdown files, following the Agent Skills specification, that teach coding agents specialized workflows (e.g., Shiny app development, R package testing, GitHub PR workflows). There is no application code to build, compile, or deploy — the primary artifacts are Markdown files consumed directly by coding agents that support the Agent Skills format. Two runnable utilities live at the repo root. count-skill-tokens.py reports line and token counts for a skill:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 52
Do not create a README.md inside individual skill directories — documentation about a skill's design goes in the category README.
- Distinctive: line 56
Every skill requires YAML frontmatter at minimum:
- Very specific: line 71
After creating the skill directory, add it to the appropriate plugin in .claude-plugin/marketplace.json:
- Very specific: line 83
If a skill spans multiple categories (like brand-yml for both Shiny and Quarto), add its path to multiple plugin skills arrays.
- Very specific: line 85
When adding a new plugin to marketplace.json, also update the root README.md "Method 2: Direct Installation" section so it lists the …
- Very specific: line 102
Progressive disclosure: Put specialized or large reference content in references/*.md and instruct the agent to read those files only when …
- Very specific: line 103
Harness assumptions: If a skill assumes a specific coding harness or tools, say so in the compatibility frontmatter field and in the …
- Very specific: line 104
R scripts: Use a shebang (#!/usr/bin/env Rscript), include inline usage docs, check for required packages at startup, and exit non-zero on …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance to coding agents (e.g., Posit Assistant, Claude Code, Codex, Cursor) when working with code in this repository.
What This Repository Is
A collection of Agent Skills published by Posit PBC. Skills are structured markdown files, following the Agent Skills specification, that teach coding agents specialized workflows (e.g., Shiny app development, R package testing, GitHub PR workflows). There is no application code to build, compile, or deploy — the primary artifacts are Markdown files consumed directly by coding agents that support the Agent Skills format.
Utility Scripts
Two runnable utilities live at the repo root.
count-skill-tokens.py reports line and token counts for a skill:
# Requires uv
./count-skill-tokens.py shiny/shiny-bslib
# or
uv run count-skill-tokens.py r-lib/r-cliWarns when SKILL.md exceeds 5,000 tokens / 500 lines, or when the skill description frontmatter exceeds 100 tokens.
find-stale-references.py finds references to old skill names after a rename, so stale mentions don't linger in the repo or in users' projects:
# Check the default r-lib r-* prefix renames
./find-stale-references.py [paths...]
# High-confidence path references only (e.g. "r-lib/cli/SKILL.md")
./find-stale-references.py --kinds path
# Check a custom rename
./find-stale-references.py --rename old-name=new-name ~/my-projectBare name mentions are also reported but need review: the old name may refer to an R package (cli), a website (cli.r-lib.org), or an ordinary word (lifecycle) rather than the skill. Exits non-zero when matches are found, so it can gate CI.
Directory Structure
<category>/
README.md # Category-level notes (optional per skill)
<skill-name>/
SKILL.md # Required: skill definition with YAML frontmatter
references/ # Optional: supplementary docs loaded on demand
*.md
scripts/ # Optional: R or shell helpers
templates/ # Optional: document templatesDo not create a README.md inside individual skill directories — documentation about a skill's design goes in the category README.
SKILL.md Format
Every skill requires YAML frontmatter at minimum:
---
name: your-skill-name # kebab-case, matches directory name
description: > # The agent reads this to decide when to activate the skill
Clear description of what this skill does and when to trigger it.
Keep under 100 tokens.
---The body is instructions written for the agent, not end users — imperative, step-by-step, covering edge cases.
Registering a New Skill
After creating the skill directory, add it to the appropriate plugin in .claude-plugin/marketplace.json:
{
"name": "open-source",
"skills": [
"./open-source/release-post",
"./open-source/your-new-skill" ← add here
]
}If a skill spans multiple categories (like brand-yml for both Shiny and Quarto), add its path to multiple plugin skills arrays. The source field is always "./" (repo root).
When adding a new plugin to marketplace.json, also update the root README.md "Method 2: Direct Installation" section so it lists the /plugin install command for every plugin. All plugins in marketplace.json must have a corresponding install line in the README.
Skill Categories
| Category | Purpose |
posit-dev/ | General developer skills (code review, architecture docs) |
github/ | PR creation and review thread workflows |
open-source/ | R/Python package release and changelog workflows |
r-lib/ | R package development with the r-lib ecosystem |
shiny/ | Shiny app development |
quarto/ | Quarto document authoring |
connect/ | Deploying and managing content on Posit Connect |
brand-yml/ | Shared skill registered under both shiny and quarto plugins |
Key Conventions
- Progressive disclosure: Put specialized or large reference content in
references/*.mdand instruct the agent to read those files only when needed. This keeps the mainSKILL.mdwithin token limits. - Harness assumptions: If a skill assumes a specific coding harness or tools, say so in the
compatibilityfrontmatter field and in the skill's README description. Where possible, prefer harness-agnostic instructions or separate harness-specific reference files (seeposit-dev/implement/references/). - R scripts: Use a shebang (
#!/usr/bin/env Rscript), include inline usage docs, check for required packages at startup, and exit non-zero on error. - Testing: Install locally via
cp -r <category>/<skill> ~/.agents/skills/(or~/.posit/assistant/skills/for Posit Assistant) and verify your coding harness activates the skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

