Index of every page on this site: llms.txt
All skills
grasmash avatar

/drupal-canvas

@19514f4
Run it yourself

Entry point for Drupal Canvas Code Components (React/JSX). Points to the officially maintained drupal-canvas/skills suite (component definition, metadata, push, styling, data fetching, regions, page definition, content templates) and to this repo's complements for Twig SDCs and upstream contribution. Use when creating, modifying, or pushing Canvas Code Components, or when deciding which Canvas skill applies.

Use this Skill: https://skilld.dev/gh/grasmash/drupal-claude-skills/drupal-canvas

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈107 tokens for metadata: the name and description. ≈410 when used: this file.

Description uses 5.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈427 characters, or 5.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Drupal Canvas Code Components — use the upstream suite

Canvas Code Components (React/JSX) are covered by the officially maintained drupal-canvas/skills suite (MIT licensed). This repo does not mirror it: a local copy goes stale as upstream evolves, and stale component rules are worse than none. Install the real thing:

npx skills add drupal-canvas/skills

To scaffold a codebase for Code Components, upstream publishes a CLI: npx @drupal-canvas/create <project>.

When This Skill Activates

  • Building, editing, or pushing a Canvas Code Component
  • Choosing between a Code Component and a Twig SDC
  • Looking for Canvas guidance and unsure which skill holds it

Upstream skills

The suite ships these skills (check the repo for the current list):

  • canvas-component-composability
  • canvas-component-definition
  • canvas-component-metadata
  • canvas-component-push
  • canvas-component-utils
  • canvas-content-templates
  • canvas-data-fetching
  • canvas-design-decomposition
  • canvas-headless
  • canvas-navigation-components
  • canvas-page-definition
  • canvas-regions
  • canvas-styling-conventions
  • canvas-workbench

Complements in this repo

The upstream suite is React/JSX only. For everything else:

  • drupal-canvas-sdc — Twig Single Directory Components in themes and modules: component.yml schemas, Canvas registration rules, component config entities, versioning, and deploy pitfalls.
  • canvas-contribution — contributing Canvas features and fixes back to drupal.org (issue forks, merge requests, composer patches).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo4 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill facilitates the development of Drupal components using the Canvas framework. It includes instructions for scaffolding projects and installing additional agent capabilities from external sources. The primary risk identified is a potential surface for indirect prompt injection when components process data from a Drupal backend, which is common in content management workflows.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 19514f4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago

README badge

README badge for grasmash/drupal-claude-skills/drupal-canvas