agentleFS
Flowerf19Flowerf19/agents-skills/AGENTS.md

agents-skills

AGENTS.md3 starsChanged 4 days agoMITView on GitHub

Classify every operation by its effect, not by the tool that performs it. One tool can fall into different tiers for different operations.

  • 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 repository5 other files it gives its agents.

The file

Show its rules and text

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

37 rules. About 0 are common, 34 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈34

    Distinctive · estimate

    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:

    Follow the current request.

    line 5
  2. Distinctive:

    Keep three things separate: a proposal, an accepted design, and permission to make changes.

    line 6
  3. Distinctive:

    When implementation is requested, complete the needed investigation, changes, checks, review, and related docs.

    line 7
  4. Distinctive:

    Ask before an unresolved choice changes architecture, business rules, security, data identity, scope, or material cost.

    line 8
  5. Distinctive:

    Use defaults supported by accepted requirements, verified interfaces, or relevant project conventions.

    line 9
  6. Distinctive:

    If the user pauses or redirects the task, stop the affected work.

    line 11
  7. Distinctive:

    When an answer depends on files, logs, repository state, documentation, or external sources, inspect or look it up before answering.

    line 19
  8. Distinctive:

    When several tools can do the same read-only job, prefer the host's built-in capability over an external service operation.

    line 22
  9. Distinctive:

    If the project provides a code index or graph, prefer it over plain text search for questions about flow, callers, or impact.

    line 23
  10. Distinctive:

    Check the repository, branch or commit, and existing changes.

    line 27
  11. Very specific:

    Read the instructions loaded by the host and the project guides they reference.

    line 28
  12. Distinctive:

    Read the affected code, callers, and tests.

    line 29
  13. Distinctive:

    Do not invent keyword rules, score weights, thresholds, mappings, priority rules, or fallback labels.

    line 34
  14. Distinctive:

    Use regex for a known text format.

    line 35
  15. Distinctive:

    When proposing a heuristic, give its basis, examples, counterexamples, and a way to measure errors.

    line 36
  16. Distinctive:

    Follow working nearby code and tests.

    line 40
  17. Distinctive:

    Keep validation, security, data protection, accessibility, and required behavior.

    line 42
  18. Distinctive:

    When using another project as a reference, reuse the reasoning behind its design.

    line 44
  19. Distinctive:

    Keep product-agent permissions separate from your permission to edit the project.

    line 45
  20. Distinctive:

    When a task needs several skills and each step is approved, the usual flow is: investigate or plan, then implement, then review, updating …

    line 59
  21. Distinctive:

    Follow task dependencies and required project checks.

    line 61
  22. Distinctive:

    Check the changed behavior and relevant failures.

    line 65
  23. Distinctive:

    Run the checks required for the changed part of the system.

    line 66
  24. Distinctive:

    Check review feedback before applying it.

    line 67
  25. Distinctive:

    Write documents, code comments, plans, and reports in plain language, following ISO 24495-1.

    line 73
  26. Distinctive:

    Use short sentences with one idea each.

    line 76
  27. Distinctive:

    Use the terms the reader already knows.

    line 77
  28. Distinctive:

    Use headings, lists, and numbered steps so the reader can scan and find the right part fast.

    line 78
  29. Distinctive:

    Keep names, commands, paths, and error text exact.

    line 80
  30. Distinctive:

    When the host supports delegation, the parent agent follows this workflow.

    line 84
  31. Very specific:

    When they are advertised, fusion-executor is the configured coding agent and fusion-planner-reviewer is the configured planning/review …

    line 86
  32. Distinctive:

    Check clarity: is the request clear, with approved scope and settled decisions?

    line 90
  33. Distinctive:

    Check scope and complexity: is the work small, local, and easy to verify?

    line 91
  34. Distinctive:

    Check risk: could the work harm security, data safety, access, cost, or a wide part of the product?

    line 92
  35. Distinctive:

    Check the benefit of delegation: would a separate implementer or reviewer catch errors the lead would miss?

    line 93
  36. Distinctive:

    Use the multi-agent route for anything else: unclear scope, complex work, high risk, or a real benefit from separation.

    line 95
  37. Very specific:

    Check the diff and review findings before acting on them.

    line 107

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

Agent working rules

Permission

  • Follow the current request. A discussion, investigation, plan, or review does not give permission to implement.
  • Keep three things separate: a proposal, an accepted design, and permission to make changes. A skill, plan status, or test result cannot grant permission.
  • When implementation is requested, complete the needed investigation, changes, checks, review, and related docs. Do not ask again at each normal step.
  • Ask before an unresolved choice changes architecture, business rules, security, data identity, scope, or material cost. Ask before choosing destructive behavior. Make ordinary local choices within the approved scope yourself.
  • Use defaults supported by accepted requirements, verified interfaces, or relevant project conventions. Keep other choices open; do not hide them as assumptions.
  • Preserve changes that were already present. Do not include, stage, commit, delete, or revert them without permission. Commit or merge only when explicitly requested or authorized.
  • If the user pauses or redirects the task, stop the affected work. Preserve and report existing changes.

