From mattermost-plugin-development
Update Mattermost plugin repositories with common files from mattermost-plugin-starter-template and fix all linter issues. Use when syncing build tooling, updating golangci-lint config, or fixing linter errors in a Mattermost plugin.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mattermost-plugin-development:update-from-starter-templateThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Update this Mattermost plugin repository with common build/config files from the [mattermost-plugin-starter-template](https://github.com/mattermost/mattermost-plugin-starter-template) and fix all linter issues.
Update this Mattermost plugin repository with common build/config files from the mattermost-plugin-starter-template and fix all linter issues.
git checkout master (or main)git pullgit switch -c update-from-starter-templateFetch and compare these files from mattermost/mattermost-plugin-starter-template (master branch):
Build files:
build/manifest/*.gobuild/pluginctl/*.gobuild/setup.mkMakefileConfig files:
.editorconfig.gitattributes.github/workflows/ci.yml.gitignore.golangci.yml.nvmrcgo.mod (for Go version only)server/.gitignoreWhen updating:
go.mod if the starter template uses a newer version (compare the go directive). Also update the Go version in .github/workflows/ci.yml to match. After updating, run go mod tidy to update go.sumgithub.com/mattermost/mattermost-govet in their Makefile to check for license headers. Do NOT remove that linter. If it reports missing license headers, add them to the affected source files.make check-style to identify issuesgo install mvdan.cc/gofumpt@latestgofumpt -w server/ to auto-fix formattingmake test to verify all tests passmake check-style to confirm 0 issuesAsk the user if they want to update all direct Go dependencies. If yes:
go get -u ./... to update all direct dependenciesgo mod tidy to clean up go.summake test to verify all tests still passmake check-style to confirm 0 issuesUpdate common files from starter template and fix linter issues
Mock files have linter errors:
go generate ./...npx claudepluginhub mattermost/mattermost-ai-marketplace --plugin mattermost-plugin-developmentConfigures golangci-lint with best-practice .golangci.yml, interprets lint output and nolint directives, and selects linters for Go projects.
Updates CodeClaw-managed files including pipelines, scripts, prompts, skills, and platform instructions to the latest plugin version. Detects outdated files and preserves user customizations.
Detects optimal method to run golangci-lint in Go repositories (scripts, Makefile, direct, install) and reports structured issue summary.