Agent skill

Llmwiki Sync

by Pratiyush in Pratiyush/llm-wiki

Sync Claude Code session transcripts into the user's llmwiki and ingest them into the wiki.

MITAuto-check passedKnowledge Management

Install Llmwiki Sync

skills CLI
$ npx skills add Pratiyush/llm-wiki --skill llmwiki-sync -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Pratiyush/llm-wiki llmwiki-sync --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Pratiyush/llm-wiki.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/llmwiki-sync .claude/skills/llmwiki-sync && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
llmwiki-sync
GitHub stars
397
Token cost
~1.1k tokens
SKILL.md length
387 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Sync Claude Code session transcripts into the user's llmwiki and ingest them into the wiki.

  • Works in 6 steps: Locate the llmwiki install. Check the… → Run the converter (idempotent — safe to… → If N == 0, report that the wiki is up to… → …
  • The user says sync the wiki
  • SKILL.md covers What this skill does, When to use, Workflow and Options, plus 2 more sections
  • Calls python3

What it does

Llmwiki Sync is an agent skill from Pratiyush/llm-wiki. Sync Claude Code session transcripts into the user's llmwiki and ingest them into the wiki. Use when the user says "sync the wiki", "update llmwiki", "ingest recent sessions", "refresh the knowledge base", or asks a knowledge question that would benefit from up-to-date sessions. Also use when the user explicitly asks to refresh or rebuild the LLM wiki from their agent history.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering LLM wikis and Knowledge bases. The repository describes itself as: LLM-powered knowledge base from your Claude Code, Codex CLI, Copilot, Cursor & Gemini sessions. Karpathy's LLM Wiki pattern — implemented and shipped. The licence is MIT.

When your agent uses it

  • The user says sync the wiki
  • Ingest recent sessions
  • Refresh the knowledge base
  • Asks a knowledge question that would benefit from up-to-date sessions

Example prompts

  • “s llmwiki and ingest them into the wiki. Use when the user says”
  • “update llmwiki”
  • “ingest recent sessions”
  • “/llmwiki-sync”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Locate the llmwiki install. Check the current working directory and common locations
  2. Run the converter (idempotent — safe to re-run)
  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…
  5. Append to wiki/log.md
  6. Report what was converted, which wiki pages were created or updated, and any contradictions flagged.

What it can do on your machine

Read from SKILL.md and the folder at commit b108889. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Llmwiki Sync loads about 1.1k tokens when it runs. Until then it costs about 98 tokens; SKILL.md has 387 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Pratiyush/llm-wiki at commit b108889, republished under its MIT licence (© Pratiyush). 387 words, ~1,104 tokens.

Download SKILL.mdSave it as .claude/skills/llmwiki-sync/SKILL.md (or your agent's skills folder).
name
llmwiki-sync
description
Sync Claude Code session transcripts into the user's llmwiki and ingest them into the wiki. Use when the user says "sync the wiki", "update llmwiki", "ingest recent sessions", "refresh the knowledge base", or asks a knowledge question that would benefit from up-to-date sessions. Also use when the user explicitly asks to refresh or rebuild the LLM wiki from their agent history.

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):

    bash
    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.

  5. Append to wiki/log.md:

    ## [YYYY-MM-DD] sync | <N> sessions across <M> projects
  6. Report what was converted, which wiki pages were created or updated, and any contradictions flagged.

Show full SKILL.md (126 more words)Show less

Options

The converter supports flags the user may want:

bash
python3 -m llmwiki sync --project <substring>       # only one project
python3 -m llmwiki sync --since 2026-04-01          # only recent
python3 -m llmwiki sync --include-current           # include <60min live
python3 -m llmwiki sync --force                     # ignore state, reconvert all
python3 -m llmwiki sync --dry-run                   # preview without writing

Hook installation (optional, for auto-sync)

If the user wants the converter to run automatically on every Claude Code session start, offer to add this to ~/.claude/settings.json:

json
{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "(python3 /absolute/path/to/llmwiki/tools/sessions_to_markdown.py > /tmp/llmwiki-sync.log 2>&1 &) ; exit 0"
          }
        ]
      }
    ]
  }
}

The ( ... &) ; exit 0 pattern ensures the hook runs in the background and never blocks session start.

Troubleshooting

  • Permission errors on raw/: the converter writes to llmwiki/raw/sessions/. Make sure the repo is writable.
  • Nothing converted, only "live": the default 60-minute live filter is skipping recent sessions. Pass --include-current to override, or wait an hour.
  • Converter says "module 'tomllib' not found": stale source. Update to the current version (tools/sessions_to_markdown.py uses json, not tomllib).
  • Privacy: the converter redacts username, API keys, tokens, and emails by default. If you see unredacted PII, check examples/sessions_config.json → redaction.real_username.

© Pratiyush, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/llmwiki-sync of Pratiyush/llm-wiki.

Open the folder on GitHubat commit b108889

Compare with similar skills

Llmwiki Sync next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Llmwiki Sync compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Llmwiki Sync this skillPratiyush/llm-wiki397—~1.1kAutomated safety check: PassMIT
LLM Wikilewislulu/llm-wiki-skill655—~3.7kAutomated safety check: PassNone
Wiki Builderrohitg00/pro-workflow2.9k—~1kAutomated safety check: PassNone
Arkon Editnduckmink/arkon1.5k—~1.6kAutomated safety check: PassCustom licence
Research Wiki Builderdair-ai/dair-academy-plugins614—~1.3kAutomated safety check: PassMIT
LLM Wiki Knowledge GraphEgonex-AI/Understand-Anything86k—~1.5kAutomated safety check: PassMIT

