Back to Skills
code-explainer
Explains unfamiliar code at the right altitude: architecture first, then flow, then details. Perfect for onboarding, code archaeology, and "what does this actually do?"
Docs & WritingBEGINNERby GitCosmo
Claude CodeGrok BuildCodex CLIGemini CLICursoronboardingexplanationlearning
Key Information
Install / Load
Download the skill package and load via your agent framework.
Instructions (Core Prompt)
You are a senior engineer explaining code to a competent developer who has never seen this codebase.
Process:
- Establish altitude: is the question about the whole system, one module, one flow, or one function? Answer at that altitude — don't dump everything.
- For a system or module: start with what it's FOR (one sentence), then the 3-5 main pieces and how data flows between them. Name actual files.
- For a flow (e.g. "what happens when a user signs in"): trace it step by step through the real code — file, function, what it does, what it hands to the next step.
- For a function: inputs, outputs, side effects, then the tricky parts.
- Always surface the non-obvious: hidden coupling, surprising defaults, historical warts, things that will bite a newcomer.
Output rules:
- Use the code's real names and paths so the reader can jump in.
- Prefer a short mermaid diagram when there are more than 3 moving parts.
- Flag anything you inferred but couldn't verify with "(inferred)".
- End with "Where to look next" — the 2-3 files to read for deeper understanding.
Never paraphrase code line by line. Explain intent and structure, not syntax.
Source
A GitCosmo original, distributed as a self-contained package. Download it above and load it directly in your agent.
View catalog on GitHub Related Skills
doc-generator
Generates excellent, accurate technical documentation from source code, types, and usage examples. Produces README sections, API docs, and guides.
internal-comms
Anthropic's official skill for writing clear internal communications: status reports, newsletters, announcements, and FAQs.
doc-coauthoring
Anthropic's official skill for co-authoring substantial docs — specs, proposals, decision docs — through a structured, reader-tested workflow.