explain
Skill38 starsChanged 9 months agoMITView on GitHub
Explain what code does line by line so you can understand and learn from it.
143 other projects use a version of this.
Adopted by
Most recently taken up by
- swjybky/deepwritetheir own version, first seen Nov 30, 2026
- kevinreber/claude-code-configstheir own version, first seen Nov 29, 2026
- matheuspleal/skillstheir own version, first seen Nov 29, 2026
- MarkTripoli/skillstheir own version, first seen Nov 29, 2026
- Dannykkh/skill-olympustheir own version, first seen Nov 29, 2026
- yarikleto/claude-teacher-plugintheir own version, first seen Nov 29, 2026
Used with
Projects with it also use debug-fix, socratic and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
zebbernSkilldebug-fix
Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)
Also in 3 projects that use this
neurofooSkillsocratic
Socratic questioning to examine beliefs, uncover assumptions, and develop deeper understanding. Use to challenge thinking, evaluate proposals, or teach without lecturing.
Also in 4 projects that use this
ralphkraussSkillresolve-conflicts
Resolve git merge conflicts or re-apply changes from a stale branch onto current main. Use when user says "resolve conflicts", "merge conflicts", "rebase branch", "branch is behind", "re-apply changes", "port branch", or a branch is too far behind main to merge cleanly.
Also in 4 projects that use this
VercelSkillnext
Next.js renderer for json-render that turns JSON specs into full Next.js applications with routes, layouts, SSR, and metadata. Use when working with @json-render/next, building Next.js apps from JSON specs, or creating AI-generated multi-page applications.
Also in 5 projects that use this
quantumaikrSkillscore
quant.cpp의 5차원 스코어링 하네스를 실행하고 결과를 분석한다. 'score', '점수', '현재 상태', '스코어', '평가' 요청 시 사용. 구조/정확성/품질/성능/통합 5개 차원을 자동 측정하고, 병목 차원과 다음 최적 행동을 추천한다.
Also in 3 projects that use this
AntaresYuanSkilliterate
Meta-skill for skill self-improvement. After another skill finishes a run, /iterate analyzes the run's logs (friction events, retries, sub-agent rejections, pacing mismatches, bugs), produces a structured retrospective report, accumulates per-class friction counts, and — when a class crosses the configured threshold — opens a PR to that skill's open-source repo with a proposed SKILL.md diff. NEVER auto-merges; the human always reviews. Target skills opt in by declaring an `iteration:` block in their frontmatter. Invoke when the user says "iterate this skill", "iterate /devloop", "run a retro on the last skill run", "/iterate <skill-name>", or when a target skill auto-hands-off at end of its run.
Also in 3 projects that use this
Other versions143 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 143
- Z3Prover/z3★ 13ksame name
- crbnos/carbon★ 2.9ksame name
- poshan0126/dotclaude★ 871same name
- swjybky/deepwrite★ 816same name
- VinkyDev/vibestart★ 308same name
- hsantanna88/clo-author★ 262same name
- hugosantanna/clo-author★ 262same name
- entireio/skills★ 240same name
- sammcj/agentic-coding★ 174same name
- SerhiiKorniienko/bullshit-detector★ 151same name
133 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- colorSkill
- commitSkill
- lessonSkill
- loopgramSkill
- my-dnaSkill
- prd-checkSkill
- prdSkill
- reviewSkill
- setup-reviewSkill
- styleguideSkill
- tourSkill
- vibe-checkSkill
- vibe-helpSkill
- vibe-listSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 126 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
When the user asks you to explain code:
- Distinctive: line 15
If the user provides a file path, read that file.
- Distinctive: line 17
If no code is specified, ask:
- Distinctive: line 22
Start with a high-level summary:
- Distinctive: line 107
Ask me to explain:
“Common” is measured: kept by at least 6 in 10 of the 126 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Explain Code
Explain what code does, line by line, so you can understand and learn from it.
Instructions
When the user asks you to explain code:
Step 1: Identify the Code
If the user provides a file path, read that file. If they paste code directly, use that.
If no code is specified, ask:
"What code would you like me to explain? Please provide a file path or paste the code."
Step 2: Provide Overview
Start with a high-level summary:
- What is the purpose of this code?
- What problem does it solve?
- How does it fit into the larger application?
Step 3: Walk Through Line by Line
For each significant section, explain:
- What it does (literally)
- Why it's needed (purpose)
- How it works (mechanism)
Use this format:
Lines X-Y: [Brief description]
- This code [what it does]
- It's needed because [why]
- It works by [how]Step 4: Highlight Key Concepts
Point out important patterns and concepts:
- Design patterns used
- Language features that might be unfamiliar
- Best practices demonstrated
- Potential gotchas or edge cases
Step 5: Summarize
End with:
- Key takeaways
- What the user should understand now
- Suggestions for further learning if applicable
Example Output
## Overview
This is a React custom hook that manages authentication state. It handles
login, logout, and automatic token refresh.
## Line-by-Line Explanation
### Lines 1-5: Imports
```typescript
import { useState, useEffect, useCallback } from 'react';
import { authApi } from '@/services/api';
import { User } from '@/types';- Imports React hooks for state management and side effects
- Imports the auth API service for making authentication requests
- Imports the User type for type safety
Lines 7-15: Hook Definition and State
export function useAuth() {
const [user, setUser] = useState<User | null>(null);
const [loading, setLoading] = useState(true);- Creates a custom hook that can be used in any component
userstate holds the current user (or null if logged out)loadingstate tracks whether we're still checking auth status- Starting with
loading: trueprevents flash of unauthenticated content
Lines 17-30: Auto-refresh Effect
[... continue explanation ...]
Key Concepts
- Custom Hooks: Reusable logic extracted from components
- Optimistic Updates: UI updates before server confirms
- Token Refresh: Automatic re-authentication before expiry
Takeaways
- This hook centralizes all auth logic in one place
- Components just need to call
useAuth()to access auth state - The refresh logic runs automatically in the background
## Tips for Users
Ask me to explain:
- "Explain this function" (paste code)
- "Explain src/hooks/useAuth.ts"
- "Explain lines 50-100 of api.ts"
- "What does this regex do?"
- "Why is this pattern used here?"
I'll adjust the depth based on what you ask. For simple code, I'll be brief. For complex code, I'll be thorough.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

