You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add folder awareness to skill show, list, and validate commands.
Skills can now bundle helper scripts and assets alongside SKILL.md,
with validation warning about missing referenced files.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/concepts/skill-format.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,24 @@ The markdown body contains the skill's instructions. This is what the agent read
47
47
48
48
Skills track author metadata and an optional `modified-by` history. `skern skill show` displays the full provenance chain when present, including editor name, type (human/agent), platform, and date.
49
49
50
+
## Folder Structure
51
+
52
+
Skills can include additional files alongside `SKILL.md` — helper scripts, templates, configuration files, and other assets. When a skill is installed to a platform, the entire directory is copied.
53
+
54
+
```
55
+
my-skill/
56
+
├── SKILL.md
57
+
├── scripts/
58
+
│ ├── convert.py
59
+
│ └── setup.sh
60
+
└── assets/
61
+
└── template.json
62
+
```
63
+
64
+
The `scripts/` directory is language-agnostic — skills can include Python, shell, JavaScript, or any other scripts. The agent decides which language is appropriate for the skill.
65
+
66
+
Use `skern skill show <name>` to see which files are bundled with a skill, and `skern skill validate <name>` to check that files referenced in the skill body actually exist.
Copy file name to clipboardExpand all lines: docs/reference/validation.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,10 @@ If `allowed-tools` is specified in the frontmatter, no entries may be empty stri
30
30
-**Author type** — must be `human` or `agent`
31
31
-**Version** — should follow [semantic versioning](https://semver.org) (e.g., `1.0.0`)
32
32
33
+
### Folder Integrity
34
+
35
+
When a skill body references files (via backtick-enclosed paths like `` `scripts/run.py` `` or markdown links like `[script](scripts/run.py)`), validation checks that those files exist in the skill directory. Missing references produce **warnings**, not errors — the skill remains valid since references may be aspirational or provided at runtime.
0 commit comments