Loading...
Loading...
Create new Agent Skills for Claude Code. Use when user wants to create a skill, add a new capability, document a CLI workflow, or asks how skills work.
npx skill4agent add johnlindquist/claude skill-creator# Personal skill (all projects)
mkdir -p ~/.claude/skills/my-skill
# Project skill (shared via git)
mkdir -p .claude/skills/my-skill---
name: my-skill
description: Brief description of what it does and when to use it.
---
# My Skill
## Instructions
Step-by-step guidance for Claude.
## Examples
Concrete usage examples.---
name: lowercase-with-hyphens # Max 64 chars, [a-z0-9-] only
description: What it does AND when to use it. Include trigger keywords.
---description---
name: safe-reader
description: Read-only file access. Use for code review without modifications.
allowed-tools: Read, Grep, Glob
---allowed-tools# Skill Name
Brief overview.
## Prerequisites
Installation or setup if needed.
## CLI Reference
Commands with examples.
## Common Workflows
Step-by-step procedures.
## Best Practices
Guidelines and tips.| Type | Location | Scope | Shared |
|---|---|---|---|
| Personal | | All your projects | No |
| Project | | This repo | Yes (git) |
| Plugin | Via installed plugins | Per plugin | Via marketplace |
my-skill/
├── SKILL.md # Required
├── reference.md # Optional docs
├── examples/ # Optional examples
├── scripts/ # Optional utilities
│ └── helper.ts
└── templates/ # Optional templatesSee [reference.md](reference.md) for details.
Run the helper:
` ` `bash
bun scripts/helper.ts
` ` `description: Helps with datadescription: Analyze Excel spreadsheets, create pivot tables, generate charts. Use when working with Excel files, .xlsx format, or spreadsheet analysis.~/.claude/skills/api-testing/SKILL.md---
name: api-testing
description: Test REST APIs with curl and analyze responses. Use when testing endpoints, debugging APIs, or validating HTTP requests.
---
# API Testing
Test and debug REST APIs from the command line.
## Prerequisites
` ` `bash
# Verify curl is available
curl --version
` ` `
## CLI Reference
### Basic Requests
` ` `bash
curl -X GET "https://api.example.com/users"
curl -X POST "https://api.example.com/users" \
-H "Content-Type: application/json" \
-d '{"name": "John"}'
` ` `
### With Authentication
` ` `bash
curl -H "Authorization: Bearer $TOKEN" \
"https://api.example.com/protected"
` ` `
### Save Response
` ` `bash
curl -o response.json "https://api.example.com/data"
` ` `
## Common Workflows
### Test Endpoint Health
` ` `bash
# Check status code
curl -s -o /dev/null -w "%{http_code}" https://api.example.com/health
# Measure response time
curl -w "Time: %{time_total}s\n" -o /dev/null -s https://api.example.com
` ` `
## Best Practices
1. **Use -s for scripts** - Silent mode hides progress
2. **Use -f to fail** - Exit non-zero on HTTP errors
3. **Use jq for JSON** - Pipe to `jq` for pretty output# Verify file exists
cat ~/.claude/skills/my-skill/SKILL.md
# List all skills
ls ~/.claude/skills/*/SKILL.md
ls .claude/skills/*/SKILL.md# View first 10 lines
head -n 10 ~/.claude/skills/my-skill/SKILL.md------# See all personal skills
ls ~/.claude/skills/*/SKILL.md
# Good examples to study
cat ~/.claude/skills/beads/SKILL.md # Task tracking CLI
cat ~/.claude/skills/gemini/SKILL.md # AI research CLI
cat ~/.claude/skills/github/SKILL.md # gh CLI patterns