agentleFS
Fencer-SecurityFencer-Security/skills/AGENTS.md

skills

AGENTS.md1 starsChanged 6 months agoApache-2.0View on GitHub

Guidance for AI agents (Claude Code, Codex, Gemini, Copilot) and human contributors working on this repository. A public marketplace of plugins for Claude Code and Codex. Each plugin contains one or more skills following the open Agent Skills standard (SKILL.md with YAML frontmatter). description should read as a trigger — when an agent reads it, they should immediately know whether this skill applies. Keep it under 1024 chars. Both Claude Code (${CLAUDE_SKILL_DIR}) and Codex (${SKILL_DIR}) inject the skill directory as…

  • 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,774 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.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add an entry for my-plugin to .claude-plugin/marketplace.json under plugins.

    line 37
  2. Very specific:

    Create skills under plugins/my-plugin/skills/<skill-name>/SKILL.md.

    line 38
  3. Very specific:

    Don't add a pyproject.toml per skill.

    line 81
  4. Very specific:

    If a skill drives an external CLI (fencer, gh, terraform, etc.), check before invoking and tell the user how to install if it's missing:

    line 90

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

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

AGENTS.md

Guidance for AI agents (Claude Code, Codex, Gemini, Copilot) and human contributors working on this repository.

What this repo is

A public marketplace of plugins for Claude Code and Codex. Each plugin contains one or more skills following the open Agent Skills standard (SKILL.md with YAML frontmatter).

Layout

.claude-plugin/marketplace.json   # Claude Code marketplace catalog
plugins/<plugin>/
  .claude-plugin/plugin.json      # Claude Code plugin manifest
  .codex-plugin/plugin.json       # Codex plugin manifest (mirrors Claude manifest)
  README.md
  skills/<skill>/SKILL.md         # the portable artifact (open standard)
  skills/<skill>/scripts/         # optional helpers (Python or TS)
  .mcp.json                       # optional, registers MCP servers
scripts/                          # repo-level dev tooling (NOT shipped in plugins)
.github/workflows/                # CI: validate, lint, test-skills
pyproject.toml                    # uv: dev deps only
package.json                      # bun: dev deps only

Adding a plugin

./scripts/new_plugin.sh my-plugin "One-line description."

Then:

  1. Add an entry for my-plugin to .claude-plugin/marketplace.json under plugins.
  2. Create skills under plugins/my-plugin/skills/<skill-name>/SKILL.md.
  3. Run ./scripts/validate_manifests.py.

Skill conventions

Frontmatter (required)

---
name: my-skill
description: One-line trigger description in third person, mentions when to use.
allowed-tools: Bash Read Grep
---

description should read as a trigger — when an agent reads it, they should immediately know whether this skill applies. Keep it under 1024 chars.

Script portability

Both Claude Code (${CLAUDE_SKILL_DIR}) and Codex (${SKILL_DIR}) inject the skill directory as an env var, but with different names. In SKILL.md shell snippets, use:

SKILL_DIR="${CLAUDE_SKILL_DIR:-${SKILL_DIR}}"
"$SKILL_DIR/scripts/refresh.py" "$@"

Python helpers

Single-file PEP 723 scripts. The shebang invokes uv run --script, which resolves dependencies on first run:

#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = ["httpx", "pydantic>=2"]
# ///
"""What this script does."""
...

Don't add a pyproject.toml per skill. The skill stays self-contained and copy-pasteable.

TypeScript helpers

bun run script.ts runs .ts directly with no build step. Add a per-skill package.json only if the helper needs runtime npm deps; otherwise inline imports are enough.

External CLIs

If a skill drives an external CLI (fencer, gh, terraform, etc.), check before invoking and tell the user how to install if it's missing:

if ! command -v <tool> >/dev/null; then
  echo "<tool> not found. Install: <project's documented install command>" >&2
  exit 1
fi

The Fencer Go CLI is not bundled in this repo — users install it separately.

Local validation

Toolchain mirrors the fencer/app repo: ruff for Python, oxlint + oxfmt for JS/TS/configs, codespell for spelling, pre-commit to wire it together. mise runs the canonical task names.

mise run sync-all     # uv sync + bun install + pre-commit install
mise run lint         # ruff + oxlint + oxfmt --check
mise run format       # ruff format + ruff --fix + oxfmt
mise run validate     # marketplace + plugin + SKILL.md frontmatter
mise run pre-commit-all

Or directly without mise:

uv run ruff check .
uv run ruff format --check .
bun run lint                # oxlint
bun run format:check        # oxfmt --check
./scripts/validate_manifests.py

Publishing

Pushing to main is enough — Claude Code reads the marketplace.json from the default branch. Tag releases with semver (v0.1.0) so plugin version fields can pin against tags if needed.

License

Apache-2.0. All new plugin manifests must declare "license": "Apache-2.0". The repo's NOTICE file holds attribution and trademark notices required by Section 6.

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.