---
name: Code Wiki CLI
slug: code-wiki-cli
category: AI Engineering
description: Code Wiki CLI browses Google Code Wiki for open source repositories from the command line. Use it to search repos, read wiki sections, download full wikis as markdown, or ask Gemini questions about a codebase.
github: "https://github.com/ItamarZand88/CLI-Anything-WEB/tree/main/.claude/skills/codewiki-cli"
language: Python
stars: 215
forks: 45
install: "npx degit https://github.com/ItamarZand88/CLI-Anything-WEB/tree/main/.claude/skills/codewiki-cli ~/.claude/skills/codewiki-cli"
installs_to: ~/.claude/skills/codewiki-cli
source_path: .claude/skills/codewiki-cli/SKILL.md
collection_size: 25
category_size: 2970
collection_url: "https://dirskills.com/collections/ItamarZand88/CLI-Anything-WEB"
added: 2026-09-04T05:25:47.475Z
last_synced: 2026-09-04T05:25:47.475Z
canonical_url: "https://dirskills.com/skills/code-wiki-cli"
---

# Code Wiki CLI

Code Wiki CLI browses Google Code Wiki for open source repositories from the command line. Use it to search repos, read wiki sections, download full wikis as markdown, or ask Gemini questions about a codebase.

**Install:**

```bash
npx degit https://github.com/ItamarZand88/CLI-Anything-WEB/tree/main/.claude/skills/codewiki-cli ~/.claude/skills/codewiki-cli
```

## README

# cli-web-codewiki

Google Code Wiki on the command line: repo search, wiki reading, Gemini Q&A about codebases. Repos are referenced by slug `org/name` (e.g. `facebook/react`).
Install: `pip install cli-web-codewiki`

## Commands

- `repos featured` — featured repositories on the homepage
- `repos search QUERY` — search repositories. Options: `--limit N` (default 25), `--offset N`
- `wiki sections ORG/REPO` — table of contents (section titles + descriptions)
- `wiki section ORG/REPO TITLE` — one section by title (case-insensitive partial match)
- `wiki get ORG/REPO` — full wiki content, all sections
- `wiki download ORG/REPO` — save the full wiki as markdown files. Options: `-o/--output DIR` (default `<org>-<repo>-wiki/`)
- `chat ask QUESTION --repo ORG/REPO` — ask Gemini about the repo's codebase

## Examples

```bash
# Find a repo, then list its wiki sections
cli-web-codewiki repos search "react" --json
cli-web-codewiki wiki sections excalidraw/excalidraw --json

# Read just the overview section
cli-web-codewiki wiki section facebook/react "Overview" --json

# Ask Gemini about architecture (takes ~5-7s)
cli-web-codewiki chat ask "How does the rendering engine work?" --repo excalidraw/excalidraw --json

# Save a repo's whole wiki locally for offline reading
cli-web-codewiki wiki download kubernetes/kubernetes -o k8s-wiki/
```

## JSON output

Add `--json` for structured output: `{"success": true, "data": ...}` on success, `{"error": true, "code": "...", "message": "..."}` on failure. `repos search` data: `[{slug, github_url, description, avatar_url, stars, updated_at}]`. `wiki get` data: `{repo, sections: [{title, level, description, content, code_refs}], section_count}`. `chat ask` data: `{answer, repo}` where `answer` is markdown with links to source code.

## Utilities

`cli-web-codewiki doctor [--json]` diagnoses local setup. `cli-web-codewiki mcp-serve` exposes the commands as MCP tools over stdio.

## Agent tips

- Prefer `wiki sections` + `wiki section` over `wiki get` — full wikis can be very large.
- Wiki content is markdown with GitHub source links, useful to quote directly.
