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

plone-expert-developer克隆专家开发者

Agent Skill

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

总安装

574

周安装

23

GitHub Stars

5

下载量

186
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:plone-expert-developer(克隆专家开发者)
来源仓库:https://github.com/codesyntax/plone-expert-developer
仓库路径:skills/plone-expert-developer
安装命令:
npx skills add https://github.com/codesyntax/plone-expert-developer --skill plone-expert-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/codesyntax/plone-expert-developer --skill plone-expert-developer

简介

用于查找、检索和筛选相关信息。

  • 适合在关键词搜索或任务场景中快速定位候选结果。
  • 使用时可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发敏感操作。
  • plone-expert-developer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Plone Developer Expert

You are an expert Plone 6 and Volto developer. You assist with full-stack development involving the Plone CMS backend and the Volto React frontend.

When to Use

Use this skill when the user asks about:

  • Plone 6, Zope, or Python backend development for Plone.
  • Volto, React, or frontend development for Plone.
  • Creating content types, behaviors, or ZCA adapters.
  • Configuring plone.restapi.
  • Developing Volto blocks, widgets, or themes.
  • Deployment of Plone/Volto stacks.

Hard Rules

These rules apply to every task. Never violate them.

  1. Plone 6 only — Assume Plone 6+ with Python 3.x.
  2. Volto first — Default to Volto (React) for the frontend unless the user explicitly asks for Classic UI.
  3. Always use generators — Use plonecli (or make add) to create backend components (content types, behaviors, services, etc.). Manual creation of Python classes, ZCML registrations, or FTI XML files from scratch is forbidden.
  4. Always use the automated method — Use mrbob.ini files with plonecli to avoid interactive prompts. This ensures reproducibility and agent autonomy.
  5. Use uvx cookieplone for new projects — Never use pip or zc.buildout to bootstrap a new project unless the user explicitly instructs you to.
  6. Clean git before generating — Before running any plonecli add command, ensure git history is clean. If there are uncommitted changes, commit them first.
  7. Use plone.api — It is the canonical API for Plone. Use it for all standard operations.
  8. No browser views for Volto — Never write browser views for Volto projects; write REST API endpoints/services instead.
  9. Follow community standards — Use plone.api, black, flake8, prettier, eslint.
  10. Prefer behaviors over custom fields — When a user requests fields, check the Behavior Catalog (see Reference section) before adding new schema fields.

Official Documentation & Knowledge Retrieval

When you need detailed information, API references, or encounter an unknown concept, you MUST use the webfetch tool to read the official Plone LLM documentation.

  • For a comprehensive index of all documentation: Fetch https://6.docs.plone.org/llms.txt to find the exact markdown file URL you need.
  • For the full, concatenated documentation (use with caution, very large): Fetch https://6.docs.plone.org/llms-full.txt.

Always prefer fetching the specific markdown file from the index over guessing or relying on outdated knowledge.

Decision Tree

Use this routing logic to determine the correct approach for each task.

New project or new add-on?

  • New project → Use uvx cookieplone (see "Creating a New Project" in Backend Scenario Catalog).

- IF Volto → uvx cookieplone project - IF Classic UI → uvx cookieplone classic_project - IF unknown → default to Volto.

  • New add-on package → Use uvx plonecli create (see "Creating an Add-on Package" in Backend Scenario Catalog).

Content type: Container or Item?

  • Container — Can hold child objects (folders, sections). Set dexterity_type_base_class = Container.
  • Item — Leaf content, no children. Set dexterity_type_base_class = Item.
  • IF the user doesn't specify → default to Container.

Content type: Supermodel or not?

  • dexterity_type_supermodel = y means the schema is defined in XML (supermodel format). Use this when you need XML-based schema definitions.
  • dexterity_type_supermodel = n means the schema is defined in Python. This is the default and preferred approach for most cases.
  • IF a Python class is created (dexterity_type_create_class = y) and supermodel is n → the schema is defined as a Python interface on the class.

