matryca-plumber / rules
Cursor rule99 starsChanged 4 months agoApache-2.0View on GitHub
Core paradigm rules for Logseq OG (Markdown outliner vs flat text)
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 1,533 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 repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/00-karpathy-agent-behavior.mdcCursor rule
- .cursor/rules/02-python-standards.mdcCursor rule
- .cursor/rules/03-logseq-api.mdcCursor rule
- .cursor/rules/04-spatial-parser.mdcCursor rule
- .cursor/rules/05-release-preparation.mdcCursor rule
- .cursor/rules/06-auto-changelog.mdcCursor rule
- .cursor/rules/07-env-example.mdcCursor rule
- .cursor/rules/08-github-workflow-standards.mdcCursor rule
- .cursor/rules/09-github-identity-marco-porcellato.mdcCursor rule
- .cursor/rules/10-tooling-static-analysis-policy.mdcCursor rule
- .cursor/rules/11-prompt-maintainer.mdcCursor rule
- .cursor/rules/12-clean-code-architecture.mdcCursor rule
- llms.txtllms.txt
- .well-known/llms.txtllms.txt
- matryca-changelogSkill
- matryca-clean-architectureSkill
- matryca-envSkill
- matryca-githubSkill
- matryca-logseq-ioSkill
- matryca-logseq-paradigmSkill
- matryca-prompt-maintainerSkill
- matryca-python-standardsSkill
- matryca-releaseSkill
- matryca-spatial-parserSkill
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
- Distinctive: line 13
When generating or editing content, produce hierarchical outliner text (nested bullets).
- Very specific: line 18
Block Properties: Must be placed immediately after the bullet text, before any indented children.
- Very specific: line 19
Page Properties: Must reside in the Absolute Frontmatter at the top of the file (Line 0).
- Very specific: line 24
Encoding: ALL file read/write operations must strictly use encoding="utf-8".
≈ “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.
Files
--- 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"`.
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.

