llm-wiki-refactor

llm-wiki-refactor is a skill for Claude Code, Codex from po4yka/llm-wiki-skills. It costs 71 tokens per session (853 once invoked), scanned A, original, MIT.

A document-reorganization workflow for turning an existing docs folder, Obsidian vault, or note collection into an LLM-Wiki. An Obsidian vault is a folder of linked Markdown notes; an LLM-Wiki is structured documentation designed for reliable agent use.

In plain words
What is it for?
Use it to apply an approved migration plan, normalize page metadata, separate raw sources from wiki pages, repair links, and protect selected content.
Why use it?
It helps preserve human-written notes, links, attachments, and source history while reorganizing the collection. It also reduces the risk of broken links or accidental overwrites.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to apply an approved migration plan, normalize page metadata, separate raw sources from wiki pages, repair links, and protect selected content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/po4yka/llm-wiki-skills/llm-wiki-refactor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add po4yka/llm-wiki-skills --skill llm-wiki-refactor
Clone the repo
git clone --depth 1 https://github.com/po4yka/llm-wiki-skills

Made for: Claude Code, Codex.

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 llm-wiki-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-refactor/github.svg)](https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-refactor)
Your own site
<a href="https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-refactor"><img src="https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-refactor/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 llm-wiki-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-refactor"><img src="https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 853 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.00071 $0.00853
Opus 5 $0.00036 $0.00426
Sonnet 5 $0.00014 $0.00171
Haiku 4.5 $0.00007 $0.00085

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

Security

Grade A, and why

llm-wiki-refactor 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 12d 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.

skills/llm-wiki-refactor/SKILL.md · 134 lines

How it starts

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

LLM-Wiki Refactor

Goal

Reorganize existing documents into a safe LLM-Wiki without losing provenance, breaking links, or overwriting human synthesis.

When to use

  • The user has an approved migration plan and wants to physically reorganize an existing docs folder, Obsidian vault, or note collection into LLM-Wiki structure.
  • Existing notes contain human-authored synthesis, Obsidian wikilinks, or attachments that must survive the move without breaking.
  • The user needs frontmatter normalized, raw/wiki content separated, or protected pages preserved during restructuring.
  • Do not use this skill for planning-only work with no filesystem writes; route that to llm-wiki-migration-planner instead.

Inputs

  • Existing docs/vault/repository path.
  • Desired target: personal vault, repo wiki, team knowledge base or product prototype.
  • Whether changes should be dry-run only or applied.
  • Existing conventions: folders, tags, frontmatter, wikilinks, docs generator.

Procedure

1. Preflight

Before applying changes:

  • confirm git or backup exists;
  • identify generated vs human-authored content;
  • identify sensitive data;
  • detect Obsidian wikilinks and attachments;
  • find existing indexes, READMEs, ADRs, changelogs and source folders.

If no backup/git exists, produce a migration plan only.

2. Inventory

Produce counts by file type and rough category:

  • raw sources;
  • source summaries;
  • entity/concept pages;
  • project docs;
  • decisions/ADRs;
  • query-like notes;
  • assets;
  • unknown or mixed files.

3. Propose target mapping

Default mapping:

original raw documents -> raw/sources/
images/media/assets    -> raw/assets/
source summaries       -> wiki/sources/
people/orgs/tools      -> wiki/entities/
mechanisms/ideas       -> wiki/concepts/
trade-off docs         -> wiki/comparisons/
reviewed conclusions   -> wiki/synthesis/
chat/research answers  -> wiki/queries/

4. Create a dry-run plan

Do not move files immediately. Produce:

## Migration plan

| Current path | Proposed path | Page type | Confidence | Notes |
|---|---|---|---:|---|

Read the full file on GitHub · 134 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. 12d ago First seen · 134 lines · 71 tokens per session scan A fa901f988a37

Subscribe to this mod's changes

llm-wiki-refactor is a skill published in the GitHub repository po4yka/llm-wiki-skills (3 stars, last pushed 19d ago), licensed MIT. It adds 71 tokens to every session and 853 once invoked, about $0.0004 per session on Opus 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-31.

Related

Other skills, from other repositories

wiki-export

Export a vault's wiki either as a single portable file (llms.txt or llms-full.txt per the llmstxt.org standard) or as an OKF knowledge bundle (Google's Open Knowledge Format v0.1 — a shareable directory of markdown files any AI agent can consume). Use when the user says "export my wiki", "make an llms.txt", "share my…

tboome33/obsidian-mcp-router · 129 tokens

template-execute

Execute a Templater template, optionally writing the rendered output to a new file. Arguments are exposed to the template via tp.mcpTools.prompt("key") (directly under tp, NOT under tp.user — easy footgun). EN triggers: "render the X template", "run the daily template", "execute Templates/X.md with arg1=v1", "use…

tboome33/obsidian-mcp-router · 184 tokens

read-frontmatter

Read frontmatter (the whole object or one key) from a file. Types are preserved (numbers stay numbers, arrays stay arrays). EN triggers: "what's the frontmatter of X", "show me the metadata of X", "read the properties of X", "what's the status of X", "get the tags on X". FR triggers : "quel est le frontmatter de X"…

tboome33/obsidian-mcp-router · 151 tokens

read-get

Read the full content of a file from a vault (markdown + frontmatter). EN triggers: "show me X", "open the file X", "read X", "what's in X.md", "fetch X". FR triggers : "montre-moi X", "ouvre le fichier X", "lis X", "qu'est-ce qu'il y a dans X.md", "récupère X". Example / Exemple: EN: "show me Sessions/2026-05-03.md"…

tboome33/obsidian-mcp-router · 121 tokens

ingest

A tool for adding a URL, file, text, or Inbox item to the LLM Wiki. It checks the material's purpose, preserves the original source, compiles a wiki page, updates indexes and logs, and reviews the result.

johnfkoo951/cmds-llm-wiki · 56 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