Skip to content

elisaterumi-ai/agent-skills-in-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

57 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌍 Language: English | PortuguΓͺs | EspaΓ±ol

AI Skills β€” A Practical Guide

From prompts to systems β€” learn how to build reusable AI skills.

Skills are one of the core building blocks of modern AI systems. They allow you to define reusable, task-specific capabilities that an AI system can automatically apply when relevant β€” without repeating instructions every time.

⭐ If this project helped you, please consider giving it a star β€” it helps others discover it and supports the work!

Table of Contents

Skills Quick Guide

A quick visual reference to understand how skills work β€” from structure to activation.

πŸ’‘ Use this as a quick reference while building your own skills.

What are Skills?

A skill is a structured set of instructions that teaches an AI system how to perform a specific task.

In Claude Code, a skill is:

  • A directory
  • Containing a SKILL.md file
  • With metadata and instructions

Once defined, the system can discover and use the skill automatically.

Instead of repeating prompts, you encode behavior once β€” and reuse it.

How Skills Work

Skills follow a semantic matching workflow:

  1. The system loads only skill names and descriptions
  2. A user request is received
  3. The system compares the request with available skill descriptions
  4. Matching skills are selected
  5. The full skill content is loaded and executed

This means:

  • Skills are loaded on demand
  • They do not clutter context unnecessarily
  • They activate only when relevant

Skill Structure

Each skill lives inside a directory and must contain a SKILL.md file.

Example:

---
name: pr-review
description: Reviews pull requests for code quality. Use when reviewing PRs or checking code changes.
---

Below the frontmatter, you define the instructions:

When reviewing a PR:

1. Analyze code changes
2. Check for best practices
3. Suggest improvements
4. Format output as structured feedback

Where Skills Live

Skills can be scoped at different levels:

Personal Skills

  • Location: ~/.claude/skills
  • Available across all your projects
  • Ideal for personal workflows

Project Skills

  • Location: .claude/skills (inside a repository)
  • Shared via version control
  • Used for team standards

Skills vs Other Customizations

Feature Behavior Use Case
Skills Load on demand Task-specific expertise
CLAUDE.md Always loaded Global project rules
Slash Commands Manual invocation Explicit actions

πŸ‘‰ Skills are automatic and contextual

When to Use Skills

Use a skill when:

  • You repeat the same instructions frequently
  • You need consistent output formats
  • You want reusable workflows
  • You want to share knowledge across a team

Rule of thumb:

If you explain the same thing more than once, it should be a skill.

Example Use Cases

  • Code review standards
  • Commit message formatting
  • Documentation templates
  • Debugging checklists
  • Data transformation workflows
  • Clinical text anonymization

πŸ‘‰ Explore ready-to-use skills: examples

Some examples are inspired by existing open-source skill repositories.

πŸš€ Creating Your First Skill

Step 1 β€” Create directory

mkdir -p ~/.claude/skills/my-skill

Step 2 β€” Create SKILL.md (or use the template)

Create a SKILL.md file inside your skill directory, or copy from the provided template.

---
name: my-skill
description: Describe what the skill does and when to use it.
---

Step 3 β€” Add instructions

Define:

  • Steps
  • Rules
  • Output format

Best Practices

  • Write clear and specific descriptions (this controls activation)
  • Keep instructions structured and explicit
  • Define expected output formats
  • Avoid overly generic skills
  • Keep SKILL.md concise (use references if needed)

Common Mistakes

  • Treating skills as simple prompts
  • Writing vague descriptions (skill won’t trigger)
  • Overloading a single skill with multiple responsibilities
  • Not defining output structure

Advanced Concepts

Metadata Fields

  • name (required)
  • description (required)
  • allowed-tools (optional)
  • model (optional)

Progressive Disclosure

  • Keep core logic in SKILL.md
  • Move large content to:
    • references/
    • scripts/
    • assets/

Why Skills Matter

Skills transform how we build with AI:

  • From prompts β†’ reusable systems
  • From manual instructions β†’ automatic behavior
  • From experimentation β†’ production-ready workflows

They are a key building block for:

  • AI agents
  • Automation pipelines
  • Scalable AI systems

Resources

Curated links, documentation, and example repositories:

πŸ‘‰ Explore resources

Final Thought

Skills shift the mindset from:

β€œWhat should I ask the model?”

To:

β€œWhat capability should this system have?”

🀝 Contributing

Contributions are welcome!

Ways to contribute:

  • Add new skills or use cases
  • Improve documentation and examples
  • Report issues or suggest improvements

Feel free to open an issue or submit a pull request πŸš€

πŸ”— Connect with me

I share practical insights about AI, agents, and real-world applications:

Star History

Star History Chart

About

Learn what AI skills are and how to design, structure, and use them in real-world agent systems.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors