Skip to content
A fun game skill sample showing in skill purchases
JavaScript Shell HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A fun game skill sample.


You can play "coast to coast" as the default game.


New developers should start with a tutorial like Cakewalk or Fact Skill to learn the basics of Alexa skill building.


  1. Clone this repository to your laptop
  2. Run npm install from the skill/lambda/custom folder to install dependencies.
  3. Zip the contents of the skill/lambda/custom folder.
  4. Create a new Lambda function called ask-state-games and upload the zip file.
  5. Add the Alexa trigger to your Lambda function.
  6. Update the IAM role of your function to include DynamoDB Full Access policy permissions.
  7. Create a new skill in the Alexa Developer console.
  8. Use the models\en-US.json file for your model.
  9. Enable the Alexa Presentation Language interface from the Interfaces page.
  10. Save and build your skill.


  1. In the AWS Console, click to DynamoDB
  2. Create a database called askStateGames with primary key "id", a string.
  3. Create a second database called askStateGamesLeaderboard with primary key "id", a string.


  1. Test your skill by invoking it and asking for "coast to coast".

Local Testing

  1. From a command prompt, navigate to /skill/test folder.
  2. Type node testflow
  3. You should see the skill code be executed for LaunchRequest, AMAZON.HelpIntent, AMAZON.StopIntent
  4. Try out some of the other tests found in the test/dialogs folder.
  5. For example, try node testflow resume to see the skill resume a game in progress.
  6. Create your own tests, and read more at the Testflow project and blog post.

Extend the skill

  1. Check out the source file names in the lambda/custom folder.
  2. From the bottom of the index.js file, uncomment out the AplInterceptor
  3. Uncomment the IspStatusInterceptor as well.
  4. Add ISP products to your skill: see the isps\ folder for details.
  5. Test that the skill shows APL content in the test panel.
You can’t perform that action at this time.