agentleFS
Jamie-BitFlightJamie-BitFlight/claude_skills/rules/AGENTS.md

claude_skills / rules

AGENTS.md67 starsChanged 50 days agoMITView on GitHub

rules/ is the authoritative, plain-content rule source for tools without a native path-glob mechanism (Codex, Hermes). manifest.json is the authoritative source for which glob patterns load which file — read it directly rather than trusting a restated pattern here. context-loader.mjs is designed as the shared matcher/loader for every harness's own hook wrapper to call; as of this writing only Claude Code's wrapper (.claude/hooks/context-rules.mjs) exists and is wired (.claude/settings.json's PostToolUse/SessionStart hooks) — a Codex or Hermes wrapper has not been added…

The file

Files
AGENTS.md

rules/ — Cross-Tool Path-Scoped Rules

rules/ is the authoritative, plain-content rule source for tools without a native path-glob mechanism (Codex, Hermes). manifest.json is the authoritative source for which glob patterns load which file — read it directly rather than trusting a restated pattern here. context-loader.mjs is designed as the shared matcher/loader for every harness's own hook wrapper to call; as of this writing only Claude Code's wrapper (.claude/hooks/context-rules.mjs) exists and is wired (.claude/settings.json's PostToolUse/SessionStart hooks) — a Codex or Hermes wrapper has not been added yet.

FilePurposeReaches an agent via
adr-lifecycle.mdARCHITECTURE.md defines desired state; backlog records gaps; an ADR records a dismissible deliberation that nothing links tomanifest.json
agent-output-contracts.mdprohibited silent-output instructions and enforcement checklistmanifest.json
astral-tool-overrides.mdthis repo's uv/ty/ruff policy overridesmanifest.json
ci-workflows.mdCI workflow modification protocolmanifest.json
citation-requirements.mdfactual claims need a cited sourcemanifest.json
data-format-selection.mdpick the format closest to the consumer; never parse prose for your own datamanifest.json
delegation-format.mdwrong delegation-instruction formats to avoid in prosemanifest.json
exception-handling.mdnarrow exception catches only, no broad except Exceptionmanifest.json
frontmatter-requirements.mdrequired frontmatter fieldsmanifest.json
language-conventions.mdlanguage choice, .cjs/.mjs Node conventionmanifest.json
linting-exceptions.mdwhen a lint suppression is (rarely) acceptablemanifest.json
markdown-file-references.mdcode fence and markdown link conventionsmanifest.json
plugin-development.mdauto-discovery, versioning, local testingmanifest.json
plugin-json.mdmanifest schema requirementsmanifest.json
prose-file-classification.mdreview-treatment decision tree for prose filesmanifest.json
python-development.mdPEP 723 scripts, no uv workspace, ty errors, repo overrides on the Python skillsmanifest.json + routing line
review-and-correction-discipline.mdstructural vs content review gates, and what belongs in AGENTS.mdmanifest.json
runtime-vs-design-time.mdruntime vs. design-time audience, and a portable artifact's actual (installed) environment vs. its authoring repomanifest.json
script-invocation.mdshebang/execute-bit, run scripts directlymanifest.json
silent-failure-prevention.mdwrite operations must report what changedmanifest.json
skill-documentation-verification.mdskill docs are AI-facing, not user-facingmanifest.json
shared-process-extraction.mdwriting into an agent what another also needs, or finding the same process in two agents: one skill holds it, both load itmanifest.json
skill-substitution.mdload-time string substitution gotchamanifest.json
uv-run-required.mdstop and tell the user when uv is unavailable — no pip/poetry/pipx/python fallback existsmanifest.json
yaml-toml-libraries.mdruamel.yaml/tomlkit only, never pyyamlmanifest.json
commit-cadence-and-worktrees.mdsmall scoped commits, worktrees for concurrent writesrouting line
delegation.mdsubstantive work is delegated; pointer to agent-orchestration:delegaterouting line + .claude/hooks/context-rules-agent.mjs
fact-verification-first.mdWebSearch before planning around a named product/versionrouting line + .claude/hooks/context-rules-prompt.mjs
fix-delegation-discipline.mdreproduction-first cycle for bug-fix delegationrouting line + .claude/hooks/context-rules-agent.mjs
interactive-terminal-workarounds.mdPTY providers when a tool needs a TTYrouting line
large-file-write-strategy.mdskeleton+edit-fill above 25K charsrouting line
model-selection.mdmodel/effort tier by cognitive requirementrouting line + .claude/hooks/context-rules-agent.mjs
proactive-fix-gate.mdgate before acting on a self-discovered problemrouting line
scratch-directory.md.tmp/scratch/ fallback output conventionrouting line

A manifest.json entry means .claude/hooks/context-rules.mjs loads the file when a touched path matches its glob — read the actual pattern in manifest.json itself, not restated here. "routing line" means the rule carries no manifest.json entry; instead, a line under root AGENTS.md's "Situational Rule Triggers" section names the file and the condition for reading it. A routing-line rule marked with a hook filename also reaches an agent directly on that hook's event, independent of whether the routing line gets read.

Writing a Rule File

Rules are the current requirement only — never provenance, citations, or narrative. Put those in the commit message or PR description; put a durable architecture decision in docs/ instead.

Rules are read only when small. Tightening an existing rule means rewriting it from scratch as flat directives, not Edit-trimming words from its existing structure.

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.