[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77FS74Y2393NW2E5B7XJQMW":3,"skill-same:01M77FS74Y2393NW2E5B7XJQMW":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M77FS74Y2393NW2E5B7XJQMW","figma-plugin-writer",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ff\u002Ffigma-plugin-writer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: figma-plugin-writer\ndescription: Write Figma plugin code to automate UI design in Figma files. Activate when user wants to create UI mockups, design systems, app screens, or visual prototypes directly in Figma via plugin code. NOT for: Figma API REST calls, file management, or commenting.\n---\n\n# Figma Plugin Writer\n\nWrite plugin code (`code.js`) to automate design in Figma files. After updating the code, notify the user to run the plugin.\n\n## Prerequisites\n\nThe user must provide:\n1. **Plugin directory** — folder containing `code.js` and `manifest.json`\n2. **Code file** — typically `code.js`\n3. **Target Figma file** — optional, for context\n\n## Workflow\n\n1. Receive design requirements from the user\n2. Write plugin code to `code.js`\n3. Notify user: `Plugins → Development → \u003Cplugin-name>`\n4. Iterate based on feedback\n\n## API Reference\n\n### Font Loading (required before creating text)\n\n```js\nawait figma.loadFontAsync({ family: \"Inter\", style: \"Regular\" });\nawait figma.loadFontAsync({ family: \"Inter\", style: \"Medium\" });\nawait figma.loadFontAsync({ family: \"Inter\", style: \"Semi Bold\" });\nawait figma.loadFontAsync({ family: \"Inter\", style: \"Bold\" });\n```\n\n### Frame (Container)\n\n```js\nvar frame = figma.createFrame();\nframe.name = \"MyFrame\";\nframe.resize(width, height);\nframe.cornerRadius = 12;\nframe.fills = [{ type: \"SOLID\", color: { r: 1, g: 1, b: 1 } }];\nframe.x = 0;\nframe.y = 0;\n```\n\n### Text\n\n```js\nvar text = figma.createText();\ntext.characters = \"Hello World\";\ntext.fontSize = 16;\ntext.fontName = { family: \"Inter\", style: \"Regular\" };\ntext.fills = [{ type: \"SOLID\", color: { r: 0, g: 0, b: 0 } }];\n```\n\n### Rectangle\n\n```js\nvar rect = figma.createRectangle();\nrect.resize(100, 50);\nrect.fills = [{ type: \"SOLID\", color: { r: 0.9, g: 0.2, b: 0.2 } }];\nrect.cornerRadius = 8;\n```\n\n### Nesting Nodes\n\n```js\nframe.appendChild(text);\nparentPage.appendChild(frame);\n```\n\n### Drop Shadow\n\n```js\nframe.effects = [{\n  type: \"DROP_SHADOW\",\n  color: { r: 0, g: 0, b: 0, a: 0.1 },\n  offset: { x: 0, y: 4 },\n  radius: 12,\n  spread: 0,\n  visible: true,\n  blendMode: \"NORMAL\",\n}];\n```\n\n### Stroke\n\n```js\nframe.strokes = [{ type: \"SOLID\", color: { r: 0.8, g: 0.8, b: 0.8 } }];\nframe.strokeWeight = 1;\n```\n\n### Text Alignment\n\n```js\ntext.textAlignHorizontal = \"CENTER\"; \u002F\u002F LEFT | CENTER | RIGHT | JUSTIFIED\ntext.textAlignVertical = \"CENTER\";   \u002F\u002F TOP | CENTER | BOTTOM\n```\n\n### Auto Layout (inside Frame)\n\n```js\nframe.layoutMode = \"VERTICAL\"; \u002F\u002F or \"HORIZONTAL\"\nframe.primaryAxisAlignItems = \"CENTER\";   \u002F\u002F MIN | CENTER | MAX | SPACE_BETWEEN\nframe.counterAxisAlignItems = \"CENTER\";\nframe.paddingTop = 16;\nframe.paddingBottom = 16;\nframe.paddingLeft = 16;\nframe.paddingRight = 16;\nframe.itemSpacing = 8;\n```\n\n### Page Navigation\n\n```js\nvar pages = figma.root.children;\nvar targetPage = pages[pages.length - 1];\nawait figma.setCurrentPageAsync(targetPage);\n```\n\n### Clear Page Content\n\n```js\nvar old = targetPage.children.slice();\nfor (var i = 0; i \u003C old.length; i++) {\n  old[i].remove();\n}\n```\n\n### Viewport\n\n```js\nfigma.viewport.scrollAndZoomIntoView([frame]);\n```\n\n### Notifications\n\n```js\nfigma.notify(\"Done!\", { timeout: 3000 });\nfigma.notify(\"ERROR: \" + e.message, { timeout: 10000 });\n```\n\n### Page Info\n\n```js\nvar pages = figma.root.children;\nvar count = pages.length;\nvar pageName = pages[0].name;\n```\n\n## Code Template\n\n```js\nasync function main() {\n  try {\n    \u002F\u002F 1. Load fonts\n    await figma.loadFontAsync({ family: \"Inter\", style: \"Regular\" });\n    await figma.loadFontAsync({ family: \"Inter\", style: \"Bold\" });\n\n    \u002F\u002F 2. Get target page\n    var pages = figma.root.children;\n    var target = pages[pages.length - 1];\n    await figma.setCurrentPageAsync(target);\n\n    \u002F\u002F 3. Clear old content\n    var old = target.children.slice();\n    for (var i = 0; i \u003C old.length; i++) old[i].remove();\n\n    \u002F\u002F 4. Create design...\n    var frame = figma.createFrame();\n    frame.name = \"Screen\";\n    frame.resize(375, 812);\n    frame.fills = [{ type: \"SOLID\", color: { r: 1, g: 1, b: 1 } }];\n    frame.x = 0;\n    frame.y = 0;\n    target.appendChild(frame);\n\n    \u002F\u002F 5. Done\n    figma.viewport.scrollAndZoomIntoView([frame]);\n    figma.notify(\"Design complete!\", { timeout: 3000 });\n\n  } catch (e) {\n    figma.notify(\"ERROR: \" + e.message, { timeout: 10000 });\n  }\n}\n\nmain();\n```\n\n## Pitfalls & Gotchas\n\n### documentAccess: \"dynamic-page\" Mode\n\nIf `manifest.json` has `\"documentAccess\": \"dynamic-page\"`:\n- ❌ `figma.currentPage = page` → ✅ `await figma.setCurrentPageAsync(page)`\n- ❌ `figma.getNodeById()` → ✅ `await figma.getNodeByIdAsync()`\n- ❌ `figma.closePlugin()` → ✅ `await figma.closePluginAsync()`\n\n### Error Handling\n\n- Always wrap code in `try-catch`\n- Show errors via `figma.notify(\"ERROR: \" + e.message, { timeout: 10000 })`\n- Do not use emoji in text content (font may not support the glyph)\n- Do not call `figma.closePlugin()` automatically (let user close manually)\n\n### Free Tier Limits\n\n- Max 3 Pages — do not create new Pages\n- Work within existing Pages (clear and rebuild)\n\n### Fonts\n\n- Default: Inter (built into Figma)\n- Supported styles: \"Regular\", \"Medium\", \"Semi Bold\", \"Bold\"\n- Colors use `{ r, g, b }` format with 0-1 range\n\n## Iteration Pattern\n\nOn each design iteration:\n1. Clear old elements: `page.children.slice().forEach(c => c.remove())`\n2. Recreate design with changes\n3. Notify user to re-run the plugin\n","# Figma Plugin Writer\n\nWrite plugin code (`code.js`) to automate design in Figma files. After updating the code, notify the user to run the plugin.\n\n## Prerequisites\n\nThe user must provide:\n1. **Plugin directory** — folder containing `code.js` and `manifest.json`\n2. **Code file** — typically `code.js`\n3. **Target Figma file** — optional, for context\n\n## Workflow\n\n1. Receive design requirements from the user\n2. Write plugin code to `code.js`\n3. Notify user: `Plugins → Development → \u003Cplugin-name>`\n4. Iterate based on feedback\n\n## API Reference\n\n### Font Loading (required before creating text)\n\n```js\nawait figma.loadFontAsync({ family: \"Inter\", style: \"Regular\" });\nawait figma.loadFontAsync({ family: \"Inter\", style: \"Medium\" });\nawait figma.loadFontAsync({ family: \"Inter\", style: \"Semi Bold\" });\nawait figma.loadFontAsync({ family: \"Inter\", style: \"Bold\" });\n```\n\n### Frame (Container)\n\n```js\nvar frame = figma.createFrame();\nframe.name = \"MyFrame\";\nframe.resize(width, height);\nframe.cornerRadius = 12;\nframe.fills = [{ type: \"SOLID\", color: { r: 1, g: 1, b: 1 } }];\nframe.x = 0;\nframe.y = 0;\n```\n\n### Text\n\n```js\nvar text = figma.createText();\ntext.characters = \"Hello World\";\ntext.fontSize = 16;\ntext.fontName = { family: \"Inter\", style: \"Regular\" };\ntext.fills = [{ type: \"SOLID\", color: { r: 0, g: 0, b: 0 } }];\n```\n\n### Rectangle\n\n```js\nvar rect = figma.createRectangle();\nrect.resize(100, 50);\nrect.fills = [{ type: \"SOLID\", color: { r: 0.9, g: 0.2, b: 0.2 } }];\nrect.cornerRadius = 8;\n```\n\n### Nesting Nodes\n\n```js\nframe.appendChild(text);\nparentPage.appendChild(frame);\n```\n\n### Drop Shadow\n\n```js\nframe.effects = [{\n  type: \"DROP_SHADOW\",\n  color: { r: 0, g: 0, b: 0, a: 0.1 },\n  offset: { x: 0, y: 4 },\n  radius: 12,\n  spread: 0,\n  visible: true,\n  blendMode: \"NORMAL\",\n}];\n```\n\n### Stroke\n\n```js\nframe.strokes = [{ type: \"SOLID\", color: { r: 0.8, g: 0.8, b: 0.8 } }];\nframe.strokeWeight = 1;\n```\n\n### Text Alignment\n\n```js\ntext.textAlignHorizontal = \"CENTER\"; \u002F\u002F LEFT | CENTER | RIGHT | JUSTIFIED\ntext.textAlignVertical = \"CENTER\";   \u002F\u002F TOP | CENTER | BOTTOM\n```\n\n### Auto Layout (inside Frame)\n\n```js\nframe.layoutMode = \"VERTICAL\"; \u002F\u002F or \"HORIZONTAL\"\nframe.primaryAxisAlignItems = \"CENTER\";   \u002F\u002F MIN | CENTER | MAX | SPACE_BETWEEN\nframe.counterAxisAlignItems = \"CENTER\";\nframe.paddingTop = 16;\nframe.paddingBottom = 16;\nframe.paddingLeft = 16;\nframe.paddingRight = 16;\nframe.itemSpacing = 8;\n```\n\n### Page Navigation\n\n```js\nvar pages = figma.root.children;\nvar targetPage = pages[pages.length - 1];\nawait figma.setCurrentPageAsync(targetPage);\n```\n\n### Clear Page Content\n\n```js\nvar old = targetPage.children.slice();\nfor (var i = 0; i \u003C old.length; i++) {\n  old[i].remove();\n}\n```\n\n### Viewport\n\n```js\nfigma.viewport.scrollAndZoomIntoView([frame]);\n```\n\n### Notifications\n\n```js\nfigma.notify(\"Done!\", { timeout: 3000 });\nfigma.notify(\"ERROR: \" + e.message, { timeout: 10000 });\n```\n\n### Page Info\n\n```js\nvar pages = figma.root.children;\nvar count = pages.length;\nvar pageName = pages[0].name;\n```\n\n## Code Template\n\n```js\nasync function main() {\n  try {\n    \u002F\u002F 1. Load fonts\n    await figma.loadFontAsync({ family: \"Inter\", style: \"Regular\" });\n    await figma.loadFontAsync({ family: \"Inter\", style: \"Bold\" });\n\n    \u002F\u002F 2. Get target page\n    var pages = figma.root.children;\n    var target = pages[pages.length - 1];\n    await figma.setCurrentPageAsync(target);\n\n    \u002F\u002F 3. Clear old content\n    var old = target.children.slice();\n    for (var i = 0; i \u003C old.length; i++) old[i].remove();\n\n    \u002F\u002F 4. Create design...\n    var frame = figma.createFrame();\n    frame.name = \"Screen\";\n    frame.resize(375, 812);\n    frame.fills = [{ type: \"SOLID\", color: { r: 1, g: 1, b: 1 } }];\n    frame.x = 0;\n    frame.y = 0;\n    target.appendChild(frame);\n\n    \u002F\u002F 5. Done\n    figma.viewport.scrollAndZoomIntoView([frame]);\n    figma.notify(\"Design complete!\", { timeout: 3000 });\n\n  } catch (e) {\n    figma.notify(\"ERROR: \" + e.message, { timeout: 10000 });\n  }\n}\n\nmain();\n```\n\n## Pitfalls & Gotchas\n\n### documentAccess: \"dynamic-page\" Mode\n\nIf `manifest.json` has `\"documentAccess\": \"dynamic-page\"`:\n- ❌ `figma.currentPage = page` → ✅ `await figma.setCurrentPageAsync(page)`\n- ❌ `figma.getNodeById()` → ✅ `await figma.getNodeByIdAsync()`\n- ❌ `figma.closePlugin()` → ✅ `await figma.closePluginAsync()`\n\n### Error Handling\n\n- Always wrap code in `try-catch`\n- Show errors via `figma.notify(\"ERROR: \" + e.message, { timeout: 10000 })`\n- Do not use emoji in text content (font may not support the glyph)\n- Do not call `figma.closePlugin()` automatically (let user close manually)\n\n### Free Tier Limits\n\n- Max 3 Pages — do not create new Pages\n- Work within existing Pages (clear and rebuild)\n\n### Fonts\n\n- Default: Inter (built into Figma)\n- Supported styles: \"Regular\", \"Medium\", \"Semi Bold\", \"Bold\"\n- Colors use `{ r, g, b }` format with 0-1 range\n\n## Iteration Pattern\n\nOn each design iteration:\n1. Clear old elements: `page.children.slice().forEach(c => c.remove())`\n2. Recreate design with changes\n3. Notify user to re-run the plugin\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Ff\u002Ffigma-plugin-writer",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill figma-plugin-writer",{"tool":38,"command":39},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill figma-plugin-writer",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill figma-plugin-writer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ff\u002Ffigma-plugin-writer\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]