/cmds-cc/skills:wmill-native-triggerfrom cmds-cc/skills
Guidance for adding native trigger services to Windmill. Use when implementing or modifying native trigger integrations across the backend and frontend.
Ships in cmds-cc/skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill provides comprehensive guidance for adding new native trigger services to Windmill. Native triggers allow external services (like Nextcloud, Google Drive, etc.) to trigger Windmill scripts/flows via webhooks or push notifications.
The native trigger system consists of:
windmill-native-triggers crate| Component | Path |
|---|---|
Core module with External trait | backend/windmill-native-triggers/src/lib.rs |
| Generic CRUD handlers | backend/windmill-native-triggers/src/handler.rs |
| Background sync logic | backend/windmill-native-triggers/src/sync.rs |
| OAuth/workspace integration | backend/windmill-native-triggers/src/workspace_integrations.rs |
| Re-export shim (windmill-api) | backend/windmill-api/src/native_triggers/mod.rs |
| TriggerKind enum | backend/windmill-common/src/triggers.rs |
| JobTriggerKind enum | backend/windmill-common/src/jobs.rs |
| Frontend service registry | frontend/src/lib/components/triggers/native/utils.ts |
| Frontend trigger utilities | frontend/src/lib/components/triggers/utils.ts |
| Trigger badges (icons + counts) | frontend/src/lib/components/graph/renderers/triggers/TriggersBadge.svelte |
| Workspace integrations UI | frontend/src/lib/components/workspaceSettings/WorkspaceIntegrations.svelte |
| OAuth config form component | frontend/src/lib/components/workspaceSettings/OAuthClientConfig.svelte |
| OpenAPI spec | backend/windmill-api/openapi.yaml |
| Reference: Nextcloud module | backend/windmill-native-triggers/src/nextcloud/ |
| Reference: Google module | backend/windmill-native-triggers/src/google/ |
The native trigger code lives in the windmill-native-triggers crate (backend/windmill-native-triggers/). The windmill-api crate re-exports everything via a shim:
// backend/windmill-api/src/native_triggers/mod.rs
pub use windmill_native_triggers::*;
All new service modules go in backend/windmill-native-triggers/src/.
External TraitEvery native trigger service implements the External trait defined in lib.rs:
#[async_trait]
pub trait External: Send + Sync + 'static {
type ServiceConfig: Debug + DeserializeOwned + Serialize + Send + Sync;
type TriggerData: Debug + Serialize + Send + Sync;
type OAuthData: DeserializeOwned + Serialize + Clone + Send + Sync;
type CreateResponse: DeserializeOwned + Send + Sync;
const SUPPORT_WEBHOOK: bool;
const SERVICE_NAME: ServiceName;
const DISPLAY_NAME: &'static str;
const TOKEN_ENDPOINT: &'static str;
const REFRESH_ENDPOINT: &'static str;
const AUTH_ENDPOINT: &'static str;
async fn create(&self, w_id, oauth_data, webhook_token, data, db, tx) -> Result<Self::CreateResponse>;
async fn update(&self, w_id, oauth_data, external_id, webhook_token, data, db, tx) -> Result<serde_json::Value>;
async fn get(&self, w_id, oauth_data, external_id, db, tx) -> Result<Self::TriggerData>;
async fn delete(&self, w_id, oauth_data, external_id, db, tx) -> Result<()>;
async fn exists(&self, w_id, oauth_data, external_id, db, tx) -> Result<bool>;
async fn maintain_triggers(&self, db, workspace_id, triggers, oauth_data, synced, errors);
fn external_id_and_metadata_from_response(&self, resp) -> (String, Option<serde_json::Value>);
async fn prepare_webhook(&self, db, w_id, headers, body, script_path, is_flow) -> Result<PushArgsOwned>;
fn service_config_from_create_response(&self, data, resp) -> Option<serde_json::Value>;
fn additional_routes(&self) -> axum::Router;
async fn http_client_request<T, B>(&self, url, method, workspace_id, tx, db, headers, body) -> Result<T>;
}
Key design points:
update() returns serde_json::Value - the resolved service_config to storemaintain_triggers() - periodic background maintenancelist_all() in the trait - services that need it implement it privatelyPath A: Short (Google pattern) - service_config_from_create_response() returns Some(config):
create() registers on external serviceexternal_id_and_metadata_from_response() extracts the IDservice_config_from_create_response() builds the config directlyPath B: Long (Nextcloud pattern) - service_config_from_create_response() returns None:
create() registers on external serviceexternal_id_and_metadata_from_response() extracts the IDupdate() is called to fix the webhook URL with the now-known external_idupdate() returns the resolved service_config| Table | What's Stored |
|---|---|
workspace_integrations | oauth_data JSON with base_url, client_id, client_secret, instance_shared flag; resource_path pointing to the variable |
variable | Encrypted access_token (at the path stored in resource_path) |
account | refresh_token, keyed by workspace_id + client (service name) |
Create migration: backend/migrations/YYYYMMDDHHMMSS_newservice_trigger.up.sql
Add variants to TriggerKind and JobTriggerKind enums.
Create backend/windmill-native-triggers/src/newservice/ with mod.rs and external.rs.
Add service module and ServiceName enum variant with all match arms.
Add service to generate_native_trigger_routers().
Add service to sync_all_triggers().
Add to NATIVE_TRIGGER_SERVICES in frontend/src/lib/components/triggers/native/utils.ts.
Create frontend/src/lib/components/triggers/native/services/newservice/NewServiceTriggerForm.svelte.
Create frontend/src/lib/components/icons/NewServiceIcon.svelte.
Ensure dynamic loading of form components.
Add service to supportedServices map.
Update triggerIconMap, triggerDisplayNamesMap, triggerTypeOrder, getLightConfig(), getTriggerLabel(), jobTriggerKinds, countPropertyMap, triggerSaveFunctions.
Import icon, add to baseConfig with countKey, add to allTypes array.
Add {:else if} case for new service.
Add availability state and dropdown entry.
Add service to nativeTriggerServices map in deleteDeployedTrigger().
Add to JobTriggerKind enum and regenerate types.
cargo check -p windmill-native-triggers --features native_trigger passesnpx svelte-check --threshold error passes (in frontend/)backend/windmill-native-triggers/src/nextcloud/backend/windmill-native-triggers/src/google/What SKILL.md sets; muted values are Claude Code's defaults
22 skills in this plugin
/audiocodes-cliUse when troubleshooting VoIP on AudioCodes Mediant VE SBCs — call statistics, active alarms, device health checks, and SIP trace capture via the REST API. Covers device configuration management, multi-format output, and connectivity diagnostics./cisco-axl-cliUse when managing Cisco CUCM via the cisco-axl CLI — phones, lines, route patterns, partitions, calling search spaces, SIP profiles, and any AXL operation. Covers CRUD operations, SQL queries, operation discovery, bulk provisioning from CSV, and raw AXL execute commands./cisco-cdr-mcpUse when querying Cisco CUCM call detail records via the cisco-cdr MCP server — searching CDRs, tracing calls, finding poor-quality calls, generating call statistics, and checking processor health. Covers all cisco-cdr MCP tools for CDR/CMR analysis with AXL enrichment.Other plugins' skills for the same job
Generated from the plugin's indexed repository (cmds-cc/skills) — no native marketplace selected
npx claudepluginhub p/sieteunoseis-skills-automate-builders