agentleFS
AWSKnown publisherawslabs/fullstack-solution-template-for-agentcore/vibe-context/AGENTS.md

fullstack-solution-template-for-agentcore / vibe-context

AGENTS.md593 starsChanged 9 months agoApache-2.0View on GitHub

IF YOU ARE AN AI ASSISTANT YOU MUST FOLLOW THESE RULES ALWAYS FOLLOW THESE RULES WHEN YOU WORK IN THIS PROJECT

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 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.

The file

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

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Make sure you follow existing design patterns and coding styles when implementing new things.

    line 6
  2. Distinctive:

    Always follow the rules outlined in the coding conventions and development best practice markdown docs provided to you.

    line 11

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

Rules for AI Assistants

IF YOU ARE AN AI ASSISTANT YOU MUST FOLLOW THESE RULES

  1. Always read READMEs when you begin working in a new section of the code base before writing any code. For example frontend/README.md, infra-cdk/README.md (if you are using CDK for the infrastructure), infra-terraform/README.md (if you are using terraform for the infrastructure), and so on.
  2. Make sure you follow existing design patterns and coding styles when implementing new things. Refer to markdown documentation and existing similar code to make sure your approach aligns with existing resources.
  3. The documentation found in the docs/ folder is always to be considered the most important. Documents in here have been specially crafted by domain experts from the same domain as the developers who are using the coding assistant. Refer to information in docs/ about best practices etc whenever possible instead of using your own judgment. For example, if a user asks a question or wants to develop using "AgentCore Gateway", you should find and read docs/GATEWAY.md before answering.
  4. When searching for files or information in this repository, always explicitly avoid including "node_modules" and "cdk.out" in any grep commands, as these often contain large numbers of files which will fill up your context window with noise. For example you should always have | grep -v "cdk.out" | grep -v "node_modules" at the end of every grep command.
  5. Whenever possible, test new features locally or with unit python tests.
  6. New human users may not understand the best way to deploy the application, add features, etc. There is documentation on all of this, so make sure to read it and recommend methods and techniques to the human whenever possible.
  7. Always follow the rules outlined in the coding conventions and development best practice markdown docs provided to you.

ALWAYS FOLLOW THESE RULES WHEN YOU WORK IN THIS PROJECT

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.