@ruyfranca/myskills 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/skills/figma-dev-mode/SKILL.md +76 -0
- package/.agent/workflows/figma.md +10 -0
- package/.mcp.json +7 -0
- package/README.md +7 -0
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: figma-dev-mode
|
|
3
|
+
description: Setup and utilization of the Figma Dev Mode MCP to inspect components, layouts, and styles directly from Figma design files.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, run_command
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Figma Dev Mode MCP
|
|
8
|
+
|
|
9
|
+
> Integrate UI design precisely measuring and extracting information directly from Figma directly through the Dev Mode MCP.
|
|
10
|
+
|
|
11
|
+
## 🎯 Selective Reading Rule
|
|
12
|
+
|
|
13
|
+
**Read ONLY files relevant to the request!** If you just need to query nodes, you don't need to read setup.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 📑 Content Map
|
|
18
|
+
|
|
19
|
+
| Context | Action |
|
|
20
|
+
|---------|--------|
|
|
21
|
+
| Project has no `.mcp.json` | Create `.mcp.json` with Figma MCP config |
|
|
22
|
+
| Analyzing UI/UX | Use MCP to inspect Figma Node IDs |
|
|
23
|
+
| Translating to Code | Extract CSS/Tailwind properties from Figma |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 🔌 Setup Config
|
|
28
|
+
|
|
29
|
+
To enable the Figma MCP into the project, the following `.mcp.json` block must be present in the user's project root:
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"mcpServers": {
|
|
34
|
+
"Figma Dev Mode MCP": {
|
|
35
|
+
"url": "http://127.0.0.1:3845/mcp"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
> **Requirements:** The user MUST have the Figma Desktop App running locally with Dev Mode enabled for the MCP to work.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 🔗 Related Skills
|
|
46
|
+
|
|
47
|
+
| Need | Skill |
|
|
48
|
+
|------|-------|
|
|
49
|
+
| Frontend implementation | `@[skills/senior-frontend]` |
|
|
50
|
+
| Design Systems | `@[skills/ui-design-system]` |
|
|
51
|
+
| UI/UX Best practices | `@[skills/ui-ux-pro-max]` |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## ✅ Integration Checklist
|
|
56
|
+
|
|
57
|
+
Before implementing a design from Figma:
|
|
58
|
+
|
|
59
|
+
- [ ] **Figma Desktop is running?** (Remind the user if MCP connection fails)
|
|
60
|
+
- [ ] **Figma Node URL/ID provided?** (Ask the user for the specific Figma frame link)
|
|
61
|
+
- [ ] **Selected the correct framework?** (Tailwind, Vanilla CSS, React Native)
|
|
62
|
+
- [ ] **Extracted exact tokens?** (Colors, border-radii, spacing)
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## ❌ Anti-Patterns
|
|
67
|
+
|
|
68
|
+
**DON'T:**
|
|
69
|
+
- Guess dimensions and colors when the Figma link is provided.
|
|
70
|
+
- Fail silently if the MCP connection drops (tell the user to open Figma).
|
|
71
|
+
- Extract hardcoded colors without checking if they belong to a Design System's token.
|
|
72
|
+
|
|
73
|
+
**DO:**
|
|
74
|
+
- Use the MCP to precisely query the layout properties.
|
|
75
|
+
- Map Figma styles to tailwind config variables when possible.
|
|
76
|
+
- Remind the user to open the specific project in Figma Desktop.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Start Figma Dev Mode MCP integration and UI design translation
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Figma Workflow
|
|
6
|
+
|
|
7
|
+
1. Configure the `.mcp.json` in the user's project to point to the Figma MCP at `http://127.0.0.1:3845/mcp`.
|
|
8
|
+
2. Instruct the user to open the Figma Desktop app and ensure the design file is active.
|
|
9
|
+
3. Ask the user for the specific Figma URL or Node ID they want to implement.
|
|
10
|
+
4. Call `@[skills/figma-dev-mode]` and `@[skills/senior-frontend]` to begin extraction and implementation.
|
package/.mcp.json
ADDED
package/README.md
CHANGED
|
@@ -99,6 +99,12 @@ Especialista em otimização para mecanismos de busca:
|
|
|
99
99
|
Inteligência avançada de design e experiência do usuário:
|
|
100
100
|
- **Design System**: Gerador de sistemas de design com base em indústria e estilo.
|
|
101
101
|
|
|
102
|
+
### [Figma Dev Mode](file:///Users/ruy/Code/mySkills/.agent/skills/figma-dev-mode/SKILL.md)
|
|
103
|
+
Integração direta com o Figma através do Model Context Protocol (MCP):
|
|
104
|
+
- **Extração**: Inspeção de nós visuais, tokens de cor, tipografia e espaçamento.
|
|
105
|
+
- **Integração**: Configuração de `.mcp.json` para conectar o Claude/Cursor ao Figma Desktop.
|
|
106
|
+
- **Workflow**: Tradução perfeita do design para código.
|
|
107
|
+
|
|
102
108
|
---
|
|
103
109
|
## 📚 Mais de 70 Skills Especializadas!
|
|
104
110
|
A biblioteca foi expandida massivamente com recursos do Antigravity Kit. Algumas novas categorias incluem:
|
|
@@ -366,6 +372,7 @@ Você pode acessar as skills diretamente via comandos de barra no chat:
|
|
|
366
372
|
- `/marketing-campaigns`: Ativa o gestor de campanhas para planejamento e execução estratégica.
|
|
367
373
|
- `/web-perf`: Ativa o engenheiro de performance para otimização de Core Web Vitals.
|
|
368
374
|
- `/invoice-organizer`: Ativa o assistente de organização financeira e contábil.
|
|
375
|
+
- `/figma`: Ativa a integração MCP com o Figma Dev Mode para extração visual.
|
|
369
376
|
|
|
370
377
|
## 📁 Estrutura do Projeto
|
|
371
378
|
|
package/index.js
CHANGED