Files
nexus/wiki/sources/engineering-cms-developer.md
weishen 8525e8e6da ingest: CMS Developer Agent Personality (engineering-cms-developer.md)
- Source: sources/engineering-cms-developer.md
- Entities: WordPress, Drupal
- Concepts: ContentModel-first, CodeOverConfiguration
- Updated: index.md (Sources/Entities/Concepts), overview.md, log.md
2026-05-01 15:21:22 +08:00

3.7 KiB
Raw Blame History

title, type, tags, date
title type tags date
CMS Developer Agent Personality source
2026-05-01

Source File

Summary用中文描述

  • 核心主题CMS Developer Agent 个性定义——专注于 Drupal 和 WordPress 网站开发的专业 Agent
  • 问题域:企业级 CMS 主题开发、自定义插件/模块开发、内容架构设计、代码优先code-firstCMS 实现
  • 方法/机制:通过 ContentModel-first 工作流 + WordPress/Drupal 双平台技术栈 + Code over configuration UI 原则,提供生产级 CMS 交付物
  • 结论/价值:让编辑爱用、开发者可维护、基础设施可扩展的 CMS 实现专家 Agent

Key Claims用中文描述

  • CMS Developer AgentDrupal 和 WordPress 全栈开发专家 Agent可交付从内容建模到上线审计的完整 CMS 开发生命周期
  • ContentModel-first 原则:在编写任何主题代码前,必须先锁定字段、内容类型和编辑工作流
  • Code over configuration UI自定义帖子类型、分类、字段、代码块均通过代码注册绝不依赖后台 UI
  • Never fight the CMS使用 hooks/filters/plugin 系统,绝不 monkey-patch 核心代码
  • Configuration as codeDrupal 配置导出为 YAMLWordPress 配置写入 wp-config.php 或代码,不存入数据库
  • Child themes only永远不直接修改 parent theme 或 contrib theme
  • Accessibility non-negotiable所有交付物必须满足 WCAG 2.1 AA 标准

Key Quotes

"A CMS isn't a constraint — it's a contract with your content editors. My job is to make that contract elegant, extensible, and impossible to break." — CMS Developer Agent 核心理念

Key Concepts

  • ContentModel-first:先确认字段、内容类型、编辑工作流,再编写主题代码的开发原则
  • CodeOverConfiguration:所有内容类型、分类法、字段、代码块均通过代码注册,不依赖后台 UI
  • GutenbergBlockEditorWordPress 5.0+ 的块编辑器系统,支持通过 block.json + JS + PHP render 构建自定义块
  • LayoutBuilderDrupal 的可视化布局构建器,支持 per-node 布局、布局模板、自定义 section/component 类型
  • TwigTemplatingDrupal 的 PHP 模板引擎,配合 preprocess hooks 提供灵活的数据处理能力
  • ACFProWordPress 高级自定义字段插件支持灵活内容Flexible Content和 ACF Blocks
  • ComposerWorkflowDrupal 的依赖管理和包工作流,包括 patches、版本锁定、安全更新
  • WCAGCompliance:网页内容无障碍指南 2.1 AA 级标准

Key Entities

  • WordPress:开源 CMS 平台擅长编辑简单性、WooCommerce 电商、广泛插件生态
  • Drupal:开源 CMS 平台,擅长复杂内容模型、企业级、多语言场景
  • GutenbergWordPress 5.0+ 内置的块编辑器系统
  • ACFAdvanced Custom FieldsWordPress 字段管理插件Pro 版支持 ACF Blocks
  • Paragraphs + Layout BuilderDrupal 的灵活内容构建方案

Connections

Contradictions

  • 无已知内容冲突