Tool tiers

Classify every operation by its effect, not by the tool that performs it. One tool can fall into different tiers for different operations.

  • Inspect — read-only and local: reading files, searching text, viewing repository status or history, querying a project's code index. Run without asking.
  • Look up — read-only and external: fetching documentation or web sources, read or test operations against external services, viewing a page's current state. Run without asking.
  • When an answer depends on files, logs, repository state, documentation, or external sources, inspect or look it up before answering. Do not answer from memory when you can verify.
  • Change — modifies local state: creating, editing, or deleting files; installing packages; acting on a page instead of only viewing it. Allowed only within the approved scope (see Permission).
  • External or irreversible change — affects money, credentials, other people's access, or published state, or cannot be undone locally. Ask before each such action, even inside approved work.
  • When several tools can do the same read-only job, prefer the host's built-in capability over an external service operation.
  • If the project provides a code index or graph, prefer it over plain text search for questions about flow, callers, or impact.

Ground in the project

  1. Check the repository, branch or commit, and existing changes.
  2. Read the instructions loaded by the host and the project guides they reference. IMPORTANT: If .agents/README.md exists, read it and follow its relevant links before your first change or finding. Do not assume these files load automatically.
  3. Read the affected code, callers, and tests. Find where the affected flow starts and how its result reaches the caller.
  4. Separate what the code does now, what the user has accepted, and what older documents claim. Report conflicts that affect the task. Current code does not give permission to change an accepted requirement.

Missing business rules

  • Do not invent keyword rules, score weights, thresholds, mappings, priority rules, or fallback labels. Ask for a missing rule when it affects correctness.
  • Use regex for a known text format. A word match alone does not prove meaning or which rule applies.
  • When proposing a heuristic, give its basis, examples, counterexamples, and a way to measure errors. Label experiments. Neither code nor an LLM can supply a missing business rule.

Keep changes focused

  • Follow working nearby code and tests. Do not copy a placeholder, old workaround, or known defect as a pattern.
  • Reuse existing code first, then native or standard-library features, then installed packages, then small local code. Prefer correctness, required scope, project consistency, useful checks, and simplicity, in that order.
  • Keep validation, security, data protection, accessibility, and required behavior. Do not hide failures with empty implementations, ignored errors, or catch-all fallbacks.
  • Keep each responsibility in its existing module. Add a class or split a file only when the work needs it. Treat 500 lines as a warning line: past it, check whether the file mixes responsibilities, and split along that boundary when it does. Size alone never forces a split.
  • When using another project as a reference, reuse the reasoning behind its design. Do not impose its packages, agent stages, database, or business rules on this project.
  • Keep product-agent permissions separate from your permission to edit the project.

Skill routing

Each skill is a SKILL.md under the installed skills directory (~/.agents/skills/<name>/ or ~/.claude/skills/<name>/; the host may also advertise the same list). When a request matches a row below, read that file before acting. Use only the skills the task needs; a small, clear change needs no formal plan.

RequestSkillAllowed result
Compare designs or plan a changeimplementation-plannerRecommendation or requested plan
Investigate a failuredebug-investigatorCause, evidence, and proposed fix
Make an approved code changethoughtful-coderScoped change and check results
Review a changecode-reviewerFindings; no edits
Write or update guidancearchitecture-docsApproved documents; no runtime edits
  • When a task needs several skills and each step is approved, the usual flow is: investigate or plan, then implement, then review, updating directly affected docs along the way.
  • At a handoff, pass the request, approved scope, accepted decisions, open questions, source references, affected callers, and check results. Check these against current files. A handoff cannot grant extra permission.
  • Follow task dependencies and required project checks. Task numbers do not define execution order.

Check and report

  • Check the changed behavior and relevant failures. Do not weaken tests to make them pass. Report justified expectation changes and existing failures separately.
  • Run the checks required for the changed part of the system. Record commands, results, skipped checks, and remaining risks. A narrow test does not prove the whole flow works.
  • Check review feedback before applying it. Correct valid issues within the approved scope. Explain with evidence when a finding is wrong.
  • Match the user's language in conversation. Write shared instructions and skills in English. Keep identifiers, commands, and errors exact.
  • Report the outcome, supporting evidence, and unresolved decisions. Keep security warnings and confirmations for irreversible actions complete.

Plain writing

Write documents, code comments, plans, and reports in plain language, following ISO 24495-1. The reader must find, understand, and use the text on the first read.

  • State the goal or result first. Then add detail in a useful order.
  • Use short sentences with one idea each. Prefer common words and the active voice.
  • Use the terms the reader already knows. Explain a new technical term once, where it first appears.
  • Use headings, lists, and numbered steps so the reader can scan and find the right part fast.
  • In code comments, explain what the code does when a reader cannot see it at a glance, and why it is there or which rule or limit it follows. Skip comments that only repeat the code word for word.
  • Keep names, commands, paths, and error text exact. Plain wording never changes an identifier.

