mz-commit
БесплатноБез исполняемых скриптовНе проверенTrigger: "commit", "prepare commit", "create PR", "push", "open pull request", or mentions committing, pre-commit checks, pull requests in Materialize. Also…
от MaterializeInc★ 6 417 звёзд на GitHubОб этом скилле
Committing in Materialize
Read doc/developer/guide-changes.md for the full conventions on submitting and reviewing changes.
Pre-push checklist
Before pushing a branch for review, run these and fix any warnings. Local commits that only checkpoint work in progress need none of this.
bin/fmt(formats all.rs,.py, and.protofiles; takes no file arguments)bin/lint(can error if tools are missing; usebin/ci-builder run stable bin/lintas an alternative)
bin/lint does not run rustdoc. When the diff adds imports or edits
doc comments, run the Doctests check on the changed crates (command in the
mz-debug-ci skill). When a metric! definition changed, bin/lint
regenerates doc/user/data/metrics.yml. Commit the result, or the "Lint and
rustfmt" job fails on the diff.
When a system parameter or dyncfg was added, removed, or changed (name,
default, description, scope, constraint), run bin/gen-system-parameter-catalog
and commit src/sql/system-parameters.json, or the
checked_in_catalog_is_current test in mz-system-parameter-catalog fails.
After rebasing onto upstream/main, run cargo check --workspace --all-targets
even when the rebase had no conflicts. Upstream changes can still break the
branch, for example a dependency your branch needs that upstream removed as
unused (Nightly's bin/unused-deps reports those), a duplicate item, or a new
enum variant your match does not cover. CI checks this in the
"Merge skew cargo check" job.
Do not manually update *.snap files.
Use cargo test followed by cargo insta accept to update snapshot files.
Rewrite datadriven test expectations with REWRITE=1 cargo test ....
LIR plan changes: regenerate the schema registry
The stable LIR format lets optimized plans be stored durably and reused, so
two snapshot tests in mz-compute-types pin what a stored plan looks like
and what it means. Both key off LIR_VERSION in
src/compute-types/src/plan.rs.
lir_schema traces the serde schema of everything reachable from
LirRelationExpr into tests/snapshots/lir_v{LIR_VERSION}.json. Run it
whenever the diff changes the serde-visible shape of a type the trace
reaches: anything in src/compute-types/src/plan.rs or
src/compute-types/src/plan/, a *Func payload, or a plan-reachable type
in mz-expr or mz-repr such as AggregateFunc, TableFunc,
SqlScalarType or DateTimeUnits:
cargo test -p mz-compute-types --test lir_schema
Regenerate with REWRITE=1 cargo test -p mz-compute-types --test lir_schema
and review the diff. It is the reviewable record of the format change. If
the current LIR_VERSION has shipped (see below), bump it first so the old
lir_v{N}.json stays in place for migration tooling and the rewrite targets
a fresh file.
Scalar function changes: regenerate the function registry
The schema registry sees a plan's shape, not what its functions compute.
func_registry covers that gap for UnaryFunc, BinaryFunc, and
VariadicFunc. Run it whenever the diff touches
src/expr/src/scalar/func.rs or src/expr/src/scalar/func/ (including
impls/ and #[sqlfunc] bodies):
cargo test -p mz-compute-types --test func_registry
It fails when a function is added, removed, or has a changed property (nullability, error behavior, monotonicity, output type, sqlfunc signature) or a changed
#[sqlfunc]body. If the failure names removed or changed functions, or a body change that alters results, settle theLIR_VERSIONquestion below before regenerating. A rewrite at the old version overwrites that version's entry infunc_registry_digests.jsoninstead of adding a new one, no later check catches it, and that entry is the only key back into git history for what the shipped version's functions meant. Once the version is settled, regenerate the checked-in snapshots and review the diff undersrc/compute-types/tests/snapshots/:REWRITE=1 cargo test -p mz-compute-types --test func_registryNever hand-edit
func_registry*.json. The test rebuilds the registry and compares it against all three files, so an edit fails it.New function with a payload (any variant that carries data, e.g. a target type, a regex, a scale): the registry build panics naming the variant. Add a representative
Sampletounary_samples(),binary_samples(), orvariadic_samples()insrc/expr/src/scalar/func/registry.rs. If a property depends on the payload (e.g. a cast only errors when it has a scale), add a second sample with.labeled("...")covering the other branch. Payload-free variants and plain#[sqlfunc]functions need no sample.Removed or changed function, or a body change that alters results: if the current
LIR_VERSIONhas shipped in a release, bump it so stored plans are replanned, and only then regenerate. An unshipped version is regenerated in place. Treat the version as shipped when the latest release tag carries the same
Установить mz-commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mz-commit?
Trigger: "commit", "prepare commit", "create PR", "push", "open pull request", or mentions committing, pre-commit checks, pull requests in Materialize. Also "ship it", "ready to merge". For code review use mz-pr-review.
Как установить скилл mz-commit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mz-commit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic