Favicon of create-catalog-item

create-catalog-item Skill

AI Agent SkillDartOpen source

Use this skill when the user asks to create a new CatalogItem, data class, and/or widget class based on a JSON Schema definition in an application that uses Flutter's genui package. Published by flutter in genui.

What is create-catalog-item Skill?

Use this skill when the user asks to create a new CatalogItem, data class, and/or widget class based on a JSON Schema definition in an application that uses Flutter's genui package. Published by flutter in genui. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
80/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Data analysis
  • Design and media
  • Data analysis use cases
  • Design and media use cases

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use create-catalog-item Skill

  • Use it for data analysis.
  • Use it for design and media.

Built with

DartCopy skill directory

Editorial notes

Source

  • Creator: flutter
  • Repository: flutter/genui
  • Skill file: packages/genui/skills/create-catalog-item/SKILL.md

What it does

Use this skill when the user asks to create a new CatalogItem, data class, and/or widget class based on a JSON Schema definition in an application that uses Flutter's genui package.

Skill instructions

Create CatalogItem Goal To correctly implement a GenUI CatalogItem based on a provided jsonschemabuilder Schema, including its corresponding data class, CatalogItem instance, and Widget class. This ensures the AI model can properly generate and interact with the UI component. Instructions When tasked with creating a CatalogItem from a Schema, follow these steps: 1. Create the Data Class: - Name it <SchemaNameData (e.g., if schema is myCardSchema, data class is MyCardData). - Add final fields for each property defined in the schema. - Create a factory <SchemaNameData.fromJson(Map<String, Object? json) method. - Use a try-catch block to parse the properties and return a new instance. - Cast each property from the json map to its expected type, e.g., title: json['title'] as String, or action: json['action'] as JsonMap?,. - Throw an Exception('Invalid JSON for <SchemaNameData') in the catch block if an error occurs. 2. Create the CatalogItem Instance: - Name it identical to the schema name

Explore related resources

Frequently asked questions

What is create-catalog-item?

create-catalog-item is a open-source AI agent skill with Copy skill directory. Use this skill when the user asks to create a new CatalogItem, data class, and/or widget class based on a JSON Schema definition in an application that uses Flutter's genui package.

Who is create-catalog-item best for?

create-catalog-item is best for reusing agent instructions, scripts, and references, data analysis workflows, design and media workflows.

How do I install create-catalog-item?

Install or run create-catalog-item using Copy skill directory. Check create-catalog-item for the latest setup command.

Is create-catalog-item actively maintained?

create-catalog-item may need a closer maintenance check before production use.

Share:

Stars
1,714
Forks
162
Last commit
9 days ago
Repository age
1 year
License
BSD-3-Clause

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to create-catalog-item