sync-morrowmark
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesesync-morrowmark
sync-morrowmark
This is the global config migration entry point, not a project-level skill that any project loads automatically. Install this directory into the current client's global skill directory, then use it to initialize or update a project.
这是全局配置迁移的入口点,不是任何项目会自动加载的项目级skill。将此目录安装到当前客户端的全局skill目录中,然后用它来初始化或更新项目。
Conditional Project Onboarding
条件式项目引导
The full Morrowmark user guide is . Read it only in either of these cases:
references/PROJECT_USAGE.md- This is the first successful installation of for the current user/client. If you are performing the installation, check the destination first; after installing into a location where the skill was absent, read the guide and briefly explain what Morrowmark does and how to initialize a project. If the installation happened outside this conversation, treat it as first-time only when the user says it is; when prior installation state is unknown, do not infer a first install.
sync-morrowmark - The user asks how to use Morrowmark, or asks which skills or agents it provides.
An existing installation being updated, repaired, or synchronized is not a first installation. A project configuration sync is never a first installation. Do not read or summarize the guide during routine syncs.
When a follow-up asks for details beyond the guide, inspect the latest configured Morrowmark template source and answer from the relevant prompt and code. Start with , , and its referenced files, then inspect only the relevant scripts under . Do not treat this guide as a substitute for the current implementation.
AGENTS.md.codex/agents/*.toml.agents/skills/<skill>/SKILL.mdsync-morrowmark/scripts/完整的Morrowmark用户指南见 。仅在以下任一情况下阅读它:
references/PROJECT_USAGE.md- 这是 针对当前用户/客户端的首次成功安装。如果你正在执行安装,请先检查目标位置;在安装到一个原本没有该skill的位置后,阅读指南并简要说明Morrowmark的功能以及如何初始化项目。如果安装发生在本对话之外,仅在用户说明这是首次安装时才按首次安装处理;当之前的安装状态未知时,不要推断为首次安装。
sync-morrowmark - 用户询问如何使用Morrowmark,或询问它提供了哪些skills或agents。
对已有安装进行更新、修复或同步不属于首次安装。项目配置同步永远不是首次安装。在常规同步期间不要阅读或总结指南。
当后续提问要求超出指南范围的细节时,检查最新的已配置Morrowmark模板源,并从相关提示和代码中回答。从 、、 及其引用的文件开始,然后只检查 下相关的脚本。不要把本指南当作当前实现的替代品。
AGENTS.md.codex/agents/*.toml.agents/skills/<skill>/SKILL.mdsync-morrowmark/scripts/Routine Sync Execution
常规同步执行
When the user directly requests a sync or explicitly invokes this Skill to sync, that authorizes the current run. Resolve the platform and run the script directly without asking for separate authorization or whether to sync. If the Skill is used only because missing configuration was discovered during another task, ask before initializing or updating the project. Do not invoke , inspect project-memory files, or pre-read the sync script for a routine sync. Do not invoke or after a successful run; the script's exit status and output are the completion check. If it fails or reports an unsafe overwrite conflict, inspect only the affected path. This exception does not apply when editing or debugging this Skill or its script.
read-index-memorypost-verifyupdate-memory当用户直接请求同步或明确调用此Skill进行同步时,即授权当前运行。解析平台并直接运行脚本,无需请求单独授权或询问是否同步。如果仅因为在另一个任务中发现配置缺失而使用了此Skill,在初始化或更新项目之前应先询问。对于常规同步,不要调用 、检查项目内存文件或预读同步脚本。成功运行后不要调用 或 ;脚本的退出状态和输出即为完成检查。如果脚本失败或报告不安全的覆盖冲突,只检查受影响的路径。此例外不适用于编辑或调试此Skill或其脚本时。
read-index-memorypost-verifyupdate-memorySingle Source
单一来源
- Agent source: in the template repo, where
.codex/agents/*.tomlis the only prompt body.developer_instructions - Skill source: in the template repo, plus its
.agents/skills/<skill>/SKILL.md,scripts/and other resources.references/ - Target platform directories are generated by this Skill. Generation preserves the source agent/skill bodies verbatim and only adapts configuration data such as YAML frontmatter, file names, tool permissions and platform directories.
- Agent源: 模板仓库中的 ,其中
.codex/agents/*.toml是唯一的提示正文。developer_instructions - Skill源: 模板仓库中的 ,以及其
.agents/skills/<skill>/SKILL.md、scripts/和其他资源。references/ - 目标平台目录由本Skill生成。生成过程逐字保留源agent/skill正文,仅适配配置数据,如YAML frontmatter、文件名、工具权限和平台目录。
Usage
使用方法
-
Install it once, into the client's global skill directory:
- Codex/ZCode:
~/.agents/skills/sync-morrowmark/ - Claude Code:
~/.claude/skills/sync-morrowmark/ - CodeBuddy (domestic build):
~/.codebuddy/skills/sync-morrowmark/ - WorkBuddy international:
~/.workbuddy-ai/skills/sync-morrowmark/ - WorkBuddy domestic:
~/.workbuddy/skills/sync-morrowmark/ - OpenCode: (OpenCode reads that directory natively, no symlink needed)
~/.agents/skills/sync-morrowmark/
Prefer letting the script install it (see "Unified install strategy" below), which keeps one real copy plus symlinks. A hand copy is a second real copy that the script will never replace — if you copied by hand, delete that copy before switching to script-managed install, otherwise the two drift apart. - Codex/ZCode:
-
Or ask the agent to installfrom the current project root. After installation, it must ask whether to initialize or update the current project and wait for confirmation before syncing.
sync-morrowmark -
Determine the client and pass the platform argument:,
codex,zcode,claude,codebuddy,workbuddyorworkbuddy-cn. Capitalized andopencode-prefixed spellings are also accepted, as are--(international) andworkbuddy-ai(domestic).workbuddy-domestic -
Run the requested sync, then report.
- Run the sync. The script handles the prompt file by itself — on every platform, plus
AGENTS.mdonCLAUDE.md:claude- no such file yet → the template is written whole;
- a file that already carries → everything strictly above the marker is replaced from the source, and the marker with everything below it is kept;
<!-- sync-morrowmark:custom-prompts --> - a file with no marker → the whole file is taken to be the project's own prompts and is moved below the marker, under the template's custom-prompt note, so none of it is overwritten. The script reports this as .
adopted
- A successful sync is routine: do not re-read the custom prompt region, offer memory migration, or ask for another decision. A marker-less file is adopted automatically because the script preserves its full content.
- If the script fails or a target presents an overwrite risk outside these deterministic rules, inspect only the affected path and stop before any unsafe write. Ask the user only when no safe automatic handling is available.
- Report the sync scope, changed files and any adoption or failure result. Move project facts into only in a separate task when the user explicitly requests it.
.project-memory/
- Run the sync. The script handles the prompt file by itself —
Unified install strategy (single copy + symlink): the script installs the real directory at and, for clients that do not read , symlinks it into their own skill directory — so there is only one copy on disk. An existing symlink is replaced; a real directory is left untouched and reported.
~/.agents/skills/sync-morrowmark/~/.agents/skillscodebuddyworkbuddyworkbuddy-cnworkbuddyworkbuddy-cn.codebuddy/codebuddyOn every launch the script fetches the latest from the remote template repo, overwrites the directory of the same name in the project root, then re-executes the updated script before running the rest of the sync. That project-root copy is the entry point for later runs, and the sync adds it to .
sync-morrowmark.gitignore-
一次性安装到客户端的全局skill目录:
- Codex/ZCode:
~/.agents/skills/sync-morrowmark/ - Claude Code:
~/.claude/skills/sync-morrowmark/ - CodeBuddy (国内版):
~/.codebuddy/skills/sync-morrowmark/ - WorkBuddy国际版:
~/.workbuddy-ai/skills/sync-morrowmark/ - WorkBuddy国内版:
~/.workbuddy/skills/sync-morrowmark/ - OpenCode: (OpenCode原生读取该目录,无需符号链接)
~/.agents/skills/sync-morrowmark/
优先让脚本进行安装(见下文"统一安装策略"),这样只保留一份真实副本加符号链接。手动复制会产生脚本永远不会替换的第二份真实副本——如果你手动复制过,请在切换到脚本管理安装前删除该副本,否则两者会逐渐分叉。 - Codex/ZCode:
-
或者让agent从当前项目根目录安装。安装后,它必须询问是否初始化或更新当前项目,并在同步前等待确认。
sync-morrowmark -
确定客户端并传递平台参数:、
codex、zcode、claude、codebuddy、workbuddy或workbuddy-cn。也接受大写形式和带opencode前缀的拼写,以及--(国际版)和workbuddy-ai(国内版)。workbuddy-domestic -
执行请求的同步,然后报告。
- 运行同步。脚本自行处理提示文件——在每个平台上生成 ,并在
AGENTS.md平台上额外生成claude:CLAUDE.md- 尚不存在该文件 → 完整写入模板;
- 已包含 标记的文件 → 标记严格上方的所有内容从源替换,标记及其下方内容保留;
<!-- sync-morrowmark:custom-prompts --> - 没有标记的文件 → 整个文件被视为项目自身的提示,被移到标记下方、模板的自定义提示说明之下,因此不会覆盖任何内容。脚本将此报告为 。
adopted
- 成功同步属于常规操作:不要重新读取自定义提示区域、主动提供内存迁移或要求另一次决策。无标记文件会被自动采用,因为脚本保留了其全部内容。
- 如果脚本失败或目标在这些确定性规则之外存在覆盖风险,只检查受影响的路径,并在任何不安全写入之前停止。仅在没有任何安全的自动处理方案时才询问用户。
- 报告同步范围、变更的文件以及任何采用或失败结果。仅在用户明确要求的单独任务中才将项目事实移入 。
.project-memory/
- 运行同步。脚本自行处理提示文件——在每个平台上生成
统一安装策略(单副本 + 符号链接):脚本将真实目录安装在 ,对于不读取 的客户端,则将其符号链接到各自的skill目录——因此磁盘上只有一份副本。已有符号链接会被替换;真实目录则保持不动并报告。
~/.agents/skills/sync-morrowmark/~/.agents/skillscodebuddyworkbuddyworkbuddy-cnworkbuddyworkbuddy-cncodebuddy.codebuddy/每次启动时,脚本都会从远程模板仓库获取最新的 ,覆盖项目根目录中的同名目录,然后在执行其余同步之前重新执行更新后的脚本。该项目根目录副本是后续运行的入口点,并且同步会将其添加到 。
sync-morrowmark.gitignoreContext7 MCP
Context7 MCP
Context7 is not written into project-level configuration files. When configuring a project with this Skill, first check the current client's global MCP configuration: reuse an existing server; if there is none, prefer configuring it in the current client's global config and do not change project config. The configuration definition is below, converted equivalently into each client's native format:
context7json
{
"mcp": {
"servers": {
"context7": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}
}If the global configuration is not writable or the current client does not support automatic configuration, explain the reason and ask the user to handle it; do not fall back to project-level MCP configuration.
Context7不会写入项目级配置文件。使用此Skill配置项目时,首先检查当前客户端的全局MCP配置:复用已有的 服务器;如果没有,优先在当前客户端的全局配置中配置它,且不要更改项目配置。配置定义如下,等价转换为每个客户端的原生格式:
context7json
{
"mcp": {
"servers": {
"context7": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}
}如果全局配置不可写或当前客户端不支持自动配置,请说明原因并让用户自行处理;不要回退到项目级MCP配置。
Generation Scope
生成范围
- : syncs the Codex source directory itself.
codex - : generates
zcodefrom the Codex agent source; skills use the shared.zcode/agents/source..agents/skills/ - : generates
claudeand.claude/agents/from the Codex source, and generates.claude/skills/per the rules.CLAUDE.md - : generates
codebuddyand.codebuddy/agents/from the Codex source, copying only resources usable by CodeBuddy..codebuddy/skills/ - : generates
workbuddyand.codebuddy/agents/. WorkBuddy reuses CodeBuddy Code's workspace layout, so project-level config always lives in.codebuddy/skills/, while its user-level directory is.codebuddy/(international) or~/.workbuddy-ai/(domestic) — do not put project config under either of those.~/.workbuddy/ - : same as
workbuddy-cn, for the domestic build.workbuddy - : generates
opencodeand.opencode/agents/from the Codex source; the global skill uses the canonical directory directly (OpenCode reads.opencode/skills/natively) and no symlink is created — OpenCode requires skill names to be unique across locations, and duplicates cause conflicts.~/.agents/skills/
All platforms add missing and templates and never overwrite content a project has accumulated. For , the first-line title of each file is refreshed from the template on every sync while everything below that title is left untouched. The sync script does not generate or copy project-level MCP configuration files.
.project-memory/.project-script/.project-memory/- : 直接同步Codex源目录本身。
codex - : 从Codex agent源生成
zcode;skills使用共享的.zcode/agents/源。.agents/skills/ - : 从Codex源生成
claude和.claude/agents/,并按规则生成.claude/skills/。CLAUDE.md - : 从Codex源生成
codebuddy和.codebuddy/agents/,仅复制CodeBuddy可用的资源。.codebuddy/skills/ - : 生成
workbuddy和.codebuddy/agents/。WorkBuddy复用CodeBuddy Code的工作区布局,因此项目级配置始终位于.codebuddy/skills/中,而其用户级目录是.codebuddy/(国际版)或~/.workbuddy-ai/(国内版)——不要将项目配置放在这两个目录下。~/.workbuddy/ - : 与
workbuddy-cn相同,适用于国内版。workbuddy - : 从Codex源生成
opencode和.opencode/agents/;全局skill直接使用规范目录(OpenCode原生读取.opencode/skills/),且不创建符号链接——OpenCode要求skill名称在各地唯一,重复会导致冲突。~/.agents/skills/
所有平台都会补充缺失的 和 模板,且永远不会覆盖项目已积累的内容。对于 ,每次同步都会从模板刷新每个文件的首行标题,而标题下方的所有内容保持不变。同步脚本不会生成或复制项目级MCP配置文件。
.project-memory/.project-script/.project-memory/Boundaries
边界
- Preserve existing target-side subagent reasoning settings for same-named agents; do not overwrite them.
- Never hand-edit a generated platform directory, and never sync back from ,
.claude/,.zcode/or.codebuddy/into.opencode//.codex/..agents/skills/ - Never copy credentials, local caches, ,
settings.local.jsonor the Codex-UI-onlyCODEBUDDY.local.mdto another platform.agents/openai.yaml
- 保留目标端已存在的同名子agent推理设置;不要覆盖它们。
- 绝不手动编辑生成的平台目录,也绝不将 、
.claude/、.zcode/或.codebuddy/中的内容同步回.opencode//.codex/。.agents/skills/ - 绝不将凭据、本地缓存、、
settings.local.json或 Codex-UI独有的CODEBUDDY.local.md复制到其他平台。agents/openai.yaml