DEV Community

Cover image for I built my first Agent Skill so I'd understand the code my AI writes
Anal Shaju
Anal Shaju

Posted on

I built my first Agent Skill so I'd understand the code my AI writes

When I build with an AI assistant, it writes code faster than I can read it. Most of the time I accept the change and move on without understanding it.

So I built my first Agent Skill: teach-me. Learn while you build.

Your AI assistant just wrote the code. You have no idea how it works. Run /teach-me.

What it does

It turns every change your coding assistant makes into a short lesson, made for beginner to intermediate developers and vibe coders who know a little code:

In short: what changed, in one sentence
How it works: one real example, with line numbers
Watch out: how it could break
Learn this and Try it: one concept and a five-minute experiment
Quick check: a one-question quiz

Answer with A, B or C and it tells you why you were right or wrong. Say simpler if anything is unclear. It never edits your code, so you can run it in the middle of a build and go straight back to work.

Install

npx skills add AnalShaju/teach-me

Then type /teach-me after your assistant writes code.
or
You can also point it at something specific:

/teach-me src/auth/session.ts

Repo: https://github.com/AnalShaju/teach-me

This is my first skill, and I'd love your feedback. Try it on your next AI-written change and tell me: was the lesson clear, and was the quiz useful?

Top comments (0)