Code wiki

From metaspartan/cybara · View interactive version

Code wiki is an AI agent skill from the GitHub repository metaspartan/cybara. Generate architecture wiki docs, module maps, and Mermaid diagrams for a codebase using Cybara file/search/write tools.

How to use this skill

Skill file

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.
  1. Scan the structure with rg --files, excluding generated and dependency dirs:
  1. Read the README, manifests, and main entry points:
  1. Pick 8-10 modules for the first pass.
  1. Write:

Quality Bar

Verification

After writing the wiki:

find "$OUTPUT_DIR" -type f | sort
rg -n "TODO|TBD|unknown" "$OUTPUT_DIR" || true

Read the generated README.md and one module page before reporting paths back to the user.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.