litestar-fullstack-inertia: Command for Gemini CLI

.gemini/commands/sync-llms-txt.toml

sync-llms-txt is a command for Gemini CLI from litestar-org/litestar-fullstack-inertia. It costs 0 tokens per session (636 once invoked), scanned A, original, MIT.

A Gemini CLI command that updates llms.txt and llms-full.txt documentation to match the current code in a Litestar and Inertia.js application.

In plain words
What is it for?
Use it to scan a project and synchronize its AI-readable documentation files with the current implementation.
Why use it?
It removes outdated documentation and checks that documented APIs, settings, and examples still exist in the codebase.

Command for Gemini CLI

Written for Gemini CLI: installed under .gemini/.

This is litestar-org/litestar-fullstack-inertia's own configuration. It tells Gemini CLI how to work on litestar-fullstack-inertia 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 litestar-fullstack-inertia configures →

Reuse

Borrowing it

Nothing to install: this file belongs to litestar-org/litestar-fullstack-inertia. 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/litestar-org/litestar-fullstack-inertia/main/.gemini/commands/sync-llms-txt.toml
Clone the repo
git clone --depth 1 https://github.com/litestar-org/litestar-fullstack-inertia

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 sync-llms-txt

README.md
[![agentmods](https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/sync-llms-txt/github.svg)](https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/sync-llms-txt)
Your own site
<a href="https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/sync-llms-txt"><img src="https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/sync-llms-txt/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 sync-llms-txt

Your own site · 80×15
<a href="https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/sync-llms-txt"><img src="https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/sync-llms-txt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 636 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00636
Opus 5 $0.00000 $0.00318
Sonnet 5 $0.00000 $0.00127
Haiku 4.5 $0.00000 $0.00064

Measured 5d ago against content hash 8d9e62d1ebdf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

sync-llms-txt 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 5d ago.

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/commands/sync-llms-txt.toml · 78 lines

How it starts

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

Command: /sync-llms-txt

prompt = """ You are an LLM documentation synchronization agent. Your mission is to ensure llms.txt and llms-full.txt are perfectly synchronized with the CURRENT state of any codebase.

Prime Directive: The llms.txt files MUST only document what is in the code NOW.

  • NO HISTORY: Don't document what code used to be.
  • NO OUTDATED CONTENT: Delete anything out of date without hesitation.
  • OPTIMIZE FOR SEARCHABILITY: llms.txt must be easily searchable by LLMs.
  • COMPLETE PATTERNS: llms-full.txt must have ALL necessary patterns.

Phase 0: Project Discovery & Inventory

1. Detect Project Type:

  • Check pyproject.toml, package.json, Cargo.toml, etc.
  • Identify frameworks (Litestar, Vite, React, etc.).

2. Build Code Inventory:

  • Public APIs: Scan src/ for public classes/functions/exports.
  • Configuration: Scan config files for options/env vars.
  • Examples: List all runnable examples.

3. Build Documentation Inventory:

  • Read llms.txt and llms-full.txt.
  • Extract every API, config option, and example mentioned.

Phase 1: Strict Validation (The Filter)

1. Dead Code Check:

  • For EACH item in Documentation Inventory: Grep the codebase.
  • If 0 matches -> MARK FOR DELETION.

2. Dead Link Check:

  • Extract all URLs.
  • Verify they are reachable (200 OK).
  • If broken -> REMOVE.

3. Config Drift Check:

  • Compare defaults in docs vs code.
  • If different -> MARK FOR UPDATE.

Phase 2: Execution (Add, Remove, Update)

1. REMOVE Invalid Content:

  • Delete all items marked for deletion.
  • Remove deprecated APIs.

2. ADD Missing Content:

  • Add undocumented public APIs found in Code Inventory.
  • Add new configuration options.
  • Add new examples.

3. UPDATE Stale Content:

  • Refresh API signatures.
  • Update version numbers.
  • Fix code examples to match current syntax.

Phase 3: Optimization

Read the full file on GitHub · 78 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. 5d ago First seen · 78 lines · 0 tokens per session scan A 8d9e62d1ebdf

Subscribe to this mod's changes

sync-llms-txt is a command published in the GitHub repository litestar-org/litestar-fullstack-inertia (43 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 636 tokens. 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-09-03.