AgentSkillsCN

modal-deploy

将执行脚本部署至Modal云平台。当用户希望部署至Modal、将代码推送至云端,或更新Modal函数时使用此功能。

SKILL.md
--- frontmatter
name: modal-deploy
description: Deploy execution scripts to Modal cloud. Use when user asks to deploy to Modal, push code to cloud, or update Modal functions.
allowed-tools: Bash, Read, Write, Edit, Glob, Grep

Modal Cloud Deployment

Goal

Deploy execution scripts to Modal for serverless cloud execution.

Deploy Command

bash
modal deploy execution/modal_webhook.py

Key Endpoints

EndpointPurpose
directiveExecute a directive by slug
list_webhooksList available webhooks
general_agentRun general agent tasks
scrape_leadsLead scraping endpoint
generate_proposalProposal generation
youtube_outliersYouTube outlier scraping

Adding New Functions

  1. Add function to execution/modal_webhook.py
  2. Decorate with @app.function() or @app.function(schedule=modal.Cron(...))
  3. Deploy: modal deploy execution/modal_webhook.py

Environment

Modal secrets are configured in the Modal dashboard, not local .env.

Cron Jobs

python
@app.function(schedule=modal.Cron("0 * * * *"))  # Every hour
def my_scheduled_function():
    pass