Migrate existing documentation into the Quack Brain v2 format (documentation/ + guide/). Use this skill when a project has documentation scattered across .quack/brain/, .claude/docs/, or loose markdown files that need to be consolidated.
Convert any project's existing documentation into the Quack Brain v2 structure. Supports .md and .mmd (Mermaid diagram) files.
{project}/
├── documentation/
│ ├── guide/{feature}/ # Human guides (narrative, Italian)
│ ├── decisions/ # Architectural decisions
│ ├── bugs/ # Bug fixes
│ ├── patterns/ # Reusable patterns
│ ├── gotchas/ # Known issues
│ ├── diary/ # Development logs
│ ├── inbox/ # Unsorted items
│ └── map.md # Architecture index
├── CLAUDE.md # Must reference documentation/
Check these locations in order:
| Location | What to expect |
|----------|---------------|
| {project}/documentation/ | Already migrated (skip if exists and populated) |
| {project}/.quack/brain/ | Old project brain (pre-v2) |
| {project}/.claude/docs/ | Claude-specific docs |
| ~/.quack/brain/projects/{project-name}/ | Global brain mirror |
| {project}/*.md (root) | Loose markdown files |
| {project}/docs/ | Generic docs folder |
Report what was found with file counts per location.
For each file found, determine:
decision / bug_fix / pattern / gotcha / diary / guide / skipai (has YAML frontmatter, technical) / human (narrative, tutorial-style)project (specific to this project) / global (cross-project knowledge)move / copy / merge / skip / deleteClassification rules:
type: field) → keep type, move to matching documentation/{type}/bugs/ or named fix-* / bug-* → bugs/patterns/ or named pattern-* → patterns/gotchas/ or named gotcha-* → gotchas/decisions/ or named decision-* → decisions/diary/ or date-named → diary/guide/{feature}/.mmd files) → keep in place or move to relevant folder / guide/{feature}/skip (not brain content)deleteproject: {other-project} in frontmatter → skip (wrong project)Before executing, show the user a summary:
Migration Plan for {project-name}
==================================
Sources found:
- .quack/brain/: 86 files
- .claude/docs/: 31 files
- Root: 3 files
Actions:
- Move to documentation/patterns/: 15 files
- Move to documentation/bugs/: 12 files
- Move to documentation/gotchas/: 7 files
- Move to documentation/decisions/: 8 files
- Move to documentation/diary/: 20 files
- Convert to documentation/guide/: 5 files
- Move to inbox/ (needs review): 10 files
- Skip (global/wrong scope): 6 files
- Delete (empty/duplicate): 3 files
New guide features detected:
- guide/dashboard/ (from .claude/docs/dashboard/)
- guide/auth/ (from .claude/docs/auth/)
Wait for user approval before proceeding.
documentation/ folder structure if missingmap.md with architecture overviewThe CLAUDE.md must have a Knowledge Base section after migration. If it doesn't exist, create it. If it exists, update it.
Required CLAUDE.md structure after migration:
## Knowledge Base
Read `documentation/map.md` for full architecture overview before making changes.
**Critical gotchas** (read before modifying these areas):
- {gotcha-1}: `documentation/gotchas/{filename}.md`
- {gotcha-2}: `documentation/gotchas/{filename}.md`
**Key patterns**: `documentation/patterns/` — search by name before implementing similar features.
**Human Guides** (`documentation/guide/`):
- {feature-1}: `documentation/guide/{feature}/` ({page list})
- {feature-2}: `documentation/guide/{feature}/` ({page list})
**Brain breadcrumbs in code**: When writing code related to a Brain entry (bug fix, pattern, gotcha), add `// Brain: {slug}` above the relevant block.
Full knowledge store: `documentation/` (project) + `~/.quack/brain/` (global). Use the `quack-brain` skill for read/write operations.
What to update specifically:
documentation/map.md reference if missing.claude/docs/ or .quack/brain/ as documentation sources~/.quack/brain/ only for the global brainquack-brain skill is in the Preferred Skills list (if agent header exists)What NOT to touch:
QUACK_AGENT_HEADER_START ... END)QUACK_GROUP_CONTEXT_START ... END)After updating, report the changes made to the user.
Old sources cleanup — report to user (don't auto-delete):
.quack/brain/ → can be deleted after verification.claude/docs/ → can be deleted after verification~/.quack/brain/projects/{name}/ → leave (managed separately)documentation/ treemap.md exists and is populatedCLAUDE.md references documentation/For AI knowledge files missing frontmatter:
---
type: pattern
project: {project-name}
created: {date}
last_verified: {date}
tags: [{relevant, tags}]
summary: "One-line human-readable summary in user's language"
---
When converting docs to guide/{feature}/:
# Heading becomes the page titleoverview.md (first), then descriptive kebab-caseWriting style — CRITICAL:
.mmd architecture diagram per guide feature. A visual flow diagram (e.g. architecture-flow.mmd) makes complex features instantly understandable. The Brain UI renders it as an interactive visual. If the source project has architecture diagrams in any format, convert them to Mermaid.git mv when possible.documentation/.inbox/ for manual review.summary: to every AI knowledge entry during migration.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer