skill.create

skill.create(name, *, description='', body='', owner='_local', store=None)[source]

Create a new skill and store it locally.

Return type:

Skill

>>> import tempfile
>>> from pathlib import Path
>>> store = LocalSkillStore(root=Path(tempfile.mkdtemp()))
>>> s = create('my-skill', description='Does things', store=store)
>>> s.meta.name
'my-skill'
>>> '_local/my-skill' in store
True