llm-wiki-refactor
Skill3 starsChanged 5 months agoMITView on GitHub
Refactor an existing docs folder, Obsidian vault, or messy note collection into an LLM-Wiki structure. Use for applying an approved migration plan, with frontmatter normalization, raw/wiki separation, link repair, and review-safe restructuring; route no-write migration planning to llm-wiki-migration-planner.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llm-wiki-adr-memorySkill
- llm-wiki-agent-memory-bridgeSkill
- llm-wiki-archiveSkill
- llm-wiki-capture-pipelineSkill
- llm-wiki-chooseSkill
- llm-wiki-claim-anchorsSkill
- llm-wiki-company-flow-auditSkill
- llm-wiki-conflict-resolverSkill
- llm-wiki-critique-auditSkill
- llm-wiki-designSkill
- llm-wiki-doctorSkill
- llm-wiki-domain-packSkill
- llm-wiki-ecosystem-registrySkill
- llm-wiki-evalSkill
- llm-wiki-eval-toolingSkill
- llm-wiki-export-publishSkill
- llm-wiki-faqSkill
- llm-wiki-github-actionSkill
- llm-wiki-gitlab-operating-modelSkill
- llm-wiki-human-first-designSkill
- llm-wiki-implementation-deep-diveSkill
- llm-wiki-ingestion-stackSkill
- llm-wiki-interviewSkill
- llm-wiki-local-first-stackSkill
- llm-wiki-mcp-integrationSkill
- llm-wiki-migration-plannerSkill
- llm-wiki-model-policySkill
- llm-wiki-news-radarSkill
- llm-wiki-obsidian-hardeningSkill
- llm-wiki-orientSkill
- llm-wiki-paf-adoptionSkill
- llm-wiki-privacy-redactorSkill
- llm-wiki-provenanceSkill
- llm-wiki-repo-docsSkill
- llm-wiki-retrieval-architectSkill
- llm-wiki-security-reviewSkill
- llm-wiki-setupSkill
- llm-wiki-skill-compilerSkill
- llm-wiki-skill-doctorSkill
- llm-wiki-source-refreshSkill
- llm-wiki-team-rolloutSkill
- llm-wiki-threat-modelSkill
- llm-wiki-trust-auditSkill
- llm-wiki-zero-to-working-wikiSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-querySkill
- wiki-triageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 11 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Do not use this skill for planning-only work with no filesystem writes.
- Distinctive: line 44
If no backup/git exists, produce a migration plan only.
- Distinctive: line 76
Do not move files immediately.
- Distinctive: line 89
When the user approves apply mode:
- Distinctive: line 94
add or normalize frontmatter.
- Very specific: line 95
create wiki/index.md and wiki/log.md if missing.
- Very specific: line 96
run wiki-lint and re-verify that internal links resolve after each batch, before moving on to the next one.
- Distinctive: line 107
Do not rewrite these sections.
- Distinctive: line 129
No deletion without explicit confirmation.
- Distinctive: line 130
No apply mode without git or backup.
- Distinctive: line 131
No silent conversion of wikilinks to Markdown links.
- Distinctive: line 132
No flattening of raw sources into summaries.
- Distinctive: line 133
No bulk frontmatter migration without dry-run.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 |
|---|---|---|---:|---|Flag low-confidence moves and protected pages.
5. Apply in batches only when approved
When the user approves apply mode:
- create a branch;
- move files in small batches;
- preserve links and attachments;
- add or normalize frontmatter;
- create
wiki/index.mdandwiki/log.mdif missing; - run
wiki-lintand re-verify that internal links resolve after each batch, before moving on to the next one.
6. Preserve human synthesis
Detect and preserve sections such as:
## My synthesis## Opinion## Notes to self<!-- human-owned:start -->
Do not rewrite these sections. Add protected markers if useful.
Output
## Refactor summary
## Inventory
## Proposed structure
## Migration table
## High-risk items
## Commands or file operations
## Post-migration lint findingsSafety gates
- No deletion without explicit confirmation.
- No apply mode without git or backup.
- No silent conversion of wikilinks to Markdown links.
- No flattening of raw sources into summaries.
- No bulk frontmatter migration without dry-run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

