Skip to content

AX-1847 Moving from session start hook to skills (skills sync in from jfrog-skills) - #43

Open
MatanEden1 wants to merge 5 commits into
mainfrom
AX-1847-move-to-skills
Open

AX-1847 Moving from session start hook to skills (skills sync in from jfrog-skills)#43
MatanEden1 wants to merge 5 commits into
mainfrom
AX-1847-move-to-skills

Conversation

@MatanEden1

Copy link
Copy Markdown
Contributor

Summary

Retires the legacy sessionStart hook that force-injected a ~440-line MCP-management template into every session. JFrog MCP management now lives in discoverable skills that are vendored in via sync from jfrog/jfrog-skills rather than driven by a hand-maintained hook + template — so this branch removes the hook machinery to avoid a second source of truth.

Mirrors the equivalent change in jfrog/claude-plugin #33.

Net change vs main (pure removal)

  • plugins/jfrog/hooks/hooks.json — the sessionStart hook definition
  • plugins/jfrog/scripts/inject-instructions.mjs — the injector that force-fed the template
  • plugins/jfrog/templates/jfrog-mcp-management.md — the always-on template
  • scripts/validate-hook-injector.mjs — its validator
  • .github/workflows/validate-inject-instructions.yml — CI for the injector
  • plugins/jfrog/.cursor-plugin/plugin.json — dropped the now-unused "hooks" key
  • README.md / plugins/jfrog/README.md — removed dangling hook references; Node bumped to ≥ 18

The validate-template.mjs general manifest validator and its validate-template.yml workflow are kept — they are not hook-specific.

Where the skills live now

The JFrog MCP skills + their shared references arrive in this plugin through the vendored sync from jfrog/jfrog-skills, not by hand-committing them here.

Test plan

  • Confirm no residual references to the retired hook files remain in the repo or CI.
  • node scripts/validate-template.mjs passes.
  • Verify MCP install/list/remove still work end-to-end via the synced skills.

🤖 Generated with Claude Code

@MatanEden1
MatanEden1 requested a review from a team as a code owner July 23, 2026 12:35
MatanEden1 and others added 2 commits July 26, 2026 09:02
… jfrog-skills)

Retires the legacy sessionStart hook that force-injected the ~440-line
MCP-management template into every session. JFrog MCP management now lives
in discoverable skills that sync in from jfrog/jfrog-skills, so this removes
the hook machinery and the hand-maintained template to avoid a second source
of truth.

Removed:
- plugins/jfrog/hooks/hooks.json — the sessionStart hook definition
- plugins/jfrog/scripts/inject-instructions.mjs — the injector
- plugins/jfrog/templates/jfrog-mcp-management.md — the always-on template
- scripts/validate-hook-injector.mjs — the injector validator
- .github/workflows/validate-inject-instructions.yml — CI for the injector

Also dropped the now-unused "hooks" key from the plugin manifest and cleaned
up the residual hook references in the READMEs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The sessionStart hook was retired in favor of skills, but three README
references still described Agent Guard as a "Hook":
- README.md capabilities table: relabel the Agent Guard row Hook -> Skill
- plugins/jfrog/README.md: drop "hook" from the JFrog CLI prerequisite

Completes the README cleanup listed in the PR description / test plan.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@MatanEden1
MatanEden1 force-pushed the AX-1847-move-to-skills branch from b4814a1 to 731f533 Compare July 26, 2026 06:04
MatanEden1 and others added 2 commits July 26, 2026 09:19
Cursor skips re-installing/updating a plugin whose resolved version
hasn't changed (see VENDOR.md). The hook->skills change alters
plugin.json's manifest and hook wiring, so it needs a version bump
for existing installs to pick it up.
Ports the harness-agnostic jfrog-mcp-management skill from jfrog-skills
(feature/AX-1777-jfrog-mcp-skills) plus fixes found during the AX-1777
bug hunt (see Confluence "BUG hunt - Jfrog mcp skill"), including the
Cursor "multiple/no JFrog server configured" case: the troubleshooting
entry now points at the existing isDefault-based resolution chain in
agent-guard-common.md instead of just saying "pass --server <ID>" with
no guidance on picking one.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@YoniMelki YoniMelki left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR shouldn't have the skills folder. It should be done from the Skills' CI

This skill is vendored from jfrog/jfrog-skills via the sync process
and should not be hand-committed here.
@MatanEden1
MatanEden1 force-pushed the AX-1847-move-to-skills branch from b9a991f to 534a0e7 Compare July 28, 2026 06:57
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