Skip to content

fix(mcp): filter disable-model-invocation skills from auto-recommendations (#1254)#1265

Merged
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775263506/pane-3
Apr 4, 2026
Merged

fix(mcp): filter disable-model-invocation skills from auto-recommendations (#1254)#1265
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775263506/pane-3

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Extended skillMetadataCache in skill-recommendation.service.ts to cache disableModelInvocation field alongside userInvocable
  • Added filtering logic to exclude skills with disableModelInvocation: true from auto-recommendations
  • Added 3 test cases covering: excluded when true, included when false, included when undefined (default)

Closes #1254

Test plan

  • Skill with disableModelInvocation: true excluded from recommendations
  • Skill with disableModelInvocation: false still recommended
  • Skill without disableModelInvocation still recommended (backwards compatible)
  • All 5852 existing tests pass
  • TypeScript type check passes

…tions (#1254)

Skills with `disable-model-invocation: true` frontmatter were still
being auto-recommended. Extend skillMetadataCache to cache and filter
the disableModelInvocation field alongside userInvocable.
@vercel

vercel Bot commented Apr 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 4, 2026 0:54am

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Review: ✅ APPROVE

CI Status: ALL PASS

Code Review

skill-recommendation.service.ts:

  • skillMetadataCache type extended to include disableModelInvocation
  • loadFrontmatterTriggers() caches both userInvocable and disableModelInvocation
  • Filter at L176: metadata?.disableModelInvocation === true → skip (alongside existing userInvocable === false)

skill-recommendation.service.spec.ts — 3 new tests:

  • disableModelInvocation: true → excluded from recommendations
  • disableModelInvocation: false → still recommended
  • No field → default behavior (included)

Clean, minimal, correct.

Issues Found: None

Recommendation: APPROVE

@JeremyDev87 JeremyDev87 added the fix label Apr 4, 2026
@JeremyDev87 JeremyDev87 self-assigned this Apr 4, 2026
@JeremyDev87 JeremyDev87 merged commit c98cd1a into master Apr 4, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775263506/pane-3 branch April 4, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(mcp): filter disable-model-invocation skills from auto-recommendations

1 participant