/liv:liv-bundlerfrom liv
How to vendor liv (and other pure-Lua deps) into a consumer plugin with liv.bundler, so end users install only the plugin. Use when bundling/vendoring liv into a plugin, running :LivAdd/:LivUpdate/:LivCheck/:LivRemove or bin/liv-bundler, choosing a source resolver (rtp/git/path/luarock), understanding the lockfile/tree-shaking/migration-notices, or declaring dynamic deps and .vim companions in a manifest.
Ships in liv. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
liv.bundler is the build-time tool that vendors liv.core / liv.std (and
other pure-Lua deps) into a consumer plugin, so an end user installs only that
plugin — no liv, no extra runtime. It is pure Lua, editor-independent (except
the rtp resolver, which reads &runtimepath), and is a dev tool: never
vendored into a consumer's runtime require graph. It distills vital.vim's
vitalizer.
Canonical entry liv.bundler.cli.main(args). Two shims call the SAME entry:
bin/liv-bundler — terminal/CI; self-locates the vim-liv install.:Liv* Ex commands (from plugin/liv.vim) — parse args, call cli.main. No
logic of their own, so editor and CLI never drift.The target plugin is inferred from the cwd / git root; override with --to=dir.
The --plugin=name sets the vendor namespace.
| command | role |
|---|---|
:LivAdd <module>... [--source=...] [--from=URL] [--ref=...] [--to=dir] --plugin=name | Add module(s) — the union with existing lockfile roots — plus transitive deps; rewrite namespaces; vendor .vim companions; write the lockfile. :LivAdd liv.lua.async adds just that subtree. |
:LivUpdate [module...] | Re-vendor to current source (no args = re-vendor ALL roots); show migration notices for affected modules; update the lockfile. |
:LivCheck | Read-only: report drift (source content vs lockfile hash) and modules missing from the vendor tree. |
:LivRemove <module>... | Remove module(s) and now-unused deps (re-vendor remaining roots); update the lockfile. |
Add/Update/Remove complete their module arguments from liv.bundler.list (bundle-
able modules on &runtimepath, tagged bundled / not-yet-bundled).
requires, compute the transitive closure,
read dependency manifests for dynamic deps and non-.lua companions.<plugin>.vendor.liv.* (gives package.loaded isolation). A content-hash
sub-namespace is added only for diamond conflicts (two incompatible versions in
one bundle); identical hash loads once.Output is a multi-file vendor tree with rewritten requires; single-file amalgamation is an optional later optimization.
--source (default rtp)Recorded per module in the lockfile; --source sets this invocation's default.
:LivUpdate/:LivCheck re-resolve using each module's recorded source.
rtp (default; in-editor only) — resolve from &runtimepath's lua/.
liv.core/liv.std are on runtimepath once vim-liv is installed, so
:LivAdd liv.lua.async just works. A git checkout's sha is recorded.git — --from=URL --ref=...: fetch then vendor; pin the ref.path — a local directory (developing an uninstalled dep).luarock — optional, third-party pure-Lua libs (later).rtp — pass git/path/luarock.require("literal") ONLY (the analyzer is static)..vim, data files) go in a
manifest beside the module (modeled on vital's {modules, files}), resolved
relative to the module.Live in the repo root MIGRATIONS.md. Each entry: a version/hash, target modules
(* = all), and a description. On update, the bundler shows only those touching
modules in the current bundle and asks to confirm.
:Liv* commands / standalone CLI.vim-liv repo specs: .claude/specs/0008-bundler.md, 0009-commands.md. Related
skill: liv-plugin-authoring.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lambdalisue/vim-liv --plugin liv4 skills in this plugin
/liv-library-apiReference for the liv runtime API a plugin author consumes — liv.core (call/eval/cmd/marshaled/is_nvim + marshaling), the liv.std.* editor-dependent modules (buffer, window, process, task, fs, fetch, ui, option, variable, autocmd, mapping, keys, highlight, sign, text, log, has, …) and the liv.lua.* pure modules (compat, async, path, uri, argument, base64, hash, color, png/zlib/msgpack, …). Use when calling or looking up a liv API, choosing the right module, or checking capability/degradation./liv-plugin-authoringConventions for writing a liv plugin — one Lua source that runs on both Vim 9 (+lua) and Neovim. Use when creating or editing code in a liv-based plugin, deciding where a module belongs (liv.core/liv.std/liv.lua), or reviewing liv code for the framework's hard rules (own-the-contract naming, 1-based ranges, Lua 5.1 dialect, string-literal require, barrel/leaf splits)./liv-testerHow to write and run cross-editor tests for a liv plugin with liv.tester — L1 (spec/, editor-free) vs L3 (test/, real Vim +lua AND Neovim, headless), describe/it/assert, selectors (name:/tag:, it.only/it.skip), reporters (spec/tap/jsonl/junit), and bin/liv-tester / :LivTest flags (--select, --failed, --seed, --watch, --jobs, --editor, --fail-fast/--max-failures). Use when writing test specs, running the suite, debugging failures, or filtering tests.