Skip to content

Commit 9f1a8f2

Browse files
committed
docs: add sample skill
1 parent b3650e2 commit 9f1a8f2

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: sample-skill
3+
description: Use when the user says sample skill, skill demo, or asks how an opencode SKILL.md should be structured; demonstrates a tiny project-local skill with practical assistant workflow guidance.
4+
---
5+
6+
# Sample Skill
7+
8+
This is a minimal project-local opencode skill. It exists as a reference for how a skill is structured and as a tiny reusable workflow the assistant can load when the user asks for a skill example.
9+
10+
## When To Use
11+
12+
- Use when the user asks for a sample skill or skill template.
13+
- Use when demonstrating the required `SKILL.md` frontmatter and body format.
14+
- Do not use for unrelated coding tasks just because a skill exists.
15+
16+
## Workflow
17+
18+
- Confirm the specific outcome the user wants if the request is ambiguous.
19+
- Inspect the relevant files before changing anything.
20+
- Make the smallest correct change.
21+
- Verify the result with a focused read, typecheck, test, or other lightweight check when available.
22+
- Summarize the changed files and any required restart or reload step.
23+
24+
## Example Response Style
25+
26+
When this skill is relevant, keep responses direct and actionable:
27+
28+
```text
29+
I created a project-local skill at .opencode/skills/sample-skill/SKILL.md.
30+
Restart opencode for the new skill to be discovered by future sessions.
31+
```

0 commit comments

Comments
 (0)