create-catalog-item
Skill by flutter
Creates a GenUI CatalogItem from a json_schema_builder Schema, including its data class and Flutter widget class. It is for developers building Flutter apps with the genui package.
Install create-catalog-item
Built from the published package, never by AI.
git clone --depth 1 https://github.com/flutter/genui /tmp/genui && mkdir -p ~/.claude/skills && cp -r /tmp/genui/packages/genui/skills/create-catalog-item ~/.claude/skills/create-catalog-itemRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/flutter/genui /tmp/genui && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/genui/packages/genui/skills/create-catalog-item ~/.gemini/antigravity-cli/skills/create-catalog-itemAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install create-catalog-item in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through creating a GenUI CatalogItem from a provided json_schema_builder Schema. The output has three parts: a data class named _<SchemaName>Data with a fromJson factory that casts each JSON property inside a try-catch block, a final CatalogItem instance whose widgetBuilder parses the data and returns the widget, and a widget class built with Flutter Material components. If the schema includes an action callback, the skill uses resolveContext and itemContext.dispatchEvent to dispatch a UserActionEvent.
The skill is written for developers working in an application that uses Flutter's genui package. It aims to make sure the AI model can generate and interact with the UI component correctly. The source includes a worked example that turns a basic card schema into the data class, CatalogItem and widget.
Written from the project's SKILL.md and checked against it.
What it can do
- Create data classBuilds a _<SchemaName>Data class with final fields and a fromJson factory that uses try-catch.
- Create CatalogItem instanceDeclares a final CatalogItem named after the schema, with dataSchema and a widgetBuilder.
- Create widget classBuilds a StatelessWidget or StatefulWidget that displays each data field using Flutter Material components.
- Handle actionsResolves action context with resolveContext and dispatches a UserActionEvent when the schema includes an action.
What you need
- A Flutter application that uses the genui package
- A json_schema_builder Schema to base the CatalogItem on
Try asking
- Create a CatalogItem and widget for my myCardSchema in my genui app
- Generate the data class and fromJson for this JSON Schema in Flutter
- Add an onCompleted action to my BasicCard CatalogItem using dispatchEvent
Good to know
- Action handling applies only when the schema includes an action callback
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/genui/skills/create-catalog-item/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to create-catalog-item
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
create-catalog-item: common questions
What does the create-catalog-item skill generate?
It generates a data class, a CatalogItem instance and a widget class based on a json_schema_builder Schema. The source says the skill is for applications that use Flutter's genui package.
How is the data class named?
The data class is named _<SchemaName>Data. For example, a schema named myCardSchema gives a data class named _MyCardData.
How are actions handled in the generated CatalogItem?
If the schema includes an action callback, the widgetBuilder parses the action context with resolveContext and dispatches an event with itemContext.dispatchEvent.
How do I install create-catalog-item?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is create-catalog-item free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is create-catalog-item safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to create-catalog-item?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
