po4yka/llm-wiki-skills/llm-wiki-refactor
Claude Code and agent skill by po4yka/llm-wiki-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install po4yka/llm-wiki-skills/llm-wiki-refactorSKILL.md
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:
4. Create a dry-run plan
Do not move files immediately. Produce:
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
Safety 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.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/llm-wiki-refactor/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/po4yka/llm-wiki-skills/llm-wiki-refactor)