dkstack
AGENTS.md1 starsChanged 8 days agoMITView on GitHub
These are the dkstack guidelines for coding agents. dkstack is the repository daniel-kindl/dkstack. Follow these guidelines in each project that points to this file. 1. Read skills/triage/SKILL.md. It tells you which sections and skills apply to the task. 2. Read only those sections and skills. 3. If a rule is unclear, do not guess. Ask the owner. Use skills/clarify-intent/SKILL.md. Projects follow the v1 branch. Read this file from this URL: https://raw.githubusercontent.com/daniel-kindl/dkstack/v1/AGENTS.md The main branch has changes that are not released…
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 31,774 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 repository12 other files it gives its agents.
- apply-architectureSkill
- bootstrapSkill
- clarify-intentSkill
- code-reviewSkill
- map-workSkill
- plan-workSkill
- releaseSkill
- tdd-loopSkill
- triageSkill
- write-adrSkill
- write-prSkill
- writing-checkSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Read skills/triage/SKILL.md.
- Distinctive: line 11
Read only those sections and skills.
- Very specific: line 12
If a rule is unclear, do not guess.
- Very specific: line 34
If two dkstack rules conflict, follow the more specific rule.
- Distinctive: line 38
Every rule in workflow/safety.md is a hard limit.
- Distinctive: line 41
Do not bypass branch protection or a ruleset.
- Distinctive: line 42
Do not start a production deploy.
- Distinctive: line 43
Do not publish or release without the owner's explicit OK for that release.
- Distinctive: line 62
Consider coherence, coupling, complexity, compatibility and ease of future change while you work.
- Distinctive: line 65
Write a failing test first.
- Distinctive: line 66
Write each commit title as a conventional commit of 50 characters or fewer.
- Distinctive: line 68
Never weaken a quality gate.
- Distinctive: line 69
Keep components independent.
- Distinctive: line 70
Do not invent facts, citations or personal experience.
- Very specific: line 79
Do not change dkstack from another project.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
These are the dkstack guidelines for coding agents. dkstack is the repository daniel-kindl/dkstack. Follow these guidelines in each project that points to this file.
Start here
- Read skills/triage/SKILL.md. It tells you which sections and skills apply to the task.
- Read only those sections and skills.
- If a rule is unclear, do not guess. Ask the owner. Use skills/clarify-intent/SKILL.md.
Version
Projects follow the v1 branch. Read this file from this URL:
https://raw.githubusercontent.com/daniel-kindl/dkstack/v1/AGENTS.md
The main branch has changes that are not released yet. The links in this file resolve against
the ref in your URL, so you read all files on the same version. The skills link to v1. See
ADR 0001.
Precedence
- A dkstack rule wins over a project rule.
- A project can differ from a dkstack rule only through a documented exception. Record the
exception in the project's
AGENTS.mdorCONTRIBUTING.md. The exception names the dkstack rule, the project rule and the reason. For example, a project can use adevbranch if it records this exception. - The rules in workflow/safety.md have no exceptions. A rule that allows an action with the owner's OK is not an exception.
- If two dkstack rules conflict, follow the more specific rule.
Hard limits
Every rule in workflow/safety.md is a hard limit. For example:
- Do not force-push.
- Do not bypass branch protection or a ruleset.
- Do not start a production deploy. Only the owner starts one.
- Do not publish or release without the owner's explicit OK for that release.
Sections
- architecture/index.md: Architecture principles.
- coding/index.md: Coding standards and practices.
- tdd/index.md: Test-driven development.
- version-control/index.md: Conventional commits and feature branches.
- versioning/index.md: Semantic versioning.
- writing/index.md: Writing style (ASD-STE100).
- skills/index.md: Skills to apply.
- tips/index.md: Short tips.
- workflow/index.md: Workflow: work, roles, review and merge, and safety.
- workflow/feature-plans.md: Feature plans. If a feature has a plan, find it and compare it with the repository before you implement.
Key rules
- Select the smallest design that works. See architecture/design.md.
- Consider coherence, coupling, complexity, compatibility and ease of future change while you work. Read architecture/stewardship.md when triage says to read it.
- Write a failing test first. Tests must prove behavior. See tdd/index.md.
- Write each commit title as a conventional commit of 50 characters or fewer. See version-control/index.md.
- Never weaken a quality gate. See coding/quality-gates.md.
- Keep components independent. See architecture/orthogonality.md.
- Do not invent facts, citations or personal experience.
Owner
The owner of dkstack is Daniel Kindl (GitHub: daniel-kindl). Only the owner approves a change to
dkstack and a release of it. See workflow/safety.md.
Changes
Do not change dkstack from another project. To propose a rule, open an issue in daniel-kindl/dkstack or tell the owner.
A shared rule set must change only through review. An agent edit from another project skips that review. See CONTRIBUTING.md for the change flow.
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.

