merge-executor
Execute delta merges by generating MERGE_PROMPT.md from change proposals. Use when an approved change proposal needs to be applied to the codebase.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-18
- Stars
- ★ 581
- Forks
- 10
01 前言 Front Matter
- name
- merge-executor
- description
- Execute delta merges by generating MERGE_PROMPT.md from change proposals. Use when an approved change proposal needs to be applied to the codebase.
03 SKILL.md 正文
Skill: Merge Executor
Read the MERGE_PROMPT.md instruction file generated by the CLI, and merge each delta file from the change proposal into the main documents one by one, ensuring changes are applied accurately.
Trigger Conditions
- User requests AI to execute the merge after running
openlogos merge <slug> - User mentions "execute merge", "merge", "merge the deltas into the main documents"
- User mentions "read MERGE_PROMPT.md and execute"
Prerequisites
logos/changes/<slug>/MERGE_PROMPT.mdexists (generated by theopenlogos mergecommand)- The delta files and target main documents referenced in MERGE_PROMPT.md all exist
If MERGE_PROMPT.md does not exist, prompt the user to run openlogos merge <slug> first.
Core Capabilities
- Parse merge instructions from MERGE_PROMPT.md
- Read each delta file and interpret ADDED / MODIFIED / REMOVED markers
- Precisely locate the corresponding sections in the main document and execute the merge
- Maintain formatting and style consistency of the main document
- Output a change summary
- Stop and wait for human confirmation — After the merge is complete, the AI's role ends. Never run
openlogos archiveautonomously.
Execution Steps
Step 1: Read Merge Instructions
Read logos/changes/<slug>/MERGE_PROMPT.md and parse:
- Change proposal name and overview
- Each delta file's path, corresponding target main document path, and operation type
Step 2: Merge Each Delta File
Process delta files one by one in the order listed in MERGE_PROMPT.md:
- Read the delta file: Understand the ADDED / MODIFIED / REMOVED markers and content
- Read the target main document: Locate the sections that need modification
- Execute the merge:
ADDED: Insert new content at the specified position in the main documentMODIFIED: Replace the content of the same-named section in the main documentREMOVED: Delete the corresponding section from the main document
- Output summary: List what modifications were made to the file
Step 3: Output Overall Change Report
After all deltas have been processed, output:
Merge complete:
- [file path 1]: added x sections, modified y sections, deleted z sections
- [file path 2]: ...
Then AI automatically runs git commit (no user confirmation needed, but must inform user):
git add -A
git commit -m "docs(<slug>): merge spec deltas"
Use
git add -Ainstead ofgit add logos/resources/to ensure all spec files touched by this merge (including spec/, skills/, CLAUDE.md, AGENTS.md, etc.) are included in the commit.
Then prompt the user with next steps:
✅ Spec documents merged and committed. Next steps:
Step 1: Implement code
Implement business code + test code per the updated logos/resources/ specs.
AI will automatically commit the code changes when done.
Step 2: Run verification (after code is complete)
Run in the project root:
openlogos verify
- PASS → proceed to Step 3
- FAIL → fix the code and re-run verify (no need to re-run merge)
Step 3: Archive (after verification passes)
openlogos archive <slug>
openlogos verify and openlogos archive are human confirmation points — AI must not execute them without explicit user authorization.
Merge Principles
- Maintain format consistency: Merged content must match the existing format, indentation, and heading levels of the main document
- Do not alter unrelated content: Only modify the parts specified by the delta; do not reformat the entire document
- Ask on conflict: If a section referenced by the delta cannot be found in the main document (possibly already modified by another change), pause and ask the user how to proceed
- Confirm after each file: Show a modification summary after processing each delta file, and wait for user confirmation before processing the next one
Output Specification
- Directly modify the main documents in
logos/resources/(in-place editing) - Do not modify any files in
logos/changes/ - Do not create new files during the merge (unless a delta specifies adding a completely new document)
Best Practices
- Read everything before acting: Read through all delta files and target documents first to understand the full picture, then merge one by one
- MODIFIED is the most error-prone: Section titles may have minor differences (capitalization, spacing) — fuzzy matching is needed
- Preserve change traces: If the main document has a "last updated" timestamp, remember to update it accordingly
- Delta order matters: Requirement document changes should be processed before API document changes to ensure upstream-downstream consistency
Recommended Prompts
The following prompts can be copied directly for AI use:
Read logos/changes/<slug>/MERGE_PROMPT.md and execute the mergeHelp me merge the add-remember-me changes into the main documentsExecute the change merge
04 同仓库更多 Skills
ui-ux-pro-max
UI/UX design intelligence. 67 styles, 96 palettes, 57 font pairings, 25 charts, 13 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.
test-writer
暂无简介
test-orchestrator
暂无简介
slice-planner
暂无简介
scenario-architect
暂无简介
project-init
暂无简介