explain-code
Installation
SKILL.md
Explain Code
When to Use
- The user asks "how does X work?" or needs a human-readable overview tied to exact code locations.
Rules
- Read-only and source-cited: every non-trivial claim must include
path:line. - Keep summaries short and pragmatic. Focus on inputs/outputs, side effects, and error handling.
Output
- What it does: 1-4 sentences.
- How it works: 3-6 bullets with
path:linecitations for key statements. - Key types/APIs: short list with
path:line. - Edge cases / invariants: 1-3 bullets.
Examples
- "Explain
handler.Loginbehavior and where passwords are hashed." - "How does the JWT blacklist work end-to-end?"
Related Skills
file-reader(low-level excerpts),code-navigation(impact mapping)
Related skills
More from pilinux/gorest
file-reader
Precisely read source files or snippets and return concise, citation-backed facts needed for decisions or edits.
26code-navigation
Rapid, focused navigation to locate definitions/usages and map the impact of proposed changes.
7fix-suggester
Diagnose failures and propose minimal, test-backed fixes with verification and rollback instructions.
7build-run
Build and run the project locally to reproduce compile/runtime issues in a safe, non-production way.
7logs-repro-harness
Reduce flaky or environment-dependent failures to a minimal, reproducible script and capture the exact logs and error lines.
7ci-orchestrator
Run a CI-like pipeline locally (format, lint, vet, static-analysis, tests) and summarize per-step results with remediation guidance.
6