Get your API key

Intermediate · 5 lessons · 43 min

Skills, commands and hooks: make your agent repeat great work

Turn the long prompts you keep retyping into one-word commands, skills the agent picks up by itself, a read-only reviewer and checks that run every time.

Who it's for

You already build with Claude Code, Codex or OpenCode and you have a few prompts you paste again and again: a phone check, a client report, a pre-deploy review. You want the agent to do them the same good way every time, without you retyping them.

What you'll build

A /phone-check command, a weekly-client-report skill with its own template, a read-only launch-reviewer subagent, two safe hooks (a "waiting for you" alert and an .env guard) and a small personal skill library in git that you can share safely.

Why this course

Builders keep pasting the same prompts many times a day and ask the tool makers for a better way: one Codex user opened an issue because retyping short prompts like "only review the current changes, do not modify code" breaks their flow, and another asked for Claude-Code-style custom slash commands. OpenAI's answer is to use skills, and Codex's old custom prompts are deprecated. At the same time, people find that a skill they wrote is ignored when its description doesn't match how they ask. This course shows the whole ladder (command, skill, subagent, hook) in plain words, with working files for three tools.

Take first: Prompting for AI coding

Lessons in this course

  1. 1From retyped prompt to your own commandMeet the reuse ladder (prompt, command, skill, subagent, hook) and turn your phone-check prompt into a /phone-check command. 8 min Free
  2. 2Your first skill: the weekly client reportWrite a SKILL.md with a description the agent can match, add a template file, and use it in Claude Code, Codex and OpenCode. 9 min Log in to open
  3. 3Subagents: a fresh pair of eyesBuild a read-only launch-reviewer that checks your app before deploy in its own clean context, and see the same idea in OpenCode and Codex. 8 min Log in to open
  4. 4Hooks: checks that run every single timeAdd a "waiting for you" alert, block edits to .env, auto-format after edits, and learn why every hook needs a careful read first. 9 min Log in to open
  5. 5Your skill library: keep it small, share it safelyPersonal vs project skills, a git folder with a README, when not to make a skill, and a safety check before you share or install one. 9 min Log in to open
Next upAutomate your email with an AI agentGive an agent access to your inbox the careful way: read first, label and draft next, and the send button stays with you.