Communitygithub.com

aiagentwithdhruv/skills

將執行腳本部署至 Modal 雲端。當使用者要求部署到 Modal、將程式碼推送至雲端或更新 Modal 函式時使用。

skills 是什麼?

此技能讓 AI 代理能夠直接將 Python 執行腳本部署到 Modal 的無伺服器雲端執行環境。它支援使用 `modal deploy` 命令進行單一檔案部署(預設為 `execution/modal_webhook.py`),並自動更新 API 端點,例如 `directive`、`list_webhooks` 和 `general_agent`。開發者只需在腳本中使用 `@app.function()` 裝飾器即可新增函式,並可透過 `modal.Cron(...)` 設定排程任務。部署後,技能會回傳成功狀態與所有上線的端點 URL,讓 AI 代理能進一步組合運用(例如與 `add-webhook` 技能串接)。此工具適合需要快速將程式碼推送至生產環境、管理無伺服器 Webhook 或自動化定期任務的 AI 代理工作流程。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aiagentwithdhruv/skills/tree/HEAD/modal-deploy

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Modal 雲端部署

目標

將執行腳本部署至 Modal,以進行無伺服器雲端執行。

部署指令

modal deploy execution/modal_webhook.py

主要端點

端點用途
directive依 slug 執行指令
list_webhooks列出可用的 webhook
general_agent執行通用代理任務
scrape_leads潛在客戶爬取端點
generate_proposal提案產生
youtube_outliersYouTube 異常資料爬取

新增函式

  1. 將函式加入 execution/modal_webhook.py
  2. 使用 @app.function() 或 @app.function(schedule=modal.Cron(...)) 裝飾
  3. 部署:modal deploy execution/modal_webhook.py

環境變數

Modal 機密需在 Modal 儀表板上設定,而非本地的 .env。

排程任務

@app.function(schedule=modal.Cron("0 * * * *"))  # 每小時
function my_scheduled_function():
    pass

結構

輸入

名稱類型必填說明
filefile_path否要部署的檔案(預設:execution/modal_webhook.py)

輸出

名稱類型說明
deployedboolean部署是否成功
endpointsarray已部署的端點 URL 列表

憑證

名稱來源
MODAL_TOKEN_IDModal 儀表板
MODAL_TOKEN_SECRETModal 儀表板

可組合搭配

與此技能能良好串接的技能:add-webhook

費用

Modal 運算(按用量計費)

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

aiagentwithdhruv/skills

Add new Modal webhooks for event-driven execution. Use when user asks to create a webhook, add an endpoint, or set up event triggers.

aiagentwithdhruv/skills

Answer Euron Gen AI Bootcamp doubts instantly. Covers Euri API setup across all frameworks (Python, LangChain, OpenAI SDK, TypeScript, n8n, curl), MCP server setup, common errors, model recommendations, and token limits. Use when someone in the bootcamp asks a question.

aiagentwithdhruv/skills

Manage emails across multiple Gmail accounts with unified tooling. Use when user asks to check email, read inbox, label emails, archive messages, or manage Gmail across accounts.

aiagentwithdhruv/skills

Auto-label Gmail emails into Action Required, Waiting On, and Reference categories. Use when user asks to label emails, triage inbox, categorize emails, or organize Gmail.

aiagentwithdhruv/skills

Scrape Google Maps for B2B leads with deep website enrichment and contact extraction. Use when user asks to find local businesses, scrape Google Maps, generate contractor lists, or build local service business databases.

aiagentwithdhruv/skills

Run Claude orchestrator locally with Cloudflare tunneling. Use when user asks to run locally, start local server, or test webhooks locally.

aiagentwithdhruv/skills

MCP server for AI-powered macOS control — apps, display, audio, files, screenshots, clipboard

aiagentwithdhruv/skills

Scrape and verify business leads using Apify, classify with LLM, enrich emails, and save to Google Sheets. Use when user asks to find leads, scrape businesses, generate prospect lists, or build lead databases for any industry or location.

aiagentwithdhruv/skills

Query Skool community content using RAG pipeline with vector search. Use when user asks to search Skool knowledge, find community answers, or query Skool content.

aiagentwithdhruv/skills

Scrape Upwork jobs and generate personalized proposals with cover letters. Use when user asks to find Upwork jobs, create Upwork proposals, or apply to Upwork listings.

相關技能