@pedroab0/skills 1.0.0 → 1.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pedro Barbosa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Skills
2
2
 
3
+ <p align="center">
4
+ <a href="https://www.npmjs.com/package/@pedroab0/skills"><img src="https://img.shields.io/npm/dm/@pedroab0/skills.svg" alt="npm downloads" /></a>
5
+ <a href="https://www.npmjs.com/package/@pedroab0/skills"><img src="https://img.shields.io/npm/v/@pedroab0/skills.svg" alt="npm version" /></a>
6
+ <a href="https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor"><img src="https://img.shields.io/badge/Figma_Community-Plugin-000000?style=flat&logo=figma&logoColor=white" alt="Figma Community Plugin" /></a>
7
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
8
+ </p>
9
+
3
10
  A curated collection of modular, production-ready skills developed for AI coding agents (such as Claude Code, OpenCode, Codex, Google Antigravity, and Cursor).
4
11
 
5
12
  Each skill in this repository is designed to give AI assistants specialized, autonomous capabilities while maintaining:
@@ -14,7 +21,7 @@ Each skill in this repository is designed to give AI assistants specialized, aut
14
21
  | Skill | Role / Workflow | Description | Links |
15
22
  | :--- | :--- | :--- | :--- |
16
23
  | **[`figma-to-code`](./figma-to-code)** | **One-Shot / Fast Prototyping** | Direct, single-turn conversion of Figma designs into clean, production-ready UI components. Best for rapid prototyping and standalone components. | [Guide](./figma-to-code/README.md) · [`SKILL.md`](./figma-to-code/SKILL.md) |
17
- | **[`figma-extractor`](./figma-extractor)** | **SDD Step 1 (Ingest)** | Pure specification scraper (CLI / REST API) and companion Figma Desktop plugin that pull compact layout trees, design tokens, and preview images into `./.specs/`. Never touches application code. | [Guide](./figma-extractor/README.md) · [Plugin](./figma-extractor/figma-plugin/README.md) · [`SKILL.md`](./figma-extractor/SKILL.md) |
24
+ | **[`figma-extractor`](./figma-extractor)** | **SDD Step 1 (Ingest)** | Pure specification scraper (CLI / REST API) and companion Figma Desktop plugin that pull compact layout trees, design tokens, and preview images into `./.specs/`. Never touches application code. | [Guide](./figma-extractor/README.md) · [Plugin](./figma-extractor/figma-plugin/README.md) · [Community](https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor) · [`SKILL.md`](./figma-extractor/SKILL.md) |
18
25
  | **[`figma-node-builder`](./figma-node-builder)** | **SDD Step 2 (Implement)** | Grounded UI builder that reads extracted Figma Node specifications (`.specs/*.json`) and preview images (`*.png`) to build components without CSS hallucinations. | [Guide](./figma-node-builder/README.md) · [`SKILL.md`](./figma-node-builder/SKILL.md) |
19
26
 
20
27
  ---
@@ -40,10 +47,17 @@ flowchart TD
40
47
  * **Use `figma-to-code`** when you want fast execution: you provide a Figma URL, and the agent extracts and writes the component in one turn.
41
48
  * **Use `figma-extractor` + `figma-node-builder`** in formal Spec-Driven Development (SDD): the design specification is extracted to disk first (via CLI or the companion Figma Desktop plugin), reviewed/approved, and then systematically implemented into your design system without premature code edits.
42
49
 
43
- > [!TIP]
44
- > **Zero-API Figma Desktop Plugin**: To extract specifications directly inside Figma Desktop without API tokens or rate limits, use the companion **Figma Node JSON Extractor** plugin:
45
- > * **Figma Community (Recommended)**: Search for **Figma Node JSON Extractor** in Plugins.
46
- > * **Manual Manifest Import (Local Backup)**: In Figma Desktop, go to **Plugins** $\rightarrow$ **Development** $\rightarrow$ **Import plugin from manifest...** and select `manifest.json` from your installed skills folder (e.g. `~/.claude/skills/figma-extractor/figma-plugin/manifest.json` or `~/.gemini/config/skills/figma-extractor/figma-plugin/manifest.json`).
50
+ ---
51
+
52
+ ### Zero-API Companion: Figma Desktop Plugin
53
+
54
+ <p align="center">
55
+ <img src="./figma-extractor/figma-plugin/assets/cover.png" alt="Figma Node JSON Extractor" width="100%" />
56
+ </p>
57
+
58
+ To extract specifications directly inside Figma Desktop without API tokens or rate limits, use the companion [**Figma Node JSON Extractor**](./figma-extractor/figma-plugin/README.md) plugin:
59
+ * **Figma Community (Recommended)**: Install [**Figma Node JSON Extractor** on Figma Community](https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor) directly, or search for it under Figma Plugins.
60
+ * **Manual Manifest Import (Local Backup)**: In Figma Desktop, go to **Plugins** $\rightarrow$ **Development** $\rightarrow$ **Import plugin from manifest...** and select `manifest.json` from your installed skills folder (e.g. `~/.claude/skills/figma-extractor/figma-plugin/manifest.json` or `~/.gemini/config/skills/figma-extractor/figma-plugin/manifest.json`).
47
61
 
