Logo di D2c

D2c

Community
BIAsia
d2c

Pipeline c2d2c d2c — il workflow standard in otto passaggi per implementare o aggiornare un’interfaccia utente a partire da design Figma. Usalo OGNI VOLTA che l’utente fornisce link figma.com/design/... e chiede di creare, aggiornare, rinnovare lo stile o ripristinare un’interfaccia in modo che corrisponda a un design. Include ricognizione → revisione del piano → estrazione delle specifiche → implementazione 1:1 → pagina di regressione → revisione delle animazioni → approvazione degli screenshot → pulizia + MR. Non usarlo per esportare codice IN Figma (per quello usa c2d2c:c2d).

Add to TypingMind

Panoramica

Pubblicato daBIAsia
Repositoryc2d2c
Nome della skilld2c
Stelle
58
Fork
2
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da BIAsia su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA D2c in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/BIAsia/c2d2c/tree/main/skills/d2c
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/BIAsia/c2d2c.git /tmp/c2d2c
mkdir -p .claude/skills
cp -r /tmp/c2d2c/skills/d2c .claude/skills/d2c
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva D2c in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente D2c non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi D2c non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

c2d2c:d2c — design to code, 1:1

Project parameters

Resolve parameters from C2D2C.md at the repo root (fallback: .claude/c2d2c.md). If neither exists, offer to bootstrap one from the template at ../../templates/C2D2C.template.md (plugin root; standalone installs without that file fetch https://raw.githubusercontent.com/BIAsia/c2d2c/main/templates/C2D2C.template.md): fill what the repo itself reveals (token files, gate scripts, regression routes, git host), ask for the rest. This skill uses DESIGN_FILE, TOKEN_DOCS, DS_ROUTE, GATES, MR_TOOL, DEPLOY_ORDER.

Core principles: agree on the plan before building, implement 1:1, every component gets a regression surface, finish with no loose ends. Three points where you MUST stop and wait for user confirmation: step 2 (plan), step 3 (off-system styles), step 7 (acceptance).

1. Skim + survey the current state + reuse audit

  • Skim the design with Figma MCP (get_design_context + screenshots): structure first, no parameter-digging yet. get_metadata tends to time out on large frames; prefer design context.
  • In parallel, map the existing implementation: related components, data flow, animation approach (an Explore agent works well).
  • Proactively enumerate reuse (don't wait to be asked): for every UI element in the design, look for an existing implementation and produce a reuse matrix (element → component → coupling → reuse strategy):
    • What the design shows is usually the design frame of a real component. Assume it already exists, then try to disprove it, not the other way around.
    • Coupling tiers: pure presentation (use directly) / light context (does it degrade gracefully without providers?) / heavy data coupling (data layer, runtime, store).
    • A DS_ROUTE page or demo page rendering the component with mock props is direct evidence the presentation surface is already isolated.
    • Heavy coupling ≠ no reuse: the default move is to extract the pure presentation core so the live caller, the regression page, and the new surface share it. A visual replica is the last resort, unless the user explicitly wants isolation.
  • Produce a diff list: structural differences between design and current state, the heavy-rework areas, and anything worth extracting as shared.

2. Plan review (STOP)

Present the plan for review: scope, component split/abstraction, animation handling, risks. Lead with a recommendation, not a menu. Wait for confirmation before step 3.

3. Extract detailed specs, block by block (conditional STOP)

Read each section with get_design_context + get_variable_defs, down to every gap, font size, and color token:

  • Map whatever fits the project's token/component system directly (consult TOKEN_DOCS).
  • Report every off-system style to the user, one by one (absorb as a new token? one-off hardcode? change the design?). If everything maps into the system, say so and continue without stopping.
  • Figma variable names ≠ code token names. Verify against the project's token files; never guess.

4. Full 1:1 implementation

  • Build to the confirmed plan. The target is pixel-level fidelity, not "roughly similar".
  • Respect the project gates; UI changes usually touch i18n keys, so handle them in the same pass.
  • Run a dev server and compare against screenshots as you go (multi-worktree port contention: read the actual port from your own server log; headless screenshots may render CSS fallbacks instead of WebGL/shaders, verify headed when needed).

5. Regression page (mandatory for component work)

When the change involves a reusable component (new, or visual/state changes to an existing one), create or update its DS_ROUTE/<component> page:

  • State enumeration follows the same standard as c2d2c:c2d: every variant axis (read from tv()/type unions, don't guess), every data shape (value/empty/fallback/truncation/loading/error), every interaction state (rest/hover/focus/selected/disabled + hover popovers).
  • The page renders from mock props, no live data. It is both the proof that the presentation surface is isolated and the state checklist for a future c2d2c:c2d run.
  • For heavily coupled components, extract the pure presentation core first (see step 1) so the live caller and the regression page share it: this kills hand-copied replicas that drift.
  • Pure page-level changes (no reusable component) may skip this step; say why.

6. Motion and state review

Walk every animation, transition, and hover/active/loading/empty state in the module:

  • Motion tokens compliant? (Projects usually have a motion ladder; inline springs/beziers are banned.)
  • Entrances/exits, scroll-linked behavior, reduced-motion fallbacks complete?
  • Fix what you find; report the motion inventory and verdict.

7. Screenshot acceptance (STOP)

  • What to capture: the regression page, full plus close-ups of key states; if there's no regression page, capture the real route. Use scripts/ds-shot.mjs bundled next to this SKILL.md (node ds-shot.mjs <route> [--port N] [--dark]) or manual browser capture.
  • Present them side by side with the Figma get_screenshot output; call out known deviations and why.
  • Wait for the user to pass acceptance before step 8. Requested changes loop back to step 4.

8. Cleanup + MR

Cleanup (no loose ends, no patches on top):

  • Delete every replaced implementation completely: component files, barrel exports, types, i18n source keys, unreferenced styles/tokens, portal mount points, dead constants. Leftover dead code misleads the next investigation.
  • Run GATES to confirm nothing dangles.

MR (runs automatically once acceptance passed and gates are green; do not stop to ask again):

  1. Rebase onto the latest default branch.
  2. Open the MR with MR_TOOL. Description template: Figma node link / acceptance screenshots / change summary / deletion list / gate results / DEPLOY_ORDER dependencies (e.g. "backend first").
  3. Merge per project convention (e.g. GitLab: glab mr merge --auto-merge --yes with server-side rebase; queue auto-merge immediately on fast-moving mains).

Reporting rhythm

  • Steps 1-2 merge into one plan-review message (diff list + recommended plan).
  • Step 3 stops only for off-system styles; otherwise one line.
  • Step 7 is one acceptance message (side-by-side screenshots + deviation notes).
  • After step 8, close out: MR link, deletion list, gate results.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA D2c?

Pipeline c2d2c d2c — il workflow standard in otto passaggi per implementare o aggiornare un’interfaccia utente a partire da design Figma. Usalo OGNI VOLTA che l’utente fornisce link figma.com/design/... e chiede di creare, aggiornare, rinnovare lo stile o ripristinare un’interfaccia in modo che corrisponda a un design. Include ricognizione → revisione del piano → estrazione delle specifiche → implementazione 1:1 → pagina di regressione → revisione delle animazioni → approvazione degli screenshot → pulizia + MR. Non usarlo per esportare codice IN Figma (per quello usa c2d2c:c2d).

Perché usare D2c su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. D2c è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo D2c in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/BIAsia/c2d2c/tree/main/skills/d2c. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare D2c?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con D2c?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con D2c: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA D2c è gratuita?

Sì. È pubblicata su GitHub da BIAsia con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