alicloud-compute-fc-serverless-devsAlibaba Cloud Function Compute (FC 3.0) skill for installing and using Serverless Devs to create, deploy, invoke, and remove a Python function. Use when users need CLI-based FC quick start or Serverless Devs setup guidance.
Install via ClawdBot CLI:
clawdbot install cinience/alicloud-compute-fc-serverless-devsCategory: tool
全局安装(需要 sudo 权限):
sudo npm install @serverless-devs/s -g
sudo s -v
无 sudo 的替代方案(推荐在受限环境使用):
npx -y @serverless-devs/s -v
sudo s config add
选择 Alibaba Cloud (alibaba),按提示填写 AccountID、AccessKeyID、AccessKeySecret,并设置 alias。
使用命令行参数一次性写入密钥别名(无需交互):
s config add -a default --AccessKeyID <AK> --AccessKeySecret <SK> -f
如果使用环境变量,可将其注入命令(示例):
s config add -a default -kl AccessKeyID,AccessKeySecret -il ${ALIBABA_CLOUD_ACCESS_KEY_ID},${ALIBABA_CLOUD_ACCESS_KEY_SECRET} -f
或者使用 Serverless Devs 约定的环境变量 JSON(示例):
export default_serverless_devs_key='{\"AccountID\":\"<AccountID>\",\"AccessKeyID\":\"<AK>\",\"AccessKeySecret\":\"<SK>\"}'
s.yaml 中引用:
access: default_serverless_devs_key
sudo s init start-fc3-python
cd start-fc3-python
初始化完成后会生成 s.yaml、code/ 与 readme.md,可在 code/index.py 修改函数逻辑。
sudo s deploy
sudo s invoke -e "test"
sudo s remove
说明:FC 默认域名会强制添加 Content-Disposition: attachment,浏览器会触发下载。
需要通过自定义域名访问才能去掉该行为。
在 DNS 服务商处把域名解析到 FC 公网 CNAME:
<account_id>.<region_id>.fc.aliyuncs.com
示例(杭州地域):
1629965279769872.cn-hangzhou.fc.aliyuncs.com
注意:如果是根域名(例如 animus.run)且 DNS 不支持根域名 CNAME,
请使用 ALIAS/ANAME 记录,或改用 www.animus.run 子域名。
方式 A:在 s.yaml 中新增 fc3-domain 资源:
resources:
newsDomain:
component: fc3-domain
props:
region: cn-hangzhou
domainName: animus.run
protocol: HTTP
routeConfig:
routes:
- functionName: honnold-taipei101-news
qualifier: LATEST
methods:
- GET
- HEAD
path: /*
region 为示例默认值;若未确定最合适 Region,执行时应询问用户。
然后部署:
printf 'y\n' | npx -y @serverless-devs/s deploy
方式 B:使用控制台(Advanced Features > Custom Domains)创建自定义域名并配置路由。
DomainNameNotResolved:域名未解析到正确的 FC CNAME。InvalidICPLicense:中国大陆地域需要 ICP 备案且备案需接入阿里云。references/install_serverless_devs_and_docker.md。references/sources.mdGenerated Mar 1, 2026
Startups can use this skill to quickly deploy and test serverless Python functions for MVPs, such as APIs or data processing tasks. It enables fast iteration without managing infrastructure, reducing time-to-market for new features.
E-commerce platforms can deploy individual microservices like payment processing or inventory management as serverless functions. This skill simplifies deployment and scaling, ensuring high availability during peak shopping seasons.
IoT companies can use this skill to handle data ingestion and processing from devices via serverless functions. It allows for scalable, event-driven architectures that automatically respond to sensor data without manual intervention.
Media companies can deploy serverless functions to serve dynamic content or manage APIs, with custom domain binding to avoid browser download issues. This ensures seamless user experiences for web and mobile applications.
Businesses can build and offer serverless-based software-as-a-service solutions, using this skill for rapid deployment and updates. It reduces operational costs by leveraging pay-per-use pricing and automatic scaling.
Agencies can use this skill to provide consulting or custom development services for clients migrating to serverless architectures. It streamlines setup and deployment, enabling faster project delivery and reduced client overhead.
Companies can monetize APIs built with serverless functions, using this skill for efficient deployment and management. Custom domain binding ensures professional access, while scalable infrastructure handles variable traffic loads.
💬 Integration Tip
Ensure Node.js 14+ is installed and configure Alibaba Cloud credentials before deployment to avoid authentication errors.
Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.
Full desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag,...
Essential Docker commands and workflows for container management, image operations, and debugging.
Tool discovery and shell one-liner reference for sysadmin, DevOps, and security tasks. AUTO-CONSULT this skill when the user is: troubleshooting network issues, debugging processes, analyzing logs, working with SSL/TLS, managing DNS, testing HTTP endpoints, auditing security, working with containers, writing shell scripts, or asks 'what tool should I use for X'. Source: github.com/trimstray/the-book-of-secret-knowledge
Deploy applications and manage projects with complete CLI reference. Commands for deployments, projects, domains, environment variables, and live documentation access.
Monitor topics of interest and proactively alert when important developments occur. Use when user wants automated monitoring of specific subjects (e.g., product releases, price changes, news topics, technology updates). Supports scheduled web searches, AI-powered importance scoring, smart alerts vs weekly digests, and memory-aware contextual summaries.