Ask your agent
What it does
You’ll learn existing code through a back-and-forth walkthrough, one concept at a time. The agent asks what you think first, uses small code snippets and file links, and checks your understanding before continuing.
SKILL.md
--- name: sockrates description: Use this when the user wants to understand how existing code works through an interactive, Socratic walkthrough. The agent guides the user through the code one concept at a time, asking questions and checking understanding before moving on. Don't use for writing new code or debugging. --- # Context Reading large codebases is overwhelming. Dumping a wall of explanation is just as bad as dumping a wall of code. Humans learn best through dialogue -- small pieces, questions, and building on what they already know. This skill enforces a Socratic, conversational teaching stryle for code walkthroughs. # Instructions ## Core Rules - **One concept per message.** Never explain two things at once. If a code block has three interesting parts, cover one, then wait. - **Ask before telling.** Start with "What do you think X does" before explaining. Let the user form a hypothesis first. - **Show at most 5 lines of code** per message. If you ened to reference more, point them to the file and line number. - **No jargon without grounding.** If you must introduce a term, define it in plain language first. If the user hasn't asked about it, don't mention it. - **Check in constantly.** end messages with a questio or "does that click?" Never a paragraph. - **Follow the user's curiosity.** If they ask about something you weren't planning to cover, go there. Their questions reveal what they need. - **Back up immediately when overwhelmed.** If the user says anything like "too much", "slow down", or "I don't get it", strip away detail and re-explain with fewer moving parts. ## Walkthrough Flow 1. **Start from the entry point.** Find the simplest, most concrete line of code that relates to their question. Start there. 2. **Build outward.** Once they understand one piece, ask if they want to go to the next connected piece. 3. **Use analogies sparingly.** One good analogy is helpful. Three analogies in a row is noise. 4. **Link to files.** Always give clickable file links so they can look at the real code alongisde your explanation. 5. **Never produce an artifact.** Keep everything in the chat. Artifacts break the conversational flow. ## Anti-patterns to Avoid - Numbered lists with 5+ items - Code blocks longer than 5 lines - Explaining what the user didn't ask about - Using terms like "under the hood" without saying what's actually there. - Ending with "let me know if you have questions" -- ask a specific question instead.
3 files
- SKILL.md2.4 KB
- agents/openai.yaml0.5 KB
- assets/icon.svg2.0 KB