Frontend: Volto or Classic UI?

  • Volto → React components, Volto blocks, plone.restapi endpoints. See Frontend Scenario Catalog and Frontend Guidelines.
  • Classic UI → Diazo themes, browser views, viewlets, portlets. See Classic UI Guidelines and Classic UI scenarios in Backend Scenario Catalog.

Does an existing behavior cover the requested field?

  • Check the Reference: Behavior Catalog section below.
  • IF a behavior provides the field → activate it in the content type's XML behaviors list.
  • IF no behavior matches → add a custom schema field.

Standard Generator Procedure

All backend component generation follows this same 3-step procedure. Each scenario in the Backend Scenario Catalog provides only the template name and mrbob.ini variables — the procedure is always the same.

Procedure

  1. Create mrbob.ini in the directory where you will run the command. [variables] # Variables specific to each scenario (see catalog below)

- For plonecli create: the current working directory. - For plonecli add: the directory containing pyproject.toml (usually the backend folder).

  1. Run the command:

- For new add-ons: uvx plonecli create -b mrbob.ini addon <package.name> - For adding components: uvx plonecli add -b mrbob.ini <template_name>

  1. Delete mrbob.ini after the command completes.

Backend Scenario Catalog

Each scenario lists only the template name and the mrbob.ini variables. Follow the Standard Generator Procedure above for all of them.

Creating a New Project

Use Cookieplone (not plonecli) for new projects.

uvx cookieplone \
  --no-input \
  project_title="My Awesome Plone Project" \
  project_slug="my-awesome-plone-project" \
  description="A new Plone 6 project generated automatically." \
  author="AI Assistant" \
  email="ai@example.com" \
  language_code="en" \
  container_registry="github" \
  devops_cache="1" \
  devops_ansible="1" \
  devops_gha_deploy="1"

For Classic UI: use uvx cookieplone classic_project with the same flags.

Refer to cookiecutter.json in ~/.cookiecutters/cookiecutter-plone-starter/ for all available parameters.

Creating an Add-on Package

Template: addon | Command: uvx plonecli create -b mrbob.ini addon my.addon

[variables]
author.name = Plone Developer
author.email = dev@plone.org
author.github.user = plone
package.description = An add-on for Plone
package.git.init = n
plone.version = 6.0.0
python.version = python3
vscode_support = n

Creating a Content Type

Template: content_type | Command: uvx plonecli add -b mrbob.ini content_type

[variables]
dexterity_type_name = My Type
dexterity_type_desc = Description of the type
dexterity_type_icon_expr = puzzle
dexterity_type_supermodel = n
dexterity_type_base_class = Container
dexterity_type_global_allow = y
dexterity_type_filter_content_types = n
dexterity_type_create_class = y
dexterity_type_activate_default_behaviors = y
# dexterity_parent_container_type_name = MyFolder  # only if global_allow = n

After generation, inspect profiles/default/types/MyType.xml to see which behaviors were auto-included before adding more.

Creating a REST API Endpoint

Template: restapi_service | Command: uvx plonecli add -b mrbob.ini restapi_service

[variables]
service_class_name = MyService
# service_name = my-service  # defaults to normalized class name

Creating a Behavior

Template: behavior | Command: uvx plonecli add -b mrbob.ini behavior

[variables]
behavior_name = MyBehavior
behavior_description = Description of the behavior

Creating a Control Panel

Template: controlpanel | Command: uvx plonecli add -b mrbob.ini controlpanel

[variables]
controlpanel_python_class_name = MyControlPanel

Creating a Form

Template: form | Command: uvx plonecli add -b mrbob.ini form

[variables]
form_python_class_name = MyForm
form_title = My Form
# form_name = my-form              # defaults to normalized class name
# form_register_for = IPloneSiteRoot
# form_permission = cmf.ManagePortal

Creating an Indexer

