grunt-ask-analyze
A grunt task that validates an Alexa Skills Kit interaction model. It currently implements these validations:
- not more than 250 intents
- all intents in the intent schema have sample utterances
- all sample utterances have an intent in the intent schema
- no sample utterance is repeated in 2 different intents
Using it
First, load it in your Gruntfile:
grunt.loadNpmTasks('grunt-ask-analyze');
Next, configure it:
ask_validate: {
default: {
schema: 'dist/intents.json',
utterances: 'model/samples.txt'
}
}
Finally, use it as part of some other task, like your default task:
grunt.registerTask('default', ['ask_validate']);