Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

datocms-plugin-design-systemdatocms 插件设计系统

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

1,934

周安装

79

GitHub Stars

公开资料未说明

下载量

626
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:datocms-plugin-design-system(datocms 插件设计系统)
来源仓库:https://github.com/datocms/agent-skills
仓库路径:skills/datocms-plugin-design-system
安装命令:
npx skills add https://github.com/datocms/agent-skills --skill datocms-plugin-design-system
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/datocms/agent-skills --skill datocms-plugin-design-system

简介

用于优化 DatoCMS 插件的界面外观与用户体验一致性。

  • 重点解决视觉适配、布局密度和层级结构问题。datocms-plugin-design-system 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 推荐使用原生 datocms-react-ui 组件替代自定义样式。
  • 通过 CSS 微调实现第一方 CMS 般的自然观感。
  • 避免过度设计,聚焦于提升可用性与品牌契合度。

SKILL.md

DatoCMS Plugin Design System

This skill turns plugin UI work into native-feeling DatoCMS UI work. Use it when the main problem is visual fit, structure, density, or styling — not when the main problem is wiring hooks or scaffolding a new plugin.

Typical requests this skill should own:

  • “Make this plugin config screen feel native to DatoCMS”
  • “Restyle this sidebar panel to match the DatoCMS dashboard”
  • “Use raw CSS so this plugin page looks like a first-party DatoCMS screen”
  • “Tighten the spacing and hierarchy in this plugin modal”
  • “Choose datocms-react-ui components that best match the CMS UI”

Step 1: Detect context silently

  1. Identify whether the target is:

- an existing plugin project - a greenfield plugin scaffold - a single screen or surface inside a larger plugin

  1. Identify the touched surface:

- config screen - page - sidebar panel - full sidebar - modal - outlet - inspector - asset source

  1. Check whether the project already uses datocms-react-ui.
  2. Check whether the requested change is primarily:

- visual restyling - layout restructuring - control selection - theme alignment - density cleanup

  1. Read the smallest existing UI slice before changing anything:

- the entrypoint for the surface - the component being restyled - its local CSS or CSS module - package.json only if component availability is unclear

Ask nothing unless the repo cannot tell which surface or plugin repo is being changed.

Step 2: Choose the implementation path

Use the narrowest path that keeps the result native.

A. Public component path first

Choose this when datocms-react-ui already exposes the control or layout primitive you need.

Prefer it for:

  • Canvas
  • form wrappers and grouped settings
  • standard fields
  • buttons and button groups
  • sections
  • toolbar and header structure
  • sidebar panels
  • dropdowns
  • spinners and loading states
  • split layouts with VerticalSplit when available

B. Raw React + CSS fallback

Choose this when the public package does not expose the needed layout or when exact CMS composition matters more than a near match.

Use raw code for:

  • page shells that need CMS-like spacing but not a full custom component library
  • list and table wrappers plus lightweight summary rows
  • special empty states or info blocks
  • split or two-pane layouts when the installed UI package version does not provide a fitting primitive
  • surface-specific wrappers that only need theme variables and clean CSS

Do not import private CMS styles or private CMS class names into plugins. Recreate the structure with plugin-local CSS using Canvas variables.

Step 3: Load the minimum references

Always start with:

  • references/foundations.md
  • references/datocms-react-ui-bridge.md

Load references/source-map.md only when the public docs plus the current plugin code are not enough and you need local visual calibration from a CMS checkout.

Then load only the touched reference:

  • layout or page structure -> references/layouts.md
  • forms, settings screens, controls -> references/forms-and-controls.md
  • tabs, dropdowns, tables, notices, blank slates -> references/navigation-feedback-and-data-display.md
  • hook-specific screen shape and sizing -> references/plugin-surfaces.md
  • raw CSS implementation -> references/raw-css-fallbacks.md

Do not load the whole bundle for a small restyle.

Step 4: Build native-looking UI

Keep these guardrails:

  • Match DatoCMS density before inventing layout.
  • Use project theme variables from <Canvas> instead of hardcoded brand colors.
  • Prefer 1px borders, 3-5px radii, and subtle shadow only where the CMS uses it.
  • Keep page widths, toolbar heights, section spacing, and form rhythm close to the CMS source of truth.
  • Use one primary action per section or screen.
  • Keep destructive actions isolated.
  • Use labels above controls, hints below, and concise error text.
  • Favor sections, toolbars, sidebars, and tables over decorative cards.
  • Avoid hero blocks, KPI grids, ornamental copy, oversized rounded corners, heavy gradients, and dashboard filler.
  • Keep custom CSS local to the plugin and variable-driven.
  • If a public component is close but incomplete, compose around it instead of replacing all controls.

When a user asks for a plugin UI that “looks native”, optimize in this order:

  1. structure
  2. spacing
  3. typography
  4. color and theming
  5. control choice
  6. micro-interactions

Step 5: Verify

Run the smallest useful verification in the target plugin repo:

  • the repo's existing build script (npm run build, pnpm build, etc.) by default
  • or the nearest existing typecheck or build command

Then name the one manual UI check that matters most for the surface:

  • config screen -> spacing, section grouping, primary action placement
  • page -> toolbar or header rhythm and scroll behavior
  • sidebar panel -> density and collapsed or open behavior
  • modal -> focus, width, and action hierarchy
  • outlet -> inline fit with surrounding CMS UI
  • asset source -> search or result rhythm and sizing
  • inspector or full sidebar -> noAutoResizer and two-pane behavior if present

Cross-skill routing

  • New plugin project or new plugin folder -> datocms-plugin-scaffold
  • Existing plugin feature work, hook wiring, parameter logic, or surface behavior -> datocms-plugin-builder
  • Mixed tasks are normal:

- use this skill for native DatoCMS UI choices - pair with scaffold or builder for hook wiring or project setup

  • Standalone CMA work outside plugin UI -> datocms-cma
  • Front-end site integration work -> datocms-frontend-integrations

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.82%
按下载量换算237

Claude

29.4%
按下载量换算184

Cursor

20.29%
按下载量换算127

Gemini CLI

10.48%
按下载量换算66

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills