agentleFS
erumkatzwanerumkatzwan/agentic-product-starter/AGENTS.md

agentic-product-starter

AGENTS.md5 starsChanged 19 days agoMITView on GitHub

Read this first, then the AGENTS.md in the component you are working on. When a shared skill and a platform skill disagree on how to build, the platform skill wins. On what to build, the spec and ADRs win.

  • Reads credentials

The file

We split this AGENTS.md into the rules it gives an agent

5 rules. About 1 is common, 3 are distinctive, and 1 is very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read this first, then the AGENTS.md in the component you are working on.

    line 3
  2. Distinctive:

    When a shared skill and a platform skill disagree on *how to build*, the platform skill wins.

    line 23
  3. Distinctive:

    Every feature works end to end before it ships: unit, UI and end-to-end tests.

    line 40
  4. Common:

    Never commit secrets, keys or customer data.

    line 47
  5. Very specific:

    Default labels: needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

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

Agent guide

Read this first, then the AGENTS.md in the component you are working on.

Context

  • Product context: docs/product/. Domain language: GLOSSARY.md (created when terms get settled).
  • Architecture: docs/architecture/README.md (arc42 + C4 diagrams). Decisions: docs/adr/ (MADR 4, indexed in docs/adr/README.md).
  • Shared skills: .agents/skills/ (see its README for which skill to use at each stage).
  • Platform skills: <component>/.agents/skills/.

The agentic SDLC

  1. Shape – grill-me, wayfinder, research, prototype
  2. Refine – grill-with-docs, domain-modeling, architecture-decisions
  3. Specify – to-spec (a GitHub issue)
  4. Plan – to-tickets, triage
  5. Build – read the architecture overview and ADRs (architecture-decisions), then implement / implement-spec + tdd, plus the component's platform skills
  6. Review – code-review, pr and the architecture-decisions checklist; all CI checks must be green
  7. Fix and improve – diagnosing-bugs, improve-codebase-architecture
  8. Learn – retro, handoff

When a shared skill and a platform skill disagree on how to build, the platform skill wins. On what to build, the spec and ADRs win.

Components

FolderWhat it isAgent guide
apps/iosNative iOS app (SwiftUI)apps/ios/AGENTS.md
apps/androidNative Android app (Jetpack Compose)apps/android/AGENTS.md
apps/web-appCustomer web app (React)apps/web-app/AGENTS.md
apps/back-officeAdmin and support tool (React)apps/back-office/AGENTS.md
apps/websiteOne-page landing websiteapps/website/AGENTS.md
backend.NET API for every appbackend/AGENTS.md
designDesign tokens for every appdesign/README.md

Shared rules

  • One branch per ticket. Conventional commits (feat:, fix:, chore:, docs:, test:, refactor:).
  • Every feature works end to end before it ships: unit, UI and end-to-end tests.
  • Unfinished work is merged behind a feature flag that defaults to off.
  • Environments: Dev, SYST, Prod. Never point local work at Prod.
  • Architecture first: before coding, read docs/architecture/README.md and the accepted ADRs in the area. Never silently work around an ADR; a change that alters a decision adds a new ADR (superseding the old one) and updates the overview and diagrams in the same pull request.
  • Product name: never hard-code it in a new place without teaching scripts/rename.mjs (the Rename check fails otherwise). Use the rename-product skill to rename.
  • Colours, spacing and type come only from design/tokens.json. Change it there and run node design/build.mjs.
  • One flow across apps: a change to accounts, profile or feature flags updates the backend and every app that uses it in the same pull request.
  • Never commit secrets, keys or customer data. This repository is public. Secret push protection blocks known key formats.
  • Third-party services: every key or ID is optional and listed in config/integrations.json and .env.example. Apps read them from environment variables or .env.local, never from code. Add a new one there first (the Setup check fails otherwise); use the setup-integrations skill.
  • Accessibility: every screen meets WCAG 2.2 AA (accessibility skill). New screens are added to the accessibility tests on their platform; never weaken the contrast check or skip an audit to make CI green.
  • Observability: new user-facing behaviour gets a metric and a dashboard panel (observability skill). No personal data in logs, traces or metric tags.
  • Incidents: when customers are affected in production, open an issue from the Incident template and close it when service is restored; it feeds the DORA metrics (dora-metrics skill).
  • Dependencies: new ones must pass Dependency review; fix vulnerabilities with the security-audit skill and update with the update-dependencies skill. Stable versions only.

Agent skills

Issue tracker

Issues and specs live in this repo's GitHub Issues (gh CLI). See docs/agents/issue-tracker.md.

Triage labels

Default labels: needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix. See docs/agents/triage-labels.md.

Domain docs

Single-context: one GLOSSARY.md and docs/adr/ at the repo root. ADRs use MADR 4 (docs/adr/template.md) and the architecture overview is docs/architecture/README.md. See docs/agents/domain.md and the architecture-decisions skill.

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.