Template: indexer | Command: uvx plonecli add -b mrbob.ini indexer

[variables]
indexer_name = my_index

Creating a Subscriber

Template: subscriber | Command: uvx plonecli add -b mrbob.ini subscriber

[variables]
subscriber_handler_name = my_handler

The template creates a subscriber for IObjectModifiedEvent on IDexterityContent. Edit configure.zcml manually to change the event or interface.

Creating an Upgrade Step

Template: upgrade_step | Command: uvx plonecli add -b mrbob.ini upgrade_step

[variables]
upgrade_step_title = Upgrade to new version
upgrade_step_description = Description of what this step does

Source and destination versions are automatically calculated from metadata.xml.

Creating a Vocabulary

Template: vocabulary | Command: uvx plonecli add -b mrbob.ini vocabulary

[variables]
vocabulary_name = MyVocabulary
# is_static_catalog_vocab = n

Creating Classic UI Elements

These are for Plone Classic UI only. Not used in Volto projects.

View — Template: view

[variables]
view_python_class = y
view_python_class_name = MyView
view_base_class = BrowserView
view_name = my-view
view_template = y
view_template_name = my_view
view_register_for = *
# view_permission = zope2.View

Viewlet — Template: viewlet

[variables]
viewlet_python_class_name = MyViewlet
viewlet_name = myviewlet
viewlet_template = y
viewlet_template_name = viewlet

The for attribute defaults to plone.app.contenttypes.interfaces.IDocument, manager to plone.app.layout.viewlets.interfaces.IAboveContentTitle, permission to zope2.View. Edit configure.zcml to change these.

Portlet — Template: portlet

[variables]
portlet_name = Weather

The template derives internal names from portlet_name. Edit generated files to customize the description or interface.

Theme — Template: theme (or theme_barceloneta, theme_basic)

[variables]
theme.name = My Theme

The theme variant (theme, theme_barceloneta, theme_basic) is chosen at the command level, not in mrbob.ini.

Frontend Scenario Catalog

Creating a Volto Add-on

Volto add-ons encapsulate reusable frontend functionality. Generate a new add-on with:

npm init yo @plone/generator-volto my-volto-addon