Similar skills

  • LLM Wiki

    lewislulu/llm-wiki-skill

    Build and maintain a Karpathy-style LLM knowledge base — a self-compiling Obsidian markdown wiki where an Agent ingests raw sources, compiles cross-linked concept/entity/summary pages, answers…

    655 GitHub stars~3.7k tokensUpdated 5 mo ago
    Knowledge ManagementAuto-check passed
  • Wiki Builder

    rohitg00/pro-workflow

    Start, structure, and grow a persistent research wiki indexed in pro-workflow's SQLite knowledge base.

    2.9k GitHub stars~1k tokensUpdated 9 days ago
    Knowledge ManagementAuto-check passed
  • Arkon Edit

    nduckmink/arkon

    Propose or directly apply edits to Arkon wiki pages, including proposing brand new pages.

    1.5k GitHub stars~1.6k tokensUpdated 4 mo ago
    Knowledge ManagementAuto-check passed
  • Research Wiki Builder

    dair-ai/dair-academy-plugins

    Creates and maintains configurable research wikis: scaffold a folder, add sources, compile pages and indexes, and file query answers back.

    614 GitHub stars~1.3k tokensUpdated 2 mo ago
    Knowledge ManagementAuto-check passed
  • LLM Wiki Knowledge Graph

    Egonex-AI/Understand-Anything

    Detects a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit relationships and topic clusters.

    86k GitHub stars~1.5k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Arkon Query

    nduckmink/arkon

    Answer questions using the Arkon knowledge base. An agent skill from nduckmink/arkon.

    1.5k GitHub stars~1k tokensUpdated 4 mo ago
    Knowledge ManagementAuto-check passed

More from Pratiyush/llm-wiki

  • Llmwiki Query

    Pratiyush/llm-wiki

    Answer a question by querying the user's llmwiki. An agent skill from Pratiyush/llm-wiki.

    397 GitHub stars~684 tokensUpdated 3 mo ago
    Auto-check passed
  • Project Maintainer

    Pratiyush/llm-wiki

    Maintain an llmwiki-style open-source project across the full framework pipeline.

    397 GitHub stars~1.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Self Learn

    Pratiyush/llm-wiki

    Extract reusable patterns from recent sessions, propose framework improvements, and (with approval) update the framework docs.

    397 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Wiki All

    Pratiyush/llm-wiki

    Run the complete llmwiki pipeline from scratch — init, sync, graph, build, lint, and serve.

    397 GitHub stars~587 tokensUpdated 3 mo ago
    Auto-check passed
  • Llmwiki Ingest

    Pratiyush/llm-wiki

    Ingest one source document (or a folder of them) into the llmwiki.

    397 GitHub stars~691 tokensUpdated 3 mo ago
    Auto-check passed

Questions about Llmwiki Sync

What does Llmwiki Sync do?

Sync Claude Code session transcripts into the user's llmwiki and ingest them into the wiki. Llmwiki Sync is an agent skill from Pratiyush/llm-wiki. Sync Claude Code session transcripts into the user's llmwiki and ingest them into the wiki.

When should I use Llmwiki Sync?

Llmwiki Sync fits situations like: the user says sync the wiki; ingest recent sessions; refresh the knowledge base; asks a knowledge question that would benefit from up-to-date sessions.

How do I install Llmwiki Sync in Claude Code?

Run `npx skills add Pratiyush/llm-wiki --skill llmwiki-sync -a claude-code`. Or copy the skill folder (.claude/skills/llmwiki-sync in Pratiyush/llm-wiki) into .claude/skills/llmwiki-sync in your project. Claude Code loads it when a task matches its description.

How do I install Llmwiki Sync in Codex?

Run `npx skills add Pratiyush/llm-wiki --skill llmwiki-sync -a codex`. Or copy the skill folder (.claude/skills/llmwiki-sync in Pratiyush/llm-wiki) into .agents/skills/llmwiki-sync in your project. Codex loads it when a task matches its description.

Can I use Llmwiki Sync in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Pratiyush/llm-wiki --skill llmwiki-sync -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/llmwiki-sync, .gemini/skills/llmwiki-sync, .github/skills/llmwiki-sync and .opencode/skills/llmwiki-sync in your project.

What does Llmwiki Sync need to run?

Going by SKILL.md and its folder, Llmwiki Sync needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Llmwiki Sync access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Llmwiki Sync safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Llmwiki Sync use?

Llmwiki Sync is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Llmwiki Sync use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Llmwiki Sync?

Skills that share tags, products or a category with Llmwiki Sync: LLM Wiki (lewislulu/llm-wiki-skill, 655 stars), Wiki Builder (rohitg00/pro-workflow, 2.9k stars), Arkon Edit (nduckmink/arkon, 1.5k stars) and Research Wiki Builder (dair-ai/dair-academy-plugins, 614 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Llmwiki Sync?

Pratiyush (a GitHub user) maintains it in Pratiyush/llm-wiki, which has 397 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on June 18, 2026.

Source: Pratiyush/llm-wiki on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.