agentleFS
booklib-aibooklib-ai/booklib/skills/booklib-mcp-guide/SKILL.md

booklib-mcp-guide

Skill38 starsChanged 9 months agoMITView on GitHub

Use when working with BookLib MCP tools. Reference for lookup, review, remember, verify, guard — parameters, workflows, and anti-patterns.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is 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.

  • 1

    Very specific

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

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

    Don't call remember for ephemeral notes: Only capture durable decisions, patterns, and insights that future sessions should know about.

    line 113

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
SKILL.md

BookLib MCP Tool Guide

BookLib exposes 5 MCP tools to AI coding agents. Each tool has a single purpose. This guide covers when to call each one, what parameters to pass, and common workflows.

Tool Reference

ToolWhen to callKey params
lookupBefore working with unfamiliar APIs or post-training depsquery (required), file, limit, source
reviewUser asks for deep code review of a specific fileskill_name, file_path (both required)
rememberUser says "remember this", "capture", or makes a team decisiontitle (required), content, type, tags
verifyAfter writing code that uses unfamiliar or new APIsfile_path (required)
guardAfter writing code that touches architecture or API choicesfile_path (required)

Decision Tree

Need current docs for a post-training library  -> lookup
Need a full expert review of a file            -> review
User wants to save a decision or insight       -> remember
Code uses unknown imports                      -> verify
Code might violate team rules                  -> guard

Tool Details

lookup

Searches across post-training corrections, team knowledge, and expert skills. Returns structured principles with source citations.

Parameters:

  • query (string, required): What you need to know. Include the library name and task.
  • file (string): Path to the file being worked on. Adds language and component context.
  • limit (number): Maximum results. Default: 3.
  • source (enum: all/skills/knowledge): Filter by source type.

Prioritization order: (1) post-training gap corrections, (2) team knowledge nodes, (3) expert skill principles.

review

Audits a file against a named skill's principles. Returns structured findings with line references and citations.

Parameters:

  • skill_name (string, required): The skill to review against (e.g., "effective-kotlin", "clean-code-reviewer").
  • file_path (string, required): Path to the file to review.

remember

Creates a searchable knowledge node. Automatically indexed and auto-linked to related nodes.

Parameters:

  • title (string, required): Short descriptive title.
  • content (string): Detailed description in markdown.
  • type (enum: insight/decision/pattern/note/research): Node type. Default: "insight".
  • tags (string): Comma-separated tags.
  • links (string): Link targets as "target:edge-type" pairs.

verify

Checks if a file's imports are covered by BookLib's index. Flags unknown post-training APIs that may need current docs.

Parameters:

  • file_path (string, required): Path to the source file.

Returns: list of unknown imports with suggested documentation URLs.

guard

Checks if code contradicts captured team decisions. Compares code patterns against decision nodes.

Parameters:

  • file_path (string, required): Path to the source file.

Returns: list of contradictions with the violated decision and source.

Common Workflows

1. Gap detection and resolution

verify file.ts            -> finds unknown import "@stripe/stripe-js"
lookup "stripe js v5 api" -> returns current v5 docs
                          -> write correct code using current API

2. Team knowledge enforcement

write code                -> make architectural choice
guard file.ts             -> flags: contradicts "use PaymentIntents not Charges"
                          -> fix the violation, commit

3. Knowledge capture during work

discover a useful pattern -> remember "retry with exponential backoff" --type pattern
make a team decision      -> remember "use PaymentIntents not Charges" --type decision

Anti-Patterns

  • Don't call lookup for standard patterns. React hooks, Python builtins, Go stdlib -- you already know these. Only call for project-specific or post-training knowledge.
  • Don't call verify on stdlib imports. Standard library imports are always known. Only check third-party imports.
  • Don't call remember for ephemeral notes. Only capture durable decisions, patterns, and insights that future sessions should know about.
  • Don't call review without a specific skill. The skill_name parameter is required -- pick the most relevant one or use "clean-code-reviewer" as default.
  • Don't over-call tools. One lookup per topic is enough. Don't repeat the same query hoping for different results.

CLI-Only Commands (Not MCP Tools)

These features are available via the booklib CLI but not exposed as MCP tools:

  • booklib connect <path> -- connect a documentation source
  • booklib connect github releases <repo> -- index GitHub changelogs
  • booklib connect notion database <id> -- index Notion pages
  • booklib link <from> <to> --type <edge> -- connect two knowledge nodes
  • booklib save-state --goal "..." --next "..." -- save session for handoff
  • booklib nodes list / booklib nodes show <id> -- list and inspect knowledge
  • booklib gaps / booklib resolve-gaps -- detect and fix knowledge gaps
  • booklib analyze -- show affected files and post-training APIs
  • booklib doctor -- health check

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.