Snapshot the current directory into pseudo-XML for LLM context. Use when you need to share a repo (or a sub-tree) with Codex/LLMs, especially for code review/debugging, generating an agent-friendly “repo snapshot”, or piping context into tools like `llm` (see skill $llm-cli). Supports `.gitignore`-aware file discovery, common ignore patterns, extension filtering, regex include/exclude, optional file-list printing, line-range snippets, and writes `/tmp/repo_clipboard.{stdout,stderr}` for reuse.
For full CLI usage, examples, and flag semantics, read repo-clipboard/references/usage.md.
LLM review loop (with llm; see skill $llm-cli)
Default intelligence picks:
wbg:claude-opus-4.5
wbg:gpt-5.2-xhigh (very slow; reserve for the hardest reviews)
Large-context pick (when the repo snapshot is huge):
wbg-gemini-3-pro-preview
1---2name: repo-clipboard3description: Snapshot the current directory into pseudo-XML for LLM context. Use when you need to share a repo (or a sub-tree) with Codex/LLMs, especially for code review/debugging, generating an agent-friendly “repo snapshot”, or piping context into tools like `llm` (see skill $llm-cli). Supports `.gitignore`-aware file discovery, common ignore patterns, extension filtering, regex include/exclude, optional file-list printing, line-range snippets, and writes `/tmp/repo_clipboard.{stdout,stderr}` for reuse.4---56# repo-clipboard
78## Quick start
910- Snapshot the current directory to stdout (for piping), while writing `/tmp/repo_clipboard.stdout` and metadata to stderr:
11 - `scripts/repo_clipboard --llm -e py,md,yml --print-files`
12- Copy the snapshot to the Windows clipboard (WSL) and also write `/tmp/repo_clipboard.stdout`:
13 - `scripts/repo_clipboard -e py,md,yml`
1415## Snippets (token-efficient context)
1617- Include only specific line ranges:
18 - `scripts/repo_clipboard --llm -e md --snippet README.md:5-25 --snippets-only`
1920## Reference
2122- For full CLI usage, examples, and flag semantics, read `repo-clipboard/references/usage.md`.
2324## LLM review loop (with `llm`; see skill $llm-cli)
2526- Default intelligence picks:
27 - `wbg:claude-opus-4.5`
28 - `wbg:gpt-5.2-xhigh` (very slow; reserve for the hardest reviews)
29- Large-context pick (when the repo snapshot is huge):
30 - `wbg-gemini-3-pro-preview`
Run npx skillmds add majiayu000/repo-clipboard in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Snapshot the current directory into pseudo-XML for LLM context. Use when you need to share a repo (or a sub-tree) with Codex/LLMs, especially for code review/debugging, generating an agent-friendly “repo snapshot”, or piping context into tools like `llm` (see skill $llm-cli). Supports `.gitignore`-aware file discovery, common ignore patterns, extension filtering, regex include/exclude, optional file-list printing, line-range snippets, and writes `/tmp/repo_clipboard.{stdout,stderr}` for reuse. It is listed under Product & Planning on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: reads secrets. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.