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

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

Good fit 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.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/sruja-ai/sruja/sruja-dev
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/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/github.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/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 sruja-dev

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00490 $0.00490
Opus 5.5 $0.00196 $0.00196
Sonnet 5.5 $0.00098 $0.00098
Haiku 4.5 $0.00049 $0.00049

Measured 3mo ago against content hash 4324800adcb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (25 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 490 tokens to every session, about $0.0020 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

sruja-dev compared with cursor rules from other repositories

sruja-dev next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sruja-devsruja-ai/srujaCursor rule251mo agoApache-2.0A490Cursor
api-design-typescriptadonai-labs/agent-runwayCursor rule24d agoMITA0Cursor
advanced-patternsadonai-labs/agent-runwayCursor rule24d agoMITA0Cursor
api-designadonai-labs/agent-runwayCursor rule24d agoMITA0Cursor
testingadonai-labs/agent-runwayCursor rule24d agoMITA0Cursor
owasp-ai-security-privacyadonai-labs/agent-runwayCursor rule24d agoMITA0Cursor
cursorrulesme2resh/agent-decision-recordCursor rule566d agononeA1,040Cursor