project-alice-assistant / ProjectAlice

Main repository of Project Alice, contains main unit source code
GNU General Public License v3.0
694 stars 62 forks source link

Skill Creators Update #299

Open philipp2310 opened 4 years ago

philipp2310 commented 4 years ago

This is a collection of ideas that should (but don't have to) be improved for skill creation and maintaining.

Please feel free to add ideas by editing or commenting!

Web UI

Creation

Edit

There is already a tab showing that you can edit skills via web interface, but currently there are no functionalities.

Others

ToDo

Documentation

as always!

Psychokiller1888 commented 3 years ago

This has been started but I struggling finding the best way to present the whole thing... Tiles per skill that open a dialog? We want to be able to edit the slots and the utterances

philipp2310 commented 3 years ago

going to a add a new multi line - but pretty formatted - input/datatype in the config.vue/configInput.vue Something like "Synonyms", one input line for text, more lines for the previous inputs and an option to delete lines.

Additionally a "NLU highlighted Input" is required, something where you can possibly mark, but for sure see the slots in a sentence.

Regarding your question: I'd say, yes, tiles per skill to keep a common feel to the installed skills and the skill store. Open in a dialog - maybe, as there is lots of information, I'd argue for a full screen edit mode.

philipp2310 commented 3 years ago

image 'skillIntents': { "defaultValue": [], "dataType" : "userList", "subType" : "string", "description" : "The intents this skill will be able to handle", "category" : "details", "allowDouble" : false }

---> Only the frontend possibility to add lists

philipp2310 commented 3 years ago

image next step: add logic

Psychokiller1888 commented 3 years ago

Wow!

philipp2310 commented 3 years ago

About editing in the UI and sending to github + creating a PR to the Alice repo:

New Skills will only be available in the users github: They are always locked for updates. "Create PR" will somehow propose that skill for project-alice-assistant.

Editing an existing Skill will start from the main project-alice-assistant repo. -> Clone to raspi (happened on install) -> Create a fork in the users account

philipp2310 commented 3 years ago

Required functions

(please feel free to edit this comment!)

Modify

The only option available if the skill is not yet marked for modification.

Create PR

Only available when there is already an official repo docs Create a Pull Request for the pending changes towards origin

Propose Skill

Only available when there is no official repo Create an issue on PA repository proposing the skill for the store.

(save) Update / Merge Official

Only available when there is already an official repo Pull the latest changes from origin and add them to the local skill

Push to fork

Push the local changes to the users repository

Pull from fork

Pull the changes from the users repository (when collaborating?)

Revert

Only available when there is already an official repo Revert all changes the user did

New Skill

The only function here listed that is NOT a button on the "cloud"-Tab in DEVMODE. This function is called on initial creation of skill creation.