Community图像github.com

umairmsm/wp-content

第四阶段:真实内容与照片——所有者批准的文字、真实照片、法律页面及内容变更追踪。用于“撰写文案”、“添加照片”、“所有者发送了新照片”、“检查重复内容”、“更新线上价格或文字”、“法律页面”。

wp-content 是什么?

该技能是 WordPress 网站构建流程中的第四阶段(内容阶段),专注于确保网站上的每一段文字和每一张照片都是真实、合法且经过所有者批准的。它包含一套严格的流程:首先从所有者处获取事实(价格、政策等),标记缺失项并禁止捏造;AI 可生成草稿但必须标记为草稿,直至所有者批准;所有声明(数字、奖项、评价)都必须有来源证明并经过审核,禁止使用虚假数据。在图片处理方面,它会保留所有者原始照片,通过感知哈希去重、检查尺寸和许可证状态,生成包含替代文本的清单,并最终导入到网站中。该技能还要求创建法律页面(隐私声明、条款、印记),并通过结构化 JSON 文件和脚本来管理对线上内容的更改,严禁在线上直接手动编辑。它主要适用于遵循“wp-site-kit”框架的 WordPress 项目,可以集成声称审核代理(claims-auditor),并建议使用 Python 脚本进行照片处理。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/umairmsm/wp-site-kit/tree/HEAD/skills/wp-content

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

第四阶段:内容

目标:每个公开页面都应包含所有者批准的文字和真实、合法且轻量的照片。网站上没有任何内容声称企业无法证明的信息。

文案步骤

  1. 清单: 列出每个页面及其所需内容(文字、事实、照片),并记录在 docs/data/content-plan.md 中。
  2. 事实优先:
    • 事实(价格、包含项、时间、政策、安全说明)来自所有者,通过 docs/BRIEF.md 或 docs/data/<type>/ 中的数据文件提供。
    • 缺失 → 在标志列表(docs/data/<type>/_SUMMARY.md)中标记为 PENDING-<who>。绝不要捏造事实。
  3. 草稿: AI 可以撰写草稿,但草稿必须被标记为“草稿”(通过 <prefix>_copy_status 元字段或内容计划中的列表),直到所有者批准。
  4. 声明审核 在任何内容上线之前进行(references/copy-and-claims.md):
    • 每个声明都可以追溯到其来源;
    • 移除禁用词;
    • 数字、奖项和评价必须有证据支持。 如果安装了 claims-auditor 代理,请运行它。
  5. 分批进行所有者审阅(在测试环境中)。 发送简短消息,每条消息只包含一个可以用“是”或“否”回答的问题。冗长的问卷会数周无人回应。
  6. 法律页面: 隐私声明(需注明咨询保留期限)、条款或预订政策(仅使用所有者的措辞)、如果任何追踪需要获得同意则需 Cookie 声明,以及法律要求的印记信息(德国、奥地利)。
  7. 对线上内容的更改 应通过 docs/data/content-changes/*.json 和 scripts/apply-content-change.sh(wp-ship 阶段)进行。绝不通过线上手动编辑。

照片步骤(详情:references/photo-library.md)

  1. 将所有者的原始照片保存在 Git 之外的备份文件夹中。
  2. python3 -I scripts/photos/photos.py review <folder> → 生成审核 CSV:重复项(感知哈希)、库中已存在的照片、小尺寸照片。
  3. 亲自查看每个候选照片,或让更便宜的模型根据 CSV 来完成此操作。决定:导入(IMPORT)、暂留-人物(HOLD-people,未获得同意)、暂留-许可证(HOLD-licence,库存照片或未知来源)、或跳过(SKIP)。
  4. 编写清单(group,file,key,alt)。使用 --dry-run 运行导入,然后正式运行。将打印出的行粘贴到 photo-library.php 中。
  5. 模板使用 <prefix>_photo( 'key' )。每个区域最多使用两张照片,并且只有首屏图片(LCP image)使用 eager 加载。

检查点(在 SITE_STATUS.md 中勾选)

  • 每个公开页面都有所有者批准的文案(并记录日期)
  • 真实照片已导入并附带替代文本;AI 生成的图像已记录在 AI_IMAGES.md 中
  • 隐私声明、条款和政策已发布(使用所有者的措辞)
  • 公开页面上没有 PENDING- 事实和占位文字

禁止事项

  • 伪造或导入的评价计数、星级评分、“媒体报道”徽章、“超过 12,000 名满意客户”(无证据)。(我们曾删除过旧网站上一个虚构的数字和伪造的评价计数。)
  • AI 生成的有具体名称的房间、地点、产品或人物的图像,或任何声称“这就是你得到的”的图像。
  • 未经他人同意使用的人物照片。无法出示许可证的库存照片。
  • 在模板或翻译中直接键入的价格或政策语句。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

umairmsm/wp-build

Stage 3 of a wp-site-kit WordPress build - local DDEV site, the core must-use plugin (modules), the presentation-only child theme with skins, the content model (custom post types, meta, WP_Query, render functions), and the enquiry pipeline that saves leads before forwarding. Use when building or changing features, templates, content types, forms or plugin modules on a wp-site-kit site.

umairmsm/wp-design

Stage 2 of a wp-site-kit WordPress build - design direction, a static HTML/CSS prototype with design tokens, owner sign-off with screenshots, self-hosted fonts, and porting the approved look into a swappable WordPress skin. Use for "design the site", "new look", "redesign", "change colours or fonts", "make a new skin", "port the prototype to WordPress".

umairmsm/wp-kickoff

Stage 1 of a wp-site-kit WordPress build. Use when starting a new WordPress website or taking over or rebuilding an existing one - discovery brief, stack decision, creating the project with bin/wp-site-new, locked decisions, private repo and credentials inventory. Triggers - "new WordPress site", "start a client website", "rebuild this site", "take over this WordPress site".

umairmsm/wp-operate

Stage 8 of a wp-site-kit WordPress build and everything after launch - backups with an off-machine copy, restore drills, the disaster-recovery runbook, credentials inventory, update policy, alerts, and working from more than one machine (bridge file, workstation doctor, encrypted state bundle, rescuing unpushed work). Use for "backup", "restore", "move to a new machine/server", "update plugins", "what if the server dies", "work from the cloud box", "set up a second machine".

umairmsm/wp-seo

Stage 5 of a wp-site-kit WordPress build - titles and descriptions, canonical URLs, one schema owner and JSON-LD, sitemaps, robots.txt and llms.txt, AI crawler access, redirects (301 vs 302), legacy URL maps, Search Console, and adding languages one pilot at a time with Polylang (hreflang, .po/.mo strings, native review). Use for "SEO", "schema", "redirect", "old URLs", "translate the site", "add French/Spanish", "hreflang", "canonical".

umairmsm/wp-ship

Stage 7 of a wp-site-kit WordPress build - staging behind Cloudflare Access, server hardening, safe deploys from a commit (scripts/deploy-safe.sh), database content changes, the launch audit, DNS cutover without breaking a running business, and the first week after launch. Use for "deploy", "set up staging", "go live", "launch", "cutover", "move DNS", "harden the server".

umairmsm/wp-site

Start here for any WordPress website built with wp-site-kit, from an empty folder to a live site. Use when someone says "build a WordPress site", "new website for a client", "where are we on the site", "what is next before launch", or asks to continue a site project. Finds the current stage from SITE_STATUS.md, applies the hard rules, and hands over to the right stage skill.

相关技能