update-entity
根据用户需求更新已有 OneWorks entity,保持最小改动并维护 prompt、frontmatter、继承、规则和技能引用。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
根据用户需求更新已有 OneWorks entity,保持最小改动并维护 prompt、frontmatter、继承、规则和技能引用。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Configure OneWorks model services using built-in provider defaults, management portals, API base URLs, model lists, balance/status capabilities, and safe config-source writeback.
Control the current OneWorks session's internal browser tabs with semantic snapshots, reliable element refs, screenshots, waits, and page-safe concurrent workflows.
Drive native macOS apps through the Cua Driver tools. Use when a task asks to open, inspect, click, type, scroll, capture a final screenshot, or verify a real macOS app without stealing the user's focus.
Control a user-paired external browser through a Chrome extension, explicit typed targets, and semantic operations.
当用户想创建或改造 OneWorks plugin,实现界面入口、按钮、tab、launcher 搜索、server 命令、scoped API 或本地服务时,先理解目标效果;需求不明确时列出不确定点让用户确认,再转成 manifest、前端入口、server 入口和验证步骤。
Apply, review, and continuously evolve the OneWorks team's durable UI design standards. Use for any OneWorks task that changes or reviews layout, styling, theme, spacing, responsive behavior, component appearance, visual assets, or reference-image fidelity, and whenever user visual feedback may express a reusable team standard. Require a Visual Brief, conflict-aware project memory capture, a completed independent visual consistency session with real expected-behavior validation, and experience persistence before delivery; do not promote one-off pixel nudges into lasting rules.
| name | update-entity |
| description | 根据用户需求更新已有 OneWorks entity,保持最小改动并维护 prompt、frontmatter、继承、规则和技能引用。 |
在用户要求“更新实体”“调整 entity/agent”“给某个实体加规则/技能/记忆”“把实体改成继承另一个实体”“重命名或拆分已有实体”时使用这个 skill。
如果用户要求创建全新的实体,使用 create-entity。
先读懂已有实体的职责和资产关系,再按用户需求做最小、可验证的更新。不要把更新任务当成重写任务;默认保留用户已有内容、命名、文件布局和引用关系。
先确认目标实体:
.oo。先定位本地资产根目录和实体目录。.oo/entities/;如果 .env 设置了 __ONEWORKS_PROJECT_BASE_DIR__ 或 __ONEWORKS_PROJECT_ENTITIES_DIR__,按实际资产根目录和实体目录查找。<name>.md、<name>/README.md 和 <name>/index.json。name 字段。description、目录名和路由名,找到最可能的目标。extends 插件实体。extends: std/dev-reviewer。不要直接修改这些上游或受管理位置:
node_modules/**packages/plugins/**<asset-root>/plugins/**/oneworks/**如果目标只存在于插件或上游来源,创建一个本地派生实体;如果本地已经有派生实体,就更新派生实体。
继续检查关联资产:
README.md 或实体单文件:主体 prompt 和 frontmatter。INTRODUCTION.md、PERSONALITY.md、MEMORY.md:目录型实体的默认加载文件。rules:实体引用的长期约束。skills:实体引用的可复用流程。extends / inherit:实体继承关系。按用户真实意图选择最小变更:
description 和正文里的角色/边界。PERSONALITY.md,没有该文件时再考虑正文。MEMORY.md。extends 和少量差异化 prompt。inherit.<field>: replace 或 none,不要复制父实体再删内容。只有用户明确要求“重写”“重构”“替换整个实体”时,才大幅改写 prompt。
常见字段:
---
description: 更准确地描述这个实体何时应该被选择。
extends:
- std/dev-reviewer
inherit:
rules: replace
rules:
- frontend-standard
skills:
- frontend-review
tools:
include:
- Read
- Grep
---
维护原则:
description 要面向路由选择,说明使用场景和职责。extends 引用插件实体时使用 scope/name,例如 std/dev-reviewer。inherit 只写需要偏离默认行为的字段。rules / skills 前先确认目标资产存在。plugins。extends 设计原则:
extends,不要复制父实体正文。inherit 只控制自己如何继承父实体组合结果。更新正文时:
README.md、INTRODUCTION.md、PERSONALITY.md、MEMORY.md 重复同一句话。目录型实体推荐分工:
README.md:角色、职责、工作方式、边界。INTRODUCTION.md:更详细的背景或接入说明。PERSONALITY.md:表达风格、判断偏好、沟通顺序。MEMORY.md:项目长期约定、用户偏好、历史经验。用户要求重命名实体时:
name,同步更新。用户要求拆分实体时:
交付前检查:
description 仍然能准确触发路由选择。extends、rules、skills 引用存在且不歧义。可运行验证时,优先执行与改动范围匹配的测试;只想手动冒烟时,可以用:
oneworks --entity <entity-name> --print "说明这个实体更新后的职责和边界"