agentleFS
bookedsolidtechbookedsolidtech/discord-ops/CLAUDE.md

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

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
  1. Very specific:

    NEVER: use --no-verify to skip git hooks — hooks are safety gates, not obstacles

    line 10
  2. Distinctive:

    NEVER: commit secrets, credentials, API keys, or tokens to any file

    line 11
  3. Distinctive:

    Read files before editing them — understand existing code before modifying

    line 18
  4. Very specific:

    Verify package existence before installing: npm view <package> or check npmjs.com

    line 19
  5. Distinctive:

    Check tool availability before assuming it is installed

    line 21
  6. Distinctive:

    When you encounter an unexpected blocker, ambiguous requirement, or situation not covered by the current context:

    line 29
  7. Very specific:

    Read .rea/policy.yaml at the start of every session to confirm:

    line 39
  8. Very specific:

    Fallback: If the orchestrator is unavailable or the task is narrowly scoped to a single domain, you may route directly to a specialist …

    line 62
  9. Very specific:

    Do NOT: use generic Agent calls without specifying a subagent_type.

    line 64
  10. Distinctive:

    Use npm (not pnpm or yarn).

    line 76
  11. Very specific:

    Run rea doctor to verify the install.

    line 107

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<!-- 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-verify to 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, or production branches
  • NEVER push without all applicable quality gates passing (run pnpm preflight or 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:

  1. STOP — do not invent a workaround or make assumptions
  2. Describe the situation clearly: what you tried, what failed, what you need
  3. 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 modify
  • max_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.yaml and 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 dev or feature branches
  • staging for release candidates
  • main is 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 — profile bst-internal
  • Autonomy: L1 (ceiling L2)
  • 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 -->

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.