infographic-structure-generator

Generate TypeScript Structure components with registerStructure calls for infographic layouts.

1|2|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/zhuxingwan/Infographic --skill infographic-structure-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infographic-structure-generator
Source: https://github.com/zhuxingwan/Infographic/tree/main/.skills/infographic-structure-generator
Command: npx skills add https://github.com/zhuxingwan/Infographic --skill infographic-structure-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Generates production-ready TypeScript Structure components for the infographic framework, enabling teams to rapidly implement, update, and register layout structures that conform to project conventions.

Core Features & Use Cases

  • Generates complete Structure component code (Item or Items) following project rules, layout constraints, and registration requirements.
  • Reads guidance from references/structure-prompt.md to produce compliant code.
  • Supports simple and hierarchical structures, ensures correct composites and sizing, and outputs a ready-to-register component.

Quick Start

Generate a complete TypeScript Structure component (Item or Items) following the framework conventions and register it with the composites.

Frequently Asked Questions about infographic-structure-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate TypeScript structure components for an infographic framework?

To generate TypeScript structure components for an infographic framework, use a generator that reads layout constraints and project conventions to output production-ready code. It ensures correct imports, types, and final registration automatically.

What is the best way to implement hierarchical layout structures in TSX?

Implementing hierarchical layout structures in TSX requires defining correct composites and grouping order while sizing elements via getElementBounds. A dedicated structure generator enforces these rules to produce compliant, ready-to-register components.

How do I register a new layout structure using registerStructure?

You register a new layout structure by calling registerStructure at the end of your TypeScript component file. This ensures the infographic framework correctly imports and recognizes the layout within its src/designs/structures directory.

Does this infographic layout generator support list, compare, and sequence structures?

Yes, this infographic layout generator supports list, compare, sequence, hierarchy, relation, geo, and chart structures. It applies project rules to generate compliant TypeScript code for each specific layout type within the framework.

Can I automatically enforce layout constraints and element bounds when building infographics?

Yes, you can enforce layout constraints and element bounds by utilizing getElementBounds for sizing. The generation process reads guidance files to ensure proper grouping order and correct composites across simple and hierarchical structures.