Porting the Hello World Skill
This article explains, step-by-step, how the Classic Core Hello World Skill can be ported to the Mark II running Dinkum.
1. Copy Files Over
Find skill repository (template is ‘skill-[name]’). In this case: skill-hello-world
Go to the skills directory and make a new directory for your new Skill.
cd /opt/mycroft-dinkum/skills
mkdir hello.mark2
Next to the Dinkum repo, clone the Skill repo.
cd /opt
sudo git clone https://github.com/MycroftAI/skill-hello-world.git
Copy the files from the Skill repo into the new Skill directory.
cp -r skill-hello-world/* mycroft-dinkum/skills/hello.mark2/
2. Modify __init__.py
Modify import statement
to:
Replace interaction calls
Replace responses such as
with:
For example:
Enhance create_skill
becomes:
Add skill_id and name to __init__ method
3. Add Skill to system files
To /opt/mycroft-dinkum/services/enclosure/service/skills.json
add:
To /etc/systemd/system/dinkum-skills.service
add:
4. Reload skills service settings
5. Restart Dinkum skills service
6. Use your new Skill
“Hey Mycroft, how are you?”
Last updated