agentleFS
2aronS2aronS/org-mcp/CLAUDE.md

org-mcp

CLAUDE.md4 starsChanged 15 months agoMITView on GitHub

This is a GitHub repository hosted in https://github.com/user/org-mcp/ MCP server for org-mode/roam knowledge base management in Rust. Multi-crate workspace with: Goal: Provide search, content creation, and note linking with media references for org-mode files. Development tasks are managed with just (available in nix devShell). Common commands: - just — Show all available commands - just build — Build all crates - just test — Run all tests - just dev — Development workflow (format, lint, test, coverage) - just coverage-html…

The file

Show its rules and text

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Run just to see all available commands with descriptions.

    line 53
  2. Very specific:

    Formatting: Always use just fmt or cargo fmt before commits

    line 57
  3. Very specific:

    Error handling: Prefer explicit Result<T, E> over panics

    line 58
  4. Very specific:

    String formatting: Use "string {var}" over "string {}", var

    line 59
  5. Very specific:

    Testing: Use assert_eq! over assert!, add #[cfg(test)] modules

    line 61
  6. Distinctive:

    Functions: Keep focused and well-documented

    line 62
  7. Very specific:

    Multi-crate changes: Update workspace dependencies in root Cargo.toml

    line 73
  8. Very specific:

    New functionality: Add to org-core, expose via org-mcp and org-cli

    line 74
  9. Distinctive:

    Error handling: Use custom error types, implement proper chaining

    line 75
  10. Distinctive:

    Testing: Create fixtures for complex org-mode files

    line 77
  11. Distinctive:

    File creation: NEVER create files unless absolutely necessary

    line 82
  12. Distinctive:

    Commits: Always sign with -S, never include Claude Code references

    line 83
  13. Distinctive:

    Code quality: Run clippy and fmt before suggesting changes

    line 84
  14. Distinctive:

    Documentation: Only create when explicitly requested

    line 85

≈ “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 Guidelines for org-mcp

Project Context

This is a GitHub repository hosted in https://github.com/user/org-mcp/

MCP server for org-mode/roam knowledge base management in Rust. Multi-crate workspace with:

  • org-core — Business logic and org-mode functionality
  • org-mcp — MCP protocol implementation
  • org-cli — CLI tool for testing and direct usage

Goal: Provide search, content creation, and note linking with media references for org-mode files.

Development Commands

  • cargo build — Build all crates
  • cargo test — Run all tests
  • cargo test <test_name> — Run specific test
  • cargo test -p <crate_name> — Test specific crate
  • cargo clippy — Run linter
  • cargo fmt — Format code
  • cargo run --example <name> — Run playground examples
  • cargo run --bin org-cli — Run CLI tool
  • cargo run --bin org-mcp — Run MCP server

Just Commands

Development tasks are managed with just (available in nix devShell).

Common commands:

  • just — Show all available commands
  • just build — Build all crates
  • just test — Run all tests
  • just dev — Development workflow (format, lint, test, coverage)
  • just coverage-html — Generate HTML coverage report
  • just lint — Run clippy linter
  • just fmt — Format code

Coverage targets:

  • just coverage — Generate all coverage formats
  • just coverage-html — HTML report in coverage/html/
  • just coverage-summary — Terminal summary
  • just coverage-ci — LCOV for CI
  • just coverage-json — JSON format

Quality checks:

  • just check — Run all quality checks (format check, lint, test, coverage)
  • just fmt-check — Check code formatting without modifying

Run just to see all available commands with descriptions.

Code Style & Preferences

  • Formatting: Always use just fmt or cargo fmt before commits
  • Error handling: Prefer explicit Result<T, E> over panics
  • String formatting: Use "string {var}" over "string {}", var
  • Imports: Standard library before external crates
  • Testing: Use assert_eq! over assert!, add #[cfg(test)] modules
  • Functions: Keep focused and well-documented

Architecture

  • Rust 2024 edition with async-first design using tokio
  • Examples in org-core/examples/ for dependency experimentation
  • Test fixtures in tests/fixtures/ for org/roam files
  • Key deps: orgize (parsing), walkdir (file traversal), clap (CLI)

Development Workflow

  1. Multi-crate changes: Update workspace dependencies in root Cargo.toml
  2. New functionality: Add to org-core, expose via org-mcp and org-cli
  3. Error handling: Use custom error types, implement proper chaining
  4. File operations: Validate paths at construction, not runtime
  5. Testing: Create fixtures for complex org-mode files

Behavioral Guidelines

  • Concise responses: Be direct, avoid unnecessary explanations
  • File creation: NEVER create files unless absolutely necessary
  • Commits: Always sign with -S, never include Claude Code references
  • Code quality: Run clippy and fmt before suggesting changes
  • Documentation: Only create when explicitly requested

Current Implementation Status

  • ✅ Basic file listing with recursive directory traversal
  • ✅ Error handling with custom types and proper chaining
  • ✅ CLI tool with list and init commands
  • ✅ MCP server with JSON-RPC protocol
  • 🚧 Org-mode parsing and content extraction (planned)
  • 🚧 Search functionality with metadata caching (planned)

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.