devops-skills / rules
Cursor rule8 starsChanged 3 months agoMITView on GitHub
Capture architectural decisions that have already been made, as structured ADRs (Architecture Decision Records). Use when user says 'record this decision', 'ADR this', 'why did we choose X', 'document this trade-off', 'we decided to...', or when a choice between alternatives has been settled and needs writing down. This records a decision; it does not make one. A question of the form 'should we use X or Y' is a design discussion, not an ADR request.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 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 repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- .cursor/rules/appsec.mdcCursor rule
- .cursor/rules/ci.mdcCursor rule
- .cursor/rules/deploy.mdcCursor rule
- .cursor/rules/docker.mdcCursor rule
- .cursor/rules/finops.mdcCursor rule
- .cursor/rules/github-actions.mdcCursor rule
- .cursor/rules/github.mdcCursor rule
- .cursor/rules/gitops.mdcCursor rule
- .cursor/rules/incident.mdcCursor rule
- .cursor/rules/k8s.mdcCursor rule
- .cursor/rules/logging.mdcCursor rule
- .cursor/rules/observability.mdcCursor rule
- .cursor/rules/owasp.mdcCursor rule
- .cursor/rules/skill-creator.mdcCursor rule
- .cursor/rules/tf.mdcCursor rule
- .cursor/rules/tf-plan.mdcCursor rule
- .cursor/rules/wrapper-tf.mdcCursor rule
- adrSkill
- appsecSkill
- ciSkill
- deploySkill
- dockerSkill
- finopsSkill
- github-actionsSkill
- githubSkill
- gitopsSkill
- incidentSkill
- k8sSkill
- loggingSkill
- observabilitySkill
- owaspSkill
- skill-creatorSkill
- tf-planSkill
- tfSkill
- wrapper-tfSkill
The file
We split this adr.mdc into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 80
Initialize once: If docs/adr/ does not exist, ask the user to confirm before creating it.
- Distinctive: line 107
Read the old ADR.
- Distinctive: line 108
Create a new ADR that references it: "Supersedes ADR-NNNN" in Context.
- Distinctive: line 110
Update both rows in the index.
- Distinctive: line 112
Never delete or rewrite a past ADR's decision — superseding preserves the history of *why it changed*, which is the whole point.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
--- description: Capture architectural decisions that have already been made, as structured ADRs (Architecture Decision Records). Use when user says 'record this decision', 'ADR this', 'why did we choose X', 'document this trade-off', 'we decided to...', or when a choice between alternatives has been settled and needs writing down. This records a decision; it does not make one. A question of the form 'should we use X or Y' is a design discussion, not an ADR request. globs: **/docs/adr/*.md, **/docs/adr/**/*.md alwaysApply: false --- # ADR Skill Capture architectural decisions as they happen, so the *why* lives next to the code instead of in a Slack thread or someone's memory. Produces lightweight ADR documents under `docs/adr/`. ## Keywords adr, architecture decision record, decision, rationale, trade-off, alternatives, we decided, why did we choose, design decision, supersede, decision log, nygard ## When to record a decision - The user says "record this", "ADR this", "let's document this decision". - A choice is made between **significant alternatives**: framework, library, database, language, pattern, API shape, infra/deploy approach, build vs buy. - The user says "we decided to…" or "the reason we're doing X instead of Y is…". - The user asks "why did we choose X?" → read and summarize the existing ADR. For trivial or easily-reversible choices, don't create an ADR — note it inline and move on. ## Output Artifacts | Request | Output | |---------|--------| | `/adr new "<title>"` | A new `docs/adr/NNNN-<slug>.md` + an updated index | | `/adr list` | The decision log (ID, title, status, date) | | `/adr supersede <NNNN>` | A new ADR marked as superseding an old one; old one flipped to `superseded` | --- ## Format Lightweight Nygard ADR, adapted for AI-assisted work: ```markdown # ADR-NNNN: <Decision Title> **Date**: YYYY-MM-DD **Status**: proposed | accepted | deprecated | superseded by ADR-NNNN **Deciders**: <who was involved> ## Context What is the issue motivating this decision? The situation, constraints, and forces at play. 2–5 sentences. ## Decision What we are doing. 1–3 sentences, stated clearly. ## Alternatives Considered ### <Alternative> - **Pros**: … - **Cons**: … - **Why not**: the specific reason it was rejected. (Repeat per alternative.) ## Consequences ### Positive - … ### Negative / trade-offs - … ### Risks - <risk and its mitigation> ``` --- ## NEW — Record a decision 1. **Initialize once.** If `docs/adr/` does not exist, ask the user to confirm before creating it. On confirmation, create the directory, a `README.md` seeded with the index table header (below), and a `template.md` copy of the format above. Never create files without explicit consent. 2. **Number it.** Next zero-padded number after the highest existing `docs/adr/NNNN-*.md` (start at `0001`). Slug = kebab-case of the title. 3. **Fill it from the conversation** — extract the decision, the context that prompted it, the alternatives actually weighed, and the consequences. Do not invent alternatives that were never discussed; if context is thin, ask one or two targeted questions. 4. **Default status** `accepted` when the user states a decision; `proposed` when still weighing. Date = today. 5. **Update the index** in `docs/adr/README.md`. ## Index format `docs/adr/README.md`: ```markdown # Architecture Decision Records | ID | Title | Status | Date | |----|-------|--------|------| | [ADR-0001](0001-use-eks-over-ecs.md) | Use EKS over ECS | accepted | 2026-06-10 | ``` ## SUPERSEDE — Replace a decision 1. Read the old ADR. 2. Create a new ADR that references it: "Supersedes ADR-NNNN" in Context. 3. Flip the old ADR's `Status` to `superseded by ADR-MMMM`. 4. Update both rows in the index. Never delete or rewrite a past ADR's decision — superseding preserves the history of *why it changed*, which is the whole point.
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.

