Skip to content

Auto-install the plugin for repo-openers via committed .claude/settings.json - #1

Open
omrisavra wants to merge 1 commit into
mainfrom
add-plugin-autoinstall-settings
Open

Auto-install the plugin for repo-openers via committed .claude/settings.json#1
omrisavra wants to merge 1 commit into
mainfrom
add-plugin-autoinstall-settings

Conversation

@omrisavra

Copy link
Copy Markdown
Collaborator

What

Commits a repo-root .claude/settings.json that registers the robintax marketplace and enables robintax@robintax, and un-ignores that file in .gitignore.

Why

Today the plugin loads only if you launch with claude --plugin-dir . or manually run /plugin marketplace add + /plugin install. Neither happens for a fresh repo-opener, so /robintax:* skills and the smart-replay MCP server aren't available.

With this committed, anyone who opens the repo gets a one-click install — the workspace-trust prompt plus an install confirmation — no commands, no remembering flags. This is the blessed "team marketplace" pattern (extraKnownMarketplaces + enabledPlugins).

Note: install is not silent — the trust prompt + install confirm are mandatory security gates. That's by design.

The gitignore nuance

.claude/settings.json was previously gitignored with the comment "has accreted user-specific paths." Claude Code's design splits exactly this:

  • settings.json -> shared, committed (this PR puts only marketplace + plugin config here)
  • settings.local.json -> user-specific, gitignored (still covered by *.local)

So we un-ignore settings.json and document the split. No user-specific paths are committed.

Config added

{
  "extraKnownMarketplaces": {
    "robintax": { "source": { "source": "github", "repo": "Shargil/RobinTax" } }
  },
  "enabledPlugins": { "robintax@robintax": true }
}

Dev-workflow note

--plugin-dir . still wins for the session (per docs), so active plugin development is unaffected by having the marketplace version enabled.

🤖 Generated with Claude Code

Registers the robintax marketplace (extraKnownMarketplaces) and enables
robintax@robintax (enabledPlugins) so anyone who opens this repo gets a
one-click plugin install (workspace-trust prompt + install confirm) instead
of running /plugin commands or remembering --plugin-dir.

settings.json was previously gitignored because it had accreted
user-specific paths. Those belong in settings.local.json (still gitignored
via *.local); the shared marketplace+plugin config is safe to commit, so
un-ignore settings.json and document the split.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants