Agent skill

Wrdn Effect Schema Inferred Types

by UsefulSoftwareCo in UsefulSoftwareCo/executor

Replace duplicated TypeScript shape declarations next to Effect Schema definitions with schema-derived types.

MITAuto-check: notes

Install Wrdn Effect Schema Inferred Types

skills CLI
$ npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-schema-inferred-types -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install UsefulSoftwareCo/executor wrdn-effect-schema-inferred-types --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/wrdn-effect-schema-inferred-types .claude/skills/wrdn-effect-schema-inferred-types && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
wrdn-effect-schema-inferred-types
GitHub stars
4.1k
Token cost
~1k tokens
SKILL.md length
377 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Replace duplicated TypeScript shape declarations next to Effect Schema definitions with schema-derived types.

  • Works in 5 steps: Find the runtime schema. Look for… → Find the duplicate static shape. A… → Check export consumers. If callers… → …
  • Review flags an interface/type alias that repeats fields already described by a nearby Schema.Struct
  • SKILL.md covers Trace before changing, Fix shape, Bad and Good, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Wrdn Effect Schema Inferred Types is an agent skill from UsefulSoftwareCo/executor. Replace duplicated TypeScript shape declarations next to Effect Schema definitions with schema-derived types. Use when lint or review flags an interface/type alias that repeats fields already described by a nearby Schema.Struct, Schema.Union, Schema.TaggedStruct, or other Effect Schema model.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with TypeScript. The repository describes itself as: The missing integration layer for AI agents. Let them call any OpenAPI / MCP / GraphQL / custom js functions in secure environment. The licence is MIT.

When your agent uses it

  • Review flags an interface/type alias that repeats fields already described by a nearby Schema.Struct
  • Schema.TaggedStruct
  • Other Effect Schema model

Example prompts

  • “/wrdn-effect-schema-inferred-types”

Requirements

  • Pre-approved tools (allowed-tools): Read, Grep, Glob, Bash

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Find the runtime schema. Look for Schema.Struct, Schema.Union, Schema.TaggedStruct, Schema.Record, Schema.Array, or Schema.decodeTo.
  2. Find the duplicate static shape. A nearby interface X or type X = { ... } repeats the same fields, nullability, optionality, or literals.
  3. Check export consumers. If callers import the type, keep the exported type name stable and change only its definition.
  4. Confirm the schema is the source of truth. If the manual type is wider/narrower than runtime parsing, decide whether the schema or…
  5. Handle recursion narrowly. Recursive schemas may need one private recursive helper type to annotate Schema.suspend; keep exported domain…

What it can do on your machine

Read from SKILL.md and the folder at commit 9ef04e9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Glob
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Wrdn Effect Schema Inferred Types loads about 1k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 377 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Grep, Glob, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from UsefulSoftwareCo/executor at commit 9ef04e9, republished under its MIT licence (© UsefulSoftwareCo). 377 words, ~1,029 tokens.

Download SKILL.mdSave it as .claude/skills/wrdn-effect-schema-inferred-types/SKILL.md (or your agent's skills folder).
name
wrdn-effect-schema-inferred-types
description
Replace duplicated TypeScript shape declarations next to Effect Schema definitions with schema-derived types. Use when lint or review flags an interface/type alias that repeats fields already described by a nearby Schema.Struct, Schema.Union, Schema.TaggedStruct, or other Effect Schema model.
allowed-tools
Read, Grep, Glob, Bash

You fix one pattern: a runtime Schema and a manual TypeScript type describe the same shape.

The preferred boundary is schema-first. Define the schema once, export type X = typeof XSchema.Type or type X = Schema.Schema.Type<typeof XSchema>, and make domain code consume the inferred type. This prevents drift between parsing and static types.

Trace before changing

  1. Find the runtime schema. Look for Schema.Struct, Schema.Union, Schema.TaggedStruct, Schema.Record, Schema.Array, or Schema.decodeTo.
  2. Find the duplicate static shape. A nearby interface X or type X = { ... } repeats the same fields, nullability, optionality, or literals.
  3. Check export consumers. If callers import the type, keep the exported type name stable and change only its definition.
  4. Confirm the schema is the source of truth. If the manual type is wider/narrower than runtime parsing, decide whether the schema or consumers are wrong before replacing it.
  5. Handle recursion narrowly. Recursive schemas may need one private recursive helper type to annotate Schema.suspend; keep exported domain types inferred from the schema.

Fix shape

  • Move the schema before the exported type alias when needed.
  • Replace duplicated exported interfaces with aliases derived from the schema:
ts
export const SourceSchema = Schema.Struct({
  id: SourceId,
  name: Schema.String,
  enabled: Schema.Boolean,
});

export type Source = typeof SourceSchema.Type;
  • Use Schema.Schema.Type<typeof XSchema> when it reads better for non-exported or generic schemas:
ts
type IntrospectionResult = Schema.Schema.Type<typeof IntrospectionResultModel>;
  • If using Schema.decodeTo, infer the domain type from the decoded/domain schema, not from the raw transport schema.
  • Do not keep a manual interface solely for documentation. Add schema annotations or comments only when they clarify behavior the schema cannot express.
Show full SKILL.md (141 more words)Show less

Bad

ts
export interface StoredSource {
  readonly id: string;
  readonly url: string;
  readonly headers: readonly Header[];
}

export const StoredSourceSchema = Schema.Struct({
  id: Schema.String,
  url: Schema.String,
  headers: Schema.Array(HeaderSchema),
});

Good

ts
export const StoredSourceSchema = Schema.Struct({
  id: Schema.String,
  url: Schema.String,
  headers: Schema.Array(HeaderSchema),
});

export type StoredSource = typeof StoredSourceSchema.Type;

Recursive schemas

Use a private helper only where TypeScript needs an annotation for self-reference:

ts
interface TypeRefRecursive {
  readonly kind: string;
  readonly ofType: TypeRefRecursive | null;
}

const TypeRefSchema: Schema.Codec<TypeRefRecursive> = Schema.Struct({
  kind: Schema.String,
  ofType: Schema.NullOr(Schema.suspend(() => TypeRefSchema)),
});

export type TypeRef = typeof TypeRefSchema.Type;

The exported domain type is still schema-derived. The private helper exists only to satisfy the recursive schema definition.

What not to report

  • Domain types that intentionally do not have a runtime schema.
  • Input builder types where the schema parses a different transport representation.
  • Branded IDs or opaque aliases that are used by schemas but are not themselves duplicate object shapes.
  • Private recursive helper types used only to type Schema.suspend, as long as exported consumer-facing types are inferred.

Output requirements

When reviewing, report:

  • File and line of the duplicated manual type.
  • Schema that already owns the shape.
  • Why the manual type can drift.
  • Fix: the exact inferred alias to use.

When editing, keep exported type names stable unless every caller is updated in the same change.

© UsefulSoftwareCo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/wrdn-effect-schema-inferred-types of UsefulSoftwareCo/executor.

Open the folder on GitHubat commit 9ef04e9

Compare with similar skills

Wrdn Effect Schema Inferred Types next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Wrdn Effect Schema Inferred Types compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Wrdn Effect Schema Inferred Types this skillUsefulSoftwareCo/executor4.1k—~1kAutomated safety check: NotesMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
MCP Server BuildershareAI-lab/learn-claude-code78k5 repos~1.2kAutomated safety check: PassMIT

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Nx Import

    nrwl/nx

    Import, merge, or combine repositories into an Nx workspace using nx import.

    29k GitHub starsUsed in 6 repos~3.5k tokens
    DevelopmentAuto-check passed

More from UsefulSoftwareCo/executor

All 21 skills in this repo
  • Effect Client Wrapper

    UsefulSoftwareCo/executor

    Pattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect.

    4.1k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • CLI Release

    UsefulSoftwareCo/executor

    Runbook for releasing the executor CLI package (stable and beta).

    4.1k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Effect Atom Optimistic Updates

    UsefulSoftwareCo/executor

    Pattern for implementing optimistic UI updates with effect-atom in this codebase.

    4.1k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Effect HTTP Testing

    UsefulSoftwareCo/executor

    Testing Effect HttpApi services end-to-end. An agent skill from UsefulSoftwareCo/executor.

    4.1k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Emulate

    UsefulSoftwareCo/executor

    Use the @executor-js/emulate service emulators (GitHub, Google, Stripe, Resend, WorkOS, …) to test integrations for real — full OpenAPI specs, working OAuth flows, mintable credentials, and a…

    4.1k GitHub stars~2.2k tokensUpdated today
    Auto-check: notes
  • Prod Telemetry

    UsefulSoftwareCo/executor

    Query Executor's production telemetry — Axiom traces (executor-cloud dataset), prod Postgres via PlanetScale, PostHog product analytics — through the Executor MCP.

    4.1k GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Works with

Questions about Wrdn Effect Schema Inferred Types

What does Wrdn Effect Schema Inferred Types do?

Replace duplicated TypeScript shape declarations next to Effect Schema definitions with schema-derived types. Wrdn Effect Schema Inferred Types is an agent skill from UsefulSoftwareCo/executor. Replace duplicated TypeScript shape declarations next to Effect Schema definitions with schema-derived types.

When should I use Wrdn Effect Schema Inferred Types?

Wrdn Effect Schema Inferred Types fits situations like: review flags an interface/type alias that repeats fields already described by a nearby Schema.Struct; schema.TaggedStruct; other Effect Schema model.

How do I install Wrdn Effect Schema Inferred Types in Claude Code?

Run `npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-schema-inferred-types -a claude-code`. Or copy the skill folder (.agents/skills/wrdn-effect-schema-inferred-types in UsefulSoftwareCo/executor) into .claude/skills/wrdn-effect-schema-inferred-types in your project. Claude Code loads it when a task matches its description.

How do I install Wrdn Effect Schema Inferred Types in Codex?

Run `npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-schema-inferred-types -a codex`. Or copy the skill folder (.agents/skills/wrdn-effect-schema-inferred-types in UsefulSoftwareCo/executor) into .agents/skills/wrdn-effect-schema-inferred-types in your project. Codex loads it when a task matches its description.

Can I use Wrdn Effect Schema Inferred Types in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add UsefulSoftwareCo/executor --skill wrdn-effect-schema-inferred-types -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/wrdn-effect-schema-inferred-types, .gemini/skills/wrdn-effect-schema-inferred-types, .github/skills/wrdn-effect-schema-inferred-types and .opencode/skills/wrdn-effect-schema-inferred-types in your project.

What does Wrdn Effect Schema Inferred Types need to run?

SKILL.md names no scripts, command-line tools or credentials: Wrdn Effect Schema Inferred Types is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Grep, Glob, Bash.

Does Wrdn Effect Schema Inferred Types access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Wrdn Effect Schema Inferred Types safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Wrdn Effect Schema Inferred Types use?

Wrdn Effect Schema Inferred Types is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Wrdn Effect Schema Inferred Types use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Wrdn Effect Schema Inferred Types?

Skills that share tags, products or a category with Wrdn Effect Schema Inferred Types: MCP Server Builder (anthropics/skills, 180k stars), Web Artifacts Builder (anthropics/skills, 180k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Wrdn Effect Schema Inferred Types?

UsefulSoftwareCo (a GitHub organization) maintains it in UsefulSoftwareCo/executor, which has 4,111 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 9, 2026.

Source: UsefulSoftwareCo/executor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.