write-script-deno

Writes and integrates Deno/TypeScript scripts into Windmill workflows.

17.5k|1.1k|Updated May 5, 2022
One-click install
npx skills add https://github.com/windmill-labs/windmill --skill write-script-deno
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-script-deno
Source: https://github.com/windmill-labs/windmill/tree/main/system_prompts/auto-generated/skills/write-script-deno
Command: npx skills add https://github.com/windmill-labs/windmill --skill write-script-deno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need a standardized approach to write and run Deno/TypeScript scripts inside Windmill workflows, ensuring consistency and easy deployment.

Core Features & Use Cases

  • Deno/TypeScript script template with a single async main function exported for Windmill execution
  • npm support via npm: prefix and native Deno libraries for seamless dependency management
  • Windmill integration with Resource Types (RT) and Windmill SDK for platform interactions
  • Use Case: Create automation scripts that process data, interact with resources, and run as part of flows in Windmill.

Quick Start

Place your TypeScript script in a file under the scripts/ directory and ensure it exports an async main function. Then run wmill script generate-metadata and wmill sync push to deploy.

Frequently Asked Questions about write-script-deno

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write TypeScript scripts that run in Windmill workflows?

Write TypeScript scripts for Windmill by exporting a single async main function in a file under the scripts/ directory. Use the Deno runtime with npm support via npm: prefix, integrate Windmill resources through the RT namespace, and deploy with wmill script generate-metadata and wmill sync push.

Can I use npm packages in Deno scripts on Windmill?

Yes, Deno scripts in Windmill support npm packages via the npm: prefix syntax, enabling seamless dependency management alongside native Deno libraries for building automation and data processing tasks.

What's the best way to integrate Windmill resources and the SDK into my TypeScript automation?

Access Windmill resources using the RT namespace and leverage the windmill-client SDK to interact with the platform. This standardized integration ensures consistency and enables platform interactions within your async main function.

How do I deploy a Deno script to Windmill after writing it?

After placing your TypeScript script in the scripts/ directory with an exported async main function, run wmill script generate-metadata to create metadata, then wmill sync push to deploy it into your Windmill workflows.

Does this approach support S3 operations and preprocessor hooks?

Yes, Deno/TypeScript scripts in Windmill support S3 operations and preprocessor hooks, enabling advanced data processing and workflow automation with resource interactions and custom preprocessing logic.