Configure, inspect, update, validate, and troubleshoot Buf workspaces and modules. Use when working with buf.yaml, buf.lock, buf.gen.yaml or domain-specific Buf generation templates; managing BSR dependencies; formatting, linting, generating, detecting breaking Protobuf changes; locating dependency schemas; or diagnosing missing types and generation failures.
npx skills add https://github.com/moeru-ai/auv --skill use-buf
Use the Buf CLI as the source of truth for Protobuf compilation, dependency resolution, linting, breaking-change detection, and code generation.
buf.yaml, buf.lock, buf.gen.yaml, and buf.gen.<domain>.yaml files.buf --version and check repository/CI tool pins before using features from a newer configuration schema..proto files to work around them.Use one default buf.gen.yaml. Introduce buf.gen.<domain>.yaml only when generation products genuinely require isolated plugin sets, inputs, or outputs. Pass non-default templates explicitly with buf generate --template <file>.
buf.yaml for workspaces/modules, BSR dependencies, lint rules, breaking rules, policies, and Buf check plugins.buf.gen.yaml or buf.gen.<domain>.yaml for protoc-gen-* code-generation plugins, inputs, output directories, options, and managed mode.buf.lock as generated dependency resolution state. Do not edit it manually.Read references/configuration.md before adding modules, dependencies, check plugins, generation templates, or output paths.
buf.yaml, then run buf dep update and inspect the buf.lock diff.buf dep graph --format json to identify the resolved dependency chain.buf dep prune only after confirming an import is genuinely unused.buf dep update, then run buf build or buf generate to obtain the compiler's concrete import/type error.buf export when source inspection is required.After changing first-party Protobuf or Buf configuration, MUST run:
buf lint
buf generate
buf breaking --against '.git#branch=main'
Also run buf format --diff or the repository's format check and all language-specific tests/type checks for generated outputs.
Do not skip the breaking check merely because a break is intentional. Run it, capture the violations, and report that the change is an approved experimental/unreleased break. If the repository does not have a main branch, report that exact baseline failure and resolve the intended integration baseline rather than silently omitting compatibility validation.
buf.yaml.buf.lock with buf dep graph.buf build.buf lint.Use $use-buf-plugins for remote/local plugin selection, offline generation, rate limits, or plugin wrappers. Read references/commands-and-troubleshooting.md for precise inspection commands and failure handling.
Take moeru-ai/use-buf from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.