agentleFS
sruja-aisruja-ai/sruja/.cursor/rules/sruja-dev.mdc

sruja / rules

Cursor rule22 starsChanged 6 months agoApache-2.0View on GitHub

Project context for Sruja core and extension development.

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
  1. Distinctive:

    Code Standards: Follow the conventions in AGENTS.md.

    line 11
  2. Very specific:

    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 …

    line 14
  3. Very specific:

    Validation: Use sruja lint on any .sruja files after editing.

    line 15
  4. Very specific:

    Before non-trivial edits: Run sruja focus --file <path> for task-scoped briefing.

    line 18
  5. Very specific:

    Before marking done: Run sruja verify-task --profile <coding|bugfix|review|arch> -r ..

    line 19
  6. Very specific:

    When .sruja or cross-crate imports change: Run sruja drift -r . and sruja intent check.

    line 20
  7. Very specific:

    Prefer Cursor project commands in .cursor/commands/ (see AGENTS.md) over pasting the same long prompt repeatedly.

    line 31

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
sruja-dev.mdc
# 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.