Create Agent Skills for Code Review
With agent skills, we can package the repeatable tasks and reuse them. Also, we can encapsulate the domain knowledge into agent skills…
Create Agent Skills for Code Review

Introduction
With agent skills, we can package the repeatable tasks and reuse them. Also, we can encapsulate the domain knowledge into agent skills.
This article is the note of Agent Skills with Anthropic. Besides, we create a code reviewer with skills and sub-agent.
Agenda
- Why We Need Skills?
- Skill Structure of Skills
- Evaluate and Improve Custom Skill
- Example Custom Skill: Code Reviewer
Why We Need Skills?
Progressive Disclosure
The remarkable feature of skills is progressive disclosure.
Metadata(name, description) are always loaded- Only load
instructions or additional fileswhen the skill is triggered to avoid polluting the context with additional tokens that are not necessary
The following table is a comparison between skills, prompts, projects, sub-agents, and tools.
[embed]source: https://claude.com/blog/skills-explained
Use Cases
There are a few use cases of skills.
- Domain expertise ( e.g., brand guidelines and templates, legal review processes, data analysis methodologies, etc)
- Repeatable workflow (e.g., weekly marketing campaign review, customer call prep workflow, quarterly business review, etc)
- New capabilities (e.g., creating presentations, generating Excel sheets or PDF reports, building MCP servers, etc)
Skill Structure of Skills
A skill is a folder of organized files consisting of instructions, scripts, assets, and resources that agents can discover to perform a specific task accurately.
There are two major components, SKILL.md and optional directories.

SKILL.md
- Metadata (YAML formatter)
name: should match the name of the parent folderdescription: what the skills are and when to use this skill (specific keywords)- Body content (markdown)
step-by-steps instructionsinput format&output format
Optional Directories
- Can be
/scripts,/references, or/assets - Keep one level deep from
SKILL.md - Link to advanced or domain-specific content
Evaluate and Improve Custom Skill
In the Claude Code, we can use skill creator in evaluate and improve our custom skill.
Install example-skills
- Type
/pluginand chooseclaude-plugins-officialfromMarketplaces

- Type
anthropics/skillsas the marketplace source

- Choose
example-skills

Use Skill Creator
- Evaluate the custom skills with the following prompt
use skill-creator to evaluate how well my skills /
in @../skills/have followed the best practices./
Use three subagents in parallel, each subagent evaluates one
- Improve the custom skill with the following prompt
use skill-creator to improve the workflow description and conciseness for/
@../skills/code-review-standard according to the best practices.
Example Custom Skill: Code Reviewer
For a standalone task like the code reviewer, we can just load the code into the sub-agent’s context.
Then create a skill to instruct the sub-agent how to review the code. The folder structure looks like the following diagram.

There are a few differences between skills and sub-agents.
subagentshave their own isolatedcontextandtoolpermissions- The
agentcan delegate a task to the specializedsubagent, which works independently and returns results Skillscan provide expert knowledge to the main agent or any of its subagents- However,
Skillsstill use the agent’s context
Example Files
code-reviewer.md
[embed]
SKILL.md
[embed]
examples.md
[embed]
fundamentals.md
[embed]
output-templates.md
[embed]
Use Code Reviewer
- Update
memory.mdby using the following prompt
Please update the memory.md with the following content
Code Review Process (Mandatory)
When a user requests a code review, you must trigger two tool calls simultaneously in the same message:
Skill("code-review-standards") — Load the review standards
Task(subagent_type="code-reviewer") — Launch the agent to perform the review
Never trigger only one of the two. Do not use the Explore agent as a substitute for the code-reviewer agent.
- Trigger the
code reviewer
Please code review for the files under src/
Summary
Thanks for your patient. I am Sean. I work as a software engineer.
This article is my note. Please feel free to give me advice if any mistakes. I am looking forward to your feedback.
- Subscribe me
- Recommended places for digital nomads
- The Daily Learning website
메타데이터
- post_id
- 9dc76b104b7d
- slug
- create-agent-skills-for-code-review-9dc76b104b7d
- url
- https://medium.com/a-layman/create-agent-skills-for-code-review-9dc76b104b7d
- canonical_url
- https://medium.com/a-layman/create-agent-skills-for-code-review-9dc76b104b7d
- author_url
- https://medium.com/@seanhsieh_63050
- status
- ok
- fetched_at
- 2026-06-10 08:17:25