sruja / rules
Cursor rule22 starsChanged 6 months agoApache-2.0View on GitHub
Project context for Sruja core and extension development.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,373 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .gemini/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/cli-handler.mdcCursor rule
- .cursor/rules/core-engine.mdcCursor rule
- .cursor/rules/extension-ts.mdcCursor rule
- .cursor/rules/sruja-context-host.mdcCursor rule
- .cursor/rules/wasm-constraints.mdcCursor rule
The file
We split this sruja-dev.mdc into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Code Standards: Follow the conventions in AGENTS.md.
- Very specific: line 14
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 …
- Very specific: line 15
Validation: Use sruja lint on any .sruja files after editing.
- Very specific: line 18
Before non-trivial edits: Run sruja focus --file <path> for task-scoped briefing.
- Very specific: line 19
Before marking done: Run sruja verify-task --profile <coding|bugfix|review|arch> -r ..
- Very specific: line 20
When
.srujaor cross-crate imports change: Run sruja drift -r . and sruja intent check. - Very specific: line 31
Prefer Cursor project commands in .cursor/commands/ (see AGENTS.md) over pasting the same long prompt repeatedly.
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

