json-renderの画面仕様からコードを書き出す仕組みを作るスキル。画面構造の読み取り、使用部品や状態参照の収集、JSX向けの属性の文字列化を支援します。
- Next.jsやRemix向けの出力処理作成
- 画面仕様の部品や操作を一覧にしたいとき
- 属性の値をJSX形式に変換したいとき
json-renderで使う画面部品を、36種類の標準部品から選んで組み込むスキル。フォームの入力検証や独自部品の追加も含め、Web画面の実装を支援します。
Pre-built shadcn/ui components for json-render. Use when working with @json-render/shadcn, adding standard UI components to a catalog, or building web UIs with Radix UI + Tailwind CSS components.
実行スコア 未検証
インストール方法を見るjson-renderの画面に、カード、ボタン、入力欄、表などの標準部品を組み込む作業を支援します。Radix UIとTailwind CSSを使った36種類の部品から必要なものを選び、部品の定義をまとめるカタログと、Reactの実装を登録するレジストリを対応させます。入力内容の検証や検証タイミングの設定、独自部品との併用も扱います。
json-renderでフォームやタブ付きのWeb画面を作るときに向いています。標準部品に独自の指標表示を加えたい場合や、サーバー側でプロンプト用の部品定義を用意したい場合にも役立ちます。
アプリ側でTailwind CSSの設定が必要です。React実装と、Reactに依存しない/catalogでは読み込み先が異なります。部品は必要なものだけ明示的に選択します。実装には同梱のshadcn/ui部品が使われます。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Pre-built shadcn/ui component definitions and implementations for json-render. Provides 36 components built on Radix UI + Tailwind CSS.
| Entry Point | Exports | Use For |
|---|---|---|
@json-render/shadcn/catalog | shadcnComponentDefinitions | Catalog schemas (no React dependency, safe for server) |
@json-render/shadcn | shadcnComponents | React implementations |
Pick the components you need from the standard definitions. Do not spread all definitions -- explicitly select what your app uses:
import { defineCatalog } from "@json-render/core";
import { schema } from "@json-render/react/schema";
import { shadcnComponentDefinitions } from "@json-render/shadcn/catalog";
import { defineRegistry } from "@json-render/react";
import { shadcnComponents } from "@json-render/shadcn";
// Catalog: pick definitions
const catalog = defineCatalog(schema, {
components: {
Card: shadcnComponentDefinitions.Card,
Stack: shadcnComponentDefinitions.Stack,
Heading: shadcnComponentDefinitions.Heading,
Button: shadcnComponentDefinitions.Button,
Input: shadcnComponentDefinitions.Input,
},
actions: {},
});
// Registry: pick matching implementations
const { registry } = defineRegistry(catalog, {
components: {
Card: shadcnComponents.Card,
Stack: shadcnComponents.Stack,
Heading: shadcnComponents.Heading,
Button: shadcnComponents.Button,
Input: shadcnComponents.Input,
},
});
State actions (
setState,pushState,removeState) are built into the React schema and handled byActionProviderautomatically. No need to declare them.
Add custom components alongside standard ones:
const catalog = defineCatalog(schema, {
components: {
// Standard
Card: shadcnComponentDefinitions.Card,
Stack: shadcnComponentDefinitions.Stack,
// Custom
Metric: {
props: z.object({
label: z.string(),
value: z.string(),
trend: z.enum(["up", "down", "neutral"]).nullable(),
}),
description: "KPI metric display",
},
},
actions: {},
});
const { registry } = defineRegistry(catalog, {
components: {
Card: shadcnComponents.Card,
Stack: shadcnComponents.Stack,
Metric: ({ props }) => <div>{props.label}: {props.value}</div>,
},
});
@json-render/react)These are built into the React schema and handled by ActionProvider automatically. They appear in prompts without needing to be declared in the catalog.
{ statePath, value }){ statePath, value, clearStatePath? }){ statePath, index }){ valid, errors } to state ({ statePath? })validateOn)All form components support validateOn to control when validation runs:
"change" — validate on every input change (default for Select, Checkbox, Radio, Switch)"blur" — validate when field loses focus (default for Input, Textarea)"submit" — validate only on form submission/catalog entry point has no React dependency -- use it for server-side prompt generationcomponents/ui/)checks for validation (type + message pairs) and validateOn for timingchange/submit/focus/blur; buttons emit press; selects emit change/selectまだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
json-renderの画面仕様からコードを書き出す仕組みを作るスキル。画面構造の読み取り、使用部品や状態参照の収集、JSX向けの属性の文字列化を支援します。
AIが生成する画面や動画のJSON定義に、構造のルールと部品カタログを用意するスキル。プロンプト作成、逐次生成の処理、状態連携、定義の検証・修正を支援します。
json-renderの画面に検査パネルを追加し、画面仕様や実行中の状態、操作履歴、生成データの流れを確認するスキル。表示要素から仕様の該当箇所も探せます。
Reactのjson-renderアプリに検査パネルを追加し、画面定義・状態・操作履歴の確認や、コードからのパネル操作とイベント記録の設定を支援します。
SolidJSのjson-renderアプリに開発用の検査パネルを組み込みます。画面仕様や状態の確認・編集、操作やストリームの履歴を調べるための設定を支援します。
Svelte 5のjson-renderアプリに開発用パネルを導入し、画面定義の検査や状態編集、操作履歴の確認を進めるスキル。設定や不具合の調査にも使えます。