matryca-plumber / rules
Cursor rule99 starsChanged 4 months agoApache-2.0View on GitHub
Python coding standards, libraries, and concurrency safety
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/01-core-paradigm.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 02-python-standards.mdc into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Always instruct the user to run make check to validate code (formatting, linting, mypy strict, pytest).
- Distinctive: line 13
Validation: use Pydantic models for config, JSON payloads, and boundaries.
- Distinctive: line 18
Zero-Byte / Ghost Files: Always implement early-exit guards for empty or whitespace-only files to prevent crashes.
- Very specific: line 21
Use structured logging via loguru.
- Distinctive: line 22
Do not log full note bodies to stdout.
≈ “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: Python coding standards, libraries, and concurrency safety globs: "*.py" --- ## Dependency management and developer experience - **Dependency Management & DX:** Strictly use **`uv`** (never `pip`). - Always instruct the user to run **`make check`** to validate code (formatting, linting, mypy strict, pytest). Code is not ready until all tests pass with zero warnings. ## Runtime and quality - **Python:** target **3.12+**. - **Types:** annotate public APIs; `mypy` must type-check the package on `--strict` mode. - **Validation:** use **Pydantic** models for config, JSON payloads, and boundaries. - **Architecture:** layer boundaries and Clean Code checklist — see [`12-clean-code-architecture.mdc`](12-clean-code-architecture.mdc) and [`docs/CLEAN_CODE_ARCHITECTURE.md`](../../docs/CLEAN_CODE_ARCHITECTURE.md). ## Concurrency and I/O (File System Safety) - **Optimistic Concurrency:** Matryca runs in the background. Before overwriting any `.md` file, you MUST check if the file's `mtime` has changed since it was read. Use `atomic_write_bytes_if_unchanged` to prevent data loss if the user is typing in Logseq. - **Zero-Byte / Ghost Files:** Always implement early-exit guards for empty or whitespace-only files to prevent crashes. ## Observability - Use structured logging via **`loguru`**. - Do not log full note bodies to stdout.
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.

