Skip to content

Commit 6c39d8b

Browse files
mjunaidcaclaude
andcommitted
feat: add Claude Code skills exercise modules
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 parents  commit 6c39d8b

File tree

145 files changed

+2980
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+2980
-0
lines changed

EXERCISE-GUIDE.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# 🧠 Building Agent Skills: Complete Exercise Guide
2+
3+
**By Panaversity — Teaching AI Agents to Work YOUR Way**
4+
5+
---
6+
7+
## The Big Idea
8+
9+
A **skill** is a reusable instruction file that teaches an AI agent how to handle a specific type of task consistently. Building skills is the fundamental capability that separates "using AI" from "building with AI."
10+
11+
This guide contains 24 exercises + 3 capstone projects that teach you to build, test, and compose agent skills — without writing any code.
12+
13+
---
14+
15+
## Module Overview
16+
17+
| Module | Focus | Key Skill Learned |
18+
|--------|-------|-------------------|
19+
| 1 | Understanding Skills | Reading and analyzing existing skills |
20+
| 2 | First Skills | Writing simple, single-purpose SKILL.md files |
21+
| 3 | Skills with Examples | Using examples to constrain and improve output |
22+
| 4 | Skills with References | Referencing external documents and standards |
23+
| 5 | Testing & Iteration | Systematic evaluation and improvement |
24+
| 6 | Composing Skills | Chaining skills into workflows |
25+
| 7 | Real-World Skills | Production-ready skill building |
26+
| 8 | Capstone | Complete skill suites for real scenarios |
27+
28+
---
29+
30+
## The Skill-Building Framework
31+
32+
Use this for EVERY skill you build:
33+
34+
### 1. DEFINE — What problem does this skill solve?
35+
- What task is being automated?
36+
- What does "good" output look like?
37+
- What's the current pain (without the skill)?
38+
39+
### 2. DRAFT — Write the first version of SKILL.md
40+
- Frontmatter (name + trigger description)
41+
- Step-by-step process
42+
- Output format
43+
- Rules and constraints
44+
45+
### 3. TEST — Run it on real examples
46+
- Start with 2-3 "normal" test cases
47+
- Then try edge cases designed to break it
48+
49+
### 4. EVALUATE — Score the output
50+
- Does it match the expected format?
51+
- Is the content correct?
52+
- Would you actually USE this output?
53+
54+
### 5. IMPROVE — Fix what's broken
55+
- Add examples for areas that were inconsistent
56+
- Add rules for edge cases that weren't handled
57+
- Tighten vague instructions
58+
59+
### 6. REPEAT — Until quality is consistent
60+
- Test → Evaluate → Improve is an iterative loop
61+
- 2-3 rounds is typical; production skills may need 5+
62+
63+
---
64+
65+
## Self-Assessment Rubric
66+
67+
| Criteria | 1 (Beginner) | 2 (Developing) | 3 (Proficient) | 4 (Advanced) |
68+
|----------|:---:|:---:|:---:|:---:|
69+
| **Trigger Description** | Too vague or too broad | Covers main cases | Specific and complete | Handles edge cases in trigger |
70+
| **Instructions** | Missing steps | Basic steps listed | Clear, ordered, complete | Includes decision logic |
71+
| **Examples** | None | One embedded example | Multiple examples + anti-examples | Example pairs showing input→output |
72+
| **Edge Case Handling** | Not considered | Some mentioned | Rules for common edges | Tested and verified |
73+
| **Testing** | Ran once | Tested 2-3 cases | Systematic test suite | Tested by another person |
74+
| **Iteration** | First draft only | One revision | Multiple iterations | Measurably improved via rubric |
75+
76+
---
77+
78+
*Built for Panaversity's AI-Native Development Curriculum*
79+
*These exercises work with Claude Code (terminal) or Cowork (desktop app).*
80+
*No programming knowledge required — just clear thinking and iterative refinement.*

