keynobi
CLAUDE.md201 starsChanged 7 months agoMITView on GitHub
Project rules shared by all coding agents: @../AGENTS.md State assumptions explicitly. If a request is ambiguous between a frontend (SolidJS) change and a backend (Rust/Tauri) change, ask. Surface the trade-off between touching the Tauri command layer vs. keeping logic in the frontend before choosing one. Never silently pick an architecture — especially for anything crossing the Tauri IPC boundary. Minimum code that solves the problem. No speculative generalization, no new abstractions unless the task demands it. Before adding a new…
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/karpathy-guidelines.mdcCursor rule
- keynobiSkill
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 0 are distinctive, and 9 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.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Every Tauri command change has two sides: the Rust handler in src-tauri and the TypeScript wrapper in src/lib/tauri-api.ts.
- Very specific: line 29
Before editing any of these files, call get_risk() and proceed with extra care:
- Very specific: line 89
MUST call
get_context(targets=["path/to/file.py"]): before reading or editing any file — faster and richer than reading source directly. - Very specific: line 90
MUST call
get_risk(targets=["path/to/file.py"]): before making changes — especially for hotspot files. - Very specific: line 91
Don't know where something lives?
- Very specific: line 94
Call update_decision_records(action="create", title="...", decision="...", rationale="...", affected_files=[...]) to record any new …
- Very specific: line 95
Call update_decision_records(action="update", decision_id="...", ...) to update existing decisions affected by your changes.
- Very specific: line 96
Call update_decision_records(action="update_status", decision_id="...", status="deprecated") if your changes invalidate an existing …
- Very specific: line 99
Before cleanup tasks, call get_dead_code() to find confirmed unused code.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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
Project rules shared by all coding agents: @../AGENTS.md
Behavioral Guidelines
1. Think Before Coding
State assumptions explicitly. If a request is ambiguous between a frontend (SolidJS) change and a backend (Rust/Tauri) change, ask. Surface the trade-off between touching the Tauri command layer vs. keeping logic in the frontend before choosing one. Never silently pick an architecture — especially for anything crossing the Tauri IPC boundary.
2. Simplicity First
Minimum code that solves the problem. No speculative generalization, no new abstractions unless the task demands it. Before adding a new Tauri command, ask: can this be done with an existing command + frontend logic? Before adding a new SolidJS signal or store, ask: is a derived value enough? A senior engineer should not say "this is overcomplicated."
3. Surgical Changes
Touch only what you must. When editing lib.rs, file_system.rs, or mcp_server.rs (high-churn hotspots), do not reformat unrelated code, rename variables for style, or restructure working logic. Diff noise in hot files creates review risk. Only remove code that YOUR change made obsolete.
4. Goal-Driven Execution
Define success criteria before writing code. For UI work: what does the component render in the happy path? For Tauri commands: what does the Rust function return and what does tauri-api.ts expose? Verify both sides of the IPC contract before claiming done. Loop until the criteria are met — do not report success on compile alone.
5. IPC Contract Discipline
Every Tauri command change has two sides: the Rust handler in src-tauri and the TypeScript wrapper in src/lib/tauri-api.ts. Always update both in the same change. Never leave a stale TypeScript wrapper calling a renamed or removed command.
6. Hotspot Awareness
Before editing any of these files, call get_risk() and proceed with extra care:
src-tauri/src/lib.rssrc/lib/tauri-api.tssrc-tauri/src/commands/file_system.rssrc/App.tsxsrc-tauri/src/services/mcp_server.rs
<!-- Add your custom instructions below. Repowise will never modify anything outside the REPOWISE markers. --><!-- Examples: coding style rules, test commands, workflow preferences, constraints --><!-- REPOWISE:START — Do not edit below this line. Auto-generated by Repowise. -->IMPORTANT: Codebase Intelligence Instructions for keynobi
CRITICAL: This repository is indexed by Repowise. You MUST use the repowise MCP tools below instead of reading raw source files. They deliver richer context — documentation, ownership, history, decisions — in a single call. Raw
read_filecalls are a last resort only.
Last indexed: 2026-04-25. Confidence: 100%.
Architecture
repo is a high-performance monorepo project leveraging a modern hybrid architecture. It combines a SolidJS frontend for a reactive, efficient user interface with a Tauri backend written in Rust to provide native system capabilities. The project is designed for scalability and maintainability, utilizing a component-driven UI library and a robust testing infrastructure. With over 50,000 lines of code and a clean dependency graph (zero circular dependencies), the repository is structured to support complex application logic while maintaining high development velocity.
Key Modules
| Module | Purpose | Owner |
src | The src module serves as the primary frontend codebase for the application, buil | — |
src-tauri | The src-tauri module serves as the core Rust backend for the application, provid | — |
root | The root module serves as the foundational configuration layer for the project | — |
scripts | The scripts module serves as the automation and utility hub for the project's re | — |
e2e | The e2e module serves as the end-to-end testing suite for the application | — |
Entry Points
src/App.tsxe2e/fixtures/app.tssrc-tauri/src/lib.rssrc-tauri/src/main.rssrc/components/ui/Alert/index.tssrc/components/ui/Badge/index.tssrc/components/ui/Button/index.tssrc/components/ui/Checkbox/index.tssrc/components/ui/CommandPalette/index.tssrc/components/ui/CopyableText/index.ts
Tech Stack
Languages: Node.js, TypeScript
Infra: Vite### Hotspots (High Churn)
| File | Churn | 90d Commits | Owner |
src-tauri/src/lib.rs | 99.7th %ile | 31 | Thiago M. Dolabella |
src/App.tsx | 99.4th %ile | 26 | Thiago M. Dolabella |
src/lib/tauri-api.ts | 99.1th %ile | 25 | Thiago M. Dolabella |
src/components/logcat/LogcatPanel.tsx | 98.8th %ile | 25 | Thiago M. Dolabella |
src-tauri/src/services/mcp_server.rs | 98.6th %ile | 23 | Thiago M. Dolabella |
Repowise MCP Tools
This project has a Repowise MCP server configured. ALWAYS use these tools before reading source files — they provide documentation, ownership, architectural decisions, and risk signals in a single call.
MANDATORY workflow:
- ALWAYS start with
get_overview()on any new task to orient yourself. - MUST call
get_context(targets=["path/to/file.py"])before reading or editing any file — faster and richer than reading source directly. - MUST call
get_risk(targets=["path/to/file.py"])before making changes — especially for hotspot files. - Don't know where something lives? Call
search_codebase(query="authentication flow")— prefer over grep/find. - Need to understand why code is structured a certain way? MUST call
get_why(query="why JWT over sessions")before any architectural change. - After completing any code changes, MUST call
update_decision_records(action="list")to review existing decisions, then:- Call
update_decision_records(action="create", title="...", decision="...", rationale="...", affected_files=[...])to record any new architectural decisions you made. - Call
update_decision_records(action="update", decision_id="...", ...)to update existing decisions affected by your changes. - Call
update_decision_records(action="update_status", decision_id="...", status="deprecated")if your changes invalidate an existing decision. This is not optional — keeping decision records current is a required part of every coding task.
- Call
- Need to understand how two modules connect? Call
get_dependency_path(source="src/auth", target="src/db"). - Before cleanup tasks, call
get_dead_code()to find confirmed unused code. - For documentation or diagrams, call
get_architecture_diagram(scope="src/auth").
| Tool | WHEN you MUST use it |
get_overview() | FIRST call on every new task |
get_context(targets=[...]) | Before reading or modifying any file |
get_risk(targets=[...]) | Before changing files — REQUIRED for hotspots |
get_why(query="...") | Before architectural changes — REQUIRED |
update_decision_records(action=...) | After every coding task — record and update decisions |
search_codebase(query="...") | When locating code — prefer over grep/find |
get_dependency_path(source=..., target=...) | When tracing module connections |
get_dead_code() | Before any cleanup or removal |
get_architecture_diagram(scope=...) | For visual structure or documentation |
Codebase Conventions
Architectural Decisions:
- Auto-apply package:mine filter in LogcatPanel after successful deploy: Using a timestamp in the existing build store follows the same pattern as deployPhase — service layer.
- Auto-reconnect logcat stream on unexpected ADB server restart: ADB uses a server-client model: only one ADB server runs at a time, and Android Studio ships its own.
- Batch-flush build log lines every 50ms instead of immediate per-line updates: Batching coalesces many rapid store writes into a single reactive update, reducing render pressure.
- Build history side panel — left-strip layout (Android Studio style): Side-panel layout mirrors Android Studio's build output experience which Android developers are already familiar with.
- Cumulative scrollCompensate accumulator for VirtualList eviction compensation: A reset-to-zero approach (passing the delta directly) would fail when the same eviction size repeats.
- LogEntryDetailPanel renders outside VirtualList (sibling in flex column): Rendering inside the VirtualList would require measuring DOM heights to recalculate totalHeight and break virtualization.
- Re-sync package:mine filter when applicationId resolves after startup race: projectState.applicationId is already a reactive SolidJS store value updated by setApplicationId() in the Tauri layer.
- Reset PipelineContext fully on logcat clear (not preserve pre-seeded PIDs): Clear is meant to be a fresh start, matching Android Studio semantics where clear resets everything. Commands:
- Build:
npm run build - Test:
npm run test - Lint:
npm run lint - Dev:
npm run dev - Format:
npm run format
<!-- REPOWISE: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.

