Builds production-grade Azure Functions serverless apps with isolated worker .NET, Node.js v4, Python v2, HTTP/queue/timer/Blob triggers, Durable Functions orchestration, and cold-start optimization. Generates function templates, host.json/deployment config, and edge-case mitigations.
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.
适用:在 Azure 上构建生产级 Functions 无服务器应用,包括 .NET 隔离工作进程模型、Node.js v4 与 Python v2 编程模型、HTTP/队列/定时/Blob 触发器、Durable Functions 编排(函数链 / 扇出扇入 / 长任务异步模式),以及冷启动优化、host.json/扩展包配置与上线前的锋利边缘规避。
不该用(负边界):
核心原则:.NET 新项目一律用隔离工作进程(in-process 2026-11-10 停止支持);客户端用 DI/静态单例复用、绝不在请求内 new HttpClient;全程 async/await,禁止 .Result/.Wait()/Thread.Sleep;连接串/密钥走 App Settings 或 Key Vault;长任务用 Durable Functions 或队列异步而非死等 HTTP。
Program.cs + HostBuilder + [Function]);Node.js 用 v4(app.http(...) 代码注册、无 function.json);Python 用 v2(@app.route 装饰器、强制 Linux 托管、始终隔离进程)。ILogger<T> 与服务;统一 try/catch;HTTP 用 HttpRequestData/HttpResponseData。[4.*, 5.0.0));隔离工作进程需显式 NuGet Microsoft.Azure.Functions.Worker.Extensions.*,否则触发器静默不工作。Task.WhenAll);HTTP 起任务后 CreateCheckStatusResponse 立即返回状态轮询 URL。[QueueTrigger] 失败抛异常触发重试(默认 maxDequeueCount=5)后进毒消息队列 <queue>-poison;可加 poison 队列函数告警。func host start --verbose 确认「Found the following functions」;过校验清单(见注意事项)再部署。# 创建隔离工作进程 .NET 项目
func init MyFunctionApp --worker-runtime dotnet-isolated
dotnet new func --name MyFunctionApp --framework net8.0
# 本地运行(--verbose 看是否识别到函数)
func host start --verbose
# 从包部署(可降冷启动)
az functionapp deployment source config-zip \
--resource-group myRg --name myFunctionApp \
--src myapp.zip --build-remote true
# Premium 预热/常驻实例(消除扩容冷启动)
az functionapp config set --name <app> --resource-group <rg> \
--prewarmed-instance-count 3
az functionapp config set --name <app> --resource-group <rg> \
--minimum-elastic-instance-count 2
.NET 隔离工作进程 HTTP 触发(DI + 统一错误处理):
// Program.cs
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults()
.ConfigureServices(services =>
{
services.AddApplicationInsightsTelemetryWorkerService();
services.ConfigureFunctionsApplicationInsights();
services.AddHttpClient(); // 防 socket 耗尽
services.AddSingleton<IMyService, MyService>();
})
.Build();
host.Run();
// HttpTriggerFunction.cs
public class HttpTriggerFunction(ILogger<HttpTriggerFunction> logger, IMyService service)
{
[Function("HttpTrigger")]
public async Task<HttpResponseData> Run(
[HttpTrigger(AuthorizationLevel.Function, "get", "post")] HttpRequestData req)
{
try {
var result = await service.ProcessAsync(req);
var resp = req.CreateResponse(HttpStatusCode.OK);
await resp.WriteAsJsonAsync(result);
return resp;
} catch (Exception ex) {
logger.LogError(ex, "Error processing request");
var resp = req.CreateResponse(HttpStatusCode.InternalServerError);
await resp.WriteAsJsonAsync(new { error = "Internal server error" });
return resp;
}
}
}
Node.js v4(代码注册触发器,无 function.json):
import { app, HttpRequest, HttpResponseInit, InvocationContext } from "@azure/functions";
export async function httpTrigger(request: HttpRequest, context: InvocationContext): Promise<HttpResponseInit> {
const name = request.query.get("name") || (await request.text()) || "world";
return { status: 200, jsonBody: { message: `Hello, ${name}!` } };
}
app.http("httpTrigger", { methods: ["GET", "POST"], authLevel: "function", handler: httpTrigger });
app.timer("timerTrigger", { schedule: "0 */5 * * * *", handler: async (_t, c) => c.log("tick") });
Python v2(装饰器,强制 Linux 托管):
import azure.functions as func
app = func.FunctionApp(http_auth_level=func.AuthLevel.FUNCTION)
@app.route(route="hello", methods=["GET", "POST"])
async def http_trigger(req: func.HttpRequest) -> func.HttpResponse:
name = req.params.get("name") or "World"
return func.HttpResponse(json.dumps({"message": f"Hello, {name}!"}), mimetype="application/json")
@app.queue_trigger(arg_name="msg", queue_name="myqueue", connection="AzureWebJobsStorage")
def queue_trigger(msg: func.QueueMessage) -> None:
logging.info(msg.get_body().decode("utf-8"))
Durable Functions——函数链 + 长任务异步:编排函数 [OrchestrationTrigger] TaskOrchestrationContext 内顺序 await context.CallActivityAsync(...),状态自动持久化、瞬时失败自动重试、可跨进程重启存活;HTTP 起始函数注入 [DurableClient] DurableTaskClient,ScheduleNewOrchestrationInstanceAsync 后 return client.CreateCheckStatusResponse(req, instanceId) 立即返回,客户端轮询 statusQueryGetUri。扇出扇入:var tasks = items.Select(i => context.CallActivityAsync<R>("Act", i)); var results = await Task.WhenAll(tasks);。
队列触发毒消息(host.json 队列配置):
{ "version": "2.0", "extensions": { "queues": {
"visibilityTimeout": "00:00:30", "batchSize": 16, "maxDequeueCount": 5 } } }
锋利边缘(高危):
IHttpClientFactory(services.AddHttpClient<T>)或静态客户端;CosmosClient/BlobServiceClient/ServiceBusClient 同理用 DI/静态。.Result/.Wait()/Thread.Sleep 占住线程,高并发死锁。全程 await + await Task.Delay(...);只在入口 MainAsync().GetAwaiter().GetResult()。FunctionName→Function、HttpRequest→HttpRequestData、IActionResult→HttpResponseData、ILogger 改构造注入、补 Program.cs。中危:
functionTimeout: 00:10:00(消费计划上限),更长用 Premium(默认 30 分钟,可去除即无界)、Durable Functions 或队列分块。ILogger<T> 不输出日志:本地/App Insights 可能丢日志。Program.cs 配 AddApplicationInsightsTelemetryWorkerService() + ConfigureFunctionsApplicationInsights();可靠起见用 context.GetLogger<T>();本地查 local.settings.json 的 APPLICATIONINSIGHTS_CONNECTION_STRING。...Worker.Extensions.*,func host start --verbose 确认识别。--prewarmed-instance-count、用 Lazy<T>/连接池、必要时 --minimum-elastic-instance-count(常驻、最贵)。校验清单(部署前自检):
.Result/.Wait()/Thread.Sleep(用 await / Task.Delay)。using 包裹 HttpClient(用 IHttpClientFactory/静态);隔离工作进程的 HttpTrigger 必须带 [Function] 属性;生产 Anonymous 授权级别需 APIM/其他鉴权兜底。FunctionName 属性应考虑迁移隔离工作进程。采编自 sickn33/antigravity-awesome-skills(MIT)。原 skill 标注上游来源为 vibeship-spawner-skills(Apache 2.0)。
What SKILL.md sets; muted values are Claude Code's defaults
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/ 目录/amazon-alexa-skill-builder当需要用 ASK CLI + AWS Lambda 开发 Amazon Alexa 语音技能、并以 Claude 作为对话大脑(含 DynamoDB 记忆、Polly 语音、APL 屏显、Smart Home 控制)时使用;做交互模型/Lambda 处理器/部署脚本的搭建与产出;不适用于纯网页/移动 App 或非 Alexa 平台语音助手;触发词:Alexa、ASK CLI、语音技能、Smart Home/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 爬虫/10-platform:azure-functions-serverlessfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platformOther plugins' skills for the same job