Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
One-time setup that gathers your project's design context and saves it to CLAUDE.md for future sessions.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/detector/shared/page.mjs
1/** Check if content looks like a full page (not a component/partial) */2function isFullPage(content) {3const stripped = content.replace(/<!--[\s\S]*?-->/g, '');4return /<!doctype\s|<html[\s>]|<head[\s>]/i.test(stripped);5}67export { isFullPage };8