agentleFS
robissonrobisson/build-like-amazon-agent-skills/.cursor/rules/amazon-skills.md

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…

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
  1. Distinctive:

    Read AGENTS.md for the full operating contract.

    line 90
  2. Very specific:

    Patterns enter design as alternatives: Read patterns/INDEX.md to identify relevant patterns.

    line 95
  3. Distinctive:

    Surface assumptions: Never proceed on an unstated assumption.

    line 100
  4. Distinctive:

    Push back when warranted: Not a yes-machine.

    line 101
  5. Distinctive:

    Verify, don't assume: Run the tests; check the file.

    line 102

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
amazon-skills.md

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:

  1. Identify the lifecycle phase (Working Backwards / Design / Build / Deploy / Operate / Learn).
  2. Load the relevant skill(s) from skills/ for that phase.
  3. Follow the skill's Process section step by step, including approval gates.
  4. When in doubt about which skill applies, read skills/using-amazon-skills/SKILL.md first — it is the meta-skill that routes ambiguous requests.

Skill Index

Meta

SkillDirectory
using-amazon-skillsskills/using-amazon-skills/
brownfield-discoveryskills/brownfield-discovery/ (reverse-engineer existing project)

Working Backwards

SkillDirectory
working-backwardsskills/working-backwards/
wb-listenskills/wb-listen/
wb-defineskills/wb-define/
wb-inventskills/wb-invent/
wb-refineskills/wb-refine/
wb-test-and-iterateskills/wb-test-and-iterate/

Design

SkillDirectory
design-documentskills/design-document/
dependency-managementskills/dependency-management/
feature-flag-lifecycleskills/feature-flag-lifecycle/
operational-excellenceskills/operational-excellence/
api-contract-firstskills/api-contract-first/
threat-modelingskills/threat-modeling/
design-reviewskills/design-review/
spec-driven-implementationskills/spec-driven-implementation/

Build

SkillDirectory
incremental-implementationskills/incremental-implementation/
test-driven-developmentskills/test-driven-development/
operational-codeskills/operational-code/
infrastructure-as-codeskills/infrastructure-as-code/
code-review-bar-raisingskills/code-review-bar-raising/

Deploy

SkillDirectory
progressive-deploymentskills/progressive-deployment/
pipeline-safetyskills/pipeline-safety/

Operate

SkillDirectory
operational-readiness-reviewskills/operational-readiness-review/
metrics-reviewskills/metrics-review/

Learn

SkillDirectory
correction-of-errorsskills/correction-of-errors/
mechanism-creationskills/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:

  1. Respect approval gates. During /wb, /design, /spec, stop at each gate and present work.
  2. Match the ceremony to the change. Trivial → direct to code; Small → direct or lightweight spec; Medium → /spec + /build; Large → full /design flow; New product → /wb first. 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). See skills/using-amazon-skills/SKILL.md → "Match the Ceremony to the Change" and skills/brownfield-discovery/SKILL.md for details.
  3. 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, .proto for 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. See skills/api-contract-first/SKILL.md.
  4. Patterns enter design as alternatives. Read patterns/INDEX.md to identify relevant patterns; load full PATTERN.md only when criteria match.
  5. Track tasks during /build. The orchestrator owns tasks.md. Flip [ ] → [-] before dispatching a wave; [-] → [x] as sub-agents report success; [!] for blockers. No spec is "done" while any task is [ ] or [-].
  6. /build is autonomous to feature completion. Approval gates happened in /design. /build runs 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.
  7. Use implementation memory internally during /build. After current spec/tasks and coherence-review action items are known, read skills/implementation-memory/SKILL.md and .bla/implementation-memory.md if present. Select active rules using multi-signal matching (Tags, File patterns, Applies when). Increment Hit 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.
  8. 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".
  9. Surface assumptions. Never proceed on an unstated assumption. Ask.
  10. Push back when warranted. Not a yes-machine.
  11. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.