modernstack-saas: Instructions file for Codex

AGENTS.md

modernstack-saas AGENTS.md is an instructions file for Codex, OpenCode from joachimchauvet/modernstack-saas. It costs 745 tokens per session, scanned A, original, MIT.

A set of project guidelines for a SaaS application built with SvelteKit, Svelte, Convex, Tailwind CSS, and shadcn-svelte. It defines where frontend, backend, routes, and shared code belong and sets package-management and documentation rules.

In plain words
What is it for?
Use it when developing Svelte pages and components, Convex backend logic, shared libraries, styling, package dependencies, or project structure.
Why use it?
It prevents agents from using the wrong tools, placing code in the wrong directories, or changing Svelte and Convex code without reading the required references.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is joachimchauvet/modernstack-saas's own configuration. It tells Codex and OpenCode how to work on modernstack-saas itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything modernstack-saas configures →

Reuse

Borrowing it

Nothing to install: this file belongs to joachimchauvet/modernstack-saas. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/joachimchauvet/modernstack-saas/dev/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/joachimchauvet/modernstack-saas

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for modernstack-saas AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/joachimchauvet/modernstack-saas/agents-md/github.svg)](https://agentmods.dev/instructions/joachimchauvet/modernstack-saas/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/joachimchauvet/modernstack-saas/agents-md"><img src="https://agentmods.dev/badge/instructions/joachimchauvet/modernstack-saas/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for modernstack-saas AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/joachimchauvet/modernstack-saas/agents-md"><img src="https://agentmods.dev/badge/instructions/joachimchauvet/modernstack-saas/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 745 This file is loaded in full into every session.
When invoked 745 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00745 $0.00745
Opus 5.5 $0.00298 $0.00298
Sonnet 5.5 $0.00149 $0.00149
Haiku 4.5 $0.00075 $0.00075

Measured 2mo ago against content hash 2ef352eb67e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modernstack-saas AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Guidelines

Core Technologies

  • Frontend: SvelteKit ^2.30 with Svelte 5.
  • Backend: Convex (database, serverless functions, real-time).
  • Styling: Tailwind CSS v4 with shadcn-svelte components.
  • Package Manager: pnpm.

Key Conventions

  • Package Management: IMPORTANT: Always use pnpm for all package management operations (pnpm install, pnpm add, etc.). YOU MUST NOT use npm or yarn.
  • Backend Development: All backend logic is in the convex/ directory.
  • File-based Routing: Use SvelteKit's file-based routing system in src/routes/.
  • Shared Code: Place reusable code in src/lib/.
  • Use git mv instead of creating a new file and deleting the old one or just mv if moving existing files that have been committed already.
  • Do not commit changes on your own. Humans will do that after approval.
  • Before making edits in files involving Svelte 5 or Convex, make sure you read the svelte/overview.md and convex.md documentation or you have it in your context.
  • Most of the time, pnpm dev and pnpm convex dev will be running in another terminal already. No need to run those commands yourself.

Svelte Best Practices

High-Level Principles

  • Write concise, technical, and accurate Svelte 5/SvelteKit code.
  • Leverage SSR and SSG.
  • Prioritize performance and minimal JavaScript.
  • Use descriptive variable names and follow official conventions.

Code Style and Structure

  • Prefer functional and declarative patterns.
  • Avoid code duplication through iteration and modularization.
  • Structure files logically: component logic, markup, styles, helpers, types.

TypeScript Usage

  • Use TypeScript for all code.
  • Prefer interfaces over types.
  • Avoid enums; use as const objects.
  • Enable strict mode.
  • Don't use Any as type. That's not precise or clear enough.

Available Documentation

Refer to the following documents for detailed information on specific topics. These are your primary source of truth for the project. Always double-check when in doubt.

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 59 lines · 745 tokens per session scan A 2ef352eb67e6

Subscribe to this mod's changes

modernstack-saas AGENTS.md is an instructions file published in the GitHub repository joachimchauvet/modernstack-saas (134 stars, last pushed 3mo ago), licensed MIT. It adds 745 tokens to every session, about $0.0030 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

modernstack-saas AGENTS.md compared with instructions from other repositories

modernstack-saas AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modernstack-saas AGENTS.mdjoachimchauvet/modernstack-saasInstructions file1343mo agoMITA745Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode