Builds Amazon Alexa voice skills using ASK CLI + AWS Lambda with Claude as the conversational brain, including DynamoDB memory, Polly TTS, APL display, and Smart Home control.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
适用:
不该用:
整体数据流:Alexa 设备 → Alexa Cloud(ASR/NLU)→ AWS Lambda(编排)→ Claude API(推理),旁路接 DynamoDB(记忆)/ Polly(TTS)/ APL(屏显)。
前置安装与配置:
# ASK CLI
npm install -g ask-cli
ask configure
# AWS CLI
pip install awscli
aws configure
新建技能 + 设唤醒词(models/<locale>.json 内 interactionModel.languageModel.invocationName):
ask new --template hello-world --skill-name auri --language en-US
Lambda 依赖(requirements.txt,固定版本下限):
ask-sdk-core>=1.19.0
ask-sdk-dynamodb-persistence-adapter>=1.19.0
anthropic>=0.40.0
boto3>=1.34.0
Lambda 环境变量(密钥务必走 Secrets Manager,不要明文):
ANTHROPIC_API_KEY=sk-... # 存入 Secrets Manager
DYNAMODB_TABLE=auri-users
AWS_REGION=us-east-1
建持久化表:
aws dynamodb create-table \
--table-name auri-users \
--attribute-definitions AttributeName=userId,AttributeType=S \
--key-schema AttributeName=userId,KeyType=HASH \
--billing-mode PAY_PER_REQUEST \
--region us-east-1
部署 / 测试 / 发布:
ask deploy # 部署技能 + Lambda
ask status # 查看状态
ask dialog --locale en-US # 交互式对话测试
ask simulate --text "open auri" --locale en-US --skill-id amzn1.ask.skill.YOUR-ID
ask validate --locales en-US # 校验交互模型
手动建 Lambda 并挂 Alexa 触发器(timeout ≤ 8s):
aws lambda create-function --function-name auri-skill \
--runtime python3.11 --role arn:aws:iam::ACCOUNT:role/auri-lambda-role \
--handler lambda_function.handler --timeout 8 --memory-size 512 \
--zip-file fileb://function.zip
aws lambda add-permission --function-name auri-skill \
--statement-id alexa-skill-trigger --action lambda:InvokeFunction \
--principal alexa-appkit.amazon.com \
--event-source-token amzn1.ask.skill.YOUR-SKILL-ID
ChatIntent 处理器(接入 Claude + 历史持久化 + 截断防超时):
import os, anthropic
from ask_sdk_core.utils import is_intent_name, is_request_type
@sb.request_handler(can_handle_func=is_intent_name("ChatIntent"))
def chat_handler(handler_input):
slots = handler_input.request_envelope.request.intent.slots
query = slots["query"].value if slots.get("query") else None
if not query:
return handler_input.response_builder.speak("Sorry, please repeat.").ask("Please repeat?").response
attrs = handler_input.attributes_manager.persistent_attributes
history = attrs.get("history", [])
messages = history[-MAX_HISTORY:] + [{"role": "user", "content": query}]
client = anthropic.Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"])
resp = client.messages.create(
model=CLAUDE_MODEL, max_tokens=512,
system=AURI_SYSTEM_PROMPT, messages=messages)
reply = resp.content[0].text
if len(reply) > MAX_RESPONSE_CHARS: # 防止超过 8s timeout
reply = reply[:MAX_RESPONSE_CHARS] + "... continue?"
history += [{"role": "user", "content": query},
{"role": "assistant", "content": reply}]
attrs["history"] = history[-50:] # 仅保留最近 50 条
attrs["ttl"] = int(time.time()) + 180*24*3600 # 180 天过期
handler_input.attributes_manager.persistent_attributes = attrs
handler_input.attributes_manager.save_persistent_attributes()
return handler_input.response_builder.speak(reply).ask("Anything else?").response
交互模型片段(ChatIntent 用 AMAZON.SearchQuery,并定义自定义类型):
{"name": "ChatIntent",
"slots": [{"name": "query", "type": "AMAZON.SearchQuery"}],
"samples": ["{query}", "help me with {query}", "explain {query}"]}
Smart Home Discovery 响应骨架(namespace Alexa.Discovery / payloadVersion 3):
def handle_discovery(event, context):
return {"event": {"header": {"namespace": "Alexa.Discovery",
"name": "Discover.Response", "payloadVersion": "3"},
"payload": {"endpoints": [{
"endpointId": "light-001", "friendlyName": "Living Room Light",
"displayCategories": ["LIGHT"], "capabilities": [
{"type": "AlexaInterface", "interface": "Alexa.PowerController", "version": "3"}]}]}}}
Polly 自定义语音用 SSML <audio src=...> 注入(先合成上传 S3 再引用 URL);APL 屏显需先判断 device.supported_interfaces.alexa_presentation_apl 再 add_directive(Alexa.Presentation.APL.RenderDocument)。
max_tokens 控制在 512 左右并截断长回复,必要时分段续答;Polly + S3 合成较慢,谨慎放进同步链路。secretsmanager:GetSecretValue 读取。alexa-appkit.amazon.com,Smart Home 用对应 Smart Home 端点配置。supported_interfaces 再下发指令,否则纯音箱会报错。采编自 sickn33/antigravity-awesome-skills(MIT)。原文为葡萄牙语「Auri」项目,本条目适配重写为中文并将示例语言切换为 en-US 通用形态,保留其架构、关键命令与代码约束。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录/apify-actor-development当需要创建、修改或调试 Apify Actor(无服务器 Docker 抓取/自动化程序)时使用;引导选模板、配 input/output schema 与 actor.json、写入口逻辑、本地 apify run 测试并 apify push 部署;不适用于已有现成 Actor 直接调用(用 apify-ecommerce-scraper)、无 APIFY_TOKEN、或普通网页抓取无需打包为 Actor。触发词:apify actor、apify create、apify push、input_schema、actor.json、爬虫部署、serverless scraper、crawlee/apify-actorization当需要把现有 JS/TS、Python 脚本或任意 CLI 工具改造成可在 Apify 平台运行的 Actor(接受 JSON 输入、产出结构化 JSON、打包为 Docker 镜像并部署/变现)时使用;做 apify init 初始化 + SDK 生命周期包裹 + 配置 input/output/actor schema + apify run 本地测试 + apify push 部署,产出可上架的 Actor;不适用于从零写新爬虫、单纯调用现成 Actor、或无 apify CLI/APIFY_TOKEN。触发词:apify actor、actorization、改造成 actor、apify push、apify init、input_schema、serverless 爬虫/apify-ecommerce-scraper当需要从亚马逊、沃尔玛等电商平台批量抓取商品、价格、库存、评论或卖家数据(用于比价、MAP 监控、竞品分析、评论情感/质量分析、卖家发现)时使用;调用 Apify「e-commerce-scraping-tool」Actor,按三类工作流配置输入并导出 CSV/JSON 结果与洞察;不适用于无 APIFY_TOKEN、需自建爬虫绕过反爬、或抓取非电商页面。触发词:电商抓取、商品比价、价格监控、评论分析、卖家发现、apify、ecommerce scraping、product price、review scraping/10-platform:amazon-alexa-skill-builderfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platformOther plugins' skills for the same job