Meta-skill for creating, refining, and managing Agent Skills. Use when needing to create new skills, improve existing skills, analyze skill performance, or teach the agent new capabilities...
This skill enables the agent to create, refine, and manage new skills autonomously, capturing learned patterns and domain expertise into reusable capabilities.
Create a skill when you observe:
Ask yourself:
skill-name/
├── SKILL.md # Required: Main instructions (<500 lines)
├── scripts/ # Optional: Executable code
│ └── helper.ts
├── references/ # Optional: Detailed documentation
│ └── REFERENCE.md
└── assets/ # Optional: Templates, data
└── template.md
Template:
---
name: [lowercase-hyphen-name]
description: [What it does AND when to use it. Max 1024 chars. Be specific with keywords.]
metadata:
author: [author]
version: "1.0"
---
# [Skill Title]
## Quick Reference
[Table or list of most common operations]
## Core Functionality
[Main instructions, organized by task]
## Examples
[Concrete input/output examples]
## Guidelines
[Rules and constraints]
Checklist before saving:
.github/skills/debug-*)For capturing debugging patterns:
debug-nextjs - Next.js specific debuggingdebug-prisma - Database debuggingdebug-react-query - State management debugging.github/skills/feature-*)For feature development patterns:
feature-api-routes - API route conventionsfeature-components - Component patterns.github/skills/process-*)For workflow automation:
process-deploy - Deployment proceduresprocess-migration - Database migrationsWhen a debug session reveals new patterns, create a skill:
## Pattern Discovered: [Name]
**Problem Type**: [category]
**Root Cause**: [description]
**Solution Pattern**: [reusable fix]
**Prevention Strategy**: [how to avoid]
→ Suggest: Create skill `debug-[category]` capturing this pattern
When a skill proves insufficient:
When a skill becomes obsolete:
After discovering a recurring Next.js hydration issue pattern:
---
name: debug-hydration
description: Diagnose and fix React hydration mismatches in Next.js. Use when seeing hydration errors, content flickering, or server/client mismatches.
metadata:
author: coachone
version: "1.0"
---
# Hydration Debugging
## Quick Diagnosis
1. Check browser console for specific hydration error
2. Identify the component mentioned in error
3. Compare server-rendered HTML with client-rendered output
## Common Causes
| Symptom | Cause | Fix |
|---------|-------|-----|
| Date/time mismatch | Server/client timezone | Use `suppressHydrationWarning` or standardize timezone |
| Random IDs | useId() not used | Replace Math.random() with React.useId() |
| Browser APIs | window/document access | Check typeof window !== 'undefined' |
| Extension interference | Browser extensions | Test in incognito mode |
## Fix Patterns
### Pattern 1: Deferred Client Rendering
\`\`\`tsx
const [mounted, setMounted] = useState(false);
useEffect(() => setMounted(true), []);
if (!mounted) return <Skeleton />;
return <DynamicContent />;
\`\`\`
### Pattern 2: Suppress Warning (use sparingly)
\`\`\`tsx
<time suppressHydrationWarning>{new Date().toLocaleString()}</time>
\`\`\`
Skills are activated when their description matches user intent. Write descriptions that:
Good: "Debug and fix React hydration errors, content mismatches between server and client rendering, SSR issues" Bad: "Helps with React problems"
Skills for this project should be created in:
.github/skills/[skill-name]/
├── SKILL.md
└── [optional resources]