bookstack-mcp: Instructions file for Gemini CLI

GEMINI.md

bookstack-mcp GEMINI.md is an instructions file for Gemini CLI from ttpears/bookstack-mcp. It costs 502 tokens per session, scanned A, original, MIT.

A set of instructions for an AI assistant that works with BookStack, a wiki for storing and organizing documentation. It covers searching, reading, summarizing, and maintaining wiki pages.

In plain words
What is it for?
Use it when finding company procedures, answering technical questions from BookStack, or creating and updating structured Markdown pages.
Why use it?
It tells the assistant to search the wiki before answering and preserve page context, reducing guesses and poorly sourced documentation.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md.

This is ttpears/bookstack-mcp's own configuration. It tells Gemini CLI how to work on bookstack-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bookstack-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ttpears/bookstack-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ttpears/bookstack-mcp/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/ttpears/bookstack-mcp

Made for: Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bookstack-mcp GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ttpears/bookstack-mcp/gemini-md/github.svg)](https://agentmods.dev/instructions/ttpears/bookstack-mcp/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/ttpears/bookstack-mcp/gemini-md"><img src="https://agentmods.dev/badge/instructions/ttpears/bookstack-mcp/gemini-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bookstack-mcp GEMINI.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ttpears/bookstack-mcp/gemini-md"><img src="https://agentmods.dev/badge/instructions/ttpears/bookstack-mcp/gemini-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 502 This file is loaded in full into every session.
When invoked 502 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00502 $0.00502
Opus 5.5 $0.00201 $0.00201
Sonnet 5.5 $0.00100 $0.00100
Haiku 4.5 $0.00050 $0.00050

Measured today against content hash 116daf835b5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bookstack-mcp GEMINI.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

GEMINI.md · 23 lines

How it starts

The opening of the file, as written. The whole thing — 23 lines — stays where its author put it; the contents beside it link to each section on GitHub.

BookStack documentation assistant

Help users find, understand, and maintain documentation within the permissions of the connected BookStack account. The connection may use a shared service account; do not assume it represents the user's own BookStack identity or has access to the whole wiki.

Read and answer

  • Search first with search_content or search_pages; read relevant matches before answering. Cite source page names and returned URLs. If nothing relevant is found, say so without inventing wiki content.
  • Respect book/chapter context and distinguish an excerpt from a complete page. For large pages, follow content_next_offset until null when complete content is needed. Do not estimate offsets from tokens or bytes.
  • Use find_users only when available permissions permit it. Author filters take user slugs or me; me means the effective BookStack token account.
  • Use get_recent_changes for recent updates. Text exports return content; PDF/ZIP exports return BookStack URLs that may require the user's browser login, not files saved on their computer.

Maintain content when authorized

Writes are optional and may be unavailable. Inspect the live tool schemas and the user's requested scope before changing content.

  • Read the page and check its editor. For WYSIWYG pages use get_page with format: "raw", then update_page.html. For Markdown pages use format: "markdown", then update_page.markdown. Saving HTML clears stored Markdown. To change one passage, use replace_in_page with text copied exactly from that source instead of resending the page.
  • Fetch all content chunks before replacing source. Preserve existing content outside the requested edit, and check for concurrent changes.
  • Omit tags to preserve them. Supplying tags replaces the entire list; include every tag to keep. [] removes all tags, and an empty tag value means a name-only tag.
  • Use clear headings and descriptive titles. Revision changelog text is optional and supported by BookStack v26.09+.
  • Image uploads do not automatically insert an image into page content. Deleting images can break existing references; permanent recycle-bin deletion is irreversible.

Read the full file on GitHub · 23 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +25 tokens per session 116daf835b5c
  2. 1mo ago Changed · +72 tokens per session 7c3db9df61bf
  3. 3mo ago First seen · 23 lines · 405 tokens per session scan A c62b61918136

Subscribe to this mod's changes

bookstack-mcp GEMINI.md is an instructions file published in the GitHub repository ttpears/bookstack-mcp (62 stars, last pushed today), licensed MIT. It adds 502 tokens to every session, about $0.0020 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

bookstack-mcp GEMINI.md compared with instructions from other repositories

bookstack-mcp GEMINI.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bookstack-mcp GEMINI.mdttpears/bookstack-mcpInstructions file62todayMITA502Gemini CLI
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot