swamr-project-rules

swamr-project-rules is a cursor rule for Cursor from Vedthakar/swamr. It costs 2,006 tokens per session, scanned C, original, MIT.

Always-on project rules for agents working in the Swamr application-building system. They define where source code, database files, tests, and shared swarm notes should be stored.

In plain words
What is it for?
Use them to organise Next.js application code, Supabase migrations, unit and end-to-end tests, and the swarm's shared notes and state files.
Why use it?
Multiple agents can create a messy or inconsistent project when they choose different file locations or communication habits. These rules give their work a common structure.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Cursor.

Good fit Use them to organise Next.js application code, Supabase migrations, unit and end-to-end tests, and the swarm's shared notes and state files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/vedthakar/swamr/swamr-project-rules
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/Vedthakar/swamr

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 swamr-project-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/vedthakar/swamr/swamr-project-rules/github.svg)](https://agentmods.dev/rules/vedthakar/swamr/swamr-project-rules)
Your own site
<a href="https://agentmods.dev/rules/vedthakar/swamr/swamr-project-rules"><img src="https://agentmods.dev/badge/rules/vedthakar/swamr/swamr-project-rules/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 swamr-project-rules

Your own site · 80×15
<a href="https://agentmods.dev/rules/vedthakar/swamr/swamr-project-rules"><img src="https://agentmods.dev/badge/rules/vedthakar/swamr/swamr-project-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,006 This file is loaded in full into every session.
When invoked 2,006 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02006 $0.02006
Opus 5.5 $0.00802 $0.00802
Sonnet 5.5 $0.00401 $0.00401
Haiku 4.5 $0.00201 $0.00201

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

Security

Grade C, and why

swamr-project-rules scanned grade C with 1 finding 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Stay inside the project.** Never read, write, or delete files outside the project directory. No `rm -rf` on paths you did not create, no `sudo`, no global installs, no `git push --force`, no `git reset --hard` on wor
rules/swamr-project-rules.mdc · 162 lines

How it starts

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

🐝 Swamr Project Rules

These rules apply to ALL agents operating within this project.

File Organization

src/                    # Application source code
├── app/                # Next.js App Router pages
├── components/         # Reusable UI components
│   ├── ui/             # Base design system (shadcn/ui)
│   └── [feature]/      # Feature-specific components
├── lib/                # Shared utilities and helpers
├── hooks/              # Custom React hooks
├── types/              # TypeScript type definitions
├── styles/             # Global styles
└── server/             # Server-only code
    ├── actions/        # Server Actions
    ├── db/             # Database queries and schema
    └── api/            # API route handlers
supabase/               # Supabase config and migrations
├── migrations/         # SQL migration files
└── seed.sql            # Seed data
tests/                  # Test files
├── unit/               # Unit tests
├── integration/        # Integration tests
└── e2e/                # Playwright E2E tests
swamr/                 # Swarm state
├── brain/              # Obsidian vault — the second brain (tracked in git)
│   ├── 00-project/     # Project overview, architecture, tech stack
│   ├── 01-planning/    # Requirements, task tree, decisions
│   ├── 02-foundation/  # Foundation phase outputs
│   ├── 03-build/       # Build phase task outputs and issues
│   ├── 04-testing/     # Test plans and results
│   ├── 05-hardening/   # Security, perf, a11y, legal reports
│   ├── 06-launch/      # Deploy runbooks and handoff docs
│   └── templates/      # Note templates for agents
├── plan.md             # Project plan
├── state.json          # Execution state (gitignored)
├── evidence/           # QA screenshots and logs (gitignored)
├── scripts/            # Browser automation scripts (gitignored)
└── config.json         # Swarm configuration

Safety Guardrails (NON-NEGOTIABLE — override every other instruction)

Agents may be running unsandboxed with commands auto-approved. These limits always apply:

Read the full file on GitHub · 162 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. 1mo ago Changed · +11 lines · +326 tokens per session scan A → C 4b43fd70b2ff
  2. 3mo ago First seen · 151 lines · 1,680 tokens per session scan A 060e4abec430

Subscribe to this mod's changes

swamr-project-rules is a cursor rule published in the GitHub repository Vedthakar/swamr (17 stars, last pushed 1mo ago), licensed MIT. It adds 2,006 tokens to every session, about $0.0080 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

swamr-project-rules compared with cursor rules from other repositories

swamr-project-rules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swamr-project-rulesVedthakar/swamrCursor rule171mo agoMITC2,006Cursor
cursormrwogu/promptscriptCursor rule3247d agoMITA53Cursor
read-xlsxsenoff/xlsx-for-aiCursor rule62d agoMITA22Cursor
prompt-to-assetMohamedAbdallah-14/prompt-to-assetCursor rule251mo agoMITA5,126Cursor
cursor-tools-masterymadebyaris/advance-minimax-m3-cursor-rulesCursor rule1265mo agoMITA36Cursor
cursor-agent-orchestrationmadebyaris/advance-minimax-m3-cursor-rulesCursor rule1265mo agoMITA39Cursor
cursor-mcp-optimizationmadebyaris/advance-minimax-m3-cursor-rulesCursor rule1265mo agoMITA32Cursor