# AGENTS.md generator: rules for Next.js + Supabase.

Choose your stack modules and export repository rules with concrete security and data practices — free, no sign-up.

Page: https://saascode.ai/tools/agents-md-generator

## How to use

1. Name the project and choose AGENTS.md, CLAUDE.md or legacy .cursorrules.
2. Mark auth, payments, i18n, multi-tenant RLS and tests; core security stays included.
3. Generate, review against your repo instructions, then copy or download the file.

## Scope

Rules template for review. Installed versions and existing instructions remain authoritative.

## References

- [Supabase RLS — checked 2026-10-09](https://supabase.com/docs/guides/database/postgres/row-level-security)
- [Supabase data security — checked 2026-10-09](https://supabase.com/docs/guides/database/secure-data)

## Build your SaaS

[SaaSCode Base already includes these rules](https://saascode.ai/free)

## Related tools

- [Base64 encode / decode](https://saascode.ai/tools/base64)
- [Markdown editor & table generator](https://saascode.ai/tools/markdown-editor)
- [Unix timestamp converter](https://saascode.ai/tools/unix-timestamp-converter)
- [All free tools](https://saascode.ai/tools)

## FAQ

### Is it free, and is an account required?

Free, no sign-up. Editing and exports run in your browser without an AI model. Usage events contain only the tool name and action. Drafts last while the page is open; download before leaving.

### What is always included?

RLS on every application table, no service_role or secret keys in client code, server-side Zod validation, ordered migrations, repeatable seeds and honest verification. These remain when optional modules are off.

### How do the formats differ?

They share the selected content with the intended filename identified. AGENTS.md and CLAUDE.md are Markdown. .cursorrules is the legacy plain-text Cursor format, not a modern .mdc file. Your editor determines discovery and precedence.

### What does the multi-tenant module add?

Tenant foreign keys, membership-based authorization, write WITH CHECK, storage policy review and two-tenant allow/deny tests. The generator does not inspect or certify policies.

### Are these exact rules for my Base version?

This is a focused template. Reconcile commands, paths and existing instructions with your installed project. No internal operational process is included.

### Do I upload a repository?

No. The generator accepts a name and selected modules, runs locally and never reads or writes your repository.
