Hey glad to hear you’re getting into Skill development
git pull it will pull down any changes that are on the repo that you have cloned. So in this example you have cloned:
https://github.com/yourself/mycroft-skills meaning that it will only pull changes that have been made to that repo, not changes made in
To keep your fork of mycroft-skills up to date with the
upstream repo (the official Mycroft version), you can follow these instructions: https://help.github.com/en/articles/syncing-a-fork
Mycroft by default doesn’t clone the mycroft-skills repo to your device as this includes all Skills that are in the Marketplace. Instead it creates
/opt/mycroft/skills and installs just the default Skills (weather, timer, datetime, etc). The Mycroft Skills Manager then checks the mycroft-skills repo to see if any Skills need updating. It also checks there when you say things like “install cocktails” to see which Skill you might mean.
It sounds like you might be adding your code and files directly into the mycroft-skills repo, is that right?
This will work for your purposes, but is not how we manage the Skills in the upstream repo. If you go here: https://github.com/MycroftAI/mycroft-skills you’ll see that clicking on a folder it doesn’t take you into a folder, it actually takes you out to that Skills repo. This is because the files of these Skills don’t live inside the mycroft-skills repo. The repo is actually just links to the Skills own repositories using a Git feature called “submodules”. These point to a Skill at a specific point in time, so we can be sure that we’ve verified the code works and is safe to run on devices.
Submodules are a bit of a pain to work with manually. This is not just for new devs, I have friends who are wizard level Git users who still hate submodules. Which is why we have the Mycroft Skills Kit to handle all the tricky stuff for you. When you’re ready to submit your own Skill to the Mycroft Marketplace you can just run
mycroft-msk submit /opt/mycroft/skills/your-skill
and MSK will do the rest for you.
It still sounds like you don’t really need your own fork of Mycroft Skills but if you’re learning Git workflows that’s good too