Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

datocms-plugin-builderdatocms 插件生成器

Agent Skill

datocms-plugin-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,891

周安装

78

GitHub Stars

公开资料未说明

下载量

618
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于增强现有 DatoCMS 插件的功能或调整其用户界面。

  • 默认采用增量修改模式,保持改动范围最小化。datocms-plugin-builder 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 首先识别受影响的表面区域,再针对性地实施变更。
  • 充分利用 datocms-react-ui 组件库确保视觉一致性。
  • 每次编辑后应重新检查 connect() 调用及其他核心钩子配置。

SKILL.md

DatoCMS Plugin Builder

Default to augment mode. Move fast, inspect narrowly, and keep edits small. After the first grounding pass, stop rediscovering surfaces you already know.

Step 1: Pick the path

A. Initial surface discovery

Use this when the touched surface is not yet obvious.

  1. Read package.json and confirm the plugin uses datocms-plugin-sdk.
  2. Find the entry file that calls connect() (src/main.tsx, src/index.tsx, or equivalent).
  3. Inspect the existing connect() call before changing any hook.
  4. From the user request, identify the smallest touched surface:

- config screen / plugin parameters - field extension or manual field extension config - sidebar panel, full sidebar, outlet, or custom page - dropdown action or lifecycle hook - modal, inspector, asset source, or upload sidebar - record presentation or structured text customization - dependency, build, or type fix around the plugin

  1. Read only the direct path of the change:

- the connect() entry file - the component or helper being edited - any imported file that must change too

  1. Reuse the current file layout, naming, and UI patterns.

B. Fast follow-up edit

Use this when prior context or direct repo inspection already makes the surface obvious.

  1. Re-open only the touched render branch, component, and helper.
  2. Confirm the hook pair, parameter shape, and permission needs still match.
  3. Patch the existing branch/component/helper directly.
  4. Skip broad rediscovery unless the code stops answering the question.

Do not repeat full discovery for obvious small edits like label renames, config cleanup, option removal, one-hook wiring, modal copy tweaks, or validation adjustments.

Step 2: Ask only if the repo cannot answer

Ask zero questions by default.

Only ask when a wrong assumption would materially change behavior and the repo cannot resolve it, such as:

  • which DatoCMS surface to use
  • which model or field scope to target
  • whether a new permission or external dependency is allowed
  • whether the flow must stay inside SDK helpers or must use browser CMA calls

If no plugin project exists, or the user wants a brand-new plugin folder, switch to datocms-plugin-scaffold.

Step 3: Load only the needed references

Start from project code.

For day-2/day-3 maintenance patterns, load references/rapid-patterns.md first. Then load only the direct surface reference you need.

Surface references

  • Config screen / plugin parameters -> references/config-screen.md
  • Field extension / per-field config -> references/field-extensions.md
  • Sidebar panel / full sidebar -> references/sidebar-panels.md
  • Custom page -> references/custom-pages.md
  • Dropdown actions -> references/dropdown-actions.md
  • Lifecycle hooks -> references/lifecycle-hooks.md
  • Modal -> references/modals.md
  • Outlets -> references/outlets.md
  • Inspector -> references/inspectors.md
  • Asset source -> references/asset-sources.md
  • Upload sidebar / panel -> references/upload-sidebars.md
  • Structured text customization -> references/structured-text.md
  • Record presentation -> references/record-presentation.md

Load conditionally

  • references/connect-conventions.md when wiring or adjusting hooks, render switches, modal flows, or frame sizing behavior
  • references/form-values.md only when reading ctx.formValues outside field extensions, or when touching Structured Text / modular content values
  • references/permissions.md when adding or removing plugin permissions, using ctx.currentUserAccessToken, or shipping permission-gated UI branches
  • references/sdk-architecture.md only when the smaller references do not answer a deeper SDK or browser CMA question

Do not load the whole reference set for a small patch.

Step 4: Patch minimally

Prefer editing the existing declaration, render switch, component, or helper over reorganizing the plugin.

  • Do not move files unless it reduces total complexity or removes repeated surface glue.
  • Add a new file only when it keeps the patch smaller or isolates shared normalization / browser-CMA work used by the touched flow.
  • Keep dependency changes minimal and only add packages that the code actually uses.
  • Preserve the existing UI style unless the user asked for a redesign.

Keep these guardrails:

  • Inspect the existing connect() call before adding hooks.
  • Keep exactly one top-level connect() call.
  • Update declaration, render, execute, and package permissions together when a flow needs them.
  • Wrap rendered UI in <Canvas ctx={ctx}>; use noAutoResizer only for pages, inspectors, and full-width sidebars.
  • Use switch for ID-dispatched render hooks.
  • Use import type {...} for SDK types.
  • Guard ctx.item before reading record data.
  • Use get(ctx.formValues, ctx.fieldPath) in field extensions; use the localized-value patterns from references/form-values.md elsewhere.
  • Use useDeepCompareEffect instead of useEffect when depending on ctx object properties.
  • Keep ctx.openModal() parameters and ctx.resolve() values JSON-serializable.
  • Normalize stored plugin parameters at the read/save boundary instead of rewriting the whole screen.
  • Use ctx.setParameters() directly in renderManualFieldExtensionConfigScreen.
  • Do not create editor field extensions for modular content, single block, or structured text fields; use addon extensions instead.
  • Prefer datocms-react-ui and small local components for standard controls, spacing, and layout.
  • Introduce heavier custom UI only for tool-like interactions that standard components do not express cleanly.
  • Keep plugin screens and modals compact; avoid dashboard-style layouts, nested panels, decorative sections, or over-architecture.
  • Use browser CMA flows only when SDK helpers are not enough; keep permission changes and runtime guards aligned.

Maintenance shortcuts

  • Config screen edits: normalize parameters once, keep save logic narrow, and use plain local state unless the form truly earns react-final-form.
  • Asset source + modal: keep assetSources / renderAssetSource as the main path, use a modal only for a focused sub-step, and finish with ctx.select().
  • Upload sidebar + modal: keep the sidebar informational or single-action, open a modal for the focused edit, and resolve a minimal payload back.
  • Height / resizing: trust <Canvas ctx={ctx}> first; add initialHeight for first paint and use ResizeObserver + ctx.updateHeight() only when async or custom layout changes require it.
  • Browser CMA from plugin UI: prefer SDK helpers first; when the plugin must create uploads or records directly, use @datocms/cma-client-browser with ctx.currentUserAccessToken.
  • Permission additions: add only the permissions the code path actually uses, then keep package.json, runtime guards, and user-visible affordances in sync.

Step 5: Verify with the smallest useful check

Run the lightest existing verification that meaningfully covers the change:

  • the repo's existing build script (npm run build, pnpm build, etc.) by default for code changes
  • the most relevant test or typecheck command if the project already has one
  • install dependencies with the repo's package manager before verifying if dependencies changed

If the repo has no suitable script, run the closest existing build, typecheck, or lint command instead.

Report:

  1. what you changed
  2. what you ran
  3. the one manual DatoCMS check that still matters

That manual check should match the touched surface: the config save path, the modal resolve path, the asset/upload selection flow, the permission-gated branch, or the resizing behavior after async content loads.

Cross-skill routing

  • New plugin from scratch -> datocms-plugin-scaffold
  • Native DatoCMS plugin UI design, layout restyling, or design-system alignment -> datocms-plugin-design-system
  • Plugin-embedded browser CMA usage inside the iframe -> stay in this skill
  • Standalone CMA scripts or schema work outside the plugin iframe -> datocms-cma
  • Front-end preview, Content Link, or cache-tag work outside the plugin -> datocms-frontend-integrations

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.01%
按下载量换算210

Claude

29.91%
按下载量换算185

Cursor

20.31%
按下载量换算126

Gemini CLI

8.78%
按下载量换算54

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills