agentleFS
MicrosoftKnown publishermicrosoft/vscode-team-kit/AGENTS.md

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
  1. Very specific:

    Create a directory at the repo root (lowercase, hyphens ok, e.g.

    line 7
  2. Very specific:

    Add a CHANGELOG.md with the initial release entry (see Versioning below).

    line 18
  3. Distinctive:

    Add a README.md with: one-sentence description, skills table, how it works, and plugin structure tree.

    line 19
  4. Distinctive:

    Add the plugin to the appropriate workflow section in the repo README.md.

    line 21
  5. Distinctive:

    Add your components (skills, commands, agents, hooks, scripts, etc.).

    line 22
  6. Distinctive:

    Every plugin uses semantic versioning.

    line 26
  7. Distinctive:

    Use it in PreToolUse hook scripts to introspect which files and changes an edit tool is about to make:

    line 52

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

  1. Create a directory at the repo root (lowercase, hyphens ok, e.g. my-plugin).
  2. Add .plugin/plugin.json:
    {
      "name": "my-plugin",
      "version": "1.0.0",
      "description": "Brief description of what the plugin does.",
      "license": "MIT",
      "keywords": ["relevant", "tags"]
    }
  3. Add a CHANGELOG.md with the initial release entry (see Versioning below).
  4. Add a README.md with: one-sentence description, skills table, how it works, and plugin structure tree.
  5. Register the plugin in marketplace.json — add an entry to the plugins array with matching name, version, and description.
  6. Add the plugin to the appropriate workflow section in the repo README.md.
  7. Add your components (skills, commands, agents, hooks, scripts, etc.).

Versioning

Every plugin uses semantic versioning. Version numbers must stay in sync across three places:

FileField
my-plugin/.plugin/plugin.json"version"
marketplace.json"version" in the plugin's entry
my-plugin/CHANGELOG.mdTop 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
}

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.