How to choose and scaffold templates
Pick between minimal, progressive and scripted scaffolds, control where they land, and work without a terminal.
You want a new skill directory and need to decide which template fits, where it goes, and how to create it in a script rather than a terminal.
Choose a template
All three templates produce a skill whose SKILL.md has valid frontmatter and
passes agore-skill lint with zero errors and zero warnings. The difference
is how much depth they set up:
| Template | Files generated | Fits when... |
|---|---|---|
minimal | SKILL.md only | The skill fits in one screen; nothing deeper is needed. |
progressive | SKILL.md + references/guide.md (default) | The main body should stay short; details belong behind a link. |
scripted | SKILL.md + references/guide.md + scripts/run.sh | The skill needs executable tooling next to its instructions. |
The generated scripts/run.sh starts with #!/usr/bin/env sh and is written
with mode 0755, so it clears the SEC-002 script hygiene rule out of the
box.
Scaffold a skill
agore-skill create my-skill -t progressive -d "Use when the agent needs to review pull requests against team conventions."Output:
✓ Created skills/my-skill (progressive)
SKILL.md
references/guide.md
Where the directory lands is decided by your config, not the command:
- If
skill.pathsincludesskills/*(the default), the skill is created atskills/<name>. - Otherwise it is created at
./<name>.
To place it anywhere else, override with --dir:
agore-skill create my-skill -t minimal -d "Use when answering billing questions." --dir agentsThat creates agents/my-skill. The parent directory is created for you; an
existing target directory or file aborts with an error and exit code 1
before anything is written.
Work non-interactively
Outside a TTY (CI, scripts), you must pass the name as the argument and the
description with --description/-d:
agore-skill create my-skill -d "Use when answering billing questions."Missing description outside a TTY fails with:
ERROR
--description is required outside a TTY.
In a TTY, create fills missing pieces interactively: it asks for the name
(kebab-case validated on the spot), what the skill does, when the agent
should trigger it, and the template. Your answers are composed into a
description of the form What it does. Use when <trigger>. — which is why
interactive skills usually pass TRIG-001 without effort.
Common failures
| Symptom | Cause and fix |
|---|---|
Skill name "X" must be kebab-case (1-64 chars, e.g. demo-skill). | The name broke the kebab-case rule; rename it. |
Target .../skills/my-skill already exists as a directory; refusing to overwrite. | The target exists; choose a new name or remove the old directory yourself. |
Unknown template "bogus" (allowed: minimal, progressive, scripted). | Typo in -t; use one of the three exact names. |
Create cancelled: huh: could not open a new TTY ... | No terminal available; pass the name and -d explicitly. |
Related
- Full flag table and exact validation: create reference
- What lint checks about names and descriptions: Lint rules reference
- Why the templates push detail into
references/: Progressive disclosure L1/L2/L3