rule-schemas — for Claude Code rule-schemas, methodology-rules, community, for Claude Code, ide skills, z.infer, schemas, whenever, touches, runtime

v1.0.0

このスキルについて

TypeScript エージェントが堅牢なランタイム検証と規範的な型定義を必要とする場合に最適です。 ローカライズされた概要: Rule mapping for schemas # Rule schemas Apply this rule whenever work touches: .ts Zod is the runtime validation library for this project. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

機能

Apply this rule whenever work touches:
Define schemas close to the types they describe. A common pattern is to export both from the same
import { z } from 'zod';
export const VehicleSchema = z.object({
plate: z.string().min(7),

# 主なトピック

carrot-foundation carrot-foundation
[3]
[0]
更新日: 3/18/2026

Skill Overview

Start with fit, limitations, and setup before diving into the repository.

TypeScript エージェントが堅牢なランタイム検証と規範的な型定義を必要とする場合に最適です。 ローカライズされた概要: Rule mapping for schemas # Rule schemas Apply this rule whenever work touches: .ts Zod is the runtime validation library for this project. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

このスキルを使用する理由

Zodを使用してデータの完全性を確保し、ワークフローを自動化するエージェントを可能にします。`.ts`ファイル用の`z.infer`によるランタイム検証と型推論を提供します。

おすすめ

TypeScript エージェントが堅牢なランタイム検証と規範的な型定義を必要とする場合に最適です。

実現可能なユースケース for rule-schemas

ランタイム境界のデータを検証する
TypeScriptプロジェクトの規範的な型定義を生成する
Zodスキーマを使用してワークフロー検証を自動化する

! セキュリティと制限

  • Zodライブラリが必要
  • `.ts`ファイルを持つTypeScriptプロジェクトに限定される

About The Source

The section below comes from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

Labs デモ

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ とインストール手順

These questions and steps mirror the structured data on this page for better search understanding.

? よくある質問

rule-schemas とは何ですか?

TypeScript エージェントが堅牢なランタイム検証と規範的な型定義を必要とする場合に最適です。 ローカライズされた概要: Rule mapping for schemas # Rule schemas Apply this rule whenever work touches: .ts Zod is the runtime validation library for this project. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

rule-schemas はどうやって導入しますか?

次のコマンドを実行してください: npx killer-skills add carrot-foundation/methodology-rules/rule-schemas。Cursor、Windsurf、VS Code、Claude Code など19以上のIDEで使えます。

rule-schemas の主な用途は?

主な用途は次のとおりです: ランタイム境界のデータを検証する, TypeScriptプロジェクトの規範的な型定義を生成する, Zodスキーマを使用してワークフロー検証を自動化する。

rule-schemas に対応するIDEは?

このスキルは Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer に対応しています。統一された導入には Killer-Skills CLI を使えます。

rule-schemas に制限はありますか?

Zodライブラリが必要. `.ts`ファイルを持つTypeScriptプロジェクトに限定される.

このスキルの導入方法

  1. 1. ターミナルを開く

    プロジェクトディレクトリでターミナルまたはコマンドラインを開きます。

  2. 2. インストールコマンドを実行

    npx killer-skills add carrot-foundation/methodology-rules/rule-schemas を実行してください。CLI がIDEまたはエージェントを自動検出し、スキルを設定します。

  3. 3. スキルを使い始める

    このスキルはすぐに有効になります。現在のプロジェクトで rule-schemas をすぐ使えます。

! Source Notes

This page is still useful for installation and source reference. Before using it, compare the fit, limitations, and upstream repository notes above.

Upstream Repository Material

The section below comes from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

Upstream Source

rule-schemas

Install rule-schemas, an AI agent skill for AI agent workflows and automation. Explore features, use cases, limitations, and setup guidance.

SKILL.md
Readonly
Upstream Repository Material
The section below comes from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.
Upstream Source

Rule schemas

Apply this rule whenever work touches:

  • *.ts

Zod is the runtime validation library for this project. Schemas serve a dual purpose: they validate data at runtime boundaries and provide the canonical type definition via z.infer.

Schema definition

Define schemas close to the types they describe. A common pattern is to export both from the same file:

ts
1import { z } from 'zod'; 2 3export const VehicleSchema = z.object({ 4 plate: z.string().min(7), 5 weightKg: z.number().positive(), 6 type: z.enum(['truck', 'van', 'car']), 7}); 8 9export type Vehicle = z.infer<typeof VehicleSchema>;

Never create a separate interface Vehicle that duplicates the schema shape.

Validation strategy

Choose the right parse method based on the trust level of the data:

ts
1// External input (API payload, S3 object, SQS message) - handle errors 2const result = VehicleSchema.safeParse(rawPayload); 3if (!result.success) { 4 logger.warn('Invalid vehicle payload', result.error.flatten()); 5 return { error: 'INVALID_INPUT' }; 6} 7const vehicle = result.data; 8 9// Internal data (already validated upstream) - let it throw 10const vehicle = VehicleSchema.parse(trustedData);

Schema composition

Reuse schemas through composition rather than copy-pasting fields:

ts
1const BaseDocumentSchema = z.object({ 2 id: z.string().uuid(), 3 createdAt: z.string().datetime(), 4}); 5 6const CertificateSchema = BaseDocumentSchema.extend({ 7 issuer: z.string(), 8 validUntil: z.string().datetime(), 9});

Test data generation

Use zocker and the shared testing utilities to generate test data from schemas:

ts
1import { createStubFromSchema } from '@carrot-fndn/shared/testing'; 2 3const stubVehicle = createStubFromSchema(VehicleSchema);

This ensures test data always conforms to the current schema shape and evolves automatically when the schema changes.

関連スキル

Looking for an alternative to rule-schemas or another community skill for your workflow? Explore these related open-source skills.

すべて表示

openclaw-release-maintainer

Logo of openclaw
openclaw

ローカライズされた概要: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
AI

widget-generator

Logo of f
f

ローカライズされた概要: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat . It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf

149.6k
0
AI

flags

Logo of vercel
vercel

ローカライズされた概要: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
ブラウザ

pr-review

Logo of pytorch
pytorch

ローカライズされた概要: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review . It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
開発者