Build real things

Project 3: your own skill and CLAUDE.md

Teach Claude Code your standards once.

3 min + hands-on17 / 18

Goal: create a project and one that Claude Code can reuse.

  1. In your practice folder, run claude and then /init.
  2. Trim the file to rules that would really prevent mistakes.
  3. Ask Claude to create a skill from the below.
  4. Test it with /review-page in a project that has an index.html.
  5. Use /skills to confirm it is listed.

Prompt: create a skill

Create a project skill called review-page in .claude/skills/review-page/SKILL.md. It should review the HTML file I name for: readability, mobile layout, missing alt text on images and broken links. Output a short checklist with pass or fail for each, then three suggested fixes. Do not change any files. Use $ARGUMENTS for the file name.

This follows the SKILL.md structure from the official docs, and sets a safe, read-only behaviour.

Why this mattersA skill turns a good prompt into a command. Over time you build a toolbox that fits how you work.

Done when…

  • /skills lists review-page.
  • Running it on your page gives a pass or fail checklist and changes no files.
  • Your CLAUDE.md is under 15 lines.

Common problems and fixes

ProblemFix
The skill is not listedCheck the path: .claude/skills/review-page/SKILL.md, then restart the session.
Claude ignores the skillMake the description say clearly when to use it, or call it directly with /review-page.
The skill edits filesAdd “Do not edit any files” to the skill and test again.
Level upBundle your skill and CLAUDE.md rules into a plugin, so you can install the same setup in your next project in one step.

Check yourself

1. Where does a project skill live?
2. What does $ARGUMENTS do in a skill?
3. Claude does not use your skill on its own. What should you improve first?

Tip: use ← and → to move between lessons.