pencil-mcp-get-screenshot

$npx mdskill add partme-ai/full-stack-skills/pencil-mcp-get-screenshot

Captures a screenshot of a node in a Pencil .pen file to visually verify design operations or check for issues.

  • Helps users visually confirm design changes, alignment, or spacing in Pencil files after operations like batch_design.
  • Integrates with the Pencil MCP tool get_screenshot, which may be namespaced as mcp__pencil__get_screenshot.
  • Activates only when the user explicitly mentions Pencil and the context is clearly about Pencil design tasks.
  • Delivers results by providing the captured screenshot for review, typically as part of a verification step.

SKILL.md

.github/skills/pencil-mcp-get-screenshotView on GitHub ↗
---
name: pencil-mcp-get-screenshot
description: "Capture a visual screenshot of a specific node in a Pencil .pen file via the get_screenshot MCP tool. Use when the user explicitly mentions Pencil and needs to visually verify a design operation, check for alignment or spacing issues, or review a component after batch_design changes."
license: Complete terms in LICENSE.txt
---


## Tools

This skill is designed to call the Pencil MCP tool:

*   `get_screenshot`

If your client namespaces MCP tools, it may appear as `mcp__pencil__get_screenshot`.

## When to use this skill

### Intent Recognition (CRITICAL)
Even if a trigger phrase matches, you must **verify the user's intent**:
1.  Is the user explicitly asking to use "Pencil"?
2.  Is the current conversation context clearly about "Pencil" design tasks?

**If the answer is NO, do NOT use this skill.** (e.g., "Get screenshot" might refer to a browser screenshot via Puppeteer).

**CRITICAL PREREQUISITE:**
**You must ONLY use this skill when the user EXPLICITLY mentions "Pencil".**

**ALWAYS use this skill when:**
- You have completed a design operation (`batch_design`) and need to **verify** the result **in Pencil**.
- The user asks to "Show me" or "Take a look" **at the Pencil design**.
- You need to check for visual bugs (text overflow, alignment, contrast).
- This is the **Verify** step in the Design Loop.

**Trigger phrases include:**
- "Get Pencil screenshot" (获取 Pencil 截图)
- "Pencil visual check" (Pencil 视觉检查)
- "Verify Pencil design" (验证 Pencil 设计)
- "Show me the button in Pencil" (给我看 Pencil 里的那个按钮)

## Input Parameters

*   **`filePath`** (string, optional): Path to access a specific `.pen` file.
*   **`nodeId`** (string, required): The ID of the node to screenshot.

## How to use this skill

1.  **Identify Target**: Get the `nodeId` of the element you just modified or created.
2.  **Call Tool**: `get_screenshot(nodeId='...')`.
3.  **Analyze Result**:
    *   The tool returns an image URL or data.
    *   **CRITICAL**: You must "look" at the image (if capabilities allow) or present it to the user for feedback.
    *   Check for: Alignment, Spacing, Text Truncation, Color correctness.

## Examples

### 1. Simple: Node Screenshot
Get a visual verification of a single element.
See [1-node-screenshot.json](examples/1-node-screenshot.json).

### 2. Medium: Frame Verification
Screenshot a whole frame to check layout and composition.
See [2-frame-verification.json](examples/2-frame-verification.json).

### 3. Complex: Design System Check
Screenshot a component master to ensure the design system update looks correct.
See [3-component-check.json](examples/3-component-check.json).

## Keywords

**English keywords:**
get screenshot, visual verification, check design, view node, render image, visual audit

**Chinese keywords (中文关键词):**
获取截图, 视觉验证, 检查设计, 查看节点, 渲染图片, 视觉审计

More from partme-ai/full-stack-skills

SkillDescription
adobe-xd"Guides creation of UI/UX designs, interactive prototypes, reusable components, and design specs in Adobe XD. Use when the user asks about Adobe XD artboards, prototype links, repeat grids, component states, design tokens export, or developer handoff."
angular"Provides comprehensive guidance for Angular framework including components, modules, services, dependency injection, routing, forms, and TypeScript integration. Use when the user asks about Angular, needs to create Angular applications, implement Angular components, or work with Angular features."
ansible"Provides comprehensive guidance for Ansible automation including playbooks, roles, inventory, and module usage. Use when the user asks about Ansible, needs to automate IT tasks, create Ansible playbooks, or manage infrastructure with Ansible."
ant-design-mini"Builds mini-program UIs with Ant Design Mini components for Alipay and WeChat mini-programs. Covers Button, Form, List, Modal, Tabs, NavBar, and 60+ components with theme customization and CSS variable theming. Use when the user needs to create mini-program interfaces with Ant Design Mini, configure themes, or implement mini-program-specific UI patterns."
ant-design-mobile"Builds React mobile UIs with Ant Design Mobile (antd-mobile) components including Button, Form, List, Modal, Picker, Tabs, PullToRefresh, InfiniteScroll, and 50+ mobile-optimized components. Use when the user needs to create mobile-first React interfaces, implement mobile navigation, forms, or data display with Ant Design Mobile."
ant-design-react"Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme."
ant-design-vueProvides comprehensive guidance for Ant Design Vue (AntDV) component library for Vue 3. Covers installation, usage, API reference, templates, and all component categories. Use when building enterprise-class UI with Vue 3 and Ant Design.
api-doc-generator"Generate API documentation by scanning Controller classes, extracting endpoint URLs, HTTP methods, parameters, and response structures, then producing standardized docs from templates. Use when the user explicitly mentions generating API documentation, creating API docs, scanning interfaces, or documenting REST APIs. Do not trigger for generic documentation requests without explicit API mention."
appium"Provides comprehensive guidance for Appium mobile testing including mobile app automation, element location, gestures, and cross-platform testing. Use when the user asks about Appium, needs to test mobile applications, automate mobile apps, or write Appium test scripts."
ascii-ansi-colorizer"Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors."