penpot-mcp
Copilot instructions26 starsChanged 6 months agoMITView on GitHub
In this repositoryOne other file it gives its agents.
- penpot-mcpSkill
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
16 rules. About 0 are common, 4 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Keep penpot-mcp/SKILL.md as the concise always-loaded core.
- Very specific: line 21
Keep README.md, package.json, and penpot-mcp/SKILL.md aligned when changing the public description, supported workflows, tool list, install …
- Distinctive: line 33
Write for AI agents. Prefer direct, imperative, testable rules such as "Always", "Never", "Use when", and "Verify".
- Very specific: line 34
Keep instructions compact and scannable with headings, checklists, tables, and fenced examples.
- Distinctive: line 36
Use deterministic examples: stable names, explicit input/output formats, compact JSON schemas, and clear pause or approval points.
- Distinctive: line 37
When changing a rule or gotcha, search nearby docs for duplicated guidance and update related mentions so the skill does not contradict …
- Very specific: line 41
Always inspect first with penpot_api_info or high_level_overview.
- Distinctive: line 42
Follow the read, plan, write, verify workflow for Penpot changes.
- Very specific: line 43
Keep writes in small batches, usually 5 to 10 shape operations per execute_code call, and verify structurally after each batch.
- Very specific: line 44
Never switch pages and write in the same execute_code call.
- Very specific: line 45
Verify via the Penpot API and structure reads.
- Very specific: line 50
Keep YAML frontmatter valid in skill files.
- Very specific: line 51
Do not add runtime dependencies, build tooling, or generated artifacts unless the task explicitly requires them.
- Very specific: line 56
Run npm run lint after changing JavaScript validation scripts or lint configuration.
- Very specific: line 57
Run npm run validate before publishing or after changing README.md, package.json, penpot-mcp/SKILL.md, or reference docs.
- Very specific: line 60
If examples include JavaScript intended for execute_code, check them against penpot-mcp/references/penpot-api-patterns.md before publishing.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- copilot_workspace_configure --><!-- Auto-generated by copilot_workspace_configure.sh — edit freely BELOW the divider line. --><!-- Content above the divider is regenerated on each run and will be overwritten. -->Workspace Context
- Language/Framework: javascript
- Detected features: none detected
- Active plugins: none
<!-- USER INSTRUCTIONS BELOW THIS LINE — preserved across re-generation runs -->Project Guidelines
Repository Purpose
- This repository packages the
penpot-mcpagent skill. Treat it as documentation and workflow content for AI agents, not as a JavaScript application runtime. - Keep
penpot-mcp/SKILL.mdas the concise always-loaded core. Put longer task recipes, API details, and examples inpenpot-mcp/references/*.md. - Keep
README.md,package.json, andpenpot-mcp/SKILL.mdaligned when changing the public description, supported workflows, tool list, install guidance, or release metadata.
Source Layout
penpot-mcp/SKILL.md: trigger description, setup guidance, safety workflow, common prompts, and critical gotchas.penpot-mcp/references/penpot-api-patterns.md: authoritative Penpot plugin API patterns, JavaScript examples, and low-level gotchas.penpot-mcp/references/design-system-workflows.md: design system creation, audit, migration, and component library workflows.penpot-mcp/references/design-to-code-workflows.md: HTML/CSS, React, token extraction, asset export, and design-code sync workflows.penpot-mcp/references/prototyping-workflows.md: flows, overlays, interactions, animations, and prototype audit workflows.
Authoring Style
- Write for AI agents. Prefer direct, imperative, testable rules such as "Always", "Never", "Use when", and "Verify".
- Keep instructions compact and scannable with headings, checklists, tables, and fenced examples. Move long explanations to reference files instead of expanding
SKILL.md. - Preserve exact Penpot MCP tool names:
high_level_overview,penpot_api_info,execute_code,export_shape, andimport_image. - Use deterministic examples: stable names, explicit input/output formats, compact JSON schemas, and clear pause or approval points.
- When changing a rule or gotcha, search nearby docs for duplicated guidance and update related mentions so the skill does not contradict itself.
Penpot MCP Invariants
- Always inspect first with
penpot_api_infoorhigh_level_overview; only guide setup when the connection check fails. - Follow the read, plan, write, verify workflow for Penpot changes. Describe intended writes before applying them.
- Keep writes in small batches, usually 5 to 10 shape operations per
execute_codecall, and verify structurally after each batch. - Never switch pages and write in the same
execute_codecall. Use one call forpenpot.openPage(...), then a separate call for writes. - Verify via the Penpot API and structure reads. Treat
export_shapeas best-effort because it can fail over HTTP. - Preserve documented API gotchas: use
resize()for shape size,penpotUtils.setParentXY()for parented coordinates,insertChild()for z-order, guard nullablepenpot.createText(...)results before resizing or styling, reset textgrowTypeafter resize, and keep typography numeric fields as strings where documented.
Skill Packaging
- Keep YAML frontmatter valid in skill files. The
nameshould match the skill folder, and descriptions should include concrete trigger phrases. - Do not add runtime dependencies, build tooling, or generated artifacts unless the task explicitly requires them. This package currently has metadata plus dev-only validation and lint scripts in
package.json. - Favor Markdown-only changes for workflow updates. Add scripts or tests only when they create a real validation path for future maintainers.
Validation
- Run
npm run lintafter changing JavaScript validation scripts or lint configuration. - Run
npm run validatebefore publishing or after changingREADME.md,package.json,penpot-mcp/SKILL.md, or reference docs. - For Markdown-only edits, run
git diff --check -- <changed-files>to catch whitespace issues and inspect the focused diff for accuracy. - For
package.jsonedits, also validate JSON parsing with Node or npm before finishing. - If examples include JavaScript intended for
execute_code, check them againstpenpot-mcp/references/penpot-api-patterns.mdbefore publishing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

