KS
Killer-Skills

canvas-component-definition — how to use canvas-component-definition how to use canvas-component-definition, what is canvas-component-definition, canvas-component-definition setup guide, canvas-component-definition install, canvas-component-definition vs Drupal components, canvas-component-definition alternative, creating compatible Canvas components, React implementation for Canvas, Canvas metadata/schema best practices

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing compatible Canvas component creation for Drupal Canvas, utilizing React implementation and metadata. canvas-component-definition is a set of requirements for creating compatible Canvas components, including React implementation, metadata, and naming conventions.

Features

Requires a React implementation via index.jsx
Incorporates Canvas metadata/schema via component.yml
Ensures naming and structure compatibility with machineName and folder path
Supports Canvas-compatible props/slots modeling
Mandates a specific folder structure at components-root/machine-name/
Enforces a minimum contract for usability in Drupal Canvas

# Core Topics

acquia acquia
[0]
[0]
Updated: 3/7/2026

Quality Score

Top 5%
26
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add acquia/nebula/canvas-component-definition

Agent Capability Analysis

The canvas-component-definition MCP Server by acquia is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use canvas-component-definition, what is canvas-component-definition, canvas-component-definition setup guide.

Ideal Agent Persona

Perfect for Frontend Agents needing compatible Canvas component creation for Drupal Canvas, utilizing React implementation and metadata.

Core Value

Empowers agents to craft compatible Canvas components with proper React implementation, Canvas metadata/schema, and naming structure, ensuring seamless integration with Drupal Canvas using component.yml and index.jsx files.

Capabilities Granted for canvas-component-definition MCP Server

Creating reusable Canvas components for Drupal projects
Validating component compatibility with Drupal Canvas
Automating component metadata generation for efficient development

! Prerequisites & Limits

  • Requires Drupal Canvas environment
  • Must adhere to specific naming and structure conventions
  • Limited to React implementation
Project
SKILL.md
2.2 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Canonical definition

A Canvas component is a package of:

  1. A React implementation (index.jsx)
  2. Canvas metadata/schema (component.yml)
  3. Naming and structure compatibility (machineName, folder path, story path)
  4. Canvas-compatible props/slots modeling

All four parts are required for the component to be usable in Drupal Canvas.

Minimum contract (MUST)

Every Canvas component MUST satisfy all checks below:

  • Component folder exists at <components-root>/<machine-name>/ (use the repository's configured components root, which may be defined in .env)
  • React implementation exists at <components-root>/<machine-name>/index.jsx
  • Metadata exists at <components-root>/<machine-name>/component.yml
  • component.yml includes required top-level keys (name, machineName, status, required, props, slots)
  • Folder name exactly matches machineName in component.yml (kebab-case)
  • A matching story exists at <stories-root>/<machine-name>.stories.jsx (use the repository's configured stories root)
  • Props/slots follow Canvas rules (for example, avoid unsupported array-of-object prop shapes; use slots for repeatable complex content)

If any item is missing, the component is incomplete for Canvas usage.

Naming guidance

Use references/naming.md for naming rules and examples.

Skill coordination

Evaluate using companion skills in this order.

  1. canvas-component-metadata
    • Use when creating/changing component.yml, props/slots, enums, or fixing prop validation errors.
  2. canvas-component-composability
    • Use when designing prop/slot structure, decomposing large components, deciding props vs slots, or modeling repeatable list/grid content.
  3. canvas-styling-conventions
    • Use for all styling work: new components, style props, Tailwind token usage, CVA variants, class changes, and prop changes that affect styles.
  4. canvas-component-utils
    • Use when rendering formatted HTML text or media via FormattedText and Image.
  5. canvas-data-fetching
    • Use when fetching/rendering Drupal content with JSON:API, SWR, includes, and filter patterns.
  6. canvas-component-upload
    • Use after implementation is complete and validated, when uploading and recovering from upload failures.

Related Skills

Looking for an alternative to canvas-component-definition or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication