Prerequisites
Before creating a skill:- Understand the issue you want to detect (specific bug patterns, architectural problems, security flaws)
- Have example code that demonstrates the issue
- Know what context the skill needs to make accurate judgments
Quick Start
Create a skill in three steps:Skill Template
Start with this template:.agents/skills/my-skill/SKILL.md
Real Example: SQL Injection Detection
Let’s build a skill that detects SQL injection vulnerabilities.Define the pattern
We want to catch:
- String concatenation in SQL queries
- User input passed directly to query functions
- Missing parameterization
Writing Effective Checks
Be Specific
Good vs Bad specificity
Good vs Bad specificity
Too vague:Too specific:Just right:
Provide Examples
Show what triggers the check and what doesn’t:Explain Impact
Help the user understand why it matters:Calibrate Confidence
Set clear thresholds for reporting:Advanced Patterns
Multi-Step Analysis
For complex checks, guide the agent through steps:Historical Context
Reference past bugs to sharpen detection:Zone-Based Scoping
Skip irrelevant checks based on file paths:Testing Skills
Local Testing
Test against specific files:Create Fixtures
Build a test suite for your skill:Iterate on Real Code
Run the skill on your actual codebase:Common Pitfalls
Prompt Engineering Tips
Role Framing
Set the right persona:Structured Output
Guide the report format:Calibrated Confidence
Prevent noise:Next Steps
Skill Structure
Deep dive into SKILL.md format and conventions
Builtin Skills
Study real examples from Warden’s builtin skills