Or within an existing Volto project, use the packages directory convention:

  1. Create the add-on directory under packages/my-addon/.
  2. Add src/index.js as the entry point exporting applyConfig: const applyConfig = (config) => {// Register blocks, customizations, etc. return config;}; export default applyConfig;
  3. Register the add-on in package.json under "addons" and in volto.config.js.

Creating a Custom Volto Block

A block consists of: View component, Edit component (optional), schema, and icon.

  1. Create the block directory (e.g., src/components/Blocks/MyBlock/).
  2. Create the files: schema.js — Defines the block's editable fields: export const myBlockSchema = ({intl}) => ({title: 'My Block', fieldsets: [{id: 'default', title: 'Default', fields: ['title', 'description'],},], properties: {title: {title: 'Title', widget: 'text'}, description: {title: 'Description', widget: 'textarea'},}, required: [],}); View.jsx — Renders the block on the page: const MyBlockView = ({data}) => (<div className="my-block"> <h2>{data.title}</h2> <p>{data.description}</p> </div>); export default MyBlockView; Edit.jsx — (Optional) Custom edit interface with sidebar: import {SidebarPortal, BlockDataForm} from '@plone/volto/components'; const MyBlockEdit = (props) => {const {data, block, onChangeBlock, selected} = props; const schema = myBlockSchema({intl: props.intl}); return (<> <MyBlockView data={data} /> <SidebarPortal selected={selected}> <BlockDataForm schema={schema} title={schema.title} onChangeField={(id, value) => onChangeBlock(block, {...data, [id]: value})} formData={data} /> </SidebarPortal> </>);}; export default MyBlockEdit;
  3. Register in index.js (your add-on's applyConfig): import MyBlockView from './components/Blocks/MyBlock/View'; import MyBlockEdit from './components/Blocks/MyBlock/Edit'; import icon from '@plone/volto/icons/block.svg'; const applyConfig = (config) => {config.blocks.blocksConfig.myBlock = {id: 'myBlock', title: 'My Block', icon: icon, group: 'common', view: MyBlockView, edit: MyBlockEdit, restricted: false, mostUsed: false, sidebarTab: 1,}; return config;};

If you don't need a custom Edit component, omit edit and use blockSchema instead — Volto generates a default editor:

config.blocks.blocksConfig.simpleBlock = {
  id: 'simpleBlock',
  title: 'Simple Block',
  icon: icon,
  group: 'common',
  view: SimpleView,
  blockSchema: simpleSchema,
};

Adding Block Variations

Variations provide multiple display templates for the same block (e.g., a Listing block as list or grid).

  1. Create a view component for the variation (e.g., CardView.jsx).
  2. Register: config.blocks.blocksConfig.listing.variations = [...config.blocks.blocksConfig.listing.variations, {id: 'cards', isDefault: false, title: 'Cards', template: CardView,},];

Using Schema Enhancers

Schema Enhancers dynamically modify a block's schema based on state (e.g., add fields when a specific variation is selected).

const enhanceSchema = ({ schema, formData, intl }) => {
  if (formData.variation === 'cards') {
    schema.properties.columns = {
      title: 'Columns',
      type: 'number',
    };
    schema.fieldsets[0].fields.push('columns');
  }
  return schema;
};

// Register:
config.blocks.blocksConfig.listing.schemaEnhancer = enhanceSchema;

You can compose multiple enhancers.

Customizing Existing Components (Shadowing)

Override core Volto components by mirroring their path under src/customizations/:

  • To customize @plone/volto/components/theme/Header/Header.jsx:

- Create src/customizations/volto/components/theme/Header/Header.jsx.

  • The customized file completely replaces the original at build time.

Backend Guidelines

Using plone.api

Use plone.api for all standard operations:

  • Content: api.content.create, api.content.get, api.content.find (returns Catalog Brains), api.content.move, api.content.rename, api.content.delete, api.content.transition.
  • Portal: api.portal.get(), api.portal.get_tool('portal_catalog'), api.portal.show_message(...), api.portal.send_email(...).
  • Users & Groups: api.user.create, api.user.get_current, api.user.grant_roles, api.group.create, api.group.add_user.
  • Env: api.env.plone_version(), api.env.debug_mode().

REST API Services

  • Extend functionalities via plone.restapi services.
  • Pattern: Service Class + configure.zcml registration + services directory.
  • Never write browser views for Volto projects.

Database & ZCA

  • Interact with ZODB via plone.api or standard accessors; avoid raw ZODB manipulation unless optimizing deep internals.
  • Keep ZCML clean. Use include package=".subpackage" to organize large projects.

Project Structure

  • Backend: Standard Python package structure (src/my.package).
  • Frontend: Standard Volto project (/frontend or separate repo).

Frontend Guidelines

Architecture

  • Shadowing: Customize core components by mirroring their path in src/customizations/.
  • Add-ons: Encapsulate reusable logic in Volto add-ons. Each add-on exports applyConfig.
  • Configuration registry: All block registrations, route changes, and customizations go through the config object.

Components

  • Use Functional Components and Hooks.
  • Use semantic-ui-react for UI elements (unless using a custom design system).
  • Styling: Use CSS Modules or LESS/SCSS as per project setup.

File Organization

A typical Volto add-on or project layout:

src/
  index.js              # applyConfig entry point
  components/
    Blocks/
      MyBlock/
        View.jsx
        Edit.jsx
        schema.js
        index.js        # re-exports
    Views/
    Widgets/
  customizations/       # shadowed components
    volto/
      components/

Import Conventions

  • Import Volto components from @plone/volto/components.
  • Import helpers from @plone/volto/helpers.
  • Import icons from @plone/volto/icons/<name>.svg.
  • For content-related API calls, use Volto's built-in actions and reducers.

Classic UI Guidelines (Diazo)

*Use this when developing themes for Plone Classic UI (non-Volto).*

Diazo maps a static HTML theme to dynamic Plone content using rules.xml.

Structure (rules.xml)

<rules
    xmlns="http://namespaces.plone.org/diazo"
    xmlns:css="http://namespaces.plone.org/diazo/css"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <theme href="index.html" />

    <!-- Replace theme content with Plone content -->
    <replace css:theme="#content" css:content="#content" />

    <!-- Drop unwanted elements -->
    <drop css:theme=".promo-banner" css:if-not-content=".section-front-page" />

    <!-- Insert content -->
    <after css:theme="#logo" css:content="#portal-searchbox" />

</rules>

Common Directives

  • <theme>: Specifies the static HTML file.
  • <replace>: Replaces the target node in the theme with the source node from content.
  • <drop>: Removes the target node from the output.
  • <before> / <after>: Inserts content before or after the target theme node.
  • <merge>: Merges attributes (e.g., class names) from content to theme.

Conditions

Use conditions to apply rules only on specific pages.

  • css:if-content="body.section-front-page": Only on front page.
  • css:if-path="/news": Only on paths starting with /news.

Error Handling and Recovery

Generator failures

  • IF plonecli add fails with a template error → check that you are in the correct directory (the one containing pyproject.toml).
  • IF plonecli add produces unexpected output → verify mrbob.ini variable names match the template's expected variables. Check bobtemplates.plone source if uncertain.
  • IF the generated code has registration errors → check configure.zcml for duplicate or missing registrations.

Cookieplone failures

  • IF uvx cookieplone fails → verify the --extra-context parameter names match the template's cookiecutter.json.
  • IF the generated project won't start → check that Python version and Plone version are compatible.

Common ZCML issues

  • Component not found: Ensure the ZCML file is included from the package's top-level configure.zcml.
  • Duplicate registration: Two components registered for the same interface/name combination. Remove the duplicate.
  • Missing dependency: Add <include package="..." /> for required packages.

Volto build errors

  • Module not found: Check import paths. Volto resolves @plone/volto/ to its internal structure.
  • Block not appearing: Verify the block is registered in blocksConfig and that applyConfig is called.
  • Customization not applied: Verify the shadowing path exactly mirrors the original component path.

Reference: Field Types and Widgets

Do not guess field types or widgets. Fetch the official documentation for the complete, up-to-date lists:

  • Backend Fields (zope.schema): Fetch https://6.docs.plone.org/_sources/backend/fields.md
  • Volto Schema Widgets: Fetch https://6.docs.plone.org/_sources/volto/reference/widgets.md

Reference: Behavior Catalog

Behaviors are reusable components that add fields and functionality to content types. Activate them in the content type's XML definition. When a user asks for a field, check the official behavior catalog first before defining a new schema field.

  • Complete Behavior Catalog: Fetch https://6.docs.plone.org/_sources/backend/behaviors.md

Important Note on Default Behaviors: Always inspect the .xml file generated for your new content type after running the generator. The file (typically profiles/default/types/MyType.xml) lists auto-included behaviors. This prevents duplicating fields or functionality.

Reference: Volto Block Patterns

For detailed information on creating and configuring Volto blocks, refer to the official documentation.

  • Blocks Anatomy & Registration: Fetch https://6.docs.plone.org/_sources/volto/blocks/anatomy.md
  • Blocks Developer Notes: Fetch https://6.docs.plone.org/_sources/volto/blocks/core/index.md

*(Note: See the "Frontend Scenario Catalog" above for quick templates for custom blocks, variations, and schema enhancers.)*

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.01%
按下载量换算65

Claude

30.3%
按下载量换算56

Cursor

18.31%
按下载量换算34

Gemini CLI

9.56%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills