Sandbox
@ViryaZheng/wrap-skill

Claude Code skill for a canonical CLAUDE.md

wrap reads project markdown files like `README.md`, `AGENTS.md`, `HANDOFF.md`, and `docs/*`, checks them against the code, and writes one canonical `CLAUDE.md`. It also pins a `PROGRESS` block at the top and deletes the merged source files so the docs do not drift back apart.

56 stars4 forksUpdated 4mo ago
Who it's for

Builders who want their agent to turn scattered project notes into one maintained source of truth.

What it delivers

You can end a session with one current project doc instead of a pile of stale markdown files.

What it does

Merge project markdown

Reads descriptive `.md` files across the project and folds them into one `CLAUDE.md`.

Check docs against code

Scans entry points, scripts, routes, and configs so the output reflects the current project state.

Pinned progress block

Writes a `PROGRESS` section at the top with the current state, next action, and open gaps.

Delete superseded files

Removes the merged source markdown files so the project keeps a single entry point.

Plugin and manual install

Installs as a Claude Code plugin, with a manual `SKILL.md` copy path for other agents.

How to get it

  1. 1This repo is a Claude Code plugin marketplace. From inside Claude Code
    /plugin marketplace add recomby-ai/wrap-skill
    /plugin install wrap@wrap-skill
  2. 2If you're using an agent that supports SKILL.md but not Claude Code's plugin system,…
    mkdir -p ~/.claude/skills/wrap && curl -fsSL https://raw.githubusercontent.com/recomby-ai/wrap-skill/main/plugins/wrap/skills/wrap/SKILL.md -o ~/.claude/skills/wrap/SKILL.md

README

wrap

A Claude Code plugin (also installable manually in Codex / OpenCode / etc.) that consolidates every scattered descriptive markdown file in a project (README.md, AGENTS.md, HANDOFF.md, docs/*) into a single canonical CLAUDE.md and reconciles it against the current code.

After one run, the next session — yours, a teammate's, or a fresh agent's — has exactly one entry point.

Why

Working with AI coding agents tends to produce documentation sprawl: a HANDOFF.md from one session, an AGENTS.md from another, a half-stale README.md, a docs/ folder with three-week-old design notes. Each session's "context dump" creates a new file, and over time the project loses its single source of truth.

wrap does the opposite. Each invocation:

  1. Reads every descriptive .md in the project
  2. Scans the actual code (entry points, scripts, routes, configs)
  3. Folds it all into one CLAUDE.md with a fixed structure
  4. Deletes the originals so there's nothing to drift back out of sync
  5. Pins a PROGRESS block at the top answering: where are we now, what's the next concrete action

Install

This repo is a Claude Code plugin marketplace. From inside Claude Code:

/plugin marketplace add recomby-ai/wrap-skill
/plugin install wrap@wrap-skill

That's it — no git clone, no manual file copying. To update later, run /plugin marketplace update wrap-skill.

Manual install (other agents / no plugin support)

If you're using an agent that supports SKILL.md but not Claude Code's plugin system, copy the file manually:

mkdir -p ~/.claude/skills/wrap && curl -fsSL https://raw.githubusercontent.com/recomby-ai/wrap-skill/main/plugins/wrap/skills/wrap/SKILL.md -o ~/.claude/skills/wrap/SKILL.md

Adjust the destination path for Codex / OpenCode / Cursor / Gemini CLI as needed.

Use

Just say one of these in any project:

  • wrap / wrap up / /wrap
  • tidy docs / sync docs / update docs / archive
  • this phase is done
  • Chinese: 收尾 / 同步文档 / 整理文档 / 整理一下 / 更新文档 / 存档 / 梳理一下 / 这阶段做完了

The agent will:

  • Inventory every .md and cross-check it against the real code
  • Write a fresh CLAUDE.md with PROGRESS / Architecture / Run / API / Known Limits / Handoff sections
  • Delete the merged-in source files
  • Print a short change summary

Output Format

CLAUDE.md follows a fixed skeleton:

# <project>

<one-line summary>

## PROGRESS
**Current**: ...
**Next**: ...
**Known outstanding**: ...

## Architecture
## Run
## API / Interfaces     (skipped if project has no external interfaces)
## Known Limits
## Handoff

Soft cap of 250 lines. If a project genuinely needs more (multi-service runbooks, large credential tables), the skill applies for a documented exemption rather than padding or hand-waving.

Design Principles

  • One file. Zero is too few; two is too many.
  • PROGRESS is the soul. Other sections survive a stale week; PROGRESS dies in a day. Rewrite it every run.
  • Brevity beats completeness. Decision history and design rationale go in the agent's memory system, not in CLAUDE.md.
  • Code is the source of truth. When CLAUDE.md conflicts with the code, the code wins — always.

Compatibility

Tested with Claude Code. Should work in any agent that supports the SKILL.md format (Codex, OpenCode, Cursor, Gemini CLI, etc.).

The skill only touches files inside the project directory. It does not interact with any agent's memory system — those are decoupled by design.

License

MIT — see LICENSE.

Files in the repo

Repository payload5 top-level entries
  • .claude-plugin
  • plugins
  • .gitignore
  • LICENSE
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k