merge-executor

merge-executor is a skill for Claude Code, Codex from miniidealab/openlogos. It costs 0 tokens per session (942 once invoked), scanned A, original, Apache-2.0.

A document-merging workflow for OpenLogos change proposals. It reads a generated instruction file and applies added, modified, or removed sections from smaller change files to the main documents.

In plain words
What is it for?
Merging proposal deltas into main documents, reporting what changed, and identifying when the required merge instructions are missing.
Why use it?
It helps apply a planned set of document changes accurately while preserving unrelated content and existing formatting.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/miniidealab/openlogos/merge-executor
Any agent
npx skills add miniidealab/openlogos --skill merge-executor
Clone the repo
git clone --depth 1 https://github.com/miniidealab/openlogos

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for merge-executor

README.md
[![agentmods](https://agentmods.dev/badge/skills/miniidealab/openlogos/merge-executor.svg)](https://agentmods.dev/skills/miniidealab/openlogos/merge-executor)
Your own site
<a href="https://agentmods.dev/skills/miniidealab/openlogos/merge-executor"><img src="https://agentmods.dev/badge/skills/miniidealab/openlogos/merge-executor.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 942 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00942
Opus 5 $0.00000 $0.00471
Sonnet 5 $0.00000 $0.00188
Haiku 4.5 $0.00000 $0.00094

Measured 4d ago against content hash 487c390b2b4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

merge-executor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/flowtask/logos/skills/merge-executor/SKILL.md · 85 lines

What it actually says

Skill: Merge Executor

读取 CLI 生成的 MERGE_PROMPT.md 指令文件,将变更提案中的 delta 文件逐个合并到主文档,确保变更准确落地。

触发条件

  • 用户运行完 openlogos merge <slug> 后要求 AI 执行合并
  • 用户提到"执行合并"、"merge"、"把 delta 合进主文档"
  • 用户提到"读取 MERGE_PROMPT.md 并执行"

前置依赖

  1. logos/changes/<slug>/MERGE_PROMPT.md 存在(由 openlogos merge 命令生成)
  2. MERGE_PROMPT.md 中引用的 delta 文件和目标主文档均存在

如果 MERGE_PROMPT.md 不存在,提示用户先运行 openlogos merge <slug>

核心能力

  1. 解析 MERGE_PROMPT.md 中的合并指令
  2. 逐个读取 delta 文件,理解 ADDED / MODIFIED / REMOVED 标记
  3. 精准定位主文档中的对应章节并执行合并
  4. 保持主文档的格式和风格一致性
  5. 输出变更摘要

执行步骤

Step 1: 读取合并指令

读取 logos/changes/<slug>/MERGE_PROMPT.md,解析出:

  • 变更提案名称和概述
  • 每个 delta 文件的路径、对应的目标主文档路径、操作类型

Step 2: 逐个 Delta 文件执行合并

按 MERGE_PROMPT.md 中列出的顺序,逐个处理 delta 文件:

  1. 读取 delta 文件:理解 ADDED / MODIFIED / REMOVED 标记及内容
  2. 读取目标主文档:定位需要修改的章节
  3. 执行合并
    • ADDED:在主文档的指定位置插入新内容
    • MODIFIED:替换主文档中同名章节的内容
    • REMOVED:从主文档中删除对应章节
  4. 输出摘要:列出对该文件做了哪些修改

Step 3: 输出总体变更报告

所有 delta 处理完毕后,输出:

合并完成:
- [文件路径 1]:新增 x 节,修改 y 节,删除 z 节
- [文件路径 2]:...

请确认修改无误后,运行 `openlogos archive <slug>` 归档提案。

合并原则

  1. 保持格式一致:合并后的内容必须与主文档的现有格式、缩进、标题层级保持一致
  2. 不改动无关内容:只修改 delta 指定的部分,不重新格式化整个文档
  3. 冲突时询问:如果主文档中找不到 delta 引用的章节(可能已被其他变更修改),暂停并询问用户如何处理
  4. 逐文件确认:处理完每个 delta 文件后展示修改摘要,等待用户确认后再处理下一个

输出规范

  • 直接修改 logos/resources/ 中的主文档(就地编辑)
  • 不修改 logos/changes/ 中的任何文件
  • 合并过程中不创建新文件(除非 delta 指定新增一个全新的文档)

实践经验

  • 先全部读完再动手:先通读所有 delta 文件和目标文档,理解全貌后再逐个合并
  • MODIFIED 是最容易出错的:章节标题可能有微小差异(大小写、空格),需要模糊匹配
  • 保留变更痕迹:如果主文档有"最后更新"时间戳,记得同步更新
  • delta 的顺序有意义:需求文档的变更应在 API 文档之前处理,确保上下游一致

推荐提示词

以下提示词可以直接复制给 AI 使用:

  • 读取 logos/changes/<slug>/MERGE_PROMPT.md 并执行合并
  • 帮我把 add-remember-me 的变更合并到主文档
  • 执行变更合并
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 85 lines · 0 tokens per session scan A 487c390b2b4a

Subscribe to this mod's changes

merge-executor is a skill published in the GitHub repository miniidealab/openlogos (71 stars, last pushed 7d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 942 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

docx-comment-reply

Reply to comments (批注) in Word .docx/.doc files: extract comment context, draft replies, write threaded replies back, and validate OOXML.

foryourhealth111-pixel/Vibe-Skills · 39 tokens