Contributing
Please do! Thanks for your help! 🎈 Meshery is community-built and welcomes collaboration. Contributors are expected to adhere to the CNCF’s Code of Conduct.
General Contribution Flow
Meshery and it’s various architectural components are written in different languages, including Golang, Javascript (React.js and Next.js) To make building, testing, and the experience of contributing consistent across all Meshery components, a Makefile is included in the every repository. These make targets are what you will use to build, run, test, and document.
To contribute to Meshery, please follow this basic fork-and-pull request gitflow.
Adding your sign-off on commits (Developer Certificate of Origin)
- To contribute to this project, you must agree to the Developer Certificate of Origin (DCO) for each commit you make. The DCO is a simple statement that you, as a contributor, have the legal right to make the contribution.
- See the DCO file for the full text of what you must agree to
and how it works here.
To signify that you agree to the DCO for contributions, you simply add a line to each of your
git commit messages:
Signed-off-by: Jane Smith - In most cases, you can add this signoff to your commit automatically with the
-sor--signoffflag togit commit. You must use your real name and a reachable email address (sorry, no pseudonyms or anonymous contributions). An example of signing off on a commit:$ git commit -s -m “my commit message w/signoff” - To sign off without typing
-seach time, you may add these aliases to your global.gitconfigand usegit cmandgit amend. Git ignores an alias that has the same name as a built-in command, so a plaingit commitcannot be made to sign off this way:~/.gitconfig
[alias] amend = commit -s --amend cm = commit -s -mOr you may configure your IDE, for example, VSCode to automatically sign-off commits for you:

- Should an unsigned commit slip through anyway, the repository's
commit-msghook (installed with the UI dependencies, seeui/.husky/) rejects it locally rather than letting the DCO check fail in CI. The hook applies the same rules the DCO check does, so a message it accepts is one CI accepts: merge commits are exempt, and at least oneSigned-off-bytrailer has to name the author or the committer. When it rejects a commit, nothing was committed - your message is waiting in.git/COMMIT_EDITMSG, so re-run the commit with-s. - Treat that hook as a safety net rather than a guarantee. Git runs whichever hooks
core.hooksPathresolves to, so a clone wheremake ui-setupwas never run has no hook at all, and any tool that repointscore.hooksPathat a directory of its own - other hook managers, and worktree-based automation that commits on your behalf - replaces it without a warning. Commit with-srather than relying on the hook to notice. - To sign off a commit you have already written but have not pushed:
$ git commit --amend -s --no-editOnce the branch is pushed, amending reaches only its tip, and a DCO failure usually names more than one commit. Meshery accepts individual DCO remediation commits, so the preferred repair rewrites nothing: the author of each unsigned commit adds one more commit, signed off with
git commit -s, whose message has a line per unsigned commit. If there is nothing to stage, create the empty commit withgit commit –allow-empty -sinstead - a plaingit commit -srefuses an empty commit - then push it:I, Jane Smith <jane.smith@example.com>, hereby add my Signed-off-by to this commit: <full sha>A rebase gives every replayed commit a new SHA, so a remediation commit that names the old SHA no longer covers the unsigned commit. Create the remediation commit only after the branch reaches its final base, name the full SHA as it appears on the branch, and recreate the remediation commit after any later rebase.
Only a commit’s own author can sign for it; a remediation commit from someone else is not accepted. Use the unsigned commit’s own name and email, both as the remediation commit’s author and in the sign-off line: if your Git identity has changed since the unsigned commit, the DCO check will not match a remediation signed with the new identity.
- Alternatively, when the branch is yours alone, sign off every commit the pull request carries
and replace the pushed branch:
$ git rebase <base-branch> --signoff $ git push --force-with-leaseThat rewrites the branch, so settle it first with anyone else working on it, and with any automation that is tracking the branch by commit hash - a force push moves the tip out from under both.
Running the pre-landing Quality Gate (No-Mistakes)
Meshery enforces the no-mistakes quality gate on all code contributions (UI, server, CLI, schemas, and configurations). The gate validates code review, tests, documentation parity, and linting in isolated, disposable worktrees before changes reach GitHub, satisfying the PR must be raised via no-mistakes CI status check.
1. Install No-Mistakes
Install the CLI tool on your local development system:- macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/kunchenguid/no-mistakes/main/docs/install.sh | sh - Windows (PowerShell):
irm https://raw.githubusercontent.com/kunchenguid/no-mistakes/main/docs/install.ps1 | iex - Via Go:
go install github.com/kunchenguid/no-mistakes/cmd/no-mistakes@latest
For other installation options, refer to the official installation guide.
2. Check Prerequisites
Verify your local environment with the built-in diagnostic tool:no-mistakes doctorThis checks for:
- Git: Required for repository and branch operations.
- Supported Agent Runner: Claude Code, Codex, Copilot, Antigravity (
agy), etc. - GitHub CLI (
gh): Required for opening pull requests and monitoring CI. Rungh auth login, then confirm withgh auth status. Doctor checks only thatghis installed.
3. Initialize the Meshery Repository
Navigate to your local Meshery repository and initialize the local quality gate with your GitHub fork. Pointorigin at the parent repository first: if you cloned your fork (the gitflow guide's layout), no-mistakes init refuses rather than opening pull requests against your own fork. Run git remote set-url origin git@github.com:meshery/meshery.git, then pass your fork with --fork-url:cd meshery
git remote set-url origin git@github.com:meshery/meshery.git
no-mistakes init --fork-url git@github.com:YOUR_USERNAME/meshery.gitThis registers the local no-mistakes remote, prepares isolated worktrees, and starts the background daemon.
4. Commit and Run the Quality Gate
- Create your feature branch:
git checkout -b feature/your-feature - Make your changes and commit them with DCO sign-off:
git commit -s -m "type(scope): descriptive commit message" - Run the pipeline on your branch:
no-mistakes axi run --intent "<brief description of your changes>"
You can also push the branch through the gate directly with git push no-mistakes feature/your-feature.
5. Monitor Pipeline Progress
Run no-mistakes to watch the pipeline and respond to approval requests; no-mistakes status shows a summary.
The automated pipeline executes 9 structured stages:
- Intent: Analyzes the purpose and scope of your changes.
- Rebase: Rebases onto the latest upstream branch.
- Review: Evaluates code styling and safety rules.
- Test: Scopes and runs baseline tests.
- Document: Checks documentation parity and identifies gaps.
- Lint: Runs repository linters.
- Push: Pushes validated commits to your remote fork.
- PR: Creates or updates the pull request.
- CI: Monitors remote GitHub Actions workflows.
6. Pull Request Attestation & Requirements
- Attestation Matching: The CI check
PR must be raised via no-mistakesverifies that the pull request description contains a valid attestation matching the currenthead_shaand thatreview,test, anddocumentsteps are markedcompleted. After pushing new commits, re-run the gate so the attestation covers the new head; an attestation for an older commit fails the check. Before a follow-up commit, runno-mistakes axi statusand follow itsbranch_sync.next_action: when it sayssync, runno-mistakes axi syncfirst, since the gate may have advanced the published branch past your local copy. - Separate DCO Check: All commits must include a sign-off trailer (
git commit -s) to satisfy GitHub's independentDCOstatus check. - Exempt Paths: Pull requests are automatically exempt from the pipeline requirement only when every changed path is documentation or the docs website (
docs/**, rootCNAME, and markdown files outsideserver/,ui/,provider-ui/,mesheryctl/,install/, andmodels/) or CI (.github/workflows/**,.github/actions/**,.github/scripts/**, and CI config files directly under.github/).
For agent skill instructions and CI merge gate specifications, see the No-mistakes merge gate technical specification and .agents/skills/no-mistakes/SKILL.md.
Cloning the Repository
The meshery/meshery repository is large - a full clone is on the order of tens of gigabytes and keeps growing. Two directories account for most of that weight, and neither is needed for the vast majority of contributions:
models/- the generated Meshery Model registry (400+ models). A typical build of the server, UI, or CLI only needs themeshery-coreandkubernetesmodels.docs/static/v*/- archived snapshots of previously released documentation. Only the latest snapshot is needed to build and preview the current docs.
Unless you are specifically working on the model registry or on an archived documentation version, clone sparsely. You still get the full commit history and everything required to build the server, UI, CLI, and current docs, while skipping gigabytes of generated content.
Recommended: sparse clone
First fork the repository, then replace USERNAME and FORKED-PROJECT with your GitHub username and fork name:
# 1. Blobless partial clone - fetches history metadata, not every file's contents
git clone --no-checkout --filter=blob:none https://github.com/USERNAME/FORKED-PROJECT.git
cd meshery
git remote add upstream https://github.com/meshery/meshery.git
# 2. Check out everything EXCEPT the bulky generated directories:
# - every model except meshery-core and kubernetes
# - archived docs snapshots (keep only the latest, docs/static/v0.9)
git sparse-checkout set --no-cone \
'/*' \
'!/models/*' \
'/models/meshery-core/' \
'/models/kubernetes/' \
'!/docs/static/v0.8/'
# 3. Populate the working tree
git checkout master
This yields a working tree a fraction of the size of a full clone. --filter=blob:none makes it a partial clone, so Git transparently fetches any excluded file on demand if you ever check one out - nothing is permanently lost, and git log/git blame keep working across the full history.
The !/models/* pattern excludes the contents of models/ (not the directory itself), which is what lets the two following lines re-include only the meshery-core and kubernetes models. For the docs, exclude the older archived snapshots under docs/static/ and keep the newest (currently docs/static/v0.9); add another ! line for each older version as new snapshots are archived.
Re-including an excluded directory
Working on the model registry, or on an older archived docs version? Re-include just what you need at any time:
# Bring back the full model registry
git sparse-checkout add '/models/'
# ...or a single archived docs version
git sparse-checkout add '/docs/static/v0.8/'
Or restore the full working tree entirely:
git sparse-checkout disable
git sparse-checkout requires Git 2.25+, and partial clone (--filter=blob:none) works best with Git 2.27+. Check with git --version.
Not sure where to start?
Follow these steps and you'll be right at home.
- See the Newcomers Guide for how, where, and why to contribute.
- Sign up for a MeshMate to find the perfect Mentor to help you explore the projects and find your place in the community.
- Familiarize yourself with the broader set of projects in Meshery's ecosystem, including the meshery-extensions repositories (the community handbook is a helpful resource): Spend time understanding each of the initiatives through high-level overviews available in the community drive and through discussions with your MeshMate.
- Identify your area of interest: Use the time with your MeshMate to familiarize yourself with the architecture and technologies used in the projects. Inform your MeshMate of your current skills and what skills you aim to develop.
- Play with Meshery: Put on your user hat and walk-through all of Meshery’s features and functions as a user.
- Build Meshery Server and UI: Confirm that you have a usable development environment. See Guides below.
- Discuss with the community by engaging in the discussion forum.
- Contribute by grabbing any open issue with the help-wanted label and jump in. If needed, create a new issue. All pull requests should reference an open issue. Include keywords in your pull request descriptions, as well as commit messages, to automatically close issues in GitHub.
- Fill in a community member form to gain access to community resources.
Specific Contribution Guides
Here is a complete list of all of Meshery’s contributing guides from Server to UI to CLI to Extensions and so on.
- Contributing to Meshery CLI - How to contribute to the Meshery CLI and its commands.
- Contributing to Meshery Docs - How to contribute to Meshery Docs.
- Contributing to Meshery Models - How to contribute to the Meshery models and their components.
- Contributing to Meshery UI - How to contribute to the Meshery UI and its components.
- Contributing to Operator, MeshSync & Broker Settings - The complete surface of settings that govern Meshery Operator, MeshSync and Meshery Broker behavior: where each one lives, what it writes, what reads it, and what happens when it changes.
- Build & Release (CI) - Details of Meshery's build and release strategy.
- Build Environment Gotchas - Local build and dependency failures in Meshery that report a cause other than their own.
- Contributing Relationships - Testing and Best Practices - How to test, validate, and debug relationship definitions before contribution
- Contributing to Meshery Adapters - How to contribute to Meshery Adapters
- Contributing to Meshery Docker Extension - How to contribute to Meshery Docker Extension
- Contributing to Meshery Operator - How to build, test, and deploy Meshery Operator from source
- Contributing to Meshery Policies - How to contribute to Meshery Policies
- Contributing to Meshery Schemas - How to contribute to Meshery Schemas
- Contributing to Meshery Server - How to contribute to Meshery Server
- Contributing to Meshery Server Events - Guide is to help backend contributors send server events using Golang.
- Contributing to Meshery using git - How to contribute to Meshery using git
- Contributing to MeshSync - How to build, run, test, and contribute to MeshSync from source
- Go Lint Rules - The repo-specific Go lint gates Meshery enforces in CI, what each one is protecting, and what to do when one fires.
- How to write MeshKit compatible errors - How to declare errors in Meshery components.
- HTTP Error Response Contract - How Meshery Server responds to error conditions over HTTP, and how clients should parse those responses.
- Meshery Documentation Structure and Organization - Audience, high-Level outline & information architecture for Meshery Documentation
- Setting up Meshery Development Environment on Windows - How to set up Meshery Development Environment on Windows