pencil-setup
This skill should be used when Pencil MCP tools are unavailable. Detects Pencil Desktop or a Pencil-extension IDE and registers the MCP server with Claude…
от jikig-ai★ 21 звезда на GitHub
Установить pencil-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cloud Mode (Devin): before pipeline work run bash "${CLAUDE_PLUGIN_ROOT}/scripts/cloud-detect.sh". If CLAUDE_PLUGIN_ROOT is unset (cloud exec shells do not export it), resolve the root by IDENTITY, never by script basename: for d in "$HOME/.local/share/devin/cli/plugins/cache" and /opt/.devin/plugins, skip unless [ -d "$d" ], then MANIFEST="$(find "$d" -path '*/.claude-plugin/plugin.json' -exec grep -l '"name":space:*::space:*"soleur"' {} + 2>/dev/null | head -1)", ROOT="${MANIFEST%/.claude-plugin/plugin.json}" — one resolution, two consumers: $ROOT/scripts/cloud-detect.sh and $ROOT/scripts/precommit-guard.sh. (Shape check, not authentication: a planted {"name":"soleur"} dir passes — ADR-179 A11.) local or not-local:no-devin-env proceeds normally; any other not-local:<reason> applies <plugin-root>/devin/INSTRUCTIONS.md §Cloud Mode: emit the --banner, fan out sequentially with Reviewed-Coverage: sequential-fallback disclosure (never claim an independent review ran), message_user ack before any secrets read or production mutation, and run precommit-guard.sh before any git commit — hooks do not fire in cloud.
Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.
Pencil Setup
Auto-detect, install, and register the Pencil MCP server with Claude Code CLI.
Prerequisite: One of: (1) the headless CLI (no GUI required, recommended for agents), (2) Pencil Desktop, or (3) an IDE (Cursor/VS Code) with the Pencil extension.
Known limitation: macOS detection uses unverified bundle ID dev.pencil.desktop -- falls back to PATH-based detection if incorrect.
Phase 0: Dependency Check
Run check_deps.sh before proceeding. When invoked
from a pipeline (e.g., one-shot), pass --auto to skip interactive prompts,
auto-install the IDE extension, and auto-launch Pencil Desktop.
For interactive use:
bash "${CLAUDE_PLUGIN_ROOT}/skills/pencil-setup/scripts/check_deps.sh"
For pipeline/automated use:
bash "${CLAUDE_PLUGIN_ROOT}/skills/pencil-setup/scripts/check_deps.sh" --auto
--auto cost and failure behaviour (headless CLI). --auto installs the pinned @pen.dev/cli engine from the committed lockfile into ~/.local/share/pen-cli when it is missing or off-pin, and it copies the adapter only after the engine is in place. The engine install is ~1 GB and takes up to ~5 minutes on a cold machine: run it with a long timeout (at least 10 minutes) or in the background, and wait for it before reading its verdict. A failed engine install exits 2 with the cause printed, and the adapter is left unchanged (never ahead of the engine); a working engine already in place is not removed silently. Adapter diagnostics ([pencil-adapter] ... lines on stderr) land in Claude Code's MCP server log, not in the terminal; claude mcp list shows a server that cannot start as failed to connect.
If the script exits non-zero, no Pencil MCP source is available. Stop and inform the user with the printed instructions (both Desktop and IDE options).
If all checks pass, capture these values from the script output:
PREFERRED_MODE--headless_cli,cli,desktop_binary, oridePREFERRED_BINARY-- path to binary (adapter for headless,pencilfor CLI mode)PREFERRED_APP----appflag value (empty for CLI and headless modes)PREFERRED_NODE-- (headless_cli only) path to Node >= 22.19.0 binary (the@pen.dev/cliengine floor)
Proceed to Step 1.
Step 1: Check if Already Registered
claude mcp list 2>&1 | grep -q "pencil" && echo "REGISTERED" || echo "NOT_REGISTERED"
If REGISTERED, classify the existing registration mode by inspecting the binary path printed by claude mcp list:
existing=$(claude mcp list 2>&1 | grep pencil)
case "$existing" in
*pencil-mcp-adapter*|*@pen.dev/cli*|*pencil-cli*) existing_mode=headless_cli ;;
*visual_studio_code*|*cursor*) existing_mode=ide ;;
*--app\ pencil*|*mcp-server-*-x64*) existing_mode=desktop ;;
*)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/.npmrc
- scripts/check_deps.sh
- scripts/copy_adapter.sh
- scripts/engine-contract-probe.sh
- scripts/package-lock.json
- scripts/package.json
- scripts/pen-cli/package-lock.json
- scripts/pen-cli/package.json
- scripts/pencil-error-enrichment.mjs
- scripts/pencil-mcp-adapter.mjs
- scripts/pencil-repl-surface.mjs
- scripts/pencil-response-classify.mjs
- scripts/pencil-save-gate.mjs
- scripts/sanitize-filename.mjs
FAQ
Что делает скилл pencil-setup?
This skill should be used when Pencil MCP tools are unavailable. Detects Pencil Desktop or a Pencil-extension IDE and registers the MCP server with Claude Code CLI.
Как установить скилл pencil-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pencil-setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…