Skip to content
Back to skills

Effect Schema

ASecurity

Define Effect schemas that are verified against domain types. Use when authoring or updating Effect Schema definitions, or when the user mentions schema/type parity, satisfies, or tsafe Equals checks.

  • 666 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 8, 2026
tools

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill effect-schema --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Effect Schema?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Effect Schema
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-effect-schema/badge)](https://www.skillsdirectory.com/skills/majiayu000-effect-schema)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: effect-schema
description: Define Effect schemas that are verified against domain types. Use when authoring or updating Effect Schema definitions, or when the user mentions schema/type parity, satisfies, or tsafe Equals checks.
---

# Effect Schema Type Parity

## Instructions
- Define the domain type first (prefer `interface`), then define the schema and assert parity.
- Always use `satisfies Schema.Schema<YourType, any>` on the schema.
- Add `assert<Equals<typeof YourSchema.Type, Readonly<YourType>>>()` using `tsafe`.
- If the `assert<Equals<...>>` isn't typed correctly but the `satisfies` is, you can optionally add the `_check1/_check2` assignments with `void` (see `ZerospinCommandSchema`).
- When validating unknown input against an Effect schema, prefer `validateUnknown` from `zerospin` if available.

## Example
```ts
import type { Equals } from 'tsafe';

import { Schema } from 'effect';
import { assert } from 'tsafe';

export interface IFoo {
  bar: string;
}

export const ZFoo = Schema.Struct({
  bar: Schema.String,
}) satisfies Schema.Schema<IFoo, any>;

const _check1: typeof ZFoo.Type = {} as IFoo;
const _check2: IFoo = {} as typeof ZFoo.Type;
void _check1;
void _check2;
assert<Equals<typeof ZFoo.Type, Readonly<IFoo>>>();
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.