48
62
  ---
49
63
 
@@ -172,3 +186,10 @@ When adding new skills to this curation:
172
186
  3. Provide a `README.md` with detailed skill-specific documentation and manual execution flags.
173
187
  4. Keep scripts self-contained with minimal external dependencies.
174
188
  5. Update this root `README.md` catalog to list the new skill.
189
+
190
+ ---
191
+
192
+ ## License
193
+
194
+ This project is licensed under the [MIT License](LICENSE).
195
+
@@ -1,5 +1,11 @@
1
1
  # Figma Extractor
2
2
 
3
+ <p align="center">
4
+ <a href="https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor"><img src="https://img.shields.io/badge/Figma_Community-Plugin-000000?style=flat&logo=figma&logoColor=white" alt="Figma Community Plugin" /></a>
5
+ <a href="https://www.npmjs.com/package/@pedroab0/skills"><img src="https://img.shields.io/npm/v/@pedroab0/skills.svg?label=@pedroab0/skills" alt="npm package" /></a>
6
+ <a href="../LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
7
+ </p>
8
+
3
9
  A lightweight, zero-dependency Node.js CLI tool and agent skill that extracts design node metadata, component hierarchies, design tokens, and rendered preview images from Figma via the Figma REST API into `./.specs/`.
4
10
 
5
11
  This skill serves as the **Specification Ingestion Layer** in a **Spec-Driven Development (SDD)** workflow.
@@ -133,9 +139,13 @@ node figma-extractor/scripts/fetch_figma.js "<FigmaURL>" --tokens > ./.specs/tok
133
139
 
134
140
  ## Zero-API Companion: Figma Node JSON Extractor (Figma Plugin)
135
141
 
142
+ <p align="center">
143
+ <img src="./figma-plugin/assets/icon.png" alt="Figma Node JSON Extractor" width="200" />
144
+ </p>
145
+
136
146
  For developers who prefer exporting specifications directly from Figma Desktop without configuring API access tokens or consuming REST API quotas:
137
147
 
138
- * **Published Figma Plugin (Recommended)**: Search for **Figma Node JSON Extractor** in Figma Community / Plugins and click **Open in...** or **Save**.
148
+ * **Published Figma Plugin (Recommended)**: Install [**Figma Node JSON Extractor** on Figma Community](https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor) directly, or search for it under Figma Plugins.
139
149
  * **Manual Local Installation (Local / Offline Backup)**: In Figma Desktop, go to **Plugins** $\rightarrow$ **Development** $\rightarrow$ **Import plugin from manifest...** and select `manifest.json` from your installed skills directory:
140
150
  * **Claude Code**: `~/.claude/skills/figma-extractor/figma-plugin/manifest.json`
141
151
  * **Google Antigravity**: `~/.gemini/config/skills/figma-extractor/figma-plugin/manifest.json`
@@ -196,4 +196,4 @@ When an `INSTANCE` node is present, internal property hashes are converted into
196
196
  - **Node Not Found**:
197
197
  - Alert the user that the node ID could not be found in the specified file.
198
198
  - **Rate Limited (`FIGMA_RATE_LIMIT_EXCEEDED` / `FIGMA_CIRCUIT_BREAKER_ACTIVE`)**:
