web-of-flaws / actions
AGENTS.md8 starsChanged 3 months agoMITView on GitHub
This directory contains reusable composite actions that encapsulate common workflow patterns. Composite actions are intended to simplify workflows, reduce duplication, and promote consistency across the repository.
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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- catalog/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/scripts/AGENTS.mdAGENTS.md
- guides/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
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
- Very specific: line 9
When you encounter a repeated workflow pattern, consider creating a composite action in .github/actions/ to encapsulate it and keep the …
- Distinctive: line 12
Do not rely on undocumented caller state.
- Very specific: line 13
Use $GITHUB_ACTION_PATH when referencing files owned by the composite action.
- Distinctive: line 14
Follow the principle: one composite action = one clear responsibility.
- Very specific: line 15
Prefer names like .github/actions/python-scripts-check/action.yml.
- Distinctive: line 16
Always provide name and concise description.
- Distinctive: line 17
Keep inputs minimal and don't add inputs that are not vitally necessary.
- Distinctive: line 18
Use kebab-case input/output names.
- Distinctive: line 19
Treat all action inputs as untrusted strings.
- Distinctive: line 20
Avoid hidden behavior controlled by undocumented environment variables.
- Distinctive: line 23
Always specify shell: bash for run: steps.
- Distinctive: line 25
Never execute input as a command.
- Distinctive: line 27
Never make a validation action mutate the repository.
≈ “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
Composite Actions Guidelines
Scope
This directory contains reusable composite actions that encapsulate common workflow patterns. Composite actions are intended to simplify workflows, reduce duplication, and promote consistency across the repository.
Composite Action Coding Rules
- When you encounter a repeated workflow pattern, consider creating a composite action in
.github/actions/to encapsulate it and keep the code DRY. - Extract an action when logic is reused or conceptually independent, not merely because YAML is long.
- Composite actions must document any required caller-provided tools, files, environment variables, or repository state.
- Do not rely on undocumented caller state.
- Use
$GITHUB_ACTION_PATHwhen referencing files owned by the composite action. Do not assume the caller's working directory. - Follow the principle: one composite action = one clear responsibility.
- Prefer names like
.github/actions/python-scripts-check/action.yml. - Always provide name and concise description.
- Keep inputs minimal and don't add inputs that are not vitally necessary.
- Use kebab-case input/output names.
- Treat all action inputs as untrusted strings.
- Avoid hidden behavior controlled by undocumented environment variables.
- Define outputs only when callers actually need them.
- Give steps meaningful names.
- Always specify shell: bash for run: steps.
- Never eval input.
- Never execute input as a command.
- Permissions belong in the workflow, not the composite action.
- Never make a validation action mutate the repository.
- Produce concise diagnostic output which is readable for humans and parsable by machines.
Required Checks
yamllint .github
zizmor .github
actionlint
shellcheck .github/scripts/*.shDoes 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.

