feat(mcp): refresh global AI skills on lerd update#222
Merged
Conversation
mcp:enable-global now also writes user-scope SKILL.md, cursor rules, and junie guidelines so the AI assistants actually know about the lerd tools. lerd update re-writes those three files from the newly installed binary when global MCP is enabled, so they stay aligned with any added or renamed tools. Gate detects both claude user-scope registration and the lerd-owned marker files, covering users without Claude Code installed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcp:enable-globalnow writes user-scope skill, rules, and guidelines files (~/.claude/skills/lerd/SKILL.md,~/.cursor/rules/lerd.mdc,~/.junie/guidelines.md) in addition to the MCP server registrations, so the assistants actually know which lerd tools exist.lerd updatere-writes those three files from the newly installed binary when global MCP is enabled, so the skill content stays aligned with any added or renamed tools in the release.claude mcp list --scope useror the lerd-owned marker files, covering users without Claude Code installed.Changes
internal/cli/mcp.go: newWriteGlobalAISkills(home, verbose)helper shared betweenmcp:enable-globaland the update flow, updated help text.internal/cli/update.go: post-installrefreshGlobalMCPSkillswithmcpEnabledGloballymarker-aware gate.internal/cli/mcp_test.go: seven tests covering file writes, idempotence, preservation of existing Junie guidelines, replacement of a stale lerd block, and the gate.docs/features/mcp.md: documents the new user-scope files and the update-time refresh.