agentleFS
DobroslavRadosavljevicDobroslavRadosavljevic/cabrakan/.agents/skills/agents-md/SKILL.md

agents-md

Skill1 starsChanged 3 months agoMITView on GitHub

Create, review, rewrite, or enforce a high-quality AGENTS.md (the open “README for coding agents” format). Use when the user invokes $agents-md, says AGENTS.md, agents.md, agent instructions, project agent context, nest AGENTS.md, or asks to scaffold, audit, improve, or standardize repository guidance for AI coding agents. Always include the ASD-STE100 Communication block in new or existing root AGENTS.md files.

42 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use how, adr and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jaydubya818Skill

    how

    Use for runtime, ownership, layering, code-walkthrough, and placement questions.

    Also in 4 projects that use this

  • asterkinSkill

    adr

    Create Architecture Decision Records (ADRs) following project standards. Guides template usage, process, and best practices for documenting architecturally significant decisions.

    Also in 4 projects that use this

  • jaydubya818Skill

    why

    Use when design rationale must be recovered from source history and available records.

    Also in 4 projects that use this

  • MicrosoftSkill

    jira

    Jira issue workflows for search, issue updates, transitions, comments, field discovery, and interactive credential setup via the Jira REST API. Use when you need to configure Jira access, search with JQL, inspect an issue, create or update work items, move an issue between statuses, post comments, or discover required fields for issue creation.

    Also in 3 projects that use this

  • photon-groveSkill

    unslop

    Detects and rewrites generic, overly polished, or AI-sounding prose while preserving meaning. Use when the user asks to "unslop", humanize, de-AI, tighten, or review whether writing sounds generated.

    Also in 4 projects that use this

  • AWSSkill

    wait-what

    Stop. That last message did not land: re-pitch it.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 15 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 38 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If ambiguous, ask once: create, review, improve, or nest?

    line 29
  2. Distinctive:

    Prefer one root AGENTS.md.

    line 33
  3. Distinctive:

    Required: every root AGENTS.md must include the Communication (ASD-STE100) block from references/communication.md.

    line 34
  4. Distinctive:

    Every other line must earn its keep.

    line 35
  5. Distinctive:

    Put exact executable commands early (with flags/filters the project actually uses).

    line 37
  6. Distinctive:

    Prefer pointers and an orientation table over pasting architecture essays, full style guides, or README clones.

    line 38
  7. Distinctive:

    Document what agents cannot infer: package manager, odd layouts, silent invariants, forbidden paths, security gotchas, and “ask first” …

    line 39
  8. Distinctive:

    Use concrete examples (short snippets or canonical paths) instead of vague style prose.

    line 40
  9. Distinctive:

    Never put secrets, tokens, private keys, or real credentials in AGENTS.md.

    line 43
  10. Distinctive:

    Treat the file as living docs: when the user reports a repeated agent mistake, encode the fix here (or in a linked doc).

    line 44
  11. Very specific:

    Prefer the project’s real package manager and scripts from package.json / Makefile / justfile / CI — do not invent commands.

    line 45
  12. Very specific:

    Prefer bun / bunx in *this skill’s* examples only when the target repo already uses Bun.

    line 46
  13. Very specific:

    Read existing AGENTS.md, README.md, CONTRIBUTING.md, CI workflows, and package scripts.

    line 70
  14. Distinctive:

    Use references/template.md as a starting shape.

    line 76
  15. Distinctive:

    Always paste the Communication block from references/communication.md into the root file.

    line 77
  16. Distinctive:

    Put high-frequency commands near the top.

    line 78
  17. Distinctive:

    Create / Improve / Nest: write the file(s) at the agreed path(s), usually repo-root AGENTS.md.

    line 95
  18. Distinctive:

    Document these for maintainers when relevant (do not lecture inside every file):

    line 101

“Common” is measured: kept by at least 6 in 10 of the 38 edited versions of this file we could read. “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
SKILL.md

AGENTS.md

Overview

Produce or harden a project AGENTS.md: concise, actionable, harness-neutral instructions that coding agents load as always-on project context. Optimize for agent success, not human onboarding (that stays in README.md).

This skill targets the open AGENTS.md format (plain Markdown, no required fields). Do not confuse it with GitHub Copilot custom-agent personas under .github/agents/ (frontmatter + persona files). Lessons about commands, examples, and boundaries still apply; personas do not.

Modes

Pick one:

  • Create — no usable AGENTS.md (or user asked to scaffold).
  • Review — audit an existing file against the quality bar; report gaps without rewriting unless asked.
  • Improve — rewrite or edit so the file meets the quality bar.
  • Nest — add or fix package/subdir AGENTS.md files in a monorepo.

If ambiguous, ask once: create, review, improve, or nest?

