← スキル一覧に戻る

update-from-starter-template
by hanzei
A Claude Code plugin to help with Plugin development at Mattermost
⭐ 0🍴 0📅 2026年1月21日
SKILL.md
name: update-from-starter-template description: 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. user-invocable: true allowed-tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch, mcp__github-server__get_file_contents
Update from Starter Template
Update this Mattermost plugin repository with common build/config files from the mattermost-plugin-starter-template and fix all linter issues.
Instructions
Phase 0: Prepare the repository
- Switch to the main branch:
git checkout master(ormain) - Pull latest changes:
git pull - Create a new branch for the updates:
git switch -c update-from-starter-template
Phase 1: Update common files from starter template
Fetch and compare these files from mattermost/mattermost-plugin-starter-template (master branch):
Build files:
build/manifest/*.gobuild/pluginctl/*.gobuild/setup.mkMakefile
Config files:
.editorconfig.gitattributes.github/workflows/ci.yml.gitignore.golangci.yml.nvmrcgo.mod(for Go version only)server/.gitignore
When updating:
- Preserve plugin-specific customizations (plugin ID, custom targets)
- Update tool versions (golangci-lint, gotestsum, Node.js)
- Adopt new linter configurations
- Update Go version in
go.modif the starter template uses a newer version (compare thegodirective). Also update the Go version in.github/workflows/ci.ymlto match. After updating, rungo mod tidyto updatego.sum - Preserve license headers
Phase 2: Fix linter issues
- Run
make check-styleto identify issues - Install gofumpt if needed:
go install mvdan.cc/gofumpt@latest - Run
gofumpt -w server/to auto-fix formatting - Fix remaining issues manually
Phase 3: Verify and commit
- Run
make testto verify all tests pass - Run
make check-styleto confirm 0 issues - Create a descriptive commit and PR. Use the pull request template from https://github.com/mattermost/.github/blob/master/PULL_REQUEST_TEMPLATE.md.
Example commit message
Update common files from starter template and fix linter issues
Troubleshooting
Mock files have linter errors:
- Generated mocks may need regeneration:
go generate ./... - Or exclude from linting if they're third-party generated
スコア
総合スコア
45/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です