skills/pencil-skills/pencil-mcp-get-editor-state/SKILL.md
Get current design environment context. Use when you need to understand what is currently selected, canvas position, and environment state before any task.
npx skillsauth add teachingai/agent-skills pencil-mcp-get-editor-stateInstall 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:
get_editor_stateIf your client namespaces MCP tools, it may appear as mcp__pencil__get_editor_state.
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., "What is selected?" might refer to selected text in the IDE, not the Pencil canvas).
CRITICAL PREREQUISITE: You must ONLY use this skill when the user EXPLICITLY mentions "Pencil".
ALWAYS use this skill when:
Trigger phrases include:
include_schema (boolean, optional):
true if you want the .pen file schema to be included.false (default) to save context.get_editor_state.selection: List of selected node IDs.activePageId: Current page ID.filePath: Path of the current document.Get the current state to understand what the user is looking at. See 1-basic-check.json.
Get state including the .pen file schema to understand the document structure definitions. See 2-with-schema.json.
Explicitly checking state during a multi-step workflow where schema is already known. See 3-explicit-check.json.
English keywords: get state, editor context, current selection, active document, canvas position, check environment
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.