mm

Coordinate machine-manager development from tests to ECR deployment and migrations.

3|Updated Sep 5, 2021
One-click install
npx skills add https://github.com/aviralmansingka/dotfiles --skill mm-aviralmansingka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mm
Source: https://github.com/aviralmansingka/dotfiles/tree/main/claude/.claude/skills/mm
Command: npx skills add https://github.com/aviralmansingka/dotfiles --skill mm-aviralmansingka

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinates the end-to-end machine-manager development cycle so you can move from local changes to validated builds, OCI images, and cluster deployments without manually stitching together tools and commands.

Core Features & Use Cases

  • Unified dev workflow: Guides the sequence for running tests, generating assets, building (Go toolchain or Bazel), and validating changes against both ecosystems.
  • OCI image lifecycle: Covers Bazel-built image creation, local load/run workflows, and pushing digests to dev/prod ECR.
  • Database and migrations: Provides repeatable migration and rollback steps aligned with expected dev/prod behavior, including migration safety constraints.
  • Use case: When you change a machine-manager feature and need confidence it works end-to-end, you can run tests and lint, generate any embedded UI/audit/sqlc artifacts, build a release or debug binary, push a stamped image, deploy it to the correct dev cluster, and then manage any migration rollout or rollback.

Quick Start

Ask the skill to walk you through testing, generating assets, building (debug or release), creating/pushing the OCI image, and deploying machine-manager with migrations to the dev cluster.

Frequently Asked Questions about mm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and deploy a Go service to Kubernetes using Bazel and Helm?

To build and deploy a Go service using Bazel and Helm, you need a coordinated workflow that compiles the binary, creates an OCI image, pushes it to a registry, and applies Helm deployments using image digests. This ensures deterministic builds and consistent cluster releases.

What is the best way to manage database migrations during a Kubernetes deployment?

Managing database migrations during a Kubernetes deployment requires running repeatable migration steps aligned with dev and prod constraints. You need a workflow that applies migrations safely during rollout and provides rollback mechanics to handle schema changes without breaking active deployments.

How do I push a Bazel-built OCI image to an ECR registry?

Pushing a Bazel-built OCI image to ECR involves building the image locally using Bazel, loading it into your local runtime, and then pushing the stamped image digest to the dev or prod ECR repository to ensure the deployment uses an exact, validated version.

Does Bazel work with Go toolchain outputs for hermetic CI builds?

Bazel works with Go toolchain outputs by coordinating the build environments to support both local iteration and hermetic CI-style builds. This coordination enforces deterministic build requirements so that locally validated changes behave consistently in automated CI pipelines.

How do I test and generate embedded UI or sqlc artifacts before building?

Before building, you must run tests and lint checks, then generate any embedded UI, audit, or sqlc artifacts. This generation step ensures that the Go or Bazel build process compiles all necessary assets correctly into the final release or debug binary.

Why do I need digest-based deployments via Helm for Go applications?

Digest-based deployments via Helm are needed to guarantee that the Kubernetes cluster pulls the exact OCI image version you validated. By referencing image digests instead of mutable tags, you prevent unverified code from running in dev or prod environments.