Learn-skills.dev modal-deploy
Deploy execution scripts to Modal cloud. Use when user asks to deploy to Modal, push code to cloud, or update Modal functions.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/aiagentwithdhruv/skills/modal-deploy" ~/.claude/skills/neversight-learn-skills-dev-modal-deploy && rm -rf "$T"
manifest:
data/skills-md/aiagentwithdhruv/skills/modal-deploy/SKILL.mdsource content
Modal Cloud Deployment
Goal
Deploy execution scripts to Modal for serverless cloud execution.
Deploy Command
modal deploy execution/modal_webhook.py
Key Endpoints
| Endpoint | Purpose |
|---|---|
| Execute a directive by slug |
| List available webhooks |
| Run general agent tasks |
| Lead scraping endpoint |
| Proposal generation |
| YouTube outlier scraping |
Adding New Functions
- Add function to
execution/modal_webhook.py - Decorate with
or@app.function()@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_path | No | File to deploy (default: execution/modal_webhook.py) |
Outputs
| Name | Type | Description |
|---|---|---|
| boolean | Whether deployment succeeded |
| array | List of deployed endpoint URLs |
Credentials
| Name | Source |
|---|---|
| Modal dashboard |
| Modal dashboard |
Composable With
Skills that chain well with this one:
add-webhook
Cost
Modal compute (pay-per-use)