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
- Very specific: line 67
Path Aliases: Use @api/*, @db/*, @indexer/*, @mcp/*, @validation/*, @shared/*
- Very specific: line 69
Logging: Use process.stdout.write() / process.stderr.write() (never console.*)
≈ “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
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?" # QuestionPreserved Commands
For specific operations, these commands remain available:
| Category | Commands |
| 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:
| Domain | Purpose | Location |
claude-config | .claude/ configuration (commands, hooks, settings) | .claude/agents/experts/claude-config/ |
agent-authoring | Agent creation (frontmatter, tools, registry) | .claude/agents/experts/agent-authoring/ |
database | SQLite schema, FTS5, migrations, queries | .claude/agents/experts/database/ |
api | HTTP endpoints, MCP tools, Express patterns | .claude/agents/experts/api/ |
testing | Antimocking, Bun tests, SQLite test patterns | .claude/agents/experts/testing/ |
indexer | AST parsing, symbol extraction, code analysis | .claude/agents/experts/indexer/ |
github | Issues, PRs, branches, GitHub CLI workflows | .claude/agents/experts/github/ |
automation | ADW workflows, agent orchestration, worktree isolation | .claude/agents/experts/automation/ |
documentation | Documentation management, content organization | .claude/agents/experts/documentation/ |
web | Web 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 lintMCP 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 refactoringmcp__kotadb-bunx__analyze_change_impact- Risk assessment before PRs or major changesmcp__kotadb-bunx__search_code- Semantic/conceptual code discovery across indexed reposmcp__kotadb-bunx__search_decisions- Finding past architectural decisionsmcp__kotadb-bunx__search_failures- Avoiding repeated mistakesmcp__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:
- Refactoring or modifying files? → Use
search_dependenciesfirst - Creating PR or significant change? → Use
analyze_change_impact - Finding code by concept/meaning? → Try
search_code - Need exact regex or live results? → Use Grep
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.

