| name | example-skill |
| description | Template for creating skills. Use when writing new code, reviewing code, or when the skill's specific domain applies. Replace this description with specifics. |
Example Skill
When to Use
- [Scenario 1 where this skill applies]
- [Scenario 2 where this skill applies]
- [Scenario 3 where this skill applies]
Principles
- [Principle 1]: [Explanation]
- [Principle 2]: [Explanation]
- [Principle 3]: [Explanation]
Process
Step 1: [First Step]
[What to do and why]
Step 2: [Second Step]
[What to do and why]
Step 3: [Third Step]
[What to do and why]
Patterns
[Pattern Name]
// Example code showing the pattern
function example() {
// ...
}
When to use: [Situation where this pattern applies]
[Another Pattern]
// Another example
function anotherExample() {
// ...
}
When to use: [Situation where this pattern applies]
Common Tasks
| Task | How |
|---|---|
| [Task 1] | [Brief instructions] |
| [Task 2] | [Brief instructions] |
| [Task 3] | [Brief instructions] |
Anti-Patterns
Don't do this:
// Bad example
function badExample() {
// Why this is wrong...
}
Do this instead:
// Good example
function goodExample() {
// Why this is right...
}
Gotchas
- [Non-obvious behavior 1]
- [Common mistake 2]
- [Thing that trips people up 3]