Skills
OpenPocket skills are markdown documents discovered from configured source directories.
Source Order
Loader scan order (highest priority first):
workspace/skills(source=workspace)OPENPOCKET_HOME/skills(source=local)- repository
skills/(source=bundled)
If multiple files have the same skill ID, first source wins.
Discovery
- recursive scan under each source root
- include
*.mdfiles - exclude
README.md
Skill Metadata
From each markdown file:
id: file basename without.mdname: first level-1 heading (# ...) if present, elseiddescription: first non-empty non-heading line, truncated to 180 charssource:workspace | local | bundledpath: absolute file path
Injection Format
Runtime injects a summarized list into system prompt:
text
- [workspace] Skill Name: one line description
- [local] Another Skill: one line descriptionIf no skill exists, summary text is (no skills loaded).
Workspace Template
md
# Search App
Find and open app quickly by name.
## Trigger
Use when user asks to open an app by name.
## Steps
- Open launcher
- Type app name
- Tap app iconOnly title and first non-heading line are parsed structurally; the rest is free-form guidance for future prompt usage.
Generated Skills
After successful tasks, AutoArtifactBuilder may create:
workspace/skills/auto/<timestamp>-<slug>.md
Generated file includes trigger, execution outline, final result, and source session path.