code-wiki

A documentation workflow that maps a software repository and explains how its parts fit together. It creates architecture notes, module maps, and Mermaid diagrams, which are text-based diagrams.

In plain words
What is it for?
Use it to create a code wiki, document repository architecture, produce diagrams, or help new developers learn a project.
Why use it?
It reduces the time needed to understand an unfamiliar codebase. The generated documents describe the existing structure rather than proposing a product plan.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/metaspartan/cybara/code-wiki
Any agent
npx skills add metaspartan/cybara --skill code-wiki
Clone the repo
git clone --depth 1 https://github.com/metaspartan/cybara

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.00609
Opus 5 $0.00014 $0.00304
Sonnet 5 $0.00005 $0.00122
Haiku 4.5 $0.00003 $0.00061

Measured 2d ago against content hash 19977b79533d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-wiki scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/code-wiki/SKILL.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Wiki

Use this when the user asks to document a repository, generate architecture diagrams, create a code wiki, or onboard to an unfamiliar codebase.

This is a reference-documentation workflow. It explains what exists and how it fits together; it is not a product strategy or roadmap exercise.

Output Location

Default to ~/.cybara/wikis/<repo-name>/ so active repositories are not modified. Only write under the repo, such as docs/wiki/, when the user explicitly asks for in-repo documentation.

Workflow

  1. Resolve the target repository.
    • If the user gave a local path, use that path.
    • If they gave a GitHub URL, clone with git clone --depth 50 <url> <tmp>/repo.
    • Record git rev-parse HEAD when available.
  2. Scan the structure with rg --files, excluding generated and dependency dirs:
    • .git, node_modules, dist, build, target, .next, .expo, coverage, venv, .venv.
  3. Read the README, manifests, and main entry points:
    • package.json, bun.lock, Cargo.toml, pyproject.toml, go.mod, Package.swift, app entry files.
  4. Pick 8-10 modules for the first pass.
    • Prioritize entry points, shared/core modules, API boundaries, UI route roots, persistence layers, and integration adapters.
  5. Write:
    • README.md with purpose, concepts, entry points, and module map.
    • architecture.md with a Mermaid flowchart.
    • modules/<module>.md for each selected module.
    • diagrams/sequences.md with 2-4 key workflows.
    • getting-started.md with verified local commands.
    • .codewiki-state.json with repo path, commit, generated time, and files reviewed.

Quality Bar

  • Every statement should trace to code, config, or docs you read.
  • Use relative links for local output; use commit-pinned GitHub links for cloned public repos.
  • Keep Mermaid valid and readable. Prefer flowchart LR for architecture and sequenceDiagram for workflows.
  • Do not document generated bundles or dependency directories.
  • Do not claim coverage of the whole repo when you only sampled modules; list gaps explicitly.

Read the full file on GitHub · 55 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 55 lines · 27 tokens per session scan A 19977b79533d

Subscribe to this mod's changes

code-wiki is a skill published in the GitHub repository metaspartan/cybara (23 stars, last pushed 3d ago), licensed MIT. It adds 27 tokens to every session and 609 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

kodama-verification

Define measurable success criteria and collect targeted test, build, lint, type-check, or smoke-test evidence before claiming work is complete.

amergrgic/kodama · 31 tokens

gh-issues

Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5]…

google/adk-js · 116 tokens

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright…

google/adk-js · 62 tokens

gws-calendar

Google Calendar: Manage calendars and events.

google/adk-js · 12 tokens

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project…

google/adk-js · 67 tokens

kodama-behavior

Classify requests, assess unfamiliar codebases, delegate work safely, and recover from failed attempts. Use for multi-step, ambiguous, or parallelizable work.

amergrgic/kodama · 37 tokens