pattern8
AGENTS.md44 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 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.
In this repository6 other files it gives its agents.
- .cursor/rules/p8-enforcement.mdcCursor rule
- bug_fixSkill
- code_reviewSkill
- feature_devSkill
- prdSkill
- refactorSkill
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
- Distinctive: line 9
Before starting any task, you must:
- Very specific: line 21
Before starting work, check every item in assets/checklist.yaml.
- Distinctive: line 22
If the user's request is missing required information, you must stop and ask, not guess.
- Distinctive: line 26
No freestyle — every template field must be filled.
- Very specific: line 29
Before executing any tool call, check references/security.yaml.
- Very specific: line 33
After completing output, self-audit using the criteria in references/guidelines.yaml.
- Distinctive: line 34
If non-compliant, roll back and regenerate, up to 3 retries.
- Distinctive: line 35
If still non-compliant after 3 retries, inform the user and explain why.
- Distinctive: line 43
Do NOT attempt to bypass or work around it
- Distinctive: line 47
If a matching SKILL is found, you must use it.
- Distinctive: line 48
If no matching SKILL exists, work normally but still follow the spirit of the five patterns.
≈ “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.
Files
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:
- Check the
skills/directory to find a SKILL matching the current task - Read all files in that SKILL (SKILL.md + assets/ + references/)
- 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:
- Immediately stop the current operation
- Report the violation to the user
- 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.
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
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.

