modal-function-sync
Installation
SKILL.md
Modal Function Sync
Overview
Use this skill to add or modify Modal functions in modal_functions, register them, and locally sync the generated client into win.
Auto-generation rules
modal_functionsis the source of truth; never implement Modal entrypoints directly inwin.services/modal/client_generated.pyis generated from themodal_functionsregistry; do not edit it by hand.- Sync is local-first from the sibling checkout with
scripts/local/sync_win_modal_client.sh. - Check drift without mutating
winwithscripts/local/check_win_modal_client_drift.sh. - CI validates and deploys Modal functions; it does not commit generated client files into
win. - Generate locally to
tmp/client_generated.pyfor fast validation without dirtyingwin. - Generate into
../win/services/modal/client_generated.pythrough the local sync wrapper before testingwinwrappers/call sites. - Stable Modal runtime secrets should default to the Key Vault -> manifest -> Modal sync flow, not one-off manual Modal secret updates.