wiki-init
Installation
SKILL.md
wiki-init
Use this skill to initialize or migrate a repo into the wiki + QMD + agent hook pattern.
The user may use natural language. Route intent like this:
- "como esta a estrutura?", "preciso migrar?", "doctor", "qmd esta ok?" -> run
doctor. - "instala", "prepara esse repo", "configura hooks" -> run
installas dry-run first, then ask the user to confirm the suggested wiki location and index before--write. - "migrar para o formato novo" -> run
migrateas dry-run first, then ask the user to confirm the suggested wiki location and index before--write. - "corrigir qmd", "managed qmd", "patch qmd" -> run
doctor, then useinstall --writeorupdate-hooks --writewith explicit approval to prepare the managed QMD checkout and wrappers.
Project root
All paths in this skill (wiki/, AGENTS.md, CLAUDE.md, .mcp.json, hook scripts, etc.) are relative to the project root passed via --project <path>, not the agent's current working directory.
- Always pass
--project <absolute-or-relative-path>to the script — it does not fall back to CWD silently. - The QMD wrapper commands (
<wrapper> collection add <wiki-path>) accept absolute paths; prefer absolute paths when the agent CWD might differ from the project root. - When invoked from a sibling repo (e.g., meta/skills repo while the target project lives elsewhere), confirm the
--projectvalue with the user before--write.