
repo-wiki-initialize
Initialize a new repository wiki structure. Creates baseline MkDocs configuration, directory layout, placeholder pages, and state tracking files.
Initialize a new repository wiki structure. Creates baseline MkDocs configuration, directory layout, placeholder pages, and state tracking files.
Repo Wiki Initialize Skill
Create the baseline structure for a citation-backed repository wiki.
Purpose
This skill sets up a new wiki from scratch for any codebase. It:
- Detects the technology stack and project structure
- Creates an appropriate information architecture
- Generates
mkdocs.ymlconfiguration - Creates placeholder pages with managed blocks
- Initializes state tracking in
.repo_wiki/
When to Use
Use this skill when:
- Starting documentation for a codebase from scratch
- The repository has no
docs/directory yet - You want to establish a baseline wiki structure
Step-by-Step Instructions
Step 1: Gather Repository Information
REPO_PATH="$(pwd)"
BASELINE_COMMIT="$(git rev-parse HEAD)"
REMOTE_URL="$(git config --get remote.origin.url)"
REPO_NAME="$(basename "$REPO_PATH")"
Step 2: Detect Technology Stack
# Check for language markers
ls -la "$REPO_PATH" | grep -E "package.json|requirements.txt|go.mod|pom.xml|Cargo.toml"
Step 3: Create Directory Structure
mkdir -p docs/getting-started docs/architecture docs/components docs/api docs/operations docs/adr
mkdir -p .repo_wiki/logs
Step 4: Generate MkDocs Configuration
Create mkdocs.yml with site name, theme, navigation, and markdown extensions.
Step 5: Create Placeholder Pages
Generate initial pages with managed blocks:
docs/index.mddocs/getting-started/local-dev.mddocs/architecture/overview.md- Component pages for each module
Step 6: Initialize State Files
Create .repo_wiki/state.json and .repo_wiki/manifest.json with baseline commit.
Success Criteria
- ✅
mkdocs.ymlexists and is valid - ✅
docs/directory created with all subdirectories - ✅ Placeholder pages created with managed blocks
- ✅
.repo_wiki/state.jsoninitialized - ✅
mkdocs buildsucceeds
Next Steps
After initialization:
- Index the codebase: Read
repo-wiki-index/SKILL.md - Generate page content: Read
repo-wiki-generate/SKILL.md
You Might Also Like
Related Skills

update-docs
This skill should be used when the user asks to "update documentation for my changes", "check docs for this PR", "what docs need updating", "sync docs with code", "scaffold docs for this feature", "document this feature", "review docs completeness", "add docs for this change", "what documentation is affected", "docs impact", or mentions "docs/", "docs/01-app", "docs/02-pages", "MDX", "documentation update", "API reference", ".mdx files". Provides guided workflow for updating Next.js documentation based on code changes.
vercel
docstring
Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.
pytorch
docs-writer
Always use this skill when the task involves writing, reviewing, or editing files in the `/docs` directory or any `.md` files in the repository.
google-gemini
write-concept
Write or review JavaScript concept documentation pages for the 33 JavaScript Concepts project, following strict structure and quality guidelines
leonardomso
resource-curator
Find, evaluate, and maintain high-quality external resources for JavaScript concept documentation, including auditing for broken and outdated links
leonardomso
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
anthropics