agentleFS
MarcoPorcellatoMarcoPorcellato/matryca-plumber/AGENTS.md

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

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

    Keep this root file limited to always-on constraints and routing.

    line 19
  2. Distinctive:

    Do not rely on nested AGENTS.md for file-glob behavior: instruction discovery follows the launch directory, not every file later edited.

    line 20
  3. Very specific:

    Before concluding a significant runtime, security, architecture, integration, performance, operator, or public-contract change, activate …

    line 28
  4. Very specific:

    MUST run impact analysis before editing any symbol: Before modifying a function, class, or method, run impact({target: "symbolName", …

    line 79
  5. Distinctive:

    MUST warn the user: if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.

    line 81
  6. Very specific:

    When exploring unfamiliar code, use query({search_query: "concept"}) to find execution flows instead of grepping.

    line 82
  7. Very specific:

    When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use context({name: …

    line 83
  8. Very specific:

    NEVER edit a function, class, or method without first running impact on it.

    line 88
  9. Distinctive:

    NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.

    line 89
  10. Very specific:

    NEVER rename symbols with find-and-replace — use rename which understands the call graph.

    line 90
  11. Very specific:

    NEVER commit changes without running detect_changes() to check affected scope.

    line 91

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 firstDo not load
Repository coding agentThis file; then activate only the matching .agents/skills/ adapter belowFull SYSTEM_PROMPT.md and broad architecture docs unless the task requires them
Cursor agent patching this repoThis file + Cursor's matching .cursor/rules/ selected by glob/triggerFull SYSTEM_PROMPT.md (runtime vault law)
External agent on a user Logseq vaultllms.txt → SYSTEM_PROMPT.md.cursor/rules/
Maintainer changing MCP/CLI/prompt contractsdocs/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 DBdocs/roadmaps/ROADMAP_V2_PREPARATION.md, v2_preparation_blueprints.md, Epic #20Full 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 .mdc only 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.md for 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 carry Co-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-changelog and apply its decision gate.

Rule and skill routing

Canonical Cursor ruleAgent Skill adapterActivate when
00-karpathy-agent-behavior.mdcRoot summary aboveAlways
01-core-paradigm.mdcmatryca-logseq-paradigmLogseq blocks, properties, namespaces, vault content
02-python-standards.mdcmatryca-python-standardsAny Python source or test edit
03-logseq-api.mdcmatryca-logseq-ioLogseq reads/writes or Local HTTP API decisions
04-spatial-parser.mdcmatryca-spatial-parserMarkdown parsing, graph transformation, spatial RAG
05-release-preparation.mdcmatryca-releasePrepare, cut, tag, or publish a release
06-auto-changelog.mdcmatryca-changelogChangelog decision gate before completion
07-env-example.mdcmatryca-envNew or changed environment contract/default
08-github-workflow-standards.mdcmatryca-githubGitHub issue, PR, merge, milestone, tag, release
09-github-identity-marco-porcellato.mdcRoot summary + matryca-githubAlways for GitHub-visible artifacts
10-tooling-static-analysis-policy.mdcRoot summary + matryca-githubPublic docs, CI, commits, GitHub prose
11-prompt-maintainer.mdcmatryca-prompt-maintainerPrompt builders/fragments, MCP tool contracts
12-clean-code-architecture.mdcmatryca-clean-architectureModule boundaries, config architecture, structural refactors

Runtime agent surfaces

  • Distribution quickstart: llms.txt and .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.md and docs/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 analyze from the project root — it auto-selects an available runner. No .gitnexus/run.cjs yet? 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; needs analyze --pdg).

Never Do

  • NEVER edit a function, class, or method without first running impact on it.
  • NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
  • NEVER rename symbols with find-and-replace — use rename which understands the call graph.
  • NEVER commit changes without running detect_changes() to check affected scope.

Resources

ResourceUse for
gitnexus://repo/matryca-plumber/contextCodebase overview, check index freshness
gitnexus://repo/matryca-plumber/clustersAll functional areas
gitnexus://repo/matryca-plumber/processesAll execution flows
gitnexus://repo/matryca-plumber/process/{name}Step-by-step execution trace

CLI

TaskRead 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 -->

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.