Core Rules

  • Prefer one root AGENTS.md. Nest only when a subtree has different commands, boundaries, or conventions.
  • Required: every root AGENTS.md must include the Communication (ASD-STE100) block from references/communication.md. Paste it as-is. Nested files skip it unless they override writing rules.
  • Every other line must earn its keep. Litmus: Would removing this cause the agent to make a mistake it would not otherwise make? If no, delete it.
  • Target ≤150 lines for a root file; 30–50 is enough for small repos. Split or index when larger.
  • Put exact executable commands early (with flags/filters the project actually uses). Agents will re-run these.
  • Prefer pointers and an orientation table over pasting architecture essays, full style guides, or README clones.
  • Document what agents cannot infer: package manager, odd layouts, silent invariants, forbidden paths, security gotchas, and “ask first” changes.
  • Use concrete examples (short snippets or canonical paths) instead of vague style prose.
  • State boundaries in three tiers when useful: Always / Ask first / Never.
  • Stay harness-neutral: no dependence on one product’s tool names, UI, or hidden behavior. Optional capabilities (plan mode, approvals, subagents) may be mentioned generically with a manual fallback.
  • Never put secrets, tokens, private keys, or real credentials in AGENTS.md.
  • Treat the file as living docs: when the user reports a repeated agent mistake, encode the fix here (or in a linked doc).
  • Prefer the project’s real package manager and scripts from package.json / Makefile / justfile / CI — do not invent commands.
  • Prefer bun / bunx in this skill’s examples only when the target repo already uses Bun; otherwise match the repo.

Quality Bar (must pass)

A great AGENTS.md covers these when they apply (omit empty sections; do not pad). Communication is not optional on the root file.

  1. Stack — languages, frameworks, key libs with versions when non-obvious.
  2. Commands — install, dev, test, lint/typecheck, build; scoped variants for monorepos.
  3. Communication — the ASD-STE100 block from references/communication.md (required on root files).
  4. Layout — where source, tests, configs, and generated output live (only if non-standard).
  5. Conventions — project-specific style/architecture rules agents get wrong; link to lint/format otherwise.
  6. Testing — how to run focused tests, what “done” means, whether to add tests unprompted.
  7. Git / PR — commit/PR norms that differ from defaults (title format, required checks).
  8. Boundaries — always / ask first / never (secrets, vendor dirs, prod config, schema, deps).
  9. Index — links or a table to deeper docs (architecture, ADRs, security model) instead of inlining them.

Full checklist: references/quality-bar.md.

Workflow

1. Inspect the repo

Before writing:

  • Read existing AGENTS.md, README.md, CONTRIBUTING.md, CI workflows, and package scripts.
  • Note package manager, test runner, lint/format tools, monorepo layout, and unsafe areas.
  • Skim for prior agent instruction files (CLAUDE.md, .cursor/rules, GEMINI.md, etc.) to migrate unique content — do not blindly duplicate.

2. Draft or edit

  • Use references/template.md as a starting shape; delete unused sections.
  • Always paste the Communication block from references/communication.md into the root file.
  • Put high-frequency commands near the top. Put Communication next.
  • Encode only project-specific constraints; strip generic advice agents already know. Do not strip Communication.
  • For monorepos, follow references/nesting.md.

3. Validate

Check against:

  • Quality bar above and references/quality-bar.md.
  • Communication block present and unmodified: references/communication.md.
  • Anti-patterns in references/anti-patterns.md.
  • Good/bad patterns in references/examples.md.

Confirm every linked path exists. Confirm commands match scripts/CI. Confirm no secrets.

4. Deliver

  • Create / Improve / Nest: write the file(s) at the agreed path(s), usually repo-root AGENTS.md.
  • Review: return a short report — passes, failures, suggested edits — without rewriting unless asked.
  • End with a brief note: line count, sections present, and any intentional omissions.

Conflict and Precedence Notes

Document these for maintainers when relevant (do not lecture inside every file):

  • Closest nested AGENTS.md to the edited files wins over parent guidance when agents resolve conflicts that way; user chat always overrides files.
  • Some agents concatenate root → cwd (later/more specific wins). Keep nested files additive and explicit about overrides.
  • Soft size caps exist in some tools (for example Codex’s project-doc byte limit). Prefer splitting/nesting over one huge root file.
  • For Claude Code compatibility when needed, a thin CLAUDE.md that includes @AGENTS.md (plus any Claude-only extras) avoids duplicating the whole guide.

Out of Scope

  • Replacing path-scoped IDE rule systems (for example .cursor/rules with globs) when the user wants fine-grained, file-pattern rules — AGENTS.md is the simple, portable default.
  • Authoring Copilot custom-agent persona packs under .github/agents/ unless the user explicitly asks for those.
  • Copying the entire human README into AGENTS.md.

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.