repo-wiki-initialize

repo-wiki-initialize

Initialize a new repository wiki structure. Creates baseline MkDocs configuration, directory layout, placeholder pages, and state tracking files.

1stars
0forks
Updated 1/17/2026
SKILL.md
readonlyread-only
name
repo-wiki-initialize
description

Initialize a new repository wiki structure. Creates baseline MkDocs configuration, directory layout, placeholder pages, and state tracking files.

version
1.0.0

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:

  1. Detects the technology stack and project structure
  2. Creates an appropriate information architecture
  3. Generates mkdocs.yml configuration
  4. Creates placeholder pages with managed blocks
  5. 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.md
  • docs/getting-started/local-dev.md
  • docs/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.yml exists and is valid
  • docs/ directory created with all subdirectories
  • ✅ Placeholder pages created with managed blocks
  • .repo_wiki/state.json initialized
  • mkdocs build succeeds

Next Steps

After initialization:

  1. Index the codebase: Read repo-wiki-index/SKILL.md
  2. Generate page content: Read repo-wiki-generate/SKILL.md

You Might Also Like

Related Skills

update-docs

update-docs

137Kdev-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 avatarvercel
Get
docstring

docstring

97Kdev-docs

Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.

pytorch avatarpytorch
Get
docs-writer

docs-writer

94Kdev-docs

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 avatargoogle-gemini
Get
write-concept

write-concept

66Kdev-docs

Write or review JavaScript concept documentation pages for the 33 JavaScript Concepts project, following strict structure and quality guidelines

leonardomso avatarleonardomso
Get
resource-curator

resource-curator

66Kdev-docs

Find, evaluate, and maintain high-quality external resources for JavaScript concept documentation, including auditing for broken and outdated links

leonardomso avatarleonardomso
Get
doc-coauthoring

doc-coauthoring

47Kdev-docs

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 avataranthropics
Get