Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Dzero Design To Code

ASecurity

デザインデータ(Figma などのデザインカンプ)を参照してコーディングするときの解釈原則とアセットの扱い。Figma の URL・MCP・デザイン画像・カンプをもとに実装や修正をするときに必ず使う。

20 stars
0 votes
0 copies
1 views
Added 9/20/2026
designgo

Works with

mcp

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add d-zero-dev/frontend-guidelines --skill dzero-design-to-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dzero Design To Code?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Dzero Design To Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/d-zero-dev-dzero-design-to-code/badge)](https://www.skillsdirectory.com/skills/d-zero-dev-dzero-design-to-code)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: dzero-design-to-code
description: デザインデータ(Figma などのデザインカンプ)を参照してコーディングするときの解釈原則とアセットの扱い。Figma の URL・MCP・デザイン画像・カンプをもとに実装や修正をするときに必ず使う。
license: CC-BY-NC-SA-4.0
---

# デザインカンプ解釈

> 実装レイヤー選定(`dzero-tech-selection`)を経ていない場合は先にそちらを読むこと。

## 原則: デザインデータの数値は「結果」であって「仕様」ではない

デザインデータから読み取るべきは意図(可変か固定か、何に整列しているか、余白は何との関係か)であり、表示されている数値そのものではない。

- 要素の `width` / `height` をデザインの数値のまま固定値で書かない。可変を前提にレスポンシブに落とし込む
- デザイン上の X/Y 座標を `top` / `left`(`inset-*`)にそのまま変換しない
- 値を書くときは何を基準にした値なのかを計算式で明示する(`dzero-css` の値のルールに従う)
- 行高が絶対値(例: `24px`)で指定されていても、そのまま `line-height: 24px` と書かず `font-size` との比率(例: `calc(24 / 16)` = `1.5`)に変換する
  <!-- 暫定ルール: stylelint(declaration-property-unit-disallowed-list)による line-height の px 禁止を linters に提案中。導入されたらこの項目は削除する -->

## デザインに描かれていない状態も実装対象

デザインカンプは通常デフォルト状態の静止画しかない。描かれていなくても以下は実装する。

- インタラクティブ要素の `:hover` と `:focus-visible`(キーボード操作時のフォーカス表示。詳細は `dzero-a11y`)
- エラー・空・長文(折り返し・はみ出し)などの状態はデザインに定義がなければユーザーに確認する

## デザイントークンへの対応付け

- 色などの値はプロジェクトのカスタムプロパティ(`__assets/_libs/style/base/root.css` の `:root` に定義。Figma のバリアブルもここに定義される)に対応付けて使う
- デザイン側でバリアブル・スタイルが設定されていない値でも、直接書かずに対応するトークンがないか先に探す
  <!-- 暫定ルール: stylelint(declaration-strict-value 系)によるトークン強制を linters に提案中。導入されたらこの項目は削除する -->

## アセット(画像等)の扱い

- **画像の書き出し・変換は自分で行わず、ユーザーに依頼する**(エージェントが行うと著しく遅いため。作業分担のルール)
- 配置されたファイルの命名は `[種類]-[修飾語・詳細]-[連番]@[解像度].[拡張子]`(`[種類]` と `[拡張子]` は必須)。種類は `bg` / `pict` / `thumb` / `hero` / `banner` / `text` / `logo` / `icon` / `obj` から選ぶ([メディア: 画像](https://guidelines.d-zero.co.jp/media/image.html))
- フォーマットは可能であれば AVIF・WebP を採用する。ベクターデータがあるものは SVG を採用する
- 画像をページやコンポーネントごとのサブディレクトリに分けない(共通で使い回すか将来わからないため)

Attribution

d-zero-devd-zero-dev
View sourceMore from d-zero-dev →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Responsive Design

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

399752 votes

Mermaid Diagrams

Creating and refining Mermaid diagrams with live reload. Use when users want flowcharts, sequence diagrams, class diagrams, ER diagrams, state diagrams, or any other Mermaid visualization. Provides best practices for syntax, styling, and the iterative workflow using mermaid_preview and mermaid_save tools.

2102 votes

sleek-design-mobile-apps

Use when the user wants to design a mobile app, create screens, build UI, or interact with their Sleek projects. Covers high-level requests ("design an app that does X") and specific ones ("list my projects", "create a new project", "screenshot that screen").

5711 votes

swiftui-design-skill

SwiftUI frontend visual design skill. Creates beautiful, distinctive iOS/macOS interfaces that avoid generic AI slop patterns. Covers design direction, layout systems, typography, color, spacing, brand integration, and design review. Use when designing new SwiftUI views, reviewing UI quality, creating iOS prototypes, choosing visual styles, improving app aesthetics, or when the UI looks generic or AI-generated.

1801 votes

Ios Hig

Use when designing iOS interfaces, implementing accessibility (VoiceOver, Dynamic Type), handling dark mode, ensuring adequate touch targets, providing animation/haptic feedback, or requesting user permissions. Apple Human Interface Guidelines for iOS compliance.

761 votes
View all in design →