d-zero-dev/frontend-guidelines/dzero-tech-selection

Claude Code and agent skill by d-zero-dev/frontend-guidelines

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

UI・機能・コンポーネントの実装レイヤー(HTML/CSS/JavaScript)を決定する判断基準。実装・修正の着手前に必ず読む。アコーディオン、モーダル、ポップオーバー、開閉・切替などのインタラクション実装を依頼されたときに使う。

Install

npx vskill@latest install d-zero-dev/frontend-guidelines/dzero-tech-selection

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry/dzero-tech-selection.

実装レイヤー選定

UI や機能の実装に着手する前に、どのレイヤー(HTML / CSS / JavaScript)で実装するかを必ず決定する。 インタラクションは基本的に宣言的に記述し、JavaScript での実装は最小限に抑える(HTML: インタラクション)。

カスケード判断

上から順に検討し、上位レイヤーで実現できるなら下位レイヤーを使わない。

  1. HTML で実現できるか
  • ネイティブ要素・属性で実現できるものは HTML で実装する
  • インタラクティブな呼び出しは原則button要素 + command属性。規定アクション(toggle-popover/show-popover/hide-popover/show-modal/close)はそのまま活用する
  1. CSS で実現できるか
  • スタイルは CSS、ロジックは JavaScript に分離する。状態変化によるスタイルは CSS 側で管理する
  • JavaScript からstyle属性を直接書き換える実装は避ける(詳細はdzero-js)
  1. JavaScript が必要な場合
  • 規定アクション中の処理・カスタムコマンドの実装、上記で実現できないロジックのみ JavaScript で行う
  • 頻発イベント(scroll/resize等)はイベントではなく代替 API(IntersectionObserver/ResizeObserver/matchMedia)を利用する

代表パターン対応表

実装したいもの選定
アコーディオン・開閉details / summary
モーダルダイアログdialog + button command="show-modal"
ポップオーバー・ツールチップ類popover属性 + button command="toggle-popover"
要素の状態(無効・展開など)ネイティブ属性 → ARIA 属性 → data-*属性 の優先順位(詳細はdzero-html)
ビューポート進入の検知IntersectionObserver(scrollイベント監視は不可)
要素サイズ変更の検知ResizeObserver(resizeイベント・setTimeout監視は不可)
ウィンドウ幅・メディアクエリ状態window.matchMedia(resizeイベント監視は不可)
レスポンシブの画像出し分けpicture要素(sp-only / pc-onlyクラスのimg二重配置は不可)
HTML 標準に存在しないコンポーネント(タブ等)WAI-ARIA + APG準拠で実装(詳細はdzero-a11y)

WAI-ARIA を使うのは「HTML 標準では再現できないコンポーネントを作成するときのみ」(HTML: アクセシビリティ)。

選定後

決定したレイヤーの軸スキル(dzero-html/dzero-css/dzero-js)を読んでから実装する。デザインデータ(Figma 等)を参照する実装の場合はdzero-design-to-codeも読む。

実装後は必ずブラウザで表示・動作・インタラクションを確認する(コードを読むだけで完了としない。確認手段はプロジェクトの環境の指示に従う)。

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/d-zero-dev/frontend-guidelines/dzero-tech-selection/badge)](https://verified-skill.com/skills/d-zero-dev/frontend-guidelines/dzero-tech-selection)

Something wrong with this skill or its page? Tell us.