agentleFS
MarcoPorcellatoMarcoPorcellato/matryca-plumber/.cursor/rules/01-core-paradigm.mdc

matryca-plumber / rules

Cursor rule99 starsChanged 4 months agoApache-2.0View on GitHub

Core paradigm rules for Logseq OG (Markdown outliner vs flat text)

The file

We split this 01-core-paradigm.mdc into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 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.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When generating or editing content, produce hierarchical outliner text (nested bullets).

    line 13
  2. Very specific:

    Block Properties: Must be placed immediately after the bullet text, before any indented children.

    line 18
  3. Very specific:

    Page Properties: Must reside in the Absolute Frontmatter at the top of the file (Line 0).

    line 19
  4. Very specific:

    Encoding: ALL file read/write operations must strictly use encoding="utf-8".

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 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
01-core-paradigm.mdc
---
description: Core paradigm rules for Logseq OG (Markdown outliner vs flat text)
globs: *
---

## Project context
This repository builds Matryca Plumber, a local-first, background AI daemon and engine that operates directly on **Logseq OG** (local, pure Markdown graph notes) file systems.

**SSOT:** full paradigm spec lives in [`docs/openspec/agent/paradigm.md`](docs/openspec/agent/paradigm.md). Pointer: [`docs/openspec/logseq-paradigm.md`](docs/openspec/logseq-paradigm.md). This rule is the Cursor summary only.

## Outliner paradigm (non-negotiable)
- Logseq OG uses **pure Markdown files**. The atomic unit is the **block**: an indented bullet point that forms a tree, not a flat document body.
- When generating or editing content, produce **hierarchical outliner text** (nested bullets). 
- **Bulleted Headings:** AI-generated sections must use `- ### Heading Title` to ensure they are foldable in the Logseq outliner.
- **Co-working assumption:** Humans and the daemon edit the **same** `.md` files concurrently. Favor diffs that preserve indentation, block order, and `id::` lines.

## Properties Rules (CRITICAL)
- **Block Properties:** Must be placed immediately after the bullet text, before any indented children. They must be indented by exactly 2 spaces relative to the parent bullet (e.g., `id:: <uuid>`, `matryca-plumber:: true`). NEVER orphan or delete existing block properties.
- **Page Properties:** Must reside in the **Absolute Frontmatter** at the top of the file (Line 0). They are raw text `key:: value` lines WITHOUT bullet dashes (`- `), separated by a blank line before the first bullet.
- **Lists:** `alias::` and `tags::` are comma-separated lists. Do not duplicate keys. Strip markdown (`#`, `[[ ]]`) from their values.

## File System & Namespaces
- **Semantic vs Physical:** In memory/content, use `/` (e.g., `[[Domain/Subdomain]]`). On disk, use Logseq's encoding: replace `/` with `___` and URL-encode reserved OS characters (e.g., `?` -> `%3F`).
- **Encoding:** ALL file read/write operations must strictly use `encoding="utf-8"`.

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.