.claude/skills/alicloud-fc/SKILL.md
Manage Alibaba Cloud Function Compute (FC) 3.0 using the @alicloud/fc20230330 TypeScript SDK. Use when working with serverless functions on Alibaba Cloud, including function CRUD, invocation, versions, aliases, triggers (HTTP/Timer/OSS/CDN/MNS), async invocation, concurrency and scaling configs, provisioned instances, custom domains, layers, VPC bindings, sessions, and resource tagging. Covers all 67 APIs of the FC 20230330 version.
npx skillsauth add agents-infrastructure/licell alicloud-fcInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manage serverless functions, triggers, aliases, layers, custom domains, scaling, and async invocations via the @alicloud/fc20230330 TypeScript SDK.
npm install @alicloud/fc20230330 @alicloud/openapi-core @darabonba/typescript
export ALIBABA_CLOUD_ACCESS_KEY_ID="<your-key-id>"
export ALIBABA_CLOUD_ACCESS_KEY_SECRET="<your-key-secret>"
export ALIBABA_CLOUD_REGION_ID="cn-hangzhou"
See scripts/setup_client.ts for a reusable client factory, and references/quickstart.md for full setup including regions, runtimes, error handling, and pagination.
import Client from '@alicloud/fc20230330';
import { Config } from '@alicloud/openapi-core';
const client = new Client(new Config({
accessKeyId: process.env.ALIBABA_CLOUD_ACCESS_KEY_ID,
accessKeySecret: process.env.ALIBABA_CLOUD_ACCESS_KEY_SECRET,
regionId: 'cn-hangzhou',
endpoint: 'cn-hangzhou.fc.aliyuncs.com',
}));
| Domain | APIs | Key Operations | Reference | |--------|------|----------------|-----------| | Function | 12 | createFunction, getFunction, invokeFunction, publishFunctionVersion | references/function.md | | Alias | 5 | createAlias, updateAlias, listAliases | references/alias.md | | Trigger | 5 | createTrigger, getTrigger, listTriggers | references/trigger.md | | Async Invocation | 7 | putAsyncInvokeConfig, listAsyncTasks, stopAsyncTask | references/async.md | | Concurrency & Scaling | 12 | putConcurrencyConfig, putScalingConfig, putProvisionConfig | references/concurrency-scaling.md | | Custom Domain | 5 | createCustomDomain, updateCustomDomain, listCustomDomains | references/custom-domain.md | | Layer | 7 | createLayerVersion, listLayers, putLayerACL | references/layer.md | | Instance & Session | 6 | listInstances, createSession, listSessions | references/instance-session.md | | VPC Binding | 3 | createVpcBinding, listVpcBindings | references/vpc.md | | Tag & Resource | 5 | tagResources, listTagResources, describeRegions | references/tag-resource.md |
FC 3.0 uses RESTful style. Path parameters (e.g., functionName) are direct method arguments:
// getFunction(functionName, request)
const { body } = await client.getFunction('my-func', { qualifier: 'LATEST' });
// deleteAlias(functionName, aliasName)
await client.deleteAlias('my-func', 'staging');
Create/Update APIs pass structured data via body:
await client.createFunction({
body: {
functionName: 'hello',
runtime: 'nodejs18',
handler: 'index.handler',
memorySize: 512,
timeout: 60,
code: { zipFile: base64Zip },
},
});
List APIs use nextToken + limit (not pageNo/pageSize):
let nextToken: string | undefined;
let all: any[] = [];
do {
const { body } = await client.listFunctions({ limit: 100, nextToken });
all.push(...(body.functions || []));
nextToken = body.nextToken;
} while (nextToken);
try {
await client.getFunction('my-func', {});
} catch (err: any) {
console.error(`Code: ${err.code}, Message: ${err.message}, RequestId: ${err.data?.RequestId}`);
}
createFunction → invokeFunction → publishFunctionVersion → createAlias
createFunction → createTrigger (HTTP/Timer/OSS/CDN)
updateFunction → publishFunctionVersion → updateAlias (additionalVersionWeight)
putAsyncInvokeConfig (destinationConfig) → invokeFunction → listAsyncTasks
putProvisionConfig → getProvisionConfig → listInstances
createCustomDomain (routeConfig, certConfig) → getCustomDomain
createLayerVersion → updateFunction (layers) → putLayerACL
putScalingConfig → putConcurrencyConfig → getScalingConfig
See references/workflows.md for detailed workflow examples with full code.
Load the corresponding reference file for parameter details:
references/function.mdreferences/alias.mdreferences/trigger.mdreferences/async.mdreferences/concurrency-scaling.mdreferences/custom-domain.mdreferences/layer.mdreferences/instance-session.mdreferences/vpc.mdreferences/tag-resource.mdEach reference file contains per-API documentation with method signatures and parameter tables.
See scripts/examples.ts for ready-to-use code covering:
tools
Deploy and manage Alibaba Cloud Serverless applications using the licell CLI. Covers deploy, release, functions, env vars, domains, DNS, logs, OSS, database, cache, and Supabase.
development
Manage Alibaba Cloud VPC networking using the @alicloud/vpc20160428 TypeScript SDK. Use when working with virtual private clouds, VSwitches, route tables, EIPs, NAT gateways, VPN gateways, Express Connect, BGP routing, network ACLs, flow logs, traffic mirroring, IPv6, HAVIP, gateway endpoints, and resource tagging. Covers all 396 APIs of the VPC 20160428 version.
development
Manage Alibaba Cloud Redis (Tair / R-KVStore) using the @alicloud/r-kvstore20150101 TypeScript SDK. Use when working with Redis or Tair instances, accounts, backups, security (whitelist/SSL/TDE/audit), parameters, monitoring, cluster scaling, direct connection, Tair Custom instances, and resource tagging. Covers all 157 APIs of the R-KVStore 20150101 version.
tools
Manage Alibaba Cloud RDS using the @alicloud/rds20140815 TypeScript SDK. Use when working with relational database instances (MySQL, PostgreSQL, SQL Server, MariaDB), accounts, databases, backups, security, monitoring, parameters, read-only instances, database proxy, migration, cross-region DR, PostgreSQL extensions, RDS Custom instances, and resource tagging. Covers all 398 APIs of the RDS 20140815 version.