When to write a skill
The first-party skills (storyteller, multi-clip, cost-aware) cover broad use cases. Write your own when:- Your brand has a specific voice (e.g. always punchy, never whimsical) that the generic skills miss.
- Your team renders a specific format (vertical 9:16, square 1:1, exactly 6 seconds) and you don’t want to re-explain it every prompt.
- You’re building an internal tool on top of Lavendly and want a consistent agent behavior across coworkers.
Skill anatomy
A Lavendly skill is a markdown file with a YAML frontmatter header and a body. The body is just instructions to the agent.The four sections that matter
Sequence, the canonical call order
Sequence, the canonical call order
The literal sequence of MCP tool calls the agent should make.
Number them. Be specific. If a step has substeps (drafting a
script before attaching a voiceover), list those too.This is the single highest-leverage part of the skill. Agents
without explicit sequences improvise, and improvisation in a
paid API is expensive.
Decision rules, the if-then logic
Decision rules, the if-then logic
Cover the choices the agent will hit. Examples:
- “If
get_status.voice.supports_inline_tagsis true, use emotion tags.” - “If the brief mentions dialogue, use
mixaudio. Otherwiseoff.” - “If the user names a specific aspect ratio, honor it. Otherwise default to 9:16.”
When to bail, the stop conditions
When to bail, the stop conditions
Tell the agent when to STOP and ask for help instead of pushing
through. Without this section, agents will loop on a doomed
render until your budget is empty.Useful patterns:
- “If the user’s request is over 30 s of total video, ask if they want to split into multiple workflows.”
- “If
get_renderreturnsfailedtwice with the same error code, stop and report.” - “If
get_monthly_usage.fraction_used > 0.85, refuse non-urgent work.”
Taste, the brand voice
Taste, the brand voice
Optional but high-impact. Constrain how the agent makes creative
choices. Examples from real teams:
- “Voiceovers always present tense, never past.”
- “Music is always instrumental, no vocal beds, ever.”
- “Avoid the phrases ‘in a world where,’ ‘once upon a time,’ or anything starting with ‘imagine.’”
Loading your skill
- Claude Code
- Cursor
- Custom runtime
Testing your skill
Two cheap tests before you ship:- Cold-start test. New agent session, fresh model context, no prior conversation. Give it the trigger prompt. Does it follow your sequence on the first try? If not, the sequence section needs tightening.
- Adversarial brief. Give it a request that violates your constraints (a 60 s video when the skill caps at 12 s, a vocal music track when you said instrumental). Does it bail correctly? If it pushes through, the When to bail section needs to be stricter.