- Source: sources/engineering-cms-developer.md - Entities: WordPress, Drupal - Concepts: ContentModel-first, CodeOverConfiguration - Updated: index.md (Sources/Entities/Concepts), overview.md, log.md
3.7 KiB
3.7 KiB
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-first)CMS 实现
- 方法/机制:通过 ContentModel-first 工作流 + WordPress/Drupal 双平台技术栈 + Code over configuration UI 原则,提供生产级 CMS 交付物
- 结论/价值:让编辑爱用、开发者可维护、基础设施可扩展的 CMS 实现专家 Agent
Key Claims(用中文描述)
- CMS Developer Agent:Drupal 和 WordPress 全栈开发专家 Agent,可交付从内容建模到上线审计的完整 CMS 开发生命周期
- ContentModel-first 原则:在编写任何主题代码前,必须先锁定字段、内容类型和编辑工作流
- Code over configuration UI:自定义帖子类型、分类、字段、代码块均通过代码注册,绝不依赖后台 UI
- Never fight the CMS:使用 hooks/filters/plugin 系统,绝不 monkey-patch 核心代码
- Configuration as code:Drupal 配置导出为 YAML;WordPress 配置写入 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
- GutenbergBlockEditor:WordPress 5.0+ 的块编辑器系统,支持通过 block.json + JS + PHP render 构建自定义块
- LayoutBuilder:Drupal 的可视化布局构建器,支持 per-node 布局、布局模板、自定义 section/component 类型
- TwigTemplating:Drupal 的 PHP 模板引擎,配合 preprocess hooks 提供灵活的数据处理能力
- ACFPro:WordPress 高级自定义字段插件,支持灵活内容(Flexible Content)和 ACF Blocks
- ComposerWorkflow:Drupal 的依赖管理和包工作流,包括 patches、版本锁定、安全更新
- WCAGCompliance:网页内容无障碍指南 2.1 AA 级标准
Key Entities
- WordPress:开源 CMS 平台,擅长编辑简单性、WooCommerce 电商、广泛插件生态
- Drupal:开源 CMS 平台,擅长复杂内容模型、企业级、多语言场景
- Gutenberg:WordPress 5.0+ 内置的块编辑器系统
- ACF(Advanced Custom Fields):WordPress 字段管理插件(Pro 版支持 ACF Blocks)
- Paragraphs + Layout Builder:Drupal 的灵活内容构建方案
Connections
- ContentModel-first ← foundational ← GutenbergBlockEditor / LayoutBuilder / TwigTemplating
- CodeOverConfiguration ← implements ← WordPress / Drupal custom development
- CMSDeveloper ← extends ← BackendArchitect(内容架构与 API 设计层面)
- CMSDeveloper ← complements ← SoftwareArchitect(系统架构层面)
- WCAGCompliance ← required_by ← all CMS deliverables
- WordPress ← used_for ← brochure_sites / WooCommerce / headless_WP
- Drupal ← used_for ← enterprise_platforms / complex_content_models / multilingual_sites
Contradictions
- 无已知内容冲突