sruja-dev

sruja-dev is a cursor rule for Cursor from sruja-ai/sruja. It costs 490 tokens per session, scanned A, original, Apache-2.0.

Project-specific rules for developing Sruja, a Rust and TypeScript architecture tool that uses code and architecture files to describe software structure.

In plain words
What is it for?
Use it when changing Sruja source code, TypeScript extensions, WebAssembly components, or .sruja architecture files. It covers task preparation, linting, tests, architecture checks, and rebuild reminders.
Why use it?
It gives an AI coding assistant the project conventions and required validation steps, reducing the risk of changes that break architecture or build files.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/sruja-ai/sruja/sruja-dev
Clone the repo
git clone --depth 1 https://github.com/sruja-ai/sruja

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 sruja-dev

README.md
[![agentmods](https://agentmods.dev/badge/rules/sruja-ai/sruja/sruja-dev.svg)](https://agentmods.dev/rules/sruja-ai/sruja/sruja-dev)
Your own site
<a href="https://agentmods.dev/rules/sruja-ai/sruja/sruja-dev"><img src="https://agentmods.dev/badge/rules/sruja-ai/sruja/sruja-dev.svg" alt="Measured on agentmods" height="20"></a>
Per session 490 This file is loaded in full into every session.
When invoked 490 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00490 $0.00490
Opus 5 $0.00245 $0.00245
Sonnet 5 $0.00098 $0.00098
Haiku 4.5 $0.00049 $0.00049

Measured 4d ago against content hash 4324800adcb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sruja-dev 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 4d 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/sruja-dev.mdc · 32 lines

What it actually says

sruja-dev

Project context for Sruja core and extension development.

Scopes

  • **/*.rs
  • **/*.ts
  • **/*.sruja

Instructions

  1. Code Standards: Follow the conventions in AGENTS.md.
  2. Workflow: For non-trivial work, follow AGENTS.md section AI agent workflow (multi-step tasks) — two-layer planning (scope vs task), artifact handoffs, fresh session after a frozen plan, and the system-evolution outer loop when agents miss conventions.
  3. Architecture: Respect C4 boundaries declared in .sruja files.
  4. WASM Integrity: If you modify sruja-wasm or sruja-language, remind the user to rebuild WASM with just wasm-nodejs (or make wasm-nodejs) and update the extension assets.
  5. Validation: Use sruja lint on any .sruja files after editing.

Mandatory Gates

  • Before non-trivial edits: Run sruja focus --file <path> for task-scoped briefing.
  • Before marking done: Run sruja verify-task --profile <coding|bugfix|review|arch> -r ..
  • When .sruja or cross-crate imports change: Run sruja drift -r . and sruja intent check.
  • On verify failure: Fix the issue, re-verify, then record a correction learning via sruja agent record.

Useful Context Tools

  • sruja focus --file <path> — Task-scoped briefing before deep edits.
  • Sruja MCP.cursor/mcp.json (SRUJA_MCP_WATCH_DRIFT=1). See sruja-context-host rule for drift, prune, memory.
  • sruja drift — Check for drift after code edits.
  • sruja memory search -r . "<query>" — Indexed learnings and context events.
  • sruja why — Explain architectural relationships.

Repeatable flows

  • Prefer Cursor project commands in .cursor/commands/ (see AGENTS.md) over pasting the same long prompt repeatedly.
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. 4d ago First seen · 32 lines · 490 tokens per session scan A 4324800adcb8

Subscribe to this mod's changes

sruja-dev is a cursor rule published in the GitHub repository sruja-ai/sruja (22 stars, last pushed 10d ago), licensed Apache-2.0. It adds 490 tokens to every session, about $0.0024 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-30.