agentleFS
jayminwestjayminwest/kotadb/CLAUDE.md

kotadb

CLAUDE.md100 starsChanged 10 months agoMITView on GitHub

KotaDB is a local-only code intelligence API (Bun + TypeScript + SQLite). Use /do for everything. Primary Entry Point: The /do command routes your request to the appropriate workflow: - GitHub issues: #123, URLs, or SDLC keywords - Expert domains: Claude config and agent authoring tasks - Questions: "How do I..." style queries For specific operations, these commands remain available: Ten expert domains provide specialized knowledge with plan, build, improve, and question agents: Usage via /do: - Implementation: /do "Add…

The file

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

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Path Aliases: Use @api/*, @db/*, @indexer/*, @mcp/*, @validation/*, @shared/*

    line 67
  2. Very specific:

    Logging: Use process.stdout.write() / process.stderr.write() (never console.*)

    line 69

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

CLAUDE.md

BLUF

KotaDB is a local-only code intelligence API (Bun + TypeScript + SQLite). Use /do for everything.

Quick Start

Primary Entry Point:

/do <request>

The /do command routes your request to the appropriate workflow:

  • GitHub issues: #123, URLs, or SDLC keywords
  • Expert domains: Claude config and agent authoring tasks
  • Questions: "How do I..." style queries

Examples:

/do #123                              # Work on GitHub issue
/do "Create a slash command for X"   # Claude config task
/do "What tools should an agent have?" # Question

Preserved Commands

For specific operations, these commands remain available:

CategoryCommands
Git/git:commit, /git:pull_request
Issues/issues:feature, /issues:bug, /issues:chore, /issues:refactor, /issues:classify_issue, /issues:audit, /issues:prioritize
Tools/tools:install, /tools:tools
Docs/docs:load-ai-docs
Release/release:release

Expert Domains

Ten expert domains provide specialized knowledge with plan, build, improve, and question agents:

DomainPurposeLocation
claude-config.claude/ configuration (commands, hooks, settings).claude/agents/experts/claude-config/
agent-authoringAgent creation (frontmatter, tools, registry).claude/agents/experts/agent-authoring/
databaseSQLite schema, FTS5, migrations, queries.claude/agents/experts/database/
apiHTTP endpoints, MCP tools, Express patterns.claude/agents/experts/api/
testingAntimocking, Bun tests, SQLite test patterns.claude/agents/experts/testing/
indexerAST parsing, symbol extraction, code analysis.claude/agents/experts/indexer/
githubIssues, PRs, branches, GitHub CLI workflows.claude/agents/experts/github/
automationADW workflows, agent orchestration, worktree isolation.claude/agents/experts/automation/
documentationDocumentation management, content organization.claude/agents/experts/documentation/
webWeb content, design system, marketing site.claude/agents/experts/web/

Usage via /do:

  • Implementation: /do "Add new hook for X" (plan -> approval -> build -> improve)
  • Questions: /do "How do I create a slash command?" (direct answer)
  • Database: /do "Create migration for user table" (database expert)
  • API: /do "Add MCP tool for search" (api expert)
  • Testing: /do "Write tests for indexer" (testing expert)
  • Indexer: /do "How does AST parsing work?" (indexer expert)
  • GitHub: /do "Create PR for this branch" (github expert)
  • Web: /do "Update marketing site content" (web expert)

Critical Conventions

Path Aliases: Use @api/*, @db/*, @indexer/*, @mcp/*, @validation/*, @shared/*

Logging: Use process.stdout.write() / process.stderr.write() (never console.*)

Branching: feat/*, bug/*, chore/* -> develop -> main

Storage: SQLite only (local mode)

Quick Reference

# Start development
cd app && bun run src/index.ts

# Run tests
cd app && bun test

# Type-check
cd app && bunx tsc --noEmit

# Lint
cd app && bun run lint

MCP Server

KotaDB provides MCP tools for code search, indexing, and dependency analysis.

Tool Selection Guide

PREFER KotaDB MCP tools for:

  • mcp__kotadb-bunx__search_dependencies - Understanding file relationships before refactoring
  • mcp__kotadb-bunx__analyze_change_impact - Risk assessment before PRs or major changes
  • mcp__kotadb-bunx__search_code - Semantic/conceptual code discovery across indexed repos
  • mcp__kotadb-bunx__search_decisions - Finding past architectural decisions
  • mcp__kotadb-bunx__search_failures - Avoiding repeated mistakes
  • mcp__kotadb-bunx__search_patterns - Understanding codebase conventions

FALLBACK to Grep for:

  • Exact regex pattern matching
  • Unindexed files or live filesystem searches
  • Quick single-file searches

Decision Tree:

  1. Refactoring or modifying files? → Use search_dependencies first
  2. Creating PR or significant change? → Use analyze_change_impact
  3. Finding code by concept/meaning? → Try search_code
  4. Need exact regex or live results? → Use Grep

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.