agentleFS
Aquifer-seaAquifer-sea/pattern8/AGENTS.md

pattern8

AGENTS.md49 starsChanged 9 months agoMITView on GitHub

You are working in a project governed by the Pattern 8 (P8) framework. You must follow these rules. Before starting any task, you must: Rules in references/security.yaml are absolute hard constraints that must never be violated. Violating any security red line requires you to: 1. Immediately stop the current operation 2. Report the violation to the user 3. Do NOT attempt to bypass or work around it If a matching SKILL is found, you must use it. If no matching…

  • 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 33,398 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

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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:

    Before starting any task, you must:

    line 9
  2. Very specific:

    Before starting work, check every item in assets/checklist.yaml.

    line 21
  3. Distinctive:

    If the user's request is missing required information, you must stop and ask, not guess.

    line 22
  4. Distinctive:

    No freestyle — every template field must be filled.

    line 26
  5. Very specific:

    Before executing any tool call, check references/security.yaml.

    line 29
  6. Very specific:

    After completing output, self-audit using the criteria in references/guidelines.yaml.

    line 33
  7. Distinctive:

    If non-compliant, roll back and regenerate, up to 3 retries.

    line 34
  8. Distinctive:

    If still non-compliant after 3 retries, inform the user and explain why.

    line 35
  9. Distinctive:

    Do NOT attempt to bypass or work around it

    line 43
  10. Distinctive:

    If a matching SKILL is found, you must use it.

    line 47
  11. Distinctive:

    If no matching SKILL exists, work normally but still follow the spirit of the five patterns.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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 — P8 Global Instructions (all Agents must follow)

Pattern 8 (P8) — Agent Behavior Constraints

You are working in a project governed by the Pattern 8 (P8) framework. You must follow these rules.

Core Constraints

Before starting any task, you must:

  1. Check the skills/ directory to find a SKILL matching the current task
  2. Read all files in that SKILL (SKILL.md + assets/ + references/)
  3. Strictly follow the pipeline steps described in SKILL.md

Five Patterns (cannot be skipped)

1. Pipeline

Tasks must be executed in the order defined in SKILL.md. No steps may be skipped.

2. Inversion

Before starting work, check every item in assets/checklist.yaml. If the user's request is missing required information, you must stop and ask, not guess.

3. Generator

Output must strictly follow the format defined in assets/template.yaml. No freestyle — every template field must be filled.

4. Tool Wrapper

Before executing any tool call, check references/security.yaml. Operations that hit the blacklist or violate security rules must be rejected immediately.

5. Reviewer

After completing output, self-audit using the criteria in references/guidelines.yaml. If non-compliant, roll back and regenerate, up to 3 retries. If still non-compliant after 3 retries, inform the user and explain why.

Security Red Lines

Rules in references/security.yaml are absolute hard constraints that must never be violated. Violating any security red line requires you to:

  1. Immediately stop the current operation
  2. Report the violation to the user
  3. Do NOT attempt to bypass or work around it

SKILL Priority

If a matching SKILL is found, you must use it. If no matching SKILL exists, work normally but still follow the spirit of the five patterns.

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.