199
- - Figma REST API has per-minute and monthly rate limits on Starter plans. If quota is exhausted or circuit breaker trips, inform the user they can export the specification directly via the companion **Figma Node JSON Extractor** desktop plugin into `./.specs/<name>.json`.
199
+ - Figma REST API has per-minute and monthly rate limits on Starter plans. If quota is exhausted or circuit breaker trips, inform the user they can export the specification directly via the companion **Figma Node JSON Extractor** desktop plugin (available on [Figma Community](https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor)) into `./.specs/<name>.json`.
@@ -1,5 +1,15 @@
1
+ <p align="center">
2
+ <img src="./assets/icon.png" alt="Figma Node JSON Extractor Icon" width="256" />
3
+ </p>
4
+
1
5
  # Figma Node JSON Extractor
2
6
 
7
+ <p align="center">
8
+ <a href="https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor"><img src="https://img.shields.io/badge/Figma_Community-Figma_Node_JSON_Extractor-000000?style=flat&logo=figma&logoColor=white" alt="Figma Community Plugin" /></a>
9
+ <a href="https://www.npmjs.com/package/@pedroab0/skills"><img src="https://img.shields.io/npm/v/@pedroab0/skills.svg?label=@pedroab0/skills" alt="npm package" /></a>
10
+ <a href="../../LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
11
+ </p>
12
+
3
13
  Inspect, copy, and export compact, design-system-aware Node JSON and high-resolution companion preview images directly from **Figma Desktop** for AI coding assistants (Claude Code, Antigravity, Cursor) and frontend engineering.
4
14
 
5
15
  ---
@@ -16,10 +26,11 @@ Inspect, copy, and export compact, design-system-aware Node JSON and high-resolu
16
26
  ## Installation in Figma
17
27
 
18
28
  ### Option A: Install from Figma Community (Recommended)
19
- 1. Open Figma (Desktop app or Web browser).
20
- 2. Go to **Plugins** or the **Figma Community**.
21
- 3. Search for **Figma Node JSON Extractor**.
22
- 4. Click **Open in...** or **Save** to add it to your plugin library.
29
+ Install directly from the Figma Community:
30
+ 👉 [**Install Figma Node JSON Extractor on Figma Community**](https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor)
31
+
32
+ 1. Open the [plugin page on Figma Community](https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor) or search for **Figma Node JSON Extractor** in Figma Plugins.
33
+ 2. Click **Open in...** or **Save** to add it to your Figma account.
23
34
 
24
35
  ### Option B: Manual Installation (Local / Offline Backup)
25
36
  To install the plugin directly from your local skills folder or repository:
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "name": "Figma Node JSON Extractor",
3
- "id": "figma-node-json-extractor",
3
+ "id": "1691244420692136789",
4
4
  "api": "1.0.0",
5
5
  "main": "code.js",
6
6
  "ui": "ui.html",
7
7
  "capabilities": [],
8
8
  "enableProposedApi": false,
9
- "editorType": ["figma", "dev"]
9
+ "editorType": ["figma", "dev"],
10
+ "documentAccess": "dynamic-page",
11
+ "networkAccess": {
12
+ "allowedDomains": [
13
+ "none"
14
+ ]
15
+ }
10
16
  }
@@ -31,7 +31,7 @@ flowchart LR
31
31
  C -->|2. figma-node-builder| D["Production Component<br/>(React, Vue, Tailwind)"]
32
32
  ```
33
33
 
34
- 1. **Step 1 (Ingest)**: Design specifications are extracted into `./.specs/card.json` (and optional companion `./.specs/card.png`) using either [`figma-extractor`](../figma-extractor) (CLI / API) or the **Figma Node JSON Extractor** (Figma Desktop plugin).
34
+ 1. **Step 1 (Ingest)**: Design specifications are extracted into `./.specs/card.json` (and optional companion `./.specs/card.png`) using either [`figma-extractor`](../figma-extractor) (CLI / API) or the [Figma Node JSON Extractor](https://www.figma.com/community/plugin/1691244420692136789/figma-node-json-extractor) Figma plugin.
35
35
  2. **Review**: The human developer or architect reviews the tokens, components, and layout bounds.
36
36
  3. **Step 2 (Build)**: **`figma-node-builder`** is invoked to build the component in your project.
37
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedroab0/skills",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Curated collection of modular, production-ready skills for AI coding agents (Claude Code, Cursor, OpenCode, Antigravity)",
5
5
  "bin": {
6
6
  "skills": "bin/cli.js",
@@ -36,6 +36,7 @@
36
36
  "figma-to-code",
37
37
  "figma-extractor",
38
38
  "figma-node-builder",
39
- "README.md"
39
+ "README.md",
40
+ "LICENSE"
40
41
  ]
41
42
  }