vscode-team-kit
AGENTS.md62 starsChanged 2 months agoMITView on GitHub
Each top-level directory containing a .plugin/plugin.json is a plugin. Plugins are self-contained — skills, hooks, scripts, agents, and commands all live inside the plugin directory. Every plugin uses semantic versioning. Version numbers must stay in sync across three places: On every change to a plugin, bump the version and add a changelog entry in the same commit. Don't batch version bumps across multiple PRs. Dependencies are declared in the root package.json. Any Node.js script (hooks, MCP servers, utilities, etc.) should…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Create a directory at the repo root (lowercase, hyphens ok, e.g.
- Very specific: line 18
Add a CHANGELOG.md with the initial release entry (see Versioning below).
- Distinctive: line 19
Add a README.md with: one-sentence description, skills table, how it works, and plugin structure tree.
- Distinctive: line 21
Add the plugin to the appropriate workflow section in the repo README.md.
- Distinctive: line 22
Add your components (skills, commands, agents, hooks, scripts, etc.).
- Distinctive: line 26
Every plugin uses semantic versioning.
- Distinctive: line 52
Use it in PreToolUse hook scripts to introspect which files and changes an edit tool is about to make:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Writing Plugins
Each top-level directory containing a .plugin/plugin.json is a plugin. Plugins are self-contained — skills, hooks, scripts, agents, and commands all live inside the plugin directory.
Creating a New Plugin
- Create a directory at the repo root (lowercase, hyphens ok, e.g.
my-plugin). - Add
.plugin/plugin.json:{ "name": "my-plugin", "version": "1.0.0", "description": "Brief description of what the plugin does.", "license": "MIT", "keywords": ["relevant", "tags"] } - Add a
CHANGELOG.mdwith the initial release entry (see Versioning below). - Add a
README.mdwith: one-sentence description, skills table, how it works, and plugin structure tree. - Register the plugin in
marketplace.json— add an entry to thepluginsarray with matchingname,version, anddescription. - Add the plugin to the appropriate workflow section in the repo
README.md. - Add your components (skills, commands, agents, hooks, scripts, etc.).
Versioning
Every plugin uses semantic versioning. Version numbers must stay in sync across three places:
| File | Field |
my-plugin/.plugin/plugin.json | "version" |
marketplace.json | "version" in the plugin's entry |
my-plugin/CHANGELOG.md | Top entry heading |
On every change to a plugin, bump the version and add a changelog entry in the same commit. Don't batch version bumps across multiple PRs.
Node Scripts
Dependencies are declared in the root package.json. Any Node.js script (hooks, MCP servers, utilities, etc.) should require the install helper at the top to ensure node_modules are available:
import install from '<path-to-team-kit>/common/install-if-necessary.mts';
install().then(() => import('./impl.mts'));This runs npm install if package.json or package-lock.json have changed since the last install.
Edit Tools
The common/edit-tools.mts module describes the built-in file-editing tools (replace_string_in_file, multi_replace_string_in_file, apply_patch) and provides extractEditInputs(toolName, toolInput) to normalise their inputs into a common EditInput[] shape.
Use it in PreToolUse hook scripts to introspect which files and changes an edit tool is about to make:
import { extractEditInputs, editedFilePaths, isEditTool } from '<team-kit>/common/edit-tools.mts';
// In a hook script, read the event from stdin:
const event = JSON.parse(await readStdin());
if (isEditTool(event.tool_name)) {
const edits = extractEditInputs(event.tool_name, event.tool_input);
const files = editedFilePaths(edits);
// ... inspect edits or files
}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.

