/lean-core:lean-contributefrom LeanCode Core
Walk a contributor through proposing a change to the LeanCode AI plugins marketplace — tweaking an existing plugin, adding a new one, and opening a PR against `leancodepl/ai-plugins`. Use when the user invokes `/lean-contribute`, asks how to contribute, asks how to add a plugin, or wants to propose an improvement. Manual-only entry point — does not auto-fire.
Ships in LeanCode Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The guided contributor path for leancodepl/ai-plugins. The repo's CONTRIBUTING.md carries the same steps for contributors working without it. Read top-to-bottom for the full picture, or jump to the relevant path.
git, gh, or any state-changing command on the contributor's behalf unless they explicitly ask.gh pr checks <pr-number> to follow CI verdicts. CI is the source of truth.Before answering questions about what plugins or clients exist, read the source of truth:
.claude-plugin/marketplace.json at the repo root.README.md.Do not enumerate plugins or clients from memory.
All contribution work happens inside a local clone of leancodepl/ai-plugins, not in a consumer project. If the contributor does not have the clone yet:
gh repo clone leancodepl/ai-plugins
cd ai-plugins
If gh is not installed, point them at https://cli.github.com/ or, for a fully GUI flow, https://desktop.github.com/.
This repo ships Claude Code plugins. Every plugin lives under plugins/<plugin-name>/:
plugins/<plugin-name>/
skills/
<plugin-name>-usage/
SKILL.md # routing entry point, always present
references/ # optional reference material the skill loads on demand
<topic>.md
<other-skill>/
SKILL.md
.claude-plugin/plugin.json
README.md
CHANGELOG.md
.mcp.json # only if the plugin drives an MCP server
Notes:
.claude-plugin/plugin.json is the manifest. It carries name, displayName, description, version, and points skills at ./skills/. It has no rules key — Claude Code does not recognize one.skills/<plugin-name>-usage/SKILL.md as its routing entry point. The skill name: in frontmatter must exactly match the folder name.references/*.md alongside a SKILL.md for convention-style guidance the model should apply. Mark skills that should never auto-fire on inferred intent with disable-model-invocation: true.SKILL.md lists them under a "Reach for these references" section so Claude knows when to load each. They load only when referenced, so detailed material costs nothing until needed.README.md. Anything a user has to do to make the plugin work (env vars, dependencies, post-install steps, sample directories, MCP servers, etc.) lives there in full. Other surfaces — <plugin>-usage/SKILL.md, other skills, top-level README bullets — reference the plugin README rather than restating the setup. The single exception is a skill that needs to print setup inline at runtime (because the user is not on GitHub at that moment); when you keep an inline copy for that reason, say so in the skill so the next contributor does not assume the duplication is accidental. This rule prevents drift between README.md, the usage SKILL, and any workhorse SKILL that all happen to mention the same env var.skills/<slug>/ containing a single SKILL.md.name: must equal the folder name.description should include "Use when …" with concrete trigger terms.argument-hint: "<args>" when the skill takes arguments.disable-model-invocation: true when the skill should never auto-fire on inferred intent.skills/<plugin-name>-usage/references/*.md as plain markdown (no frontmatter).SKILL.md under a "Reach for these references" section, with a one-line note on what it covers, so Claude knows when to load it.../<plugin-name>-usage/references/<topic>.md).plugins/<plugin-name>/ and find the file to change.version in .claude-plugin/plugin.json. PATCH for wording / docs, MINOR for new behavior, MAJOR for renames or removals. See "Versioning" below for what Claude Code does with the bump.plugins/<plugin-name>/CHANGELOG.md under a new top entry matching the new version.plugins/<plugin-name>/README.md if the change affects what the plugin lists.Same as Path 1, plus:
plugins/<plugin-name>/skills/<skill-slug>/SKILL.md with frontmatter name: <skill-slug> and a description that includes "Use when …" with concrete trigger terms. Add disable-model-invocation: true if it should not auto-fire. Also append the skill's plugin-relative path (e.g. "./skills/<skill-slug>") to the plugin's skills array in .claude-plugin/marketplace.json.plugins/<plugin-name>/skills/<plugin-name>-usage/references/<topic>.md (plain markdown), and list it under "Reach for these references" in that SKILL.md.plugins/<plugin-name>/README.md.Pick a kebab-case name with a prefix that reflects scope:
flutter-<scope> for a Flutter capability (the bulk of this marketplace).lean-<scope> for a meta or repo-wide plugin with no natural domain (matches lean-core).Do not ship a bare slug. The prefix is what makes the marketplace listing predictable — users remember prefixes plus autocomplete, not full slugs.
Create plugins/<plugin-name>/ with at minimum:
skills/<plugin-name>-usage/SKILL.md.claude-plugin/plugin.jsonREADME.mdCHANGELOG.md with a 0.1.0 entryCopy manifest shape from a sibling plugin. Set version: "0.1.0".
Register the plugin in .claude-plugin/marketplace.json — append to plugins[] with name, source, description, and a skills array listing every skill's plugin-relative path (e.g. "./skills/<plugin-name>-usage").
Add the plugin to the human-readable overview in the root README.md under the matching group.
Branch, commit, push, open a PR.
Per-plugin semver in .claude-plugin/plugin.json.
Keep plugin.json to fields in the official Claude Code plugin manifest schema — CI runs claude plugin validate . --strict, which fails on unrecognized fields.
plugin.json.version is the cache key for /plugin update. Bumping it is load-bearing. If you ship changes without bumping, users running /plugin update see "already at the latest version" and never get your change. Bump it on every release. (See https://code.claude.com/docs/en/plugins-reference.md, "Version management".)
marketplace.json.metadata.version is decorative — no documented refresh or update behavior. Bump by convention when plugins are added/removed/renamed if you want, but nothing depends on it.
Users get updates by running /plugin update (or auto-update if enabled) — no reinstall needed on a normal version bump.
git checkout -b <short-slug>
git add -A
git commit -m "<plugin-name>: <what changed>"
git push -u origin HEAD
gh pr create --repo leancodepl/ai-plugins \
--title "<plugin-name>: <what changed>" \
--body "<one paragraph: what and why; mention any breaking changes>"
If gh is not installed, push the branch and open the PR via the GitHub web UI. The PR description should answer: what changed, why, and which plugins it touches.
Every PR runs on GitHub Actions:
go run ./cmd/validate-plugins), plus the validator's own tests (go test ./...).claude plugin validate . --strict, warnings fail the build).Contributors do not need to install Go locally — CI runs it. Watch the verdicts with:
gh pr checks <pr-number>
A green PR means the shape is correct. Review focuses on guidance quality, not boilerplate.
plugin.json.version — see "Versioning" above.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub leancodepl/ai-plugins --plugin lean-core2 skills in this plugin
Other plugins' skills for the same job