dblock

Alexa Parrot — Development skill for Claude Code

Development community

A walkthrough for building a basic Alexa skill.

How to install Alexa Parrot

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dblock/alexa-parrot and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Alexa Parrot does

A walkthrough for building a basic Alexa skill.

Alternatives in Development

  • Claude Code Kimi Groq — A basic proxy to use Kimi K2 on Claude Code through Groq 382 ★
  • Dsa Mentor — Daily algorithm lecture and LeetCode problem walkthrough 84 ★
  • Amazon Listing Doctor — 亚马逊 Listing 质检+打分 Skill Amazon listing health-check & scoring (CDQ/A9/COSMO/Alexa) 59 ★

README

Alexa Parrot

[![Travis](https://img.shields.io/travis/dblock/alexa-parrot.svg?style=flat-square)](https://travis-ci.org/dblock/alexa-parrot) [![CircleCI](https://circleci.com/gh/dblock/alexa-parrot/tree/master.svg?style=shield)](https://circleci.com/gh/dblock/tree/master)

A simple parroting skill for Alexa to grasp basics of creating alexa skills with Alexa-App library and deploying to AWS Lambda Functions. Requires Use NodeJS v8.x or higher.

Prerequisite files

Package JSON

Require [alexa-app](https://github.com/alexa-js/alexa-app).

{
  "name": "parrot",
  "version": "1.0.0",
  "description": "Alexa parroting skill",
  "main": "parrot.js",
  "dependencies": {
    "alexa-app": "^4.2.2"
  },
  "author": "Daniel Doubrovkine (db@artsy.net)",
  "license": "MIT",
  "engines": {
    "node": ">=8.0.0"
  }
}

.gitignore

node_modules

Install

yarn install

Coding the skill

Basic Alexa App

const alexa = require('alexa-app');

const app = new alexa.app('parrot');

app.launch((req, res) => {
  res.say('I am a parrot.');
});

module.exports = app;

Writing basic MochaJS tests

Add `express` and `mocha` to `package.json` and support for `yarn test`.

"devDependencies": {
  "chai": "4.1.2",
  "eslint": "^4.19.1",
  "express": "^4.14.0",
  "mocha": "5.2.0",
  "supertest": "3.1.0"
},
"scripts": {
  "test": "mocha test"
}

A test in `test/test_parrot.js`.

/* eslint-disable no-undef, no-unused-vars, sort-vars, no-mixed-requires, global-require*/
const express = require('express');
const request = require('supertest');
const {expect} = require('chai');

describe('Parrot', () => {
  let server = null;

  beforeEach(() => {
    const app = express();
    const parrot = require('../parrot');

    parrot.express({
      expressApp: app,
      debug: true,
      checkCert: false
    });
    server = app.listen(3000);
  });

  afterEach(() => {
    server.close();
  });
});

**Respond to Invalid Dat