About modal-deploy
modal-deploy is a skill for deploying execution scripts to Modal for serverless cloud runs. It supports webhook endpoints and scheduled functions, with secrets configured through the Modal dashboard.
Key features
- 01Deploy execution scripts
- 02Expose webhook endpoints
- 03Schedule functions
- 04Configure secrets in Modal
Use cases
- 01Run scripts in the cloud
- 02Trigger functions on a schedule
- 03Deploy lead-scraping or proposal endpoints
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ aiagentwithdhruv/ skills --skill modal-deployAfter installing, type/modal-deployin Claude Code to confirm it loaded.
Details
From the project READMEModal Cloud Deployment
Goal
Deploy execution scripts to Modal for serverless cloud execution.
Deploy Command
modal deploy execution/modal_webhook.py
Key Endpoints
| Endpoint | Purpose |
|---|---|
directive | Execute a directive by slug |
list_webhooks | List available webhooks |
general_agent | Run general agent tasks |
scrape_leads | Lead scraping endpoint |
generate_proposal | Proposal generation |
youtube_outliers | YouTube outlier scraping |
Adding New Functions
- Add function to
execution/modal_webhook.py - Decorate with
@app.function()or@app.function(schedule=modal.Cron(...)) - Deploy:
modal deploy execution/modal_webhook.py
Environment
Modal secrets are configured in the Modal dashboard, not local .env.
Cron Jobs
@app.function(schedule=modal.Cron("0 * * * *")) # Every hour
def my_scheduled_function():
pass
Schema
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
file | file_path | No | File to deploy (default: execution/modal_webhook.py) |
Outputs
| Name | Type | Description |
|---|---|---|
deployed | boolean | Whether deployment succeeded |
endpoints | array | List of deployed endpoint URLs |
Credentials
| Name | Source |
|---|---|
MODAL_TOKEN_ID | Modal dashboard |
MODAL_TOKEN_SECRET | Modal dashboard |
Composable With
Skills that chain well with this one: add-webhook
Cost
Modal compute (pay-per-use)
Comments
Markdown supported