Imported from ericbdev/ai (
skills/template-skill/SKILL.md). Install upstream withnpx skills add ericbdev/ai --skill template-skill. Copyright stays with the author.
Overview
This SKILL.md is an example/template for creating new skills. Copy it and replace placeholders with the specifics for your skill.
When to Use
- You are building a new skill and need a standard structure.
- You want to document inputs, outputs, and execution steps before coding.
Capabilities
- Define metadata (name/description) in frontmatter for triggering.
- Specify inputs/outputs, edge cases, and success criteria.
- Outline step-by-step execution guidance for the skill.
Inputs
List required and optional inputs your skill expects. Example:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| input_a | string | Yes | ā | Main input payload |
| option_b | boolean | No | false | Optional toggle |
Outputs
Describe the shape of the output. Example fields:
success: booleandata: object with fields your skill returnsmetadata: includeexecutionTimeandtimestamperror: present whensuccessis false
Workflow
- Validate inputs against the schema.
- Perform the core logic (describe the key steps clearly).
- Handle edge cases and error paths (what to do if inputs are missing/invalid).
- Return structured output with metadata.
Quality Bar
- Keep responses deterministic given the same inputs.
- Be explicit about assumptions and defaults.
- Fail fast on invalid inputs with clear error messages.
Example Usage
import { /* YourSkill */ } from '@ericbdev/ai';
const skill = new /* YourSkill */();
const result = await skill.execute({
/* input_a: 'value', */
/* option_b: true, */
});