write-script-nativets

Writes native TypeScript scripts for Windmill with no external dependencies.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to write and run native TypeScript scripts inside Windmill without any external dependencies, streamlining automation inside the platform.

Core Features & Use Cases

  • Native TypeScript execution with fetch only - no external imports
  • Resource-aware scripting via Windmill RT namespace to access credentials and config
  • Integrates with Windmill tooling to generate metadata and deploy scripts
  • Use Case: build lightweight data-fetching utilities that run in a flow and consume workspace resources

Quick Start

Place a file in the skill's scripts/ directory containing an exported async function main(...) and follow the workflow to generate metadata and push to Windmill: run wmill script generate-metadata, then wmill sync push.

Frequently Asked Questions about write-script-nativets

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

FAQPage Schema
How do I write TypeScript scripts without external dependencies in Windmill?

Native TypeScript scripts in Windmill run without imports—only fetch is available for HTTP requests. Export an async main function, use the RT namespace to access workspace resources and credentials, then run wmill script generate-metadata and wmill sync push to deploy.

Can I use fetch to make API calls in Windmill TypeScript scripts?

Yes, fetch is the sole HTTP client available in native TypeScript scripts. It works directly without imports, making it ideal for lightweight data-fetching utilities that consume workspace resources in flows.

How do I access credentials and configuration in a Windmill TypeScript script?

Resource values pass through Windmill's RT namespace, which provides access to workspace credentials and config without explicit imports. Reference them in your exported async main function parameters.

What's the workflow for deploying a TypeScript script to Windmill?

Place your script with an exported async main function in the scripts/ directory, run wmill script generate-metadata to create frontmatter metadata, then execute wmill sync push to deploy it to Windmill.

When should I use native TypeScript scripts instead of importing external packages?

Native scripts suit lightweight automation tasks—data fetching, resource-driven flows, and preprocessing—where external dependencies add overhead. Use them when fetch and built-in TypeScript features satisfy your needs.

Do native TypeScript scripts work for both flows and preprocessor tasks in Windmill?

Yes, native TypeScript execution applies to both flows and preprocessor tasks. Each runs with fetch-only HTTP access and RT namespace resource bindings, enforcing the exported async main function pattern.