llm-wiki: Skill for Claude Code

.claude/skills/llmwiki-sync/SKILL.md

llmwiki-sync is a skill for Claude Code from Pratiyush/llm-wiki. It costs 85 tokens per session (1,126 once invoked), scanned B, original, MIT.

A skill that turns Claude Code and Codex CLI session transcripts into a local llmwiki, then updates its searchable pages and static website.

In plain words
What is it for?
Use it to sync recent sessions, ingest them into wiki pages, and refresh the generated wiki site.
Why use it?
It preserves useful project knowledge from past coding sessions instead of leaving it buried in transcript files.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is Pratiyush/llm-wiki's own configuration. It tells Claude Code how to work on llm-wiki 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 llm-wiki configures →

Part of the llm-wiki plugin — 6 skills, 18 commands shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to Pratiyush/llm-wiki. 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/Pratiyush/llm-wiki/master/.claude/skills/llmwiki-sync/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Pratiyush/llm-wiki

Made for: Claude Code.

Or install llm-wiki, the plugin that ships this one along with the rest of its 6 skills, 18 commands.

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 llmwiki-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/pratiyush/llm-wiki/llmwiki-sync.svg)](https://agentmods.dev/skills/pratiyush/llm-wiki/llmwiki-sync)
Your own site
<a href="https://agentmods.dev/skills/pratiyush/llm-wiki/llmwiki-sync"><img src="https://agentmods.dev/badge/skills/pratiyush/llm-wiki/llmwiki-sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,126 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00085 $0.01126
Opus 5 $0.00043 $0.00563
Sonnet 5 $0.00017 $0.00225
Haiku 4.5 $0.00009 $0.00113

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

Security

Grade B, and why

llmwiki-sync scanned grade B with 1 finding 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 9d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

If the user wants the converter to run automatically on every Claude Code session start, offer to add this to `~/.claude/settings.json`:
.claude/skills/llmwiki-sync/SKILL.md · 111 lines

How it starts

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

llmwiki-sync

What this skill does

The user maintains a Karpathy-style LLM Wiki — a local, file-based knowledge base compiled from their Claude Code (and Codex CLI) session transcripts.

This skill runs the full sync pipeline:

~/.claude/projects/*/*.jsonl         (raw session transcripts)
        │
        ▼   python3 -m llmwiki sync
llmwiki/raw/sessions/<proj>/*.md     (Karpathy layer 1 — immutable markdown)
        │
        ▼   /wiki-ingest              (Claude in the loop)
llmwiki/wiki/sources, entities,      (Karpathy layer 2 — LLM-maintained wiki)
              concepts, syntheses
        │
        ▼   python3 -m llmwiki build
llmwiki/site/                         (Karpathy layer 3 — static HTML)

When to use

Invoke this skill when the user:

  • Says "sync the wiki", "update llmwiki", "ingest recent sessions", "refresh the knowledge base"
  • Asks a knowledge question that would benefit from the latest sessions ("what have I been working on this week?") — run sync first, then /wiki-query
  • Starts a new project and wants context from past work
  • Says "what's new" or "catch me up" in a context where session history matters

Do NOT invoke when:

  • The user is asking a question unrelated to their own work
  • The tool is not installed (check for llmwiki/ directory first)

Workflow

  1. Locate the llmwiki install. Check the current working directory and common locations:

    • ./ (if cwd contains llmwiki/ package)
    • ~/Desktop/2026/production-draft/llmwiki/
    • ~/llmwiki/
    • $LLMWIKI_HOME environment variable

    If you can't find it, tell the user and stop.

  2. Run the converter (idempotent — safe to re-run):

    cd <llmwiki-dir>
    python3 -m llmwiki sync
    

    Capture the summary line: N converted, M unchanged, K live, J filtered, X errors.

  3. If N == 0, report that the wiki is up to date and stop.

  4. If N > 0, ingest the new files into the wiki using the Ingest Workflow from the repo's CLAUDE.md. Process one project at a time. If more than 20 new files, ask the user whether to process all or a subset first.

Read the full file on GitHub · 111 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. 9d ago First seen · 111 lines · 85 tokens per session scan B c0b2fb76e9e6

Subscribe to this mod's changes

llmwiki-sync is a skill published in the GitHub repository Pratiyush/llm-wiki (386 stars, last pushed 2mo ago), licensed MIT. It adds 85 tokens to every session and 1,126 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nature-data

Prepare, audit, or revise Nature-ready Data Availability statements, data repository plans, dataset citations, and FAIR metadata checklists for manuscripts. Use when the user asks about Nature data availability, research data sharing, repository selection, accession numbers, restricted or sensitive data, source data…

Galaxy-Dawn/claude-scholar · 90 tokens

weekly-crm-report

Cleans a weekly CRM export and produces a regional sales summary. Activates when the user asks to clean a CRM export, deduplicate sales rows, calculate regional totals, or generate a weekly sales report from a CSV.

FrancyJGLisboa/agent-skill-creator · 49 tokens

publication-chart-skill

This skill should be used when the user asks for a publication-quality scientific figure or table, wants help choosing the right chart for results, needs a paper-ready pubfig or pubtab workflow, wants a figure + companion table for a results section, wants an Excel sheet turned into publication-ready LaTeX, or wants…

Galaxy-Dawn/claude-scholar · 77 tokens

obsidian-source-ingestion

Use this skill to ingest external materials into the current project-scoped Obsidian KB as source notes under Sources/Papers, Sources/Web, Sources/Docs, Sources/Data, Sources/Interviews, or Sources/Notes.

Galaxy-Dawn/claude-scholar · 51 tokens

okf

Author, maintain, and consume Open Knowledge Format (OKF) knowledge bundles — portable markdown + YAML frontmatter that both humans and agents read. Use when capturing project knowledge (services, APIs, schemas, metrics, runbooks, decisions) into an OKF bundle, when updating one after code or docs change, or when a…

scaccogatto/okf-skills · 127 tokens

init-workspace-documentation

Skill "init-workspace-documentation" from griddynamics/rosetta, covering agent memory.md, agent memory, preventive rules, what worked and what failed.

griddynamics/rosetta · 10 tokens