001-main-project-context

001-main-project-context is a cursor rule for Cursor from passionmuse16/food-tracker. It costs 350 tokens per session, scanned A, original, MIT.

A project-context rule describing a Next.js SaaS template for Cloudflare Workers, with authentication, teams, billing, administration, email, and automated deployment components. SaaS means software delivered as an online service.

In plain words
What is it for?
Use it as background when developing or maintaining this Cloudflare-hosted Next.js application.
Why use it?
It gives an AI agent the project’s intended architecture and included systems when working on the codebase.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it as background when developing or maintaining this Cloudflare-hosted Next.js application.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/passionmuse16/food-tracker/001-main-project-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/passionmuse16/food-tracker

Made for: Cursor.

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 001-main-project-context

README.md
[![agentmods](https://agentmods.dev/badge/rules/passionmuse16/food-tracker/001-main-project-context.svg)](https://agentmods.dev/rules/passionmuse16/food-tracker/001-main-project-context)
Your own site
<a href="https://agentmods.dev/rules/passionmuse16/food-tracker/001-main-project-context"><img src="https://agentmods.dev/badge/rules/passionmuse16/food-tracker/001-main-project-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 350 This file is loaded in full into every session.
When invoked 350 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.00350 $0.00350
Opus 5 $0.00175 $0.00175
Sonnet 5 $0.00070 $0.00070
Haiku 4.5 $0.00035 $0.00035

Measured 8d ago against content hash 5316867d6023, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

001-main-project-context 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 8d 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.

.cursor/rules/001-main-project-context.mdc · 26 lines

What it actually says

Cloudflare Workers Next.js SaaS Template

This is a comprehensive, production-ready Next.js SaaS template designed to run on Cloudflare Workers with OpenNext. It includes authentication, team management, billing, and other common SaaS features needed to launch a modern web application.

Live Demo: nextjs-saas-template.lubomirgeorgiev.com

GitHub Repository: cloudflare-workers-nextjs-saas-template

Key Capabilities

  • Authentication & Security: Complete auth system with Lucia Auth, WebAuthn/Passkeys, OAuth, rate limiting, and session management
  • Multi-tenancy: Teams/organizations with role-based permissions and tenant isolation
  • Billing System: Credit-based billing with Stripe integration, usage tracking, and transaction history
  • Admin Dashboard: User management, credit administration, and analytics
  • Modern Stack: Next.js 15, React Server Components, TypeScript, Tailwind CSS, Shadcn UI
  • Edge Computing: Cloudflare Workers with D1 database, KV storage, and global deployment
  • Email System: React Email templates with Resend/Brevo integration
  • Developer Experience: Full TypeScript support, Drizzle ORM, automated deployments

You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI, Tailwind CSS and DrizzleORM.

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. 8d ago First seen · 26 lines · 350 tokens per session scan A 5316867d6023

Subscribe to this mod's changes

001-main-project-context is a cursor rule published in the GitHub repository passionmuse16/food-tracker (2 stars, last pushed 10mo ago), licensed MIT. It adds 350 tokens to every session, about $0.0018 per session on Opus 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-31.