canvas-component-definition — canvas-component-definition install canvas-component-definition, nebula, community, canvas-component-definition install, ide skills, creating compatible Canvas components, React implementation for Canvas, Claude Code, Cursor, Windsurf

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/8/2026

Agent Capability Analysis

The canvas-component-definition skill by acquia is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for canvas-component-definition install, creating compatible Canvas components, React implementation for Canvas.

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

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
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

canvas-component-definition

Install canvas-component-definition, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command...

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.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is canvas-component-definition?

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.

How do I install canvas-component-definition?

Run the command: npx killer-skills add acquia/nebula. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for canvas-component-definition?

Key use cases include: Creating reusable Canvas components for Drupal projects, Validating component compatibility with Drupal Canvas, Automating component metadata generation for efficient development.

Which IDEs are compatible with canvas-component-definition?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for canvas-component-definition?

Requires Drupal Canvas environment. Must adhere to specific naming and structure conventions. Limited to React implementation.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add acquia/nebula. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use canvas-component-definition immediately in the current project.

Related Skills

Looking for an alternative to canvas-component-definition or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

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
AI

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
AI