ziadshalaby00

Code Merge — Documentation skill for Claude Code

Documentation community

Select files, folders, or code snippets and merge them into a single markdown file — with a project tree and per-file headers.

How to install Code Merge

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ziadshalaby00/code-merge and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Code Merge does

Select files, folders, or code snippets and merge them into a single markdown file — with a project tree and per-file headers. Perfect for feeding context to LLMs (ChatGPT, Claude, Copilot) or sharing code snapshots with your team.

Alternatives in Documentation

  • PDF — Extract text, create PDFs, merge/split documents, and handle forms 94.1k ★
  • 会话管理(Session Manager)需求文档(PRD / Markdown) — 目标:对 Codex / Claude Code 的本地会话记录进行可视化管理,并提供“一键复制 / 一键终端恢复”能力 31.7k ★
  • Repo Recap — Generate a structured recap of the repository state: open PRs, open issues, recent releases, and executive sum 11.9k ★

README

Code Merge

Select files, folders, or code snippets and merge them into a single markdown file — with a project tree and per-file headers. Perfect for feeding context to LLMs (ChatGPT, Claude, Copilot) or sharing code snapshots with your team.

[![GitHub](https://img.shields.io/badge/GitHub-ziadshalaby00-181717?logo=github)](https://github.com/ziadshalaby00/code-merge) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![VS Code](https://img.shields.io/badge/VS%20Code-1.85%2B-blue?logo=visualstudiocode)](https://code.visualstudio.com/) [![VS Code Marketplace](https://img.shields.io/visual-studio-marketplace/v/ziadshalaby00.code-merge?label=VS%20Code%20Marketplace&logo=visualstudiocode)](https://marketplace.visualstudio.com/items?itemName=ziadshalaby00.code-merge) [![Open VSX](https://img.shields.io/open-vsx/v/ziadshalaby00/code-merge?label=Open%20VSX)](https://open-vsx.org/extension/ziadshalaby00/code-merge)

Copy merged content Add folder to merge

Preview merged output Add selection


✨ Features

  • 📁 Add files — right-click any file in the Explorer, or use the keyboard.
  • 📂 Add folders — recursively scan a folder with smart ignore rules (node_modules, .git, dist, .venv, binaries, lockfiles, …).
  • ✂️ Add selections — grab a range of lines from the current editor (supports multi-cursor with Ctrl+D).
  • 🌲 Project tree — every merged output starts with an ASCII tree of the selected items, including line ranges