monofield
AGENTS.md4 starsChanged 6 months agoApache-2.0View on GitHub
This directory is still only partially standardized. Several historical workflows and helper locations do not yet follow one uniform shape. Do not copy old patterns blindly. For new work, bug fixes, and cleanup, use the ci.yml + comment.atom.yml + autofix.atom.yml + report.atom.yml + .github/scripts/handoff.py system as the reference topology unless a maintainer explicitly chooses a different boundary. Before changing GitHub automation, read the current versions of: If the change affects cross-workflow behavior, update the topology tests instead of relying only…
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 repository168 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apps/AGENTS.mdAGENTS.md
- design-templates/AGENTS.mdAGENTS.md
- e2e/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- plugins/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- od-contributeSkill
- 8-bit-orbit-video-templateSkill
- ad-creativeSkill
- after-hours-editorial-templateSkill
- agent-browserSkill
- ai-music-albumSkill
- algorithmic-artSkill
- apple-higSkill
- article-magazineSkill
- artifacts-builderSkill
- brainstormingSkill
- brand-extractSkill
- brand-guidelinesSkill
- brandkitSkill
- industrial-brutalist-uiSkill
- canvas-designSkill
- card-twitterSkill
- card-xiaohongshuSkill
- color-expertSkill
- competitive-ads-extractorSkill
- copywritingSkill
- creative-directorSkill
- d3-visualizationSkill
- data-reportSkill
- deck-guizang-editorialSkill
- deck-open-slide-canvasSkill
- deck-swiss-internationalSkill
- design-briefSkill
- design-consultationSkill
- design-mdSkill
- design-reviewSkill
- digits-fintech-swiss-templateSkill
- doc-kami-parchmentSkill
- docSkill
- docxSkill
- domain-name-brainstormerSkill
- ecommerce-image-workflowSkill
- editorial-burgundy-principles-templateSkill
- emilkowalski-motionSkill
- enhance-promptSkill
- export-download-debuggingSkill
- fal-3dSkill
- fal-generateSkill
- fal-image-editSkill
- fal-kling-o3Skill
- fal-lip-syncSkill
- fal-realtimeSkill
- fal-restoreSkill
- fal-trainSkill
- fal-tryonSkill
- fal-upscaleSkill
- The first 60 shown.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
20 rules. About 0 are common, 9 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Before changing GitHub automation, read the current versions of:
- Distinctive: line 18
If the change affects cross-workflow behavior, update the topology tests instead of relying only on workflow YAML review.
- Very specific: line 39
Default rule: do not add a new domain-specific follow-on workflow such as foo.comment.atom.yml, foo.autofix.atom.yml, or …
- Very specific: line 53
Use .github/scripts/handoff.py for all CI follow-on artifact names and paths.
- Very specific: line 63
Do not hand-roll artifact name prefixes, alternate directory layouts, or one-off metadata parsers in workflows.
- Very specific: line 69
Use comment.atom.yml for pure text PR comments only.
- Very specific: line 79
Use autofix.atom.yml for same-repository patch application.
- Very specific: line 85
Verify the resulting changed files exactly match allowed_paths.
- Distinctive: line 86
Prefer the configured bot app token for pushes so follow-up CI is triggered as expected.
- Distinctive: line 87
Do not use this workflow for arbitrary commands, generated scripts, or PR-head code execution.
- Very specific: line 91
Use report.atom.yml for advanced comments, meaning comment bodies that are not pure text inputs.
- Distinctive: line 105
Treat all PR-produced artifacts as untrusted data.
- Very specific: line 106
Do not checkout or execute PR-head code in report.atom.yml.
- Distinctive: line 109
Keep report type dispatch explicit.
- Very specific: line 115
Keep .github/workflows/ci.yml as the only approved workflow path unless a maintainer explicitly expands the allowlist.
- Very specific: line 125
Update scope routing in scripts/scopes.ts when a workflow/script should trigger a validation lane.
- Very specific: line 126
Update topology coverage in e2e/tests/packaged-smoke-workflow.test.ts or the relevant script test.
- Distinctive: line 127
Run the focused checks:
- Distinctive: line 131
Run repo-level checks before handing off:
- Distinctive: line 135
Use git diff --check before finishing workflow edits.
≈ “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
GitHub automation guide
This directory is still only partially standardized. Several historical workflows and helper locations do not yet follow one uniform shape. Do not copy old patterns blindly. For new work, bug fixes, and cleanup, use the ci.yml + comment.atom.yml + autofix.atom.yml + report.atom.yml + .github/scripts/handoff.py system as the reference topology unless a maintainer explicitly chooses a different boundary.
Required reading
Before changing GitHub automation, read the current versions of:
.github/workflows/ci.yml.github/workflows/comment.atom.yml.github/workflows/autofix.atom.yml.github/workflows/report.atom.yml.github/scripts/handoff.pyscripts/scopes.tse2e/tests/packaged-smoke-workflow.test.tsscripts/approve-fork-pr-workflows.tsandscripts/approve-fork-pr-workflows.test.tswhen touching fork PR approval behavior
If the change affects cross-workflow behavior, update the topology tests instead of relying only on workflow YAML review.
Architecture
GitHub automation uses two layers.
Business layer:
- Business workflows decide what happened and what should be requested next.
ci.ymlis the main low-privilege PR, merge-queue, and manual validation gate.ci.ymlshould run validation, decide scopes, and produce typed handoff artifacts.- Business workflows should not perform trusted writes to PR comments or branches when a capability workflow can do it.
Atomic capability layer:
- Capability workflows perform reusable trusted operations from well-defined inputs.
comment.atom.ymlconsumeshandoff-comment-*artifacts and upserts pure text PR comments.autofix.atom.ymlconsumeshandoff-autofix-*artifacts and applies same-repository patches.report.atom.ymlconsumeshandoff-report-*artifacts and handles advanced comments that need trusted materialization, such as dependency install, R2 access, artifact processing, or report generation before upsert..github/scripts/handoff.pyowns artifact names, directory layout, discovery, and contract validation forcomment,autofix, andreporthandoffs.
Default rule: do not add a new domain-specific follow-on workflow such as foo.comment.atom.yml, foo.autofix.atom.yml, or foo.report.atom.yml until the flow has been tested against these existing atomic capabilities.
Directory conventions
.github/workflows/contains GitHub Actions workflow entrypoints..github/actions/contains reusable composite actions for workflow setup steps..github/scripts/contains workflow-owned scripts and contracts that are not general repo developer commands..github/workflow/scripts/currently contains older release workflow implementation scripts. Treat it as existing release infrastructure, not as the default location for new CI handoff helpers.- Root
scripts/remains for repo-level developer checks, product scripts, and guard/test logic. Do not move workflow-only handoff glue there just to make it look more general.
New workflow-owned helpers should usually live under .github/scripts/. Prefer TypeScript for project-owned scripts in general, but Python is acceptable for small GitHub runner glue when stdlib portability and low setup cost matter. Keep such exceptions narrow and covered by pnpm guard policy.
Handoff contract
Use .github/scripts/handoff.py for all CI follow-on artifact names and paths. The canonical layout is:
handoff/comment/<id>/metadata.jsonplusbody.mdhandoff/autofix/<id>/metadata.jsonpluspatch.diffhandoff/report/<id>/metadata.json
Artifact names must come from handoff.py artifact-name <kind> <id>, and download patterns must come from handoff.py artifact-pattern <kind>.
metadata.json always identifies the target PR, head SHA, base SHA, CI run id, handoff kind, and handoff id. Capability-specific fields belong in that capability's metadata and must be validated by handoff.py.
Do not hand-roll artifact name prefixes, alternate directory layouts, or one-off metadata parsers in workflows. Extend handoff.py first, then use the new contract from producers and consumers.
Capability rules
comment.atom.yml
Use comment.atom.yml for pure text PR comments only.
- Input is an already-final
body.md. - The body must contain a stable marker.
- The workflow validates PR state, draft state, head SHA, and base SHA before upsert.
- It writes the GitHub API payload through
jq -n --rawfile body ...andgh api --input. - It must not install dependencies, access R2, execute report scripts, understand Nix, understand visual diffs, or checkout PR code.
autofix.atom.yml
Use autofix.atom.yml for same-repository patch application.
- Input is
patch.diffplus metadata includingallowed_pathsandcommit_message. - Fork PRs must skip, not fail.
- Closed, draft, stale head, and stale base cases must skip, not fail.
- Apply patches only after validating the live PR state.
- Verify the resulting changed files exactly match
allowed_paths. - Prefer the configured bot app token for pushes so follow-up CI is triggered as expected.
- Do not use this workflow for arbitrary commands, generated scripts, or PR-head code execution.
report.atom.yml
Use report.atom.yml for advanced comments, meaning comment bodies that are not pure text inputs.
Examples include reports that need:
- downloading and combining artifacts,
- installing dependencies,
- accessing R2 or other trusted secrets,
- rendering media or diffs,
- generating a rich markdown body from trusted base code.
report.atom.yml is a trusted writer and materializer. It may upsert comments directly because that is part of the advanced comment capability, but it must do so with the same file-backed payload hygiene as comment.atom.yml.
Rules:
- Treat all PR-produced artifacts as untrusted data.
- Do not checkout or execute PR-head code in
report.atom.yml. - Checkout trusted base/default code before running repository scripts.
- Validate PR state, draft state, head SHA, and base SHA before secret use and again before comment upsert when practical.
- Keep report type dispatch explicit. If multiple report types grow, add a clear handler boundary instead of burying branching in shell fragments.
Fork PR approval
fork-pr-workflow-approval.yml and scripts/approve-fork-pr-workflows.ts are a separate security boundary. They may approve low-risk fork PR pull_request runs, but must not approve trusted workflow_run capability workflows.
Keep .github/workflows/ci.yml as the only approved workflow path unless a maintainer explicitly expands the allowlist. comment.atom.yml, autofix.atom.yml, report.atom.yml, release workflows, deployment workflows, and any workflow with trusted secrets or write permissions must stay outside fork auto-approval.
Common iteration flow
- Classify the change.
- Validation or business decision: start in
ci.yml. - Pure text PR comment: produce
handoff/commentand letcomment.atom.ymlconsume it. - Same-repo patch: produce
handoff/autofixand letautofix.atom.ymlconsume it. - Rich/generated comment: produce
handoff/reportand letreport.atom.ymlmaterialize and upsert it. - New naming, paths, or metadata: update
.github/scripts/handoff.py.
- Validation or business decision: start in
- Update scope routing in
scripts/scopes.tswhen a workflow/script should trigger a validation lane. - Update topology coverage in
e2e/tests/packaged-smoke-workflow.test.tsor the relevant script test. - Run the focused checks:
python3 .github/scripts/handoff.py self-checkactionlint -colorpnpm --filter @open-design/e2e test tests/packaged-smoke-workflow.test.ts
- Run repo-level checks before handing off:
pnpm guardpnpm typecheck
Use git diff --check before finishing workflow edits.
FAQ
Should I add a new *.comment.atom.yml workflow?
Usually no. If the body is already final markdown, produce handoff/comment and use comment.atom.yml. If the body must be generated from artifacts, secrets, or report code, produce handoff/report and use report.atom.yml.
Why not put rich visual report generation in comment.atom.yml?
Because comment.atom.yml is the pure text comment shell. Installing dependencies, using R2 secrets, downloading screenshots, and generating diffs are advanced comment materialization, which belongs in report.atom.yml.
Why can report.atom.yml upsert comments directly?
report.atom.yml is not a pure producer. It is the auditable advanced comment capability: materialize a non-pure text comment and publish it. The key boundary is that this power is explicit in one workflow with trusted inputs, stale checks, and file-backed payload hygiene.
Why does autofix.atom.yml skip fork PRs?
Fork PR branches are not writable by the base repository in the same trust model, and pushing generated changes to forks would require a different permission and ownership design. Skip fork PRs and use comments or report output for contributor guidance.
Can trusted workflow_run workflows checkout PR code?
No, not by default. They may download PR artifacts as data, but must not execute PR-provided code or scripts. Checkout trusted base/default code before running repository scripts.
Why centralize handoff names in handoff.py?
GitHub artifact behavior is easy to drift: artifact names must be unique per upload, and consumers need stable patterns. Centralizing names, paths, and validation keeps producers and consumers aligned and makes topology tests meaningful.
Where should tests live?
Cross-workflow topology tests belong in e2e/tests/ when they observe repository-level behavior. Script-specific behavior can stay next to the script's existing tests. Do not add one-off *.test.ts files just because a workflow helper exists; prefer existing topology coverage and helper self-checks when that is enough.
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.

