canvas-page-definition

Installation
SKILL.md

Project type

Before applying this skill, check package.json for a dependency named @drupal-canvas/headless or starting with @drupal-canvas/headless-. If one is present, this is a Canvas Headless codebase — read canvas-headless first. Page specs work in headless codebases, but only create them when sync.pages is enabled in canvas.config.json; projects generated with Canvas Create (@drupal-canvas/create) disable it by default and ship without a pages/ directory — pages are routes in the framework app. If no such dependency is present, this is a Canvas-rendered React codebase: components are React (index.jsx/.tsx) and everything in this skill applies as written. These are the only two project types.

Canonical definition

A Canvas page is a JSON page spec stored in the repository's configured pagesDir.

Installs
155
GitHub Stars
3
First Seen
Apr 7, 2026
canvas-page-definition — drupal-canvas/skills