agentleFS
ar27111994ar27111994/penpot-mcp/.github/copilot-instructions.md

penpot-mcp

Copilot instructions26 starsChanged 6 months agoMITView on GitHub

  • In this repositoryOne other file it gives its agents.

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
  1. Very specific:

    Keep penpot-mcp/SKILL.md as the concise always-loaded core.

    line 20
  2. Very specific:

    Keep README.md, package.json, and penpot-mcp/SKILL.md aligned when changing the public description, supported workflows, tool list, install …

    line 21
  3. Distinctive:

    Write for AI agents. Prefer direct, imperative, testable rules such as "Always", "Never", "Use when", and "Verify".

    line 33
  4. Very specific:

    Keep instructions compact and scannable with headings, checklists, tables, and fenced examples.

    line 34
  5. Distinctive:

    Use deterministic examples: stable names, explicit input/output formats, compact JSON schemas, and clear pause or approval points.

    line 36
  6. Distinctive:

    When changing a rule or gotcha, search nearby docs for duplicated guidance and update related mentions so the skill does not contradict …

    line 37
  7. Very specific:

    Always inspect first with penpot_api_info or high_level_overview.

    line 41
  8. Distinctive:

    Follow the read, plan, write, verify workflow for Penpot changes.

    line 42
  9. Very specific:

    Keep writes in small batches, usually 5 to 10 shape operations per execute_code call, and verify structurally after each batch.

    line 43
  10. Very specific:

    Never switch pages and write in the same execute_code call.

    line 44
  11. Very specific:

    Verify via the Penpot API and structure reads.

    line 45
  12. Very specific:

    Keep YAML frontmatter valid in skill files.

    line 50
  13. Very specific:

    Do not add runtime dependencies, build tooling, or generated artifacts unless the task explicitly requires them.

    line 51
  14. Very specific:

    Run npm run lint after changing JavaScript validation scripts or lint configuration.

    line 56
  15. Very specific:

    Run npm run validate before publishing or after changing README.md, package.json, penpot-mcp/SKILL.md, or reference docs.

    line 57
  16. Very specific:

    If examples include JavaScript intended for execute_code, check them against penpot-mcp/references/penpot-api-patterns.md before publishing.

    line 60

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md
<!-- 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-mcp agent skill. Treat it as documentation and workflow content for AI agents, not as a JavaScript application runtime.
  • Keep penpot-mcp/SKILL.md as the concise always-loaded core. Put longer task recipes, API details, and examples in penpot-mcp/references/*.md.
  • Keep README.md, package.json, and penpot-mcp/SKILL.md aligned 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, and import_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_info or high_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_code call, and verify structurally after each batch.
  • Never switch pages and write in the same execute_code call. Use one call for penpot.openPage(...), then a separate call for writes.
  • Verify via the Penpot API and structure reads. Treat export_shape as 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 nullable penpot.createText(...) results before resizing or styling, reset text growType after resize, and keep typography numeric fields as strings where documented.

Skill Packaging

  • Keep YAML frontmatter valid in skill files. The name should 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 lint after changing JavaScript validation scripts or lint configuration.
  • Run npm run validate before publishing or after changing README.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.json edits, also validate JSON parsing with Node or npm before finishing.
  • If examples include JavaScript intended for execute_code, check them against penpot-mcp/references/penpot-api-patterns.md before publishing.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.