README.md

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# 🧠 Building Agent Skills: A Practical Exercise Guide
2+
3+
**By Panaversity — Teaching AI Agents to Work YOUR Way**
4+
5+
---
6+
7+
## What Are Agent Skills?
8+
9+
A **skill** is a set of instructions you write that teaches Claude *how* to handle a specific type of task. Instead of writing a long prompt every time, you write the skill once — and Claude follows it automatically whenever that type of task comes up.
10+
11+
Think of it like this:
12+
- **Without a skill:** You explain your formatting preferences, writing style, data rules, and output requirements every single time.
13+
- **With a skill:** You write those instructions once in a `SKILL.md` file, and Claude follows them automatically forever.
14+
15+
Skills are the bridge between "using AI" and "building AI systems." They're how you go from one-off prompting to **reusable, consistent, high-quality AI workflows.**
16+
17+
### Anatomy of a Skill
18+
19+
Every skill lives in a folder and has at minimum one file:
20+
21+
```
22+
my-skill/
23+
├── SKILL.md ← The brain — instructions Claude follows
24+
├── examples/ ← Optional: sample inputs/outputs Claude learns from
25+
├── templates/ ← Optional: templates for consistent output
26+
└── references/ ← Optional: reference material Claude can consult
27+
```
28+
29+
The `SKILL.md` file has three parts:
30+
1. **Frontmatter** — Name and description (tells Claude WHEN to use the skill)
31+
2. **Instructions** — Step-by-step guidance (tells Claude HOW to do the task)
32+
3. **Examples/Rules** — Concrete examples and constraints (tells Claude WHAT good output looks like)
33+
34+
### Where Skills Live
35+
36+
- **Claude Code:** In your project's `.claude/skills/` folder, or any folder Claude can access
37+
- **Cowork:** As plugins you install in the Claude Desktop app's Cowork tab
38+
39+
---
40+
41+
## 📂 Package Structure
42+
43+
```
44+
skills-exercises/
45+
├── README.md ← You are here
46+
47+
├── module-1-understanding-skills/ ← Read & analyze existing skills
48+
│ ├── exercise-1.1-anatomy/ (Dissect a skill file)
49+
│ ├── exercise-1.2-when-to-skill/ (Identify skill-worthy tasks)
50+
│ └── exercise-1.3-skill-vs-prompt/ (Compare skill vs raw prompt)
51+
52+
├── module-2-first-skills/ ← Build simple, single-purpose skills
53+
│ ├── exercise-2.1-email-style/ (Writing style skill)
54+
│ ├── exercise-2.2-file-organizer/ (File organization rules)
55+
│ └── exercise-2.3-data-cleaner/ (Data standardization skill)
56+
57+
├── module-3-skills-with-examples/ ← Skills that learn from examples
58+
│ ├── exercise-3.1-report-formatter/ (Report with example outputs)
59+
│ ├── exercise-3.2-meeting-minutes/ (Meeting notes with templates)
60+
│ └── exercise-3.3-feedback-writer/ (Feedback with tone examples)
61+
62+
├── module-4-skills-with-references/ ← Skills with reference material
63+
│ ├── exercise-4.1-brand-voice/ (Brand guidelines skill)
64+
│ ├── exercise-4.2-policy-checker/ (Policy compliance skill)
65+
│ └── exercise-4.3-curriculum-skill/ (Teaching standards skill)
66+
67+
├── module-5-testing-and-iteration/ ← Test, evaluate, improve skills
68+
│ ├── exercise-5.1-edge-case-hunt/ (Find where skills break)
69+
│ ├── exercise-5.2-before-after/ (Measure skill improvement)
70+
│ └── exercise-5.3-user-testing/ (Test with classmates)
71+
72+
├── module-6-composing-skills/ ← Combine skills for workflows
73+
│ ├── exercise-6.1-pipeline/ (Chain skills together)
74+
│ ├── exercise-6.2-skill-library/ (Build a personal skill collection)
75+
│ └── exercise-6.3-team-skills/ (Skills for team workflows)
76+
77+
├── module-7-real-world-skills/ ← Build production-ready skills
78+
│ ├── exercise-7.1-invoice-processor/(Business process skill)
79+
│ ├── exercise-7.2-content-pipeline/ (Content creation skill)
80+
│ └── exercise-7.3-research-analyst/ (Research workflow skill)
81+
82+
└── module-8-capstone/ ← Choose one capstone project
83+
├── capstone-A-business-ops/ (Complete business operations suite)
84+
├── capstone-B-education-kit/ (AI-native course delivery system)
85+
└── capstone-C-personal-ai/ (Personal productivity skill set)
86+
```
87+
88+
---
89+
90+
## 🚀 How to Use These Exercises
91+
92+
### With Claude Code
93+
1. Navigate to the exercise folder
94+
2. Claude Code will automatically read SKILL.md files when they're in your project
95+
3. Test skills by giving Claude tasks that should trigger them
96+
97+
### With Cowork
98+
1. Point Cowork at the exercise folder
99+
2. Ask Claude to read the SKILL.md and follow its instructions
100+
3. For plugin-style skills, install them via the Cowork Plugins panel
101+
102+
### The Learning Loop
103+
Every exercise follows this cycle:
104+
1. **Read** the existing SKILL.md (or starter)
105+
2. **Test** it with the provided sample tasks
106+
3. **Identify** what's missing or wrong
107+
4. **Improve** the skill
108+
5. **Re-test** and compare results
109+
6. **Reflect** on what made the skill better
110+
111+
---
112+
113+
## 📋 Recommended Schedule
114+
115+
| Week | Module | Focus |
116+
|------|--------|-------|
117+
| 1 | Module 1 | Understanding what skills are |
118+
| 2 | Module 2 | Writing your first skills |
119+
| 3 | Module 3 | Adding examples to skills |
120+
| 4 | Module 4 | Adding reference materials |
121+
| 5 | Module 5 | Testing and improving skills |
122+
| 6 | Module 6 | Composing skills into workflows |
123+
| 7 | Module 7 | Building real-world skills |
124+
| 8 | Module 8 | Capstone project |
125+
126+
---
127+
128+
*Built for Panaversity's AI-Native Development Curriculum*
129+
*No coding required — just clear thinking and iterative refinement.*
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Exercise 1.1 — Anatomy of a Skill
2+
3+
## Goal
4+
Learn to read and understand skill files by dissecting three real skill examples of increasing complexity.
5+
6+
## What You Have
7+
Three skill folders in `sample-skills/`:
8+
1. `simple-greeting/` — A tiny skill (just formatting rules)
9+
2. `weekly-report/` — A medium skill (with templates)
10+
3. `content-reviewer/` — A complex skill (with examples and references)
11+
12+
## Your Tasks
13+
14+
### Task A: Read and Annotate
15+
Open each SKILL.md file and identify these parts:
16+
1. **Frontmatter** — The `---` block at the top (name, description)
17+
2. **Trigger conditions** — When should Claude use this skill?
18+
3. **Step-by-step instructions** — What does Claude do?
19+
4. **Output format** — What does the final output look like?
20+
5. **Rules/constraints** — What must Claude always or never do?
21+
22+
For each skill, write a 3-sentence summary: What it does, when it triggers, and what makes the output good.
23+
24+
### Task B: Predict the Output
25+
In `test-prompts/`, you'll find sample user prompts for each skill. Before running them:
26+
1. Read the prompt
27+
2. Read the skill
28+
3. Write down what you THINK Claude will produce
29+
4. Then run the prompt and compare
30+
31+
### Task C: Find the Gaps
32+
Each skill has an intentional weakness. Find it:
33+
- `simple-greeting/` — What happens if the user wants a greeting in a non-English language?
34+
- `weekly-report/` — What if a section has no data?
35+
- `content-reviewer/` — What if the content is an image, not text?
36+
37+
Write one sentence describing each gap and how you'd fix it.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
name: content-reviewer
3+
description: Reviews written content (blog posts, articles, documentation, marketing copy) against a quality checklist and provides structured feedback. Use when the user asks to review, critique, edit, or improve any written content.
4+
---
5+
6+
# Content Quality Reviewer
7+
8+
## When to Use
9+
- User asks to "review," "critique," "edit," or "improve" written content
10+
- User shares a document and asks "what do you think?" or "any feedback?"
11+
- User wants a quality check before publishing
12+
13+
## Review Process
14+
15+
### Step 1: Identify Content Type
16+
Determine what kind of content this is:
17+
- Blog post / article
18+
- Technical documentation
19+
- Marketing copy
20+
- Internal communication
21+
- Educational material
22+
23+
### Step 2: Read the Full Content
24+
Read everything before commenting. Never start feedback mid-way through.
25+
26+
### Step 3: Score Against Checklist
27+
Rate each dimension 1-5 and provide specific evidence:
28+
29+
| Dimension | What to Check |
30+
|-----------|---------------|
31+
| **Clarity** | Can a reader understand the main point in the first 2 paragraphs? |
32+
| **Structure** | Does it flow logically? Are transitions smooth? |
33+
| **Audience Fit** | Is the language appropriate for the target reader? |
34+
| **Actionability** | Does the reader know what to do after reading? |
35+
| **Conciseness** | Could any section be cut without losing meaning? |
36+
| **Evidence** | Are claims supported with data, examples, or sources? |
37+
38+
### Step 4: Generate Feedback Report
39+
40+
Use this structure:
41+
42+
```markdown
43+
# Content Review: [Title]
44+
45+
## Overall Assessment
46+
[2-3 sentences: What's the piece about, who's it for, and is it ready?]
47+
48+
## Scorecard
49+
| Dimension | Score | Key Finding |
50+
|-----------|-------|-------------|
51+
| Clarity | X/5 | [one sentence] |
52+
| Structure | X/5 | [one sentence] |
53+
| Audience Fit | X/5 | [one sentence] |
54+
| Actionability | X/5 | [one sentence] |
55+
| Conciseness | X/5 | [one sentence] |
56+
| Evidence | X/5 | [one sentence] |
57+
58+
**Overall: X/30**
59+
60+
## Top 3 Strengths
61+
1. [Specific strength with quote or reference]
62+
2. [Specific strength]
63+
3. [Specific strength]
64+
65+
## Top 3 Improvements
66+
1. [Specific issue + suggested fix]
67+
2. [Specific issue + suggested fix]
68+
3. [Specific issue + suggested fix]
69+
70+
## Line-by-Line Notes
71+
[Only if user requests detailed feedback]
72+
```
73+
74+
### Step 5: Offer Next Steps
75+
After delivering the review, ask:
76+
- "Want me to implement these suggestions?"
77+
- "Want me to focus on rewriting any specific section?"
78+
- "Want a revised version with all changes applied?"
79+
80+
## Rules
81+
- NEVER just say "this is good" — always find at least 2 specific improvements
82+
- NEVER rewrite the content unless asked — the review should respect the author's voice
83+
- Feedback must be specific: "Paragraph 3 is vague" is bad; "Paragraph 3 claims 'significant growth' without a number — add the percentage" is good
84+
- Score honestly. A 5/5 means genuinely excellent, not just "no obvious problems"
85+
- Reference specific sentences/paragraphs in feedback using quotes
86+
87+
## Examples of Good vs Bad Feedback
88+
89+
**Bad:** "The introduction could be stronger."
90+
**Good:** "The introduction buries the main point. The key insight — that AI agents reduce SaaS costs by 30% — doesn't appear until paragraph 4. Lead with it."
91+
92+
**Bad:** "Good use of examples."
93+
**Good:** "The Stripe integration example in section 3 perfectly illustrates the concept for a technical audience. More examples like this throughout would strengthen the piece."
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: simple-greeting
3+
description: Generates professional greeting messages for emails, Slack, and meeting openers. Use when the user asks to write a greeting, welcome message, or opening line for any professional communication.
4+
---
5+
6+
# Professional Greeting Generator
7+
8+
## When to Use
9+
- User asks for a greeting, welcome message, or icebreaker
10+
- User is writing an email or message opening
11+
- User needs to introduce themselves or their team
12+
13+
## Instructions
14+
15+
1. Ask (or infer from context) the **channel**: email, Slack, meeting, or presentation
16+
2. Ask (or infer) the **relationship**: first contact, existing colleague, manager, client, or external partner
17+
3. Ask (or infer) the **tone**: formal, friendly-professional, or casual
18+
19+
### Generate the greeting following these rules:
20+
21+
**Email Greetings:**
22+
- First contact: "Dear [Name]," + one sentence of context for why you're reaching out
23+
- Existing colleague: "Hi [Name]," + one warm sentence (reference a recent interaction if possible)
24+
- Client/external: "Dear [Name]," + one sentence acknowledging the relationship
25+
26+
**Slack Messages:**
27+
- Always start with "Hey [Name]!" or "Hi [team/channel]!"
28+
- Keep the opener to one line maximum
29+
- Never use "Dear" in Slack
30+
31+
**Meeting Openers:**
32+
- Start with "Good [morning/afternoon], everyone."
33+
- Add one sentence of context: what the meeting is about
34+
- Keep it under 30 words
35+
36+
## Rules
37+
- Never use "I hope this email finds you well" — it's overused
38+
- Never use emojis in emails to clients or first contacts
39+
- Slack messages MAY use 1-2 emojis if the tone is casual
40+
- Always match the formality level of the context
41+
- If the user doesn't specify a name, use [Name] as a placeholder

0 commit comments

Comments
 (0)