ClaudeSuperPower

windsor-types

Command

Generate TypeScript type definitions for a Windsor.ai connector's data schema

Type this in Claude Code
/windsor-types
Claude can also invoke this on its own inherits all session tools

What it tells Claude to do

15 lines

The prompt this command injects, verbatim. Worth reading before you run it.

# /windsor-types

Generate TypeScript type definitions for a Windsor.ai connector's data schema.

## Instructions

1. Ask the user which connector to generate types for (or use the one they specify).
2. Call `get_connectors` to get the account ID.
3. Call `get_options` to get all available fields.
4. Call `get_fields` with all the field IDs to get their data types and descriptions.
5. Generate a TypeScript interface with:
   - JSDoc comments from the field descriptions
   - Correct TypeScript types mapped from Windsor field types (string, number, date, etc.)
   - An exported type name like `GoogleAdsRow`, `FacebookRow`, etc.
6. Write the file to the project (e.g. `src/types/windsor-{connector}.ts` or wherever types live in the project).

Shipped by 1 plugin

Installing any of these installs this command.

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Inherit all session tools

Declares no tool restrictions — inherits every session tool

~19 tokens of context used while enabled, before you invoke anything

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just commands.