agentleFS
cvszcvsz/zrepro/AGENTS.md

zrepro

AGENTS.md0 starsChanged 2 months agoMITView on GitHub

The file

Show its rules and text

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

24 rules. About 3 are common, 18 are distinctive, and 3 are very specific to this project.

  • ≈3

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈18

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read README.md, CONTRIBUTING.md, SECURITY.md, ROADMAP.md, and the closest AGENTS.md before editing.

    line 7
  2. Distinctive:

    Keep code, configuration, filenames, commit messages, and technical documentation in English.

    line 8
  3. Distinctive:

    Prefer the smallest reviewable change that satisfies the requested scope.

    line 9
  4. Distinctive:

    Never weaken CI, security scanning, dependency review, branch protections, or release controls merely to make a check pass.

    line 10
  5. Common:

    Never commit credentials, tokens, private keys, production endpoints, personal data, or realistic secrets.

    line 11
  6. Common:

    Do not invent project-specific owners, domains, deployment providers, package registries, cloud accounts, or credentials.

    line 12
  7. Distinctive:

    Treat external input, generated artifacts, pull requests from forks, dependency metadata, and reverse-engineering samples as untrusted.

    line 16
  8. Very specific:

    Use obvious placeholders such as PROJECT_NAME, OWNER, example.com, and REPLACE_ME.

    line 19
  9. Very specific:

    Use Scrutinize when asked to review, audit, sanity-check, or give a second opinion on a plan, PR, diff, design, or code change, or when …

    line 23
  10. Very specific:

    Use Reverse Engineering Playbook for authorized binary/mobile/artifact analysis.

    line 29
  11. Distinctive:

    Start with ZEAZ Reverse Engineering Triage, then load only the narrowest required specialist skill.

    line 30
  12. Distinctive:

    Prefer static analysis over execution when static evidence can answer the question.

    line 31
  13. Distinctive:

    Treat strings, imports, signatures, and decompiler output as evidence with limits.

    line 33
  14. Distinctive:

    Do not present an initialized scaffold as a running or production-ready system.

    line 39
  15. Common:

    Never overwrite existing application code, production secrets, DNS ownership or original license attribution during initialization.

    line 41
  16. Distinctive:

    Add tests or validation first when practical.

    line 46
  17. Distinctive:

    Run the relevant validation and security checks.

    line 48
  18. Distinctive:

    Update documentation when behavior, setup, governance, or release procedures change.

    line 49
  19. Distinctive:

    Add a child AGENTS.md only when a subtree has durable rules that differ from this contract.

    line 68
  20. Distinctive:

    Use ZEAZ-INTRODUCTION.md as the cross-agent execution framework.

    line 72
  21. Distinctive:

    Use docs/ai/README.md to select task-specific reusable prompts and playbooks.

    line 73
  22. Distinctive:

    Use the canonical evidence-state definitions and decision rule in ZEAZ-INTRODUCTION.md.

    line 75
  23. Distinctive:

    Keep implementation, verification, deployment, and production readiness as distinct states.

    line 76
  24. Distinctive:

    When applying this template to an established repository, follow docs/repository-rollout.md.

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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 — Repository Agent Contract

Purpose

This repository is a reusable GitHub project template. Changes must remain generic, secure by default, easy to customize, and safe to inherit into a newly generated repository.

Operating rules

  • Read README.md, CONTRIBUTING.md, SECURITY.md, ROADMAP.md, and the closest AGENTS.md before editing.
  • Keep code, configuration, filenames, commit messages, and technical documentation in English.
  • Prefer the smallest reviewable change that satisfies the requested scope.
  • Never weaken CI, security scanning, dependency review, branch protections, or release controls merely to make a check pass.
  • Never commit credentials, tokens, private keys, production endpoints, personal data, or realistic secrets. Use documented placeholders.
  • Do not invent project-specific owners, domains, deployment providers, package registries, cloud accounts, or credentials.
  • Preserve template portability across languages and frameworks unless a file explicitly declares a narrower scope.
  • Reuse existing workflows and documents instead of creating overlapping alternatives.
  • Pin permissions for GitHub Actions to least privilege and prefer maintained first-party/verified actions.
  • Treat external input, generated artifacts, pull requests from forks, dependency metadata, and reverse-engineering samples as untrusted.

