mirror of
https://github.com/Dimillian/Skills.git
synced 2026-03-25 08:55:54 +00:00
Add starter template for new skills
This commit is contained in:
parent
8bc7bcac35
commit
583cf2dec8
3 changed files with 50 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ Avoid duplicating Apple docs without adding value.
|
|||
|
||||
```bash
|
||||
cp -r assets/templates/skill-template my-skill-name
|
||||
mv my-skill-name/SKILL.template.md my-skill-name/SKILL.md
|
||||
mv my-skill-name/references/example.template.md my-skill-name/references/topic.md
|
||||
```
|
||||
|
||||
### 3. Write frontmatter
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
name: skill-name
|
||||
description: What it does + when to invoke it. Include trigger keywords.
|
||||
---
|
||||
|
||||
# Skill Title
|
||||
|
||||
## Overview
|
||||
|
||||
One to two sentences describing purpose.
|
||||
|
||||
## Workflow
|
||||
|
||||
### 1. First step
|
||||
|
||||
Actionable instruction.
|
||||
|
||||
```swift
|
||||
// Code example
|
||||
```
|
||||
|
||||
### 2. Next step
|
||||
|
||||
More instructions with examples.
|
||||
|
||||
## Reference material
|
||||
|
||||
- See `references/topic.md` for detailed patterns.
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# Topic name
|
||||
|
||||
## Basic usage
|
||||
|
||||
```swift
|
||||
// Minimal example showing the pattern
|
||||
```
|
||||
|
||||
## Common patterns
|
||||
|
||||
| Pattern | Use case |
|
||||
|---------|----------|
|
||||
| Pattern A | When X |
|
||||
| Pattern B | When Y |
|
||||
|
||||
## Advanced
|
||||
|
||||
```swift
|
||||
// More complex example
|
||||
```
|
||||
Loading…
Reference in a new issue