Skip to contents

Creates a new skill directory at path/name/ containing a template SKILL.md file ready to be filled in.

Usage

init_skill(name, path)

Arguments

name

Skill name. Must be 1-64 characters, lowercase alphanumeric with single hyphens (no consecutive --), and cannot start or end with a hyphen. Consider using a gerund form (e.g. "parsing-logs").

path

Directory in which to create the skill. The skill directory itself will be path/name. Use skill_path() to get the conventional path for a given agent.

Value

The path to the new skill directory, invisibly.

Examples

init_skill('my-skill', tempfile())
#> Created skill "my-skill" at /tmp/RtmpdP4Y9A/file19427cedb249/my-skill.