Skills SDK (Deprecated)

Mycroft Skills Framework and SDK is currently deprecated. You can still use the skills container for debugging either on the pi units (Mark 1 and picroft), or desktop.

For the pi units

mycroft-skill-container /path/to/skill

For the desktop

./start.sh skill_container /path/to/skill

What Makes a Skill

A skill is a class that extends the MycroftSkill class. It is instantiated by the skills container via a create_skill method on the skill module. See Mycroft's spelling skill for a simple example.

Running your skill

  • Find the IP of your mycroft unit (try asking mycroft what its IP address is)
  • Create a virtualenv and a clean directory for your skill.
    • install the skills SDK via the instructions here
  • Implement a skill. Try copying the spelling skill's init.py into your directory.
  • Install your dependencies as instructed here
  • Log into your mycroft, and stop the skills service (so there's only one of the spelling skill running)
    sudo /etc/init.d/mycroft-skills stop
  • Launch the skills container, instructing it to connect to your mycroft unit. Since the skills service has been stopped, we'll also need the container to run the intent skill as well.
    mycroft-skills-container --messagebus-host=<MYCROFT IP ADDRESS> --enable-intent-skill
  • Try your skill through your mycroft unit.
    Hey mycroft, spell calamity