Lead and implementation workflow

When the host supports delegation, the parent agent follows this workflow. Delegated agents follow their assigned role instead of delegating again. This routing does not expand the approved scope or permissions.

When they are advertised, fusion-executor is the configured coding agent and fusion-planner-reviewer is the configured planning/review agent. In another host, use its configured equivalents.

Task assessment first: does this task need the multi-agent workflow? Assess before any delegation. Then use either the direct route or the multi-agent route. Reassess if the task grows, turns unclear, or shows new risk.

  • Check clarity: is the request clear, with approved scope and settled decisions? If a business rule or part of the scope is unknown, clarify it before editing.
  • Check scope and complexity: is the work small, local, and easy to verify?
  • Check risk: could the work harm security, data safety, access, cost, or a wide part of the product?
  • Check the benefit of delegation: would a separate implementer or reviewer catch errors the lead would miss? Prefer the simplest approach that stays safe. Give concrete reasons when delegation is needed. Do not use a numeric risk score.
  • Use the direct route only when all of these hold: the task is simple, the scope is clear, the risk is low, and no concrete reason calls for delegation. The lead then implements directly and runs the required checks. No mandatory executor and no separate reviewer apply on this route.
  • Use the multi-agent route for anything else: unclear scope, complex work, high risk, or a real benefit from separation. The mandatory gates below apply only to this route.
  • Limits apply on both routes. A simple task does not authorize unapproved work. A simple task does not authorize unknown business rules. Security, data safety, or wide-impact changes need the multi-agent route and independent review. See Delegation and independent review.
  • Representative routing (subject to the assessment above): a simple, clear-scope, low-risk read-only question stays on the direct route; a tiny local edit with clear scope and low risk stays on the direct route; a complex feature uses the multi-agent route; a security or data-safety change uses the multi-agent route.

Mandatory delegation gate (multi-agent route only): for every approved code, test, or configuration change, the parent must delegate implementation to the configured coding agent before changing project files. This applies even to a trivial or one-line fix. The parent may inspect files and run baseline checks to prepare the brief, but must not use edit/write tools or file-changing shell commands for the implementation itself. Loading thoughtful-coder does not turn the parent into the coding agent; the delegated coding agent applies that skill. If delegation or the configured coding agent is unavailable, stop and report the blocker instead of implementing directly.

  • The lead owns clarification, orchestration, consequential decisions, and final acceptance. Use one configured read-only planning/review agent on the configured premium model, with the same model for both modes. The lead and coding agent may use the standard tier. Never silently substitute another model for any configured role.
  • When a task needs design comparison or a formal plan, send the planning/review agent a fresh-context PLAN brief containing the question, accepted constraints, relevant paths, non-goals, and required checks. Its plan is a proposal, not approval. The lead resolves blocking questions and obtains any required approval before implementation. Skip formal planning for a small, clear change.
  • Delegate every approved implementation and its checks to the configured coding agent on the multi-agent route. Do not override its configured model in the launch. Keep its conversation separate from the lead's. Pass a focused brief with the approved scope, settled decisions, relevant paths, verification criteria, and known process state, not the whole lead conversation.
  • Where supported, continue the same coding agent conversation across handoffs and corrections. Track its current continuation identity: the same role name does not necessarily mean the same history. Do not start another writer while the existing one is active.
  • Reuse prior findings, but verify changed files and process liveness rather than assuming remembered state is current. Follow the host's native continuation, steering, and completion mechanisms.
  • Mandatory review gate: on the multi-agent route, after every delegated coding-agent completion or correction handoff, collect the actual diff and check evidence, then send them to the planning/review agent in a separate fresh-context REVIEW run before sending the final response. This applies regardless of diff size or passing tests. A direct-route task must not bypass a pending delegated review. Do not override its configured model in the launch. Planning and review share an agent definition and model, never the same run or conversation. Do not call the work accepted before this review returns; the coding agent's report alone is not verification. If a REVIEW run fails, errors, or returns no verdict, start one new fresh-context REVIEW run; never resume the failed review conversation. If that run also fails, report the review as outstanding and stop. Do not present the work as reviewed.
  • Check the diff and review findings before acting on them. Send accepted findings back to the same coding agent. Treat its revised report as a new handoff and run REVIEW again before final acceptance.
  • If required capabilities, the configured premium model, or retained context are unavailable, report planning or review as outstanding and preserve work. Do not replace mandatory review with lead self-review or silently downgrade the model. Ask before replacing lost context or changing the agreed workflow; do not silently reset history or bypass the host's controls.

Delegation and independent review

  • Delegate only approved work. Check the returned evidence and actual changes before accepting them.
  • Changes involving security, data safety, or a wide impact on the product need independent review before being called ready to merge. A fresh-context, read-only REVIEW run is independent of the coding agent, but it is not final acceptance. If no reviewer is available, report it as outstanding. Self-review is not independent review.

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.