skills/pencil-skills/pencil-mcp-snapshot-layout/SKILL.md
Capture a structural snapshot of the node tree in a Pencil .pen file via the snapshot_layout MCP tool, optionally filtering to only show layout problems. Use when the user explicitly mentions Pencil and needs to analyze page hierarchy, check for clipped or overlapping elements, or prepare for layout adjustments.
npx skillsauth add teachingai/agent-skills pencil-mcp-snapshot-layoutInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill is designed to call the Pencil MCP tool:
snapshot_layoutIf your client namespaces MCP tools, it may appear as mcp__pencil__snapshot_layout.
Even if a trigger phrase matches, you must verify the user's intent:
If the answer is NO, do NOT use this skill. (e.g., "Analyze layout" might refer to HTML/CSS layout analysis).
CRITICAL PREREQUISITE: You must ONLY use this skill when the user EXPLICITLY mentions "Pencil".
ALWAYS use this skill when:
Trigger phrases include:
filePath (string, optional): Path to access a specific .pen file. Default is active document.maxDepth (integer, optional):
0 means only top-level nodes.parentId (string, optional): Only return layout for this node's subtree.problemsOnly (boolean, optional):
true to only return nodes with layout issues (e.g., clipped by parent).false.maxDepth=1) or a specific section (parentId=...)?snapshot_layout(...).Get the layout of the top-level frames to see where empty space might be. See 1-top-level.json.
Get the layout structure of a specific frame to understand its children's positioning. See 2-specific-frame.json.
Check for layout issues (like clipped content) deep within a specific section. See 3-layout-problems.json.
English keywords: snapshot layout, layout analysis, node hierarchy, structure check, bounds check, layout problems
Chinese keywords (中文关键词): 布局快照, 布局分析, 节点层级, 结构检查, 边界检查, 布局问题
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.