agentleFS
MicrosoftKnown publishermicrosoft/awesome-rayfin/AGENTS.md

awesome-rayfin

AGENTS.md99 starsChanged 6 months agoMITView on GitHub

This repository is the Awesome Rayfin template gallery, not a single Rayfin app. Work primarily in templates/ and keep gallery metadata, manifests, and docs in sync. Templates must work on both Windows and Unix-like systems (macOS/Linux). When adding or modifying scripts: Use Conventional Commits: <type>(<scope>): <description>. See CONTRIBUTING.md for the full reference.

  • 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,773 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

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

13 rules. About 0 are common, 1 is distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Follow docs/template-guidelines.md for required template structure and contribution expectations.

    line 7
  2. Very specific:

    Use the rayfin MCP server defined in .mcp.json for Rayfin SDK and CLI documentation while editing template code.

    line 9
  3. Very specific:

    Prefer Node.js (.mjs) scripts over shell scripts for any logic end users run.

    line 21
  4. Very specific:

    Avoid Unix-only assumptions: don't rely on Unix sockets, /var/run/, symlinks, or Unix file permissions in runtime scripts.

    line 22
  5. Very specific:

    Use process.platform checks or platform-agnostic APIs when behavior differs across OSes (e.g., Docker uses named pipes on Windows vs.

    line 23
  6. Very specific:

    Use cross-env for setting environment variables in npm scripts.

    line 24
  7. Very specific:

    Use && for chaining npm script commands (supported by cmd, PowerShell 7+, and bash).

    line 25
  8. Very specific:

    Test that node --check <script> passes for any new or modified .mjs files.

    line 26
  9. Distinctive:

    When changing templates or gallery metadata, run the same checks locally when practical.

    line 32
  10. Very specific:

    Use Conventional Commits: <type>(<scope>): <description>.

    line 36
  11. Very specific:

    Prefer .scratchpad/ over the repo tree for any files that should not be committed.

    line 47
  12. Very specific:

    Prefer the Rayfin MCP server in .mcp.json for package discovery, examples, and API details.

    line 51
  13. Very specific:

    If MCP is unavailable, use rayfin docs ...

    line 52

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

AGENTS.md

This repository is the Awesome Rayfin template gallery, not a single Rayfin app. Work primarily in templates/ and keep gallery metadata, manifests, and docs in sync.

Start here

  • Follow docs/template-guidelines.md for required template structure and contribution expectations.
  • Load .agents/skills/template-gallery/SKILL.md before creating, validating, or updating templates in this gallery.
  • Use the rayfin MCP server defined in .mcp.json for Rayfin SDK and CLI documentation while editing template code.

Key repo workflows

  • scripts/new-template.sh scaffolds a new template directory: ./scripts/new-template.sh <name> "<Display Name>" "<description>"
  • scripts/generate-manifest.mjs regenerates the root rayfin-template.yml, per-template manifests, and the README templates table.
  • node scripts/generate-manifest.mjs --check verifies generated files are up to date.

Cross-platform compatibility

Templates must work on both Windows and Unix-like systems (macOS/Linux). When adding or modifying scripts:

  • Prefer Node.js (.mjs) scripts over shell scripts for any logic end users run. Shell scripts (.sh) are acceptable for contributor-only tooling.
  • Avoid Unix-only assumptions: don't rely on Unix sockets, /var/run/, symlinks, or Unix file permissions in runtime scripts.
  • Use process.platform checks or platform-agnostic APIs when behavior differs across OSes (e.g., Docker uses named pipes on Windows vs. Unix sockets on macOS/Linux).
  • Use cross-env for setting environment variables in npm scripts.
  • Use && for chaining npm script commands (supported by cmd, PowerShell 7+, and bash).
  • Test that node --check <script> passes for any new or modified .mjs files.

Validation expectations

  • CI is defined in .github/workflows/validate-templates.yml.
  • The workflow validates template metadata, checks generated manifests and README output, and smoke-tests scaffolding with rayfin init.
  • When changing templates or gallery metadata, run the same checks locally when practical.

Commit messages

Use Conventional Commits: <type>(<scope>): <description>.

  • Types: feat, fix, docs, chore, refactor
  • Scopes (optional): template name (e.g. events-app), gallery, ci, scripts, docs
  • Example: feat(events-app): add attendee check-in page

See CONTRIBUTING.md for the full reference.

Scratch space

  • .scratchpad/ is git-ignored and available for temporary working files (draft content, intermediate output, exploration notes, etc.).
  • Prefer .scratchpad/ over the repo tree for any files that should not be committed.

Rayfin docs

  • Prefer the Rayfin MCP server in .mcp.json for package discovery, examples, and API details.
  • If MCP is unavailable, use rayfin docs ... or npx -y @microsoft/rayfin-cli docs ... from the relevant template directory so docs match that template's installed packages.

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.