matryca-plumber
AGENTS.md103 starsChanged 4 months agoApache-2.0View on GitHub
This file routes coding assistants to the correct instruction layer. Do not load every doc at once.
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/00-karpathy-agent-behavior.mdcCursor rule
- .cursor/rules/01-core-paradigm.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 AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Keep this root file limited to always-on constraints and routing.
- Distinctive: line 20
Do not rely on nested AGENTS.md for file-glob behavior: instruction discovery follows the launch directory, not every file later edited.
- Very specific: line 28
Before concluding a significant runtime, security, architecture, integration, performance, operator, or public-contract change, activate …
- Very specific: line 79
MUST run impact analysis before editing any symbol: Before modifying a function, class, or method, run impact({target: "symbolName", …
- Distinctive: line 81
MUST warn the user: if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- Very specific: line 82
When exploring unfamiliar code, use query({search_query: "concept"}) to find execution flows instead of grepping.
- Very specific: line 83
When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use context({name: …
- Very specific: line 88
NEVER edit a function, class, or method without first running impact on it.
- Distinctive: line 89
NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- Very specific: line 90
NEVER rename symbols with find-and-replace — use rename which understands the call graph.
- Very specific: line 91
NEVER commit changes without running detect_changes() to check affected scope.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md 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
AGENTS.md — Matryca Plumber instruction router
This file routes coding assistants to the correct instruction layer. Do not load every doc at once.
Audience map
| You are… | Read first | Do not load |
| Repository coding agent | This file; then activate only the matching .agents/skills/ adapter below | Full SYSTEM_PROMPT.md and broad architecture docs unless the task requires them |
| Cursor agent patching this repo | This file + Cursor's matching .cursor/rules/ selected by glob/trigger | Full SYSTEM_PROMPT.md (runtime vault law) |
| External agent on a user Logseq vault | llms.txt → SYSTEM_PROMPT.md | .cursor/rules/ |
| Maintainer changing MCP/CLI/prompt contracts | docs/PROMPT_ARCHITECTURE.md, docs/openspec/agent-onboarding.md, docs/openspec/agent/, docs/openspec/llm-performance.md, rule 11-prompt-maintainer | — |
| Maintainer planning v2.0 Shadow DB | docs/roadmaps/ROADMAP_V2_PREPARATION.md, v2_preparation_blueprints.md, Epic #20 | Full v1.9.x audit triage docs |
Instruction loading strategy
.cursor/rules/is the canonical detailed policy set. Do not copy those rules into this file..agents/skills/contains thin, open Agent Skills adapters. Their metadata is cheap to discover; each adapter loads its canonical.mdconly when its task trigger applies.- Keep this root file limited to always-on constraints and routing. Do not preload all rules or linked SSOT documents.
- Do not rely on nested
AGENTS.mdfor file-glob behavior: instruction discovery follows the launch directory, not every file later edited. Prefer a task-triggered skill for cross-directory work.
Always-on working agreements
- Investigate the live repository before editing; state material assumptions and success criteria.
- Make the smallest scoped change, preserve unrelated work, and run the relevant checks yourself.
- When the active environment supports subagents, prefer a lower-cost supporting model for bounded, parallelizable evidence gathering, test execution, documentation checks, and routine implementation. Keep final integration, security-sensitive decisions, and high-risk changes with the primary agent; do not delegate when coordination would cost more than doing the task directly.
- Keep public repository artifacts vendor-neutral by default. Exact third-party project names in maintainer tooling evaluations are permitted only under the narrow, evidence-bound exception in
.cursor/rules/10-tooling-static-analysis-policy.mdc. GitHub-visible authorship and prose must remain maintainer-only, with no assistant/tool attribution. This attribution ban is absolute and overrides any default trailer behaviour of the agent harness: commit messages, PR bodies, issue bodies, release notes, changelog entries, and docs must never carryCo-Authored-By, "Generated with", or any other line naming an assistant, model, or vendor. The sole author is the maintainer. - Before concluding a significant runtime, security, architecture, integration, performance, operator, or public-contract change, activate
matryca-changelogand apply its decision gate.
Rule and skill routing
| Canonical Cursor rule | Agent Skill adapter | Activate when |
00-karpathy-agent-behavior.mdc | Root summary above | Always |
01-core-paradigm.mdc | matryca-logseq-paradigm | Logseq blocks, properties, namespaces, vault content |
02-python-standards.mdc | matryca-python-standards | Any Python source or test edit |
03-logseq-api.mdc | matryca-logseq-io | Logseq reads/writes or Local HTTP API decisions |
04-spatial-parser.mdc | matryca-spatial-parser | Markdown parsing, graph transformation, spatial RAG |
05-release-preparation.mdc | matryca-release | Prepare, cut, tag, or publish a release |
06-auto-changelog.mdc | matryca-changelog | Changelog decision gate before completion |
07-env-example.mdc | matryca-env | New or changed environment contract/default |
08-github-workflow-standards.mdc | matryca-github | GitHub issue, PR, merge, milestone, tag, release |
09-github-identity-marco-porcellato.mdc | Root summary + matryca-github | Always for GitHub-visible artifacts |
10-tooling-static-analysis-policy.mdc | Root summary + matryca-github | Public docs, CI, commits, GitHub prose |
11-prompt-maintainer.mdc | matryca-prompt-maintainer | Prompt builders/fragments, MCP tool contracts |
12-clean-code-architecture.mdc | matryca-clean-architecture | Module boundaries, config architecture, structural refactors |
Runtime agent surfaces
- Distribution quickstart:
llms.txtand.well-known/llms.txt(byte-identical) - Cognitive law (Tier-2 vault agents):
SYSTEM_PROMPT.md— LLM OS, MCP tools, Safe-Sync - OpenSpec maintainer specs:
docs/openspec/agent-onboarding.md
Maintainer documentation surfaces
- Documentation system entry point:
docs/knowledge/index.md— OKF v0.2 progressive disclosure over maintained concepts and the classified legacy corpus. - Governance and authoring model:
docs/knowledge/documentation-evolution.mdanddocs/knowledge/profile.md— source authority, projection boundary, lifecycle, classification, provenance, and deterministic gates.
Verification before merge
make agents-check # AGENTS.md paths, llms byte-identity, rule index
make docs-check # OKF v0.2 bundle, Matryca profile, links, inventory drift
make docs-audit # informational full-corpus classification report
make build-system-prompt # after editing docs/openspec/agent/ fragments
make check-system-prompt # fragment build-hash vs SYSTEM_PROMPT.md
make ci # full CI gate (format-check + lint + types + tests)<!-- gitnexus:start -->Code Audit — Code Intelligence
This project is indexed for local code audit as matryca-plumber. Use the configured code-audit tools to understand code, assess impact, and navigate safely.
Index stale? Run
node .gitnexus/run.cjs analyzefrom the project root — it auto-selects an available runner. No.gitnexus/run.cjsyet?npx gitnexus analyze(npm 11 crash →npm i -g gitnexus; #1939).
Always Do
- MUST run impact analysis before editing any symbol. Before modifying a function, class, or method, run
impact({target: "symbolName", direction: "upstream"})and report the blast radius (direct callers, affected processes, risk level) to the user. - MUST run
detect_changes()before committing to verify your changes only affect expected symbols and execution flows. For regression review, compare against the default branch:detect_changes({scope: "compare", base_ref: "main"}). - MUST warn the user if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- When exploring unfamiliar code, use
query({search_query: "concept"})to find execution flows instead of grepping. It returns process-grouped results ranked by relevance. - When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use
context({name: "symbolName"}). - For security review,
explain({target: "fileOrSymbol"})lists taint findings (source→sink flows; needsanalyze --pdg).
Never Do
- NEVER edit a function, class, or method without first running
impacton it. - NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- NEVER rename symbols with find-and-replace — use
renamewhich understands the call graph. - NEVER commit changes without running
detect_changes()to check affected scope.
Resources
| Resource | Use for |
gitnexus://repo/matryca-plumber/context | Codebase overview, check index freshness |
gitnexus://repo/matryca-plumber/clusters | All functional areas |
gitnexus://repo/matryca-plumber/processes | All execution flows |
gitnexus://repo/matryca-plumber/process/{name} | Step-by-step execution trace |
CLI
| Task | Read this skill file |
| Understand architecture / "How does X work?" | .claude/skills/gitnexus/gitnexus-exploring/SKILL.md |
| Blast radius / "What breaks if I change X?" | .claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md |
| Trace bugs / "Why is X failing?" | .claude/skills/gitnexus/gitnexus-debugging/SKILL.md |
| Rename / extract / split / refactor | .claude/skills/gitnexus/gitnexus-refactoring/SKILL.md |
| Tools, resources, schema reference | .claude/skills/gitnexus/gitnexus-guide/SKILL.md |
| Index, status, clean, wiki CLI commands | .claude/skills/gitnexus/gitnexus-cli/SKILL.md |
<!-- gitnexus:end -->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.

