code-wiki

code-wiki is a skill for Claude Code, Codex from metaspartan/cybara. It costs 27 tokens per session (609 once invoked), scanned A, original, MIT.

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

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create a code wiki, document repository architecture, produce diagrams, or help new developers learn a project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metaspartan/cybara/code-wiki
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.

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.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-wiki

README.md
[![agentmods](https://agentmods.dev/badge/skills/metaspartan/cybara/code-wiki/github.svg)](https://agentmods.dev/skills/metaspartan/cybara/code-wiki)
Your own site
<a href="https://agentmods.dev/skills/metaspartan/cybara/code-wiki"><img src="https://agentmods.dev/badge/skills/metaspartan/cybara/code-wiki/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-wiki

Your own site · 80×15
<a href="https://agentmods.dev/skills/metaspartan/cybara/code-wiki"><img src="https://agentmods.dev/badge/skills/metaspartan/cybara/code-wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 3
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.1 $0.00027 $0.00609
Opus 5.5 $0.00011 $0.00244
Sonnet 5.5 $0.00005 $0.00122
Haiku 4.5 $0.00003 $0.00061

Measured 1mo ago against content hash 19977b79533d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (32 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 609 once invoked, about $0.0001 per session on Opus 5.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.