Initial commit
This commit is contained in:
51
skills/skill-creator/templates/basic-skill-template.md
Normal file
51
skills/skill-creator/templates/basic-skill-template.md
Normal file
@@ -0,0 +1,51 @@
|
||||
---
|
||||
name: skill-name
|
||||
description: Use when [specific trigger]. [What it does]. [When to use specifics]. Mentions of [keywords], [error messages], or [tools] trigger this.
|
||||
---
|
||||
|
||||
# Skill Name
|
||||
|
||||
Brief statement of purpose - what problem does this solve?
|
||||
|
||||
## Instructions
|
||||
|
||||
Write instructions that address the specific failures you observed in baseline testing:
|
||||
|
||||
1. **First critical step** - Counter the first observed failure
|
||||
2. **Second critical step** - Address the rationalization you saw
|
||||
3. **Third critical step** - Handle the edge case that was missed
|
||||
4. **Final step** - Ensure clear, actionable output
|
||||
|
||||
Be specific. Reference actual behaviors you want to change.
|
||||
|
||||
## Example
|
||||
|
||||
**One excellent example beats three mediocre ones.**
|
||||
|
||||
```bash
|
||||
# Show a realistic, concrete example
|
||||
command --with-real-options actual-file.txt
|
||||
|
||||
# Show what happens
|
||||
```
|
||||
|
||||
Expected output:
|
||||
```
|
||||
Show the exact result with explanation of what makes this correct
|
||||
```
|
||||
|
||||
## Anti-Patterns
|
||||
|
||||
**Red Flags** (rationalizations to reject):
|
||||
- "This is simple, so I'll skip..." ← Why this fails
|
||||
- "The user didn't explicitly ask for..." ← Why this fails
|
||||
- "I can optimize by skipping..." ← Why this fails
|
||||
|
||||
**Why these fail**: Explain the consequences of taking shortcuts
|
||||
|
||||
## Requirements
|
||||
|
||||
If external dependencies are needed:
|
||||
- Required packages: `pip install package1 package2`
|
||||
- Version constraints (if critical): `package1>=2.0.0`
|
||||
- System requirements: OS, tools, configurations
|
||||
60
skills/skill-creator/templates/readonly-skill-template.md
Normal file
60
skills/skill-creator/templates/readonly-skill-template.md
Normal file
@@ -0,0 +1,60 @@
|
||||
---
|
||||
name: skill-name
|
||||
description: Use when [analyzing/investigating/reviewing] [specific thing]. Read-only analysis that finds [patterns/issues/metrics]. Mentions of [keywords], [error types], or [analysis needs] trigger this.
|
||||
allowed-tools: Read, Grep, Glob
|
||||
---
|
||||
|
||||
# Skill Name (Read-Only Analysis)
|
||||
|
||||
Brief statement of purpose - what does this analyze and why?
|
||||
|
||||
## Instructions
|
||||
|
||||
This is a read-only skill. Follow these steps to provide thorough analysis:
|
||||
|
||||
1. **Find all relevant files**: Use Glob to locate files matching the criteria
|
||||
2. **Search for patterns**: Use Grep with context (-C flag) to find issues
|
||||
3. **Read detailed content**: Use Read on specific files for deeper analysis
|
||||
4. **Correlate findings**: Connect patterns across multiple files
|
||||
5. **Summarize with evidence**: Provide findings with file paths and line numbers
|
||||
|
||||
## Example
|
||||
|
||||
```bash
|
||||
# Find all relevant files
|
||||
glob "**/*.log"
|
||||
|
||||
# Search with context
|
||||
grep -C 5 "ERROR|WARN" application.log
|
||||
|
||||
# Read specific file for details
|
||||
read config/settings.json
|
||||
```
|
||||
|
||||
Expected analysis:
|
||||
```
|
||||
Found 3 ERROR entries in application.log:
|
||||
- Line 42: Database connection timeout
|
||||
- Line 156: Failed authentication attempt
|
||||
- Line 289: Memory allocation error
|
||||
|
||||
Root cause: Database connection timeout at line 42 triggered cascade of errors.
|
||||
Recommendation: Investigate database connection pool settings.
|
||||
```
|
||||
|
||||
## Anti-Patterns
|
||||
|
||||
**Red Flags**:
|
||||
- "I found some errors" ← Where? Which files? What lines?
|
||||
- "The logs show issues" ← What specific issues? How do they correlate?
|
||||
- "I'll just check one file" ← Did you search all relevant files?
|
||||
|
||||
**Why these fail**: Incomplete analysis misses context and root causes.
|
||||
|
||||
## Tool Restrictions
|
||||
|
||||
This skill is read-only by design:
|
||||
- ✓ Can: Read files, search content, find patterns
|
||||
- ✗ Cannot: Modify files, execute commands, write files
|
||||
|
||||
If modifications are needed, recommend creating a separate skill or getting user permission.
|
||||
Reference in New Issue
Block a user