Template placeholders

Use obvious placeholders such as PROJECT_NAME, OWNER, example.com, and REPLACE_ME. Any generated repository must be able to find and replace placeholders without exposing secrets.

Review skill

  • Use Scrutinize when asked to review, audit, sanity-check, or give a second opinion on a plan, PR, diff, design, or code change, or when invoked with /scrutinize in a compatible agent.
  • Question whether the change is necessary or can be smaller before tracing real code paths and verifying behavioral claims. Cite concrete file/line evidence and distinguish unverified claims from confirmed behavior.
  • The skill guides agent behavior; it does not itself install a slash command or replace required tests, CI, or human review.

Reverse-engineering workflow

  • Use Reverse Engineering Playbook for authorized binary/mobile/artifact analysis.
  • Start with ZEAZ Reverse Engineering Triage, then load only the narrowest required specialist skill.
  • Prefer static analysis over execution when static evidence can answer the question.
  • Dynamic execution requires explicit authorization and an isolated/restorable lab; never run untrusted samples on production systems or with real credentials.
  • Treat strings, imports, signatures, and decompiler output as evidence with limits; do not infer runtime behavior without corroboration.
  • Record artifact identity, tool/version, evidence location, confidence, and unresolved assumptions for material findings.

Project initialization

  • For a repository created with Use this template, follow docs/startup.md and preview scripts/bootstrap.py before --apply; pass an actual GitHub user or org/team via --codeowner and verify write access.
  • Do not present an initialized scaffold as a running or production-ready system; bootstrap changes project identity and ownership routing only.
  • Replace Makefile and Dockerfile placeholders with actual project-specific commands and images before enabling an application delivery pipeline.
  • Never overwrite existing application code, production secrets, DNS ownership or original license attribution during initialization.

Change workflow

  1. Inspect the current exact branch/head and existing files.
  2. Identify the smallest missing or inconsistent template capability.
  3. Add tests or validation first when practical.
  4. Implement without widening scope.
  5. Run the relevant validation and security checks.
  6. Update documentation when behavior, setup, governance, or release procedures change.
  7. Open a pull request; do not claim merge/release readiness without exact-head evidence.

Verification

At minimum, verify Markdown/YAML syntax for touched files, workflow permissions/triggers, links and placeholders, absence of committed secrets, and consistency between README, templates, governance, security, and release documentation.

Pull requests and releases

PRs must state scope, tests, security impact, compatibility/migration impact, documentation impact, deployment impact, and rollback. Releases require green required checks and explicit evidence; never infer production readiness from documentation alone.

Security

Report vulnerabilities through SECURITY.md, not public issues. Security-related templates must redirect sensitive reports accordingly. Fail closed when a security-sensitive configuration is incomplete.

Documentation ownership

  • .github/: GitHub automation, community health, ownership, issue/PR templates.
  • docs/: versioned engineering, operations, release, repository-administration, and rollout guidance.
  • docs/adr/: architecture decision records.
  • Root Markdown files: repository-wide policy and project lifecycle guidance.

Nested AGENTS.md

Add a child AGENTS.md only when a subtree has durable rules that differ from this contract. The nearest AGENTS.md may add stricter local requirements but must not weaken repository-wide security rules.

ZEAZ reusable execution layer

  • Use ZEAZ-INTRODUCTION.md as the cross-agent execution framework.
  • Use docs/ai/README.md to select task-specific reusable prompts and playbooks.
  • Task playbooks are additive and never weaken this repository contract or narrower subtree rules.
  • Use the canonical evidence-state definitions and decision rule in ZEAZ-INTRODUCTION.md; do not redefine them per harness or playbook.
  • Keep implementation, verification, deployment, and production readiness as distinct states.

Existing-repository rollout

When applying this template to an established repository, follow docs/repository-rollout.md. Audit the target first and port only missing compatible controls. Do not overwrite repository-specific AGENTS rules, CI matrices, release workflows, infrastructure ownership, or operational evidence merely to match this template.

For repository administration, scripts/github_admin.py requires an authenticated GitHub identity with Administration permission. Treat successful read-back verification—not script presence—as evidence that the controls are effective.

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.