Skip to Content
agore-skill
Reference

create

Reference for agore-skill create — templates, flags, placement rules, and validation.

Usage

Usage
agore-skill create [name] [--flags]

Flags

FlagShortDefaultDescription
--template-tprogressiveScaffold template: progressive, minimal or scripted
--description-dSkill description (required outside a TTY)
--dirOverride the output parent directory
--configagore.yamlGlobal flag: path to the config file
--verboseoffGlobal flag: verbose diagnostics

Behavior

create renders one of three embedded templates into <parent>/<skill-name>/:

TemplateFiles
minimalSKILL.md
progressiveSKILL.md, references/guide.md
scriptedSKILL.md, references/guide.md, scripts/run.sh (mode 0755, shebang #!/usr/bin/env sh)

All generated skills pass agore-skill lint with zero errors and zero warnings. The progressive and scripted templates embed a working reference link so CTX-002 and CTX-003 stay clear.

Placement. With --dir, the skill goes under that directory (absolute paths allowed; relative paths resolve against the working directory). Otherwise: skills/<name> when skill.paths contains a skills/* pattern (the default), else ./<name>.

Interactivity. If the name or description is missing and stdin is a TTY, an interactive form collects the name (validated kebab-case on entry), a "what does this skill do" answer, a "when should the agent trigger this skill" answer, and the template. The two answers are composed into <what>. Use when <when>. — a leading "use when " in the trigger answer is stripped before composition. Without a TTY, a missing name fails with skill name is required (pass it as an argument or use a TTY) and a missing description with --description is required outside a TTY.

Refusal to overwrite. If the target path already exists as a file or directory, nothing is written and the command fails: Target <path> already exists as a directory; refusing to overwrite.

Config. create loads agore.yaml (or defaults) only to decide the output parent directory. Creating a skill does not update the config.

Validation

The skill name must match ^[a-z0-9]+(-[a-z0-9]+)*$ and be at most 64 characters. Violations fail with Skill name "<name>" must be kebab-case (1-64 chars, e.g. demo-skill). The same string is expected to become the directory name so that lint's SPEC-002 (name matches directory) passes.

Error cases

ConditionMessageExit
Unknown templateUnknown template "<t>" (allowed: minimal, progressive, scripted).1
Missing name (non-TTY)skill name is required (pass it as an argument or use a TTY)1
Missing description (non-TTY)--description is required outside a TTY1
Invalid nameSkill name "..." must be kebab-case (1-64 chars, e.g. demo-skill).1
Target existsTarget <path> already exists as a <file|directory>; refusing to overwrite.1

Examples

agore-skill create demo-skill -t progressive -d "Use when onboarding contributors."
agore-skill create demo-skill --dir agents
agore-skill create demo-skill -t scripted -d "Use when running nightly checks."

On this page