Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/askidmobile-wiki-compiler
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/wiki-compiler
What's inside
- Skill name
wiki-compiler- Description
- Core compilation algorithm for the LLM Wiki Compiler. Reads source files from configured directories and compiles them into topic-based wiki articles. Supports both knowledge mode (markdown files) and codebase mode (code repositories). Called by /wiki-compile command.
- License
- MIT
- Instructions
- 314 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (8)
- SKILL.md
- article-template.md · templates/
- codebase-article-template.md · templates/
- index-template.md · templates/
- schema-template.md · templates/
- index.html · visualize/
- server.js · visualize/
- test-parse.mjs · visualize/
SKILL.md (first lines)
# Wiki Compiler — Compilation Algorithm This skill contains the 5-phase algorithm for compiling source files into a topic-based wiki. **Safety rule:** NEVER modify any file outside the configured output directory. Source files are read-only. ## Prerequisites Before running, read `.wiki-compiler.json` from the project root to get: - `mode` — "knowledge" (default, markdown files) or "codebase" (code repository) - `sources[]` — directories to scan (with optional `exclude` patterns) - `output` — where to write wiki articles - `name` — project/domain name for the wiki - `topic_hints[]` — optional seed topics from the user - `link_style` — "obsidian" (default) or "markdown" **Codebase mode additional config:** - `service_discovery` — "auto" (detect monorepo vs single project) or "manual" - `knowledge_files[]` — glob patterns for priority documentation files (README.md, CLAUDE.md, etc.) - `deep_scan` — `false` (default) or `true` (also read key source files for richer articles) - `code_extensions[]` — file extensions to consider as source code (e.g., `.ts`, `.py`, `.go`) ## Phase 1: Scan Sources ### Knowledge mode (default) 1. For each entry in `sources[]`, list all `.md` files using Glob 2. Exclude any paths matching `exclude` patterns (e.g., the `wiki/` output directory itself) 3. Read `.compile-state.json` from the output directory 4. Compare file list against previous state to identify new or changed files 5. On first run (no prior state), treat ALL files as new ### Codebase mode 1. For each entry in `sources[]`, scan for **knowledge files** matching `knowledge_files[]` patterns: - Documentation: `README.md`, `CLAUDE.md`, `AGENTS.md`, `ARCHITECTURE.md`, `CONTRIBUTING.md` - API contracts: `*.proto`, `*.graphql`, `openapi.yaml`, `openapi.json` - Decision records: `ADR-*.md`, `docs/adr/*.md` - Infrastructure: `docker-compose.yml`, `Dockerfile`, `k8s/*.yaml` - Operations: `docs/runbooks/*.md`, `CHANGELOG.md`, `.env.example` 2. If `deep_scan` is `true`, also scan for key source files per topic area: - Entry points: `index.ts`, `main.py`, `main.go`, `lib.rs`, `App.swift`, etc. - Type definitions: `types.ts`, `models.py`, `schema.prisma`, `*.proto` - Config files: `package.json`, `tsconfig.json`, `pyproject.toml`, `go.mod`, `Cargo.toml` - Limit to ~20 source files per topic area to control token cost 3. Exclude: `node_modules/`, `dist/`, `.git/`, `vendor/`, `__pycache__/`, `.build/`, `target/`, and configured `exclude` patterns 4. Read `.compile-state.json` and compare to identify new or changed files 5. On first run, treat ALL discovered files as new ## Phase 2: Classify and Discover Topics ### Knowledge mode (default) 1. For each source file, read its: - File path (directory structure is a strong signal) - Title (first `#` heading) - First 500 characters of content 2. Classify each file into one or more topics based on content signals 3. **Use `topic_hints` from config** as seed topics when available 4. **Prefer existing topic slugs** from `.compile-state.json` — avoid creating near-duplicates 5. A single file CAN belong to multiple topics 6. Files that don't match any topic: group them — if 3+ unclassified files share a theme, create a new topic 7. Topic slugs should be lowercase-kebab-case (e.g., `d1-retention`, `push-notifications`) **Topic detection guidance:** - Use directory names as strong signals (files in `retention/` likely belong to a retention topic) - Use headings and key terms in content as secondary signals - Meeting notes and session histories often belong to multiple topics - Team memory files (gotchas, decisions, dead-ends) contain entries for many topics — classify by scanning content ### Codebase mode Topic discovery uses a 3-pass approach: structure → knowledge → optional deep scan. **Pass 1 — Structure scan (automatic topic discovery):** 1. Detect project type by looking for manifest files in the root: - `package.json` → Node.js/JavaScript/TypeScript - `go.mod` → Go - `Cargo.toml` → Rust - `pyproject.toml` / `requirements.txt` / `setup.py` → Python - `Gemfile` → Ruby - `*.sln` / `*.csproj` → .NET - `Package.swift` → Swift - `pom.xml` / `build.gradle` → Java/Kotlin 2. Detect monorepo vs single project: - **Monorepo/microservices:** Multiple directories each containing their own manifest file (e.g., `services/auth/package.json`, `services/billing/package.json`). Each service directory = a topic. - **Single project:** One manifest at root. Use top-level directory structure as topic boundaries (e.g., `src/auth/`, `src/api/`, `src/models/` each become topics). 3. Auto-create cross-cutting topics when relevant files exist: - `infrastructure` — if `docker-compose.yml`, `Dockerfile`, `k8s/`, `.github/workflows/` exist - `testing` — if `tests/`, `__tests__/`, `spec/`, `test/` directories exist - `deployment` — if CI/CD configs, Dockerfile, deployment scripts exist **Pass 2 — Knowledge file scan (primary sources):** For each topic area discovered in Pass 1: 1. Find all knowledge files (from `knowledge_files[]` config) within that topic's directory 2. Read each knowledge file's content — these are the primary sources for compilation 3. A knowledge file CAN belong to multiple topics (e.g., root `README.md` touches all topics) 4. Root-level knowledge files (`./README.md`, `./CLAUDE.md`, `./ARCHITECTURE.md`) contribute to ALL topics or get their own `project-overview` topic **Pass 3 — Deep scan (optional, when `deep_scan: true`):** For each topic area, also read key source files to enrich understanding: 1. **Entry points:** `index.ts`, `main.py`, `main.go`, `lib.rs`, `App.swift`, `app.py` 2. **Type definitions:** `types.ts`, `models.py`, `schema.prisma`, `*.proto`, `types.go` 3. **Route/API definitions:** `routes.ts`, `api.py`, `handlers.go`, `controller.ts` 4. **Config:** `package.json` (dependencies), `tsconfig.json`, language-specific config 5. Limit to ~20 files per topic to control token cost 6. These supplement knowledge files — they add implementation detail to the article's Architecture, API Surface, and Data sections **Classification output** is identical to knowledge mode: topic slug → list of source files. The rest of the pipeline (Phases 3-5) runs unchanged. **Topic slug conventions for codebases:** - Service names: `auth-service`, `billing-service`, `notification-service` - Module names: `auth`, `api-routes`, `data-layer`, `ui-components` - Cross-cutting: `infrastructure`, `testing`, `deployment`, `shared-utils`
From askidmobile/ai-spec-kit, MIT.
More from askidmobile/ai-spec-kit
- 0.525score
task-tracker
askidmobile
Manage project tasks in TASKS.md.
SkillBFreshness: BClaude Code +9 - 0.521score
create-spec
askidmobile
Create a technical specification for a new feature or task.
SkillBFreshness: BClaude Code +9 - 0.521score
create-spec-implement
askidmobile
Phase-by-phase plan implementation.
SkillBFreshness: BClaude Code +9 - 0.521score
create-spec-plan
askidmobile
Create a detailed implementation plan based on an approved specification.
SkillBFreshness: BClaude Code +9 - 0.521score
create-spec-review
askidmobile
Post-implementation retrospective.
SkillBFreshness: BClaude Code +9 - 0.520score
project-brief
askidmobile
Coverage-driven project brief engine.
SkillBFreshness: BClaude Code +9 - 0.518score
commit
askidmobile
Commit and push in one go — reviews status and diff, writes a conventional commit message in the repo's style.
SkillBFreshness: BClaude Code +9 - 0.518score
wiki-init
askidmobile
Interactive setup of .wiki-compiler.json — mode, sources, output, article sections.
SkillBFreshness: BClaude Code +9 - 0.518score
wiki-migrate
askidmobile
One-time migration — replace raw file reads in the CLAUDE.md/AGENTS.md startup sequence with wiki articles.
SkillBFreshness: BClaude Code +9 - 0.518score
wiki-query
askidmobile
Answer a question from the compiled wiki instead of scanning raw source files.
SkillBFreshness: BClaude Code +9 - 0.518score
wiki-upgrade
askidmobile
Update the installed ai-spec-kit — git pull for symlink installs, reinstall for copies.
SkillBFreshness: BClaude Code +9 - 0.518score
wiki-visualize
askidmobile
Launch a local interactive knowledge-graph visualization of the compiled wiki.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 20, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/askidmobile/ai-spec-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from askidmobile
- 0.525score
task-tracker
askidmobile
Manage project tasks in TASKS.md.
SkillBFreshness: BClaude Code +9 - 0.521score
create-spec
askidmobile
Create a technical specification for a new feature or task.
SkillBFreshness: BClaude Code +9 - 0.521score
create-spec-implement
askidmobile
Phase-by-phase plan implementation.
SkillBFreshness: BClaude Code +9 - 0.521score
create-spec-plan
askidmobile
Create a detailed implementation plan based on an approved specification.
SkillBFreshness: BClaude Code +9 - 0.521score
create-spec-review
askidmobile
Post-implementation retrospective.
SkillBFreshness: BClaude Code +9 - 0.520score
project-brief
askidmobile
Coverage-driven project brief engine.
SkillBFreshness: BClaude Code +9
Cite this page
wiki-compiler skill. Agent Mart. https://agentmart.dev/skills/askidmobile-wiki-compiler (last updated 2026-10-24)