diff --git a/plugins/figma/skills/figma/SKILL.md b/plugins/figma/skills/figma/SKILL.md deleted file mode 100644 index 2b177b57..00000000 --- a/plugins/figma/skills/figma/SKILL.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: figma -description: Connect to Figma using the Figma MCP. Use when working with Figma files. ---- - -# Figma MCP (Vendored Example Snapshot) - -This is a trimmed plugin-bundled snapshot of the `openai/skills` Figma skill. - -## Required flow (non-skippable) - -1. Run `get_design_context` for the exact node. -2. If the response is too large, run `get_metadata` and re-fetch targeted nodes. -3. Run `get_screenshot` for a visual reference. -4. Only then download assets and begin implementation. -5. Translate MCP output into project conventions and tokens. -6. Validate visual parity before marking complete. - -## Asset handling - -- Use MCP-provided localhost assets directly when present. -- Do not introduce new icon packages when assets are in the Figma payload. -- Do not use placeholders if a Figma asset is provided. - -## References - -- `references/figma-flow.md` for quick reminders and URL/node parsing notes. diff --git a/plugins/figma/skills/figma/agents/openai.yaml b/plugins/figma/skills/figma/agents/openai.yaml deleted file mode 100644 index 4ef56132..00000000 --- a/plugins/figma/skills/figma/agents/openai.yaml +++ /dev/null @@ -1,4 +0,0 @@ -interface: - display_name: "Figma" - short_description: "Read Figma files via the Figma MCP" - default_prompt: "Use the Figma MCP workflow for this Figma URL and fetch design context plus screenshot first." diff --git a/plugins/figma/skills/figma/references/figma-flow.md b/plugins/figma/skills/figma/references/figma-flow.md deleted file mode 100644 index 62da8ef0..00000000 --- a/plugins/figma/skills/figma/references/figma-flow.md +++ /dev/null @@ -1,5 +0,0 @@ -# Figma Flow Reminder - -- Prefer exact frame/layer links with `node-id`. -- `get_design_context` + `get_screenshot` are both required before implementation. -- Reuse project components/tokens before copying generated code literally. diff --git a/plugins/figma/skills/figma/scripts/parse_node_id.py b/plugins/figma/skills/figma/scripts/parse_node_id.py deleted file mode 100755 index 7e514487..00000000 --- a/plugins/figma/skills/figma/scripts/parse_node_id.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python3 -"""Extract a Figma file key and node-id from a Figma URL (draft helper).""" - -from __future__ import annotations - -import re -import sys -from urllib.parse import parse_qs, urlparse - - -def main() -> int: - if len(sys.argv) != 2: - print("Usage: parse_node_id.py ", file=sys.stderr) - return 2 - - url = sys.argv[1] - parsed = urlparse(url) - parts = [p for p in parsed.path.split("/") if p] - try: - design_idx = parts.index("design") - file_key = parts[design_idx + 1] - except (ValueError, IndexError): - print("Could not parse file key from URL", file=sys.stderr) - return 1 - - node_id = parse_qs(parsed.query).get("node-id", [None])[0] - if not node_id: - print("URL missing node-id query parameter", file=sys.stderr) - return 1 - - print(f"fileKey={file_key}") - print(f"nodeIdUrl={node_id}") - print(f"nodeIdTool={node_id.replace('-', ':')}") - return 0 - - -if __name__ == "__main__": - raise SystemExit(main())