agentleFS
tyler-berggrentyler-berggren/tb-claude-kit/CLAUDE.md

tb-claude-kit

CLAUDE.md2 starsChanged 2 months agoMITView on GitHub

This project uses Claude Code skills for structured workflows: All project knowledge lives in cowork/brain/BRAIN.db — a SQLite database with FTS5 search.

  • Reads credentials

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All project knowledge lives in cowork/brain/BRAIN.db — a SQLite database with FTS5 search.

    line 33
  2. Very specific:

    DB is truth, markdown is view: Never read from BRAIN.md to determine state — always query the DB.

    line 35
  3. Distinctive:

    Tags: always normalized (comma-split, trimmed, lowercase, alpha-sorted, deduped)

    line 38
  4. Very specific:

    PostToolUse (Bash): After a background Bash call, reminds Claude to hand over a /pbar progress display.

    line 46

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

Project

<!-- Replace this section with your project description -->

Skills

This project uses Claude Code skills for structured workflows:

  • /1password — Set up, check, or migrate 1Password secret management — bootstrap service accounts, convert plaintext .env to op:// references.
  • /brain — Project knowledge management (decisions, tasks, questions, insights). Single source of truth in cowork/brain/BRAIN.db.
  • /brainstorm — Conversational idea development. All outputs logged to brain DB with parent linking.
  • /bridge — Start artifact bridge server (port 4444) for HTML artifacts to read/write project files.
  • /claude-switcher — Several Claude accounts on one machine, picked by VS Code profile. Checks who is signed in where and which profile uses which account; add <name> sets up a new one.
  • /clear-cache — Measure and clear machine-wide dev caches (npm, pnpm, uv, pip, Homebrew, stale Puppeteer browsers). report measures only; deep offers costlier cleanups.
  • /commit — Stage all files and commit with auto-generated message.
  • /cto — Architecture observatory — scans codebase, maps components into SQLite, generates HTML with Mermaid C4 diagrams.
  • /kill — Kill dev processes (servers, watchers, bridge) without touching Claude Code.
  • /look — Inspect shared Chrome viewport via Puppeteer (DOM-first to diagnose; a screenshot to confirm a visual change landed).
  • /parse — Convert local documents (docx, pdf, xlsx, pptx…) to markdown via Firecrawl. Takes a file, a glob, or a directory.
  • /pbar — Live terminal progress display for a background job expected to run 5+ minutes. Claude starts it unprompted.
  • /plan — Multi-phased project planning with fresh-eyes reconciliation on every resume.
  • /prune — Review a repo's worktrees and recommend which to remove (merged, abandoned, stale); removes only what you pick. report changes nothing.
  • /push — Commit and push to remote.
  • /research — Web and project research with numbered reports in cowork/research/.
  • /swarm — Autonomous parallel plan execution. Setup phase resolves every human question and registers a unit graph in the brain; run phase dispatches worktree-isolated agents, reviews, merges, and reports.
  • /vibe-audit — Codebase health and security audit with self-learning pattern database.
  • /video-editor — Transcript-based video editing via Palmier Pro MCP. Transcribe, script, cut, caption.
  • /web — Audit a static site's SEO/AEO assets (metadata, structured data, sitemap, robots, llms.txt, markdown mirrors) for being present, correct and current.
  • /wiki — Maintain an organic project wiki; deploy publishes it to Cloudflare Pages.

Brain System

All project knowledge lives in cowork/brain/BRAIN.db — a SQLite database with FTS5 search.

  • DB is truth, markdown is view. Never read from BRAIN.md to determine state — always query the DB.
  • Entry types: note, decision, question, insight, task, milestone
  • Tier system: hot (focus/momentum) > warm (important/recent) > cold (active) > archived (done)
  • Tags: always normalized (comma-split, trimmed, lowercase, alpha-sorted, deduped)
  • Plans: numbered files in cowork/plans/ linked via meta.plan_id
  • Research: numbered reports in cowork/research/ indexed in brain DB

Session hooks

  • SessionStart: Loads brain state (focus, tasks, questions, mantra) and last session's work into context. Recalculates tiers. Instructs Claude to review the last session and update the mantra if warranted.
  • SessionEnd: Records session end timestamp.
  • PostToolUse (Bash): After a background Bash call, reminds Claude to hand over a /pbar progress display.

Mantra

The mantra is Claude's self-authored evolving context — patterns, non-obvious knowledge, tricky areas, current momentum, and working assumptions that CLAUDE.md doesn't cover. It lives in three synced locations:

  1. mantra table in BRAIN.db (source of truth)
  2. cowork/brain/MANTRA.md (readable export for Obsidian)
  3. The mantra block at the end of this file, between the BEGIN:mantra and END:mantra comment lines (inline for fresh sessions)

Automatic review-on-start: The session-start hook loads the last session's logs, journal, and summary. At the start of each session, review this context against the current mantra. If the last session surfaced something a fresh session would need — update the mantra silently (all three locations). If it was routine, skip. No user action required.

How to update: UPDATE mantra SET content = '...', updated_at = strftime('%Y-%m-%dT%H:%M:%S', 'now', 'localtime'); (or INSERT if empty). Then write cowork/brain/MANTRA.md and replace the lines between the BEGIN:mantra and END:mantra comment lines at the end of this file — matching whole marker lines, never the first place the marker's text appears.

<!-- BEGIN:mantra --><!-- END:mantra -->

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.