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.
- template-gallerySkill
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
- Very specific: line 7
Follow docs/template-guidelines.md for required template structure and contribution expectations.
- Very specific: line 9
Use the rayfin MCP server defined in .mcp.json for Rayfin SDK and CLI documentation while editing template code.
- Very specific: line 21
Prefer Node.js (.mjs) scripts over shell scripts for any logic end users run.
- Very specific: line 22
Avoid Unix-only assumptions: don't rely on Unix sockets, /var/run/, symlinks, or Unix file permissions in runtime scripts.
- Very specific: line 23
Use process.platform checks or platform-agnostic APIs when behavior differs across OSes (e.g., Docker uses named pipes on Windows vs.
- Very specific: line 24
Use cross-env for setting environment variables in npm scripts.
- Very specific: line 25
Use && for chaining npm script commands (supported by cmd, PowerShell 7+, and bash).
- Very specific: line 26
Test that node --check <script> passes for any new or modified .mjs files.
- Distinctive: line 32
When changing templates or gallery metadata, run the same checks locally when practical.
- Very specific: line 36
Use Conventional Commits: <type>(<scope>): <description>.
- Very specific: line 47
Prefer .scratchpad/ over the repo tree for any files that should not be committed.
- Very specific: line 51
Prefer the Rayfin MCP server in .mcp.json for package discovery, examples, and API details.
- Very specific: line 52
If MCP is unavailable, use rayfin docs ...
≈ “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.
Files
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.mdfor required template structure and contribution expectations. - Load
.agents/skills/template-gallery/SKILL.mdbefore creating, validating, or updating templates in this gallery. - Use the
rayfinMCP server defined in.mcp.jsonfor Rayfin SDK and CLI documentation while editing template code.
Key repo workflows
scripts/new-template.shscaffolds a new template directory:./scripts/new-template.sh <name> "<Display Name>" "<description>"scripts/generate-manifest.mjsregenerates the rootrayfin-template.yml, per-template manifests, and the README templates table.node scripts/generate-manifest.mjs --checkverifies 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.platformchecks 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-envfor 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.mjsfiles.
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.jsonfor package discovery, examples, and API details. - If MCP is unavailable, use
rayfin docs ...ornpx -y @microsoft/rayfin-cli docs ...from the relevant template directory so docs match that template's installed packages.
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.

