Folder Structure
Every skill follows a standard directory layout:Structure Guidelines
- SKILL.md acts as the “brain”: navigation + high-level procedures only
- references/ for contextual docs loaded just-in-time
- scripts/ for deterministic helpers (not library code)
- assets/ for output templates not intended for context loading
- Use relative paths with forward slashes regardless of OS
- Prefer flat references over deep nesting (e.g.
references/schema.mdoverreferences/db/schema.md)
Writing SKILL.md
Every SKILL.md requires frontmatter withname and description:
Frontmatter Rules
- name: 1-64 characters, lowercase letters, numbers, hyphens only (no consecutive hyphens)
- Name must exactly match the parent directory name
- description: max 1024 characters, written in third person
- Include realistic user phrasings (aliases, common variants)
- Include negative triggers: what should NOT trigger this skill
Description Best Practices
Good: “Creates React components with Tailwind CSS. Use when user wants to update component styles or UI logic. Do not use for Vue, Svelte, or vanilla CSS projects.”
Using the CLI
Create skills from your local filesystem using thebetter-skills create command.
Gather Requirements
Before creating, clarify:
- Name: What should the skill be called? (lowercase, letters/numbers/hyphens, 1-64 chars)
- Purpose: What does this skill do? What problem does it solve?
- Triggers: When should this skill activate? What user phrases or requests should route here?
- Negative triggers: What should NOT trigger this skill?
- Scope: What reference files are needed? (guides, schemas, cheatsheets, scripts, templates)
Check for Related Skills
Search existing vault skills to identify potential cross-links:Note any relevant UUIDs for cross-linking later.
Create the Folder Structure
Create the skill folder in your current directory (never use tmp directories):Write SKILL.md with frontmatter and routing sections. Add reference files under
references/, scripts/, or assets/.Add Resource Mentions
Every resource file must be referenced using mention syntax. In SKILL.md or other resource files, add:See Markdown Mentions for full syntax details.
Validate Before Creating
Run validation to catch issues before upload:Validation is strict — any warning is treated as a failure. Fix all issues before proceeding.
Create the Skill
Upload the skill to your vault:The CLI resolves
[[resource:new:...]] mentions to UUID-based references during creation.Slug and Naming Conventions
The--slug parameter is optional. If omitted, Better Skills generates a slug from the skill name.
Slug Rules
- Lowercase letters, numbers, and hyphens only
- No consecutive hyphens
- Must be unique within your vault
- Used in skill URLs and CLI commands
Example
Creating Skills via Web UI
You can also create skills through the Better Skills web console:- Navigate to your vault dashboard
- Click Create Skill
- Fill in the skill name and description
- Add resource files through the web editor
- Use
[[resource:new:path]]mentions to link resources - Save to create the skill
Next Steps
Skill Resources
Learn how to add and organize reference files, scripts, and assets
Markdown Mentions
Master mention syntax for linking skills and resources