build-like-amazon-agent-skills / rules
Cursor rule16 starsChanged 38 days agoMITView on GitHub
Source of truth. This file is a thin router. The actual content lives in skills/, agents/, patterns/, and .claude/commands/. Do not duplicate guidance here — point to it. This project uses Amazon-style engineering practices. When working in this codebase: Patterns live in patterns/. Read patterns/INDEX.md (lightweight catalog with title, description, and applicability criteria) during design to decide which patterns are relevant. Only load the full patterns/<name>/PATTERN.md when criteria match. This prevents loading hundreds of lines of pattern docs into context…
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 4,183 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 repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- api-contract-firstSkill
- brownfield-discoverySkill
- code-review-bar-raisingSkill
- correction-of-errorsSkill
- dependency-managementSkill
- design-documentSkill
- design-reviewSkill
- feature-flag-lifecycleSkill
- implementation-memorySkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- mechanism-creationSkill
- metrics-reviewSkill
- operational-codeSkill
- operational-excellenceSkill
- operational-readiness-reviewSkill
- pipeline-safetySkill
- progressive-deploymentSkill
- spec-driven-implementationSkill
- test-driven-developmentSkill
- threat-modelingSkill
- using-amazon-skillsSkill
- wb-defineSkill
- wb-inventSkill
- wb-listenSkill
- wb-refineSkill
- wb-test-and-iterateSkill
- working-backwardsSkill
The file
We split this amazon-skills.md 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
- Distinctive: line 90
Read AGENTS.md for the full operating contract.
- Very specific: line 95
Patterns enter design as alternatives: Read patterns/INDEX.md to identify relevant patterns.
- Distinctive: line 100
Surface assumptions: Never proceed on an unstated assumption.
- Distinctive: line 101
Push back when warranted: Not a yes-machine.
- Distinctive: line 102
Verify, don't assume: Run the tests; check the file.
≈ “Common” is an estimate: at least 1 in 5 of the 6,668 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
Amazon Engineering Skills — Cursor Rules
Source of truth. This file is a thin router. The actual content lives in
skills/,agents/,patterns/, and.claude/commands/. Do not duplicate guidance here — point to it.
This project uses Amazon-style engineering practices. When working in this codebase:
- Identify the lifecycle phase (Working Backwards / Design / Build / Deploy / Operate / Learn).
- Load the relevant skill(s) from
skills/for that phase. - Follow the skill's Process section step by step, including approval gates.
- When in doubt about which skill applies, read
skills/using-amazon-skills/SKILL.mdfirst — it is the meta-skill that routes ambiguous requests.
Skill Index
Meta
| Skill | Directory |
| using-amazon-skills | skills/using-amazon-skills/ |
| brownfield-discovery | skills/brownfield-discovery/ (reverse-engineer existing project) |
Working Backwards
| Skill | Directory |
| working-backwards | skills/working-backwards/ |
| wb-listen | skills/wb-listen/ |
| wb-define | skills/wb-define/ |
| wb-invent | skills/wb-invent/ |
| wb-refine | skills/wb-refine/ |
| wb-test-and-iterate | skills/wb-test-and-iterate/ |
Design
| Skill | Directory |
| design-document | skills/design-document/ |
| dependency-management | skills/dependency-management/ |
| feature-flag-lifecycle | skills/feature-flag-lifecycle/ |
| operational-excellence | skills/operational-excellence/ |
| api-contract-first | skills/api-contract-first/ |
| threat-modeling | skills/threat-modeling/ |
| design-review | skills/design-review/ |
| spec-driven-implementation | skills/spec-driven-implementation/ |
Build
| Skill | Directory |
| incremental-implementation | skills/incremental-implementation/ |
| test-driven-development | skills/test-driven-development/ |
| operational-code | skills/operational-code/ |
| infrastructure-as-code | skills/infrastructure-as-code/ |
| code-review-bar-raising | skills/code-review-bar-raising/ |
Deploy
| Skill | Directory |
| progressive-deployment | skills/progressive-deployment/ |
| pipeline-safety | skills/pipeline-safety/ |
Operate
| Skill | Directory |
| operational-readiness-review | skills/operational-readiness-review/ |
| metrics-review | skills/metrics-review/ |
Learn
| Skill | Directory |
| correction-of-errors | skills/correction-of-errors/ |
| mechanism-creation | skills/mechanism-creation/ |
Architectural Patterns
Patterns live in patterns/. Read patterns/INDEX.md (lightweight catalog with title, description, and applicability criteria) during design to decide which patterns are relevant. Only load the full patterns/<name>/PATTERN.md when criteria match. This prevents loading hundreds of lines of pattern docs into context unnecessarily.
Bar Raiser Personas
Personas live in agents/. When a skill specifies bar raiser review, load the persona and apply its lens.
Slash Command Definitions
Slash command flows are defined in .claude/commands/ (canonical) and mirrored in .gemini/commands/. Each command file lists steps, gates, and output artifacts. When the user invokes a command, follow the corresponding file.
Operating Behaviors (the contract)
Read AGENTS.md for the full operating contract. The non-negotiable behaviors are:
- Respect approval gates. During
/wb,/design,/spec, stop at each gate and present work. - Match the ceremony to the change. Trivial → direct to code; Small → direct or lightweight spec; Medium →
/spec+/build; Large → full/designflow; New product →/wbfirst. The agent picks; the user only sees outcome-framed options when there is genuine ambiguity. For brownfield projects without BLA artifacts, propose/onboard(3 paths: anchor only / validate-the-why with inferred PR/FAQ / forward WB + gap analysis). Seeskills/using-amazon-skills/SKILL.md→ "Match the Ceremony to the Change" andskills/brownfield-discovery/SKILL.mdfor details. - API First. Every customer-facing surface is an API. UI / CLI / SDK / MCP / agent / partner are all clients. The API spec is created before any client spec. Pick the right contract standard per protocol — OpenAPI for REST, GraphQL SDL for GraphQL,
.protofor gRPC, AsyncAPI + JSON Schema/Avro/Protobuf for async events, ODCS for data contracts, MCP manifest for MCP tools, provider-native spec for AI agent tools. Seeskills/api-contract-first/SKILL.md. - Patterns enter design as alternatives. Read
patterns/INDEX.mdto identify relevant patterns; load fullPATTERN.mdonly when criteria match. - Track tasks during
/build. The orchestrator ownstasks.md. Flip[ ] → [-]before dispatching a wave;[-] → [x]as sub-agents report success;[!]for blockers. No spec is "done" while any task is[ ]or[-]. /buildis autonomous to feature completion. Approval gates happened in/design./buildruns all specs end-to-end without asking between specs, waves, or PASSED reviews. Stops only for hard blockers, FAILED review, unrecoverable green-build failure, or explicit user pause request.- Use implementation memory internally during
/build. After current spec/tasks and coherence-review action items are known, readskills/implementation-memory/SKILL.mdand.bla/implementation-memory.mdif present. Select active rules using multi-signal matching (Tags, File patterns,Applies when). IncrementHit count. Semi-automatic trigger: after PASSED WITH FIXES NEEDED and fixes done, generate self-reflection, extract candidates, present to user for Accept/Reject/Edit. Manual trigger: after PASSED, prompt user to test/debug, update memory only after Quality Memory Review request. Nudge: if ≥3 builds without update, remind in summary. Multi-source: also capture from/review(recurring findings) and/learn(COE actions). Staleness: flag rules unused >90 days during Quality Memory Review. Do not expose as a separate user command. - Code Quality Bar. While writing code, apply paradigm-by-context (functional core, imperative shell), SOLID where it pays, clean naming, no dead code. See
skills/incremental-implementation/SKILL.md→ "Code Quality Bar". - Surface assumptions. Never proceed on an unstated assumption. Ask.
- Push back when warranted. Not a yes-machine.
- Verify, don't assume. Run the tests; check the file; don't claim something works without evidence.
Lifecycle Flow
/wb → /listen → /define → /invent → /refine → /test-idea
↓
/design → (specs) → /build → /review → /deploy
↓
/operate → /learn ↺Each phase produces artifacts that feed the next.
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.

