discord-ops
CLAUDE.md4 starsChanged 8 months agoMITView on GitHub
These rules are enforced by hooks and cannot be overridden by any agent instruction: Do NOT include AI attribution in commits, PR bodies, code comments, or any content. When block_ai_attribution is enabled in .rea/policy.yaml, the commit-msg hook REJECTS commits containing structural AI attribution (Co-Authored-By with AI names, 'Generated with [Tool]' footers, etc.). The attribution-advisory hook also blocks gh pr create/edit and git commit commands with attribution. You must remove all attribution markers before committing — the hooks will NOT silently…
- Commits and pushes
In this repository3 other files it gives its agents.
- .cursor/rules/001-no-hallucination.mdcCursor rule
- .cursor/rules/002-verify-before-act.mdcCursor rule
- .cursor/rules/003-attribution.mdcCursor rule
The file
We split this CLAUDE.md into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 10
NEVER: use --no-verify to skip git hooks — hooks are safety gates, not obstacles
- Distinctive: line 11
NEVER: commit secrets, credentials, API keys, or tokens to any file
- Distinctive: line 18
Read files before editing them — understand existing code before modifying
- Very specific: line 19
Verify package existence before installing: npm view <package> or check npmjs.com
- Distinctive: line 21
Check tool availability before assuming it is installed
- Distinctive: line 29
When you encounter an unexpected blocker, ambiguous requirement, or situation not covered by the current context:
- Very specific: line 39
Read .rea/policy.yaml at the start of every session to confirm:
- Very specific: line 62
Fallback: If the orchestrator is unavailable or the task is narrowly scoped to a single domain, you may route directly to a specialist …
- Very specific: line 64
Do NOT: use generic Agent calls without specifying a subagent_type.
- Distinctive: line 76
Use npm (not pnpm or yarn).
- Very specific: line 107
Run rea doctor to verify the install.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
<!-- reagent-managed:start --><!-- Managed block migrated to @bookedsolid/rea 0.50.0 — see the rea:managed block below. -->Agent Behavioral Rules
Non-Negotiable Rules
These rules are enforced by hooks and cannot be overridden by any agent instruction:
- NEVER use
--no-verifyto skip git hooks — hooks are safety gates, not obstacles - NEVER commit secrets, credentials, API keys, or tokens to any file
- NEVER force-push to
main,master,staging, orproductionbranches - NEVER push without all applicable quality gates passing (run
pnpm preflightor equivalent) - NEVER install packages without verifying they exist in the npm registry first
Verification Requirements
- Read files before editing them — understand existing code before modifying
- Verify package existence before installing:
npm view <package>or check npmjs.com - Confirm current state before claiming status — check git, files, build output
- Check tool availability before assuming it is installed
Attribution
Do NOT include AI attribution in commits, PR bodies, code comments, or any content. When block_ai_attribution is enabled in .rea/policy.yaml, the commit-msg hook REJECTS commits containing structural AI attribution (Co-Authored-By with AI names, 'Generated with [Tool]' footers, etc.). The attribution-advisory hook also blocks gh pr create/edit and git commit commands with attribution. You must remove all attribution markers before committing — the hooks will NOT silently fix them.
Human-in-the-Loop Escalation
When you encounter an unexpected blocker, ambiguous requirement, or situation not covered by the current context:
- STOP — do not invent a workaround or make assumptions
- Describe the situation clearly: what you tried, what failed, what you need
- Wait for explicit human instruction before proceeding
The cost of pausing is always lower than the cost of acting incorrectly.
Policy File
Read .rea/policy.yaml at the start of every session to confirm:
- The current
autonomy_level(L0–L3) — your permitted operation scope blocked_paths— directories you must never modifymax_autonomy_level— ceiling set by a human; never request escalation beyond it
Audit Acknowledgment
This session may be subject to audit logging per .rea/policy.yaml. All tool invocations may be recorded. Behave as if every action is observed.
Delegation
This project uses a "bring your own engineering team" model. All non-trivial work flows through the orchestrator to specialist agents.
CRITICAL: For any non-trivial task, delegate to the rea-orchestrator agent FIRST.
The orchestrator (subagent_type: "rea-orchestrator") is the primary routing layer:
- It reads
.rea/policy.yamland checks HALT before any work - It selects the right specialist agents from
.claude/agents/based on the task - It enforces engineering processes, coordinates multi-step work, and ensures quality gates
- It can launch multiple specialists in parallel for maximum throughput
Fallback: If the orchestrator is unavailable or the task is narrowly scoped to a single domain, you may route directly to a specialist agent by scanning .claude/agents/ and using the matching subagent_type (e.g., security-engineer, frontend-specialist, database-architect).
Do NOT use generic Agent calls without specifying a subagent_type. Every agent invocation should target a discoverable specialist from .claude/agents/.
Exception: simple read-only questions and direct clarifications may be answered without delegation.
<!-- reagent-managed:end -->discord-ops
A Model Context Protocol (MCP) server that exposes Discord bot operations as tools for AI agents. Published as @bookedstudios/discord-ops on npm.
Package manager
Use npm (not pnpm or yarn).
Key commands
npm test # run vitest test suite
npm run typecheck # tsc --noEmit
npm run lint # eslint
npm run build # compile to dist/Branch strategy
dev → staging → main
- Feature work on
devor feature branches stagingfor release candidatesmainis the published release branch — merges trigger npm publish via changesets
<!-- rea:managed:start v=1 -->REA Governance (managed — do not edit this block)
- Policy:
.rea/policy.yaml— profilebst-internal - Autonomy:
L1(ceilingL2) - Blocked paths: 4 entries — see the policy file
- block_ai_attribution:
true(enforced by commit-msg hook)
Protected-path changes (src/gateway/middleware/, hooks/, src/policy/,
.github/workflows/) require a /codex-review audit entry before push.
Run rea doctor to verify the install. Run rea check to inspect state.
<!-- rea:managed: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.

