feat: Intelligent Skill Dispatch — change-triggered skill selection#114
Merged
feat: Intelligent Skill Dispatch — change-triggered skill selection#114
Conversation
8f1abca to
f81f996
Compare
Extends the existing 3-layer recommendation engine with 16 new signal types (4 change-type + 12 domain signals) for change-aware skill scoring. New dispatch_skills MCP tool that auto-detects changes from git diff and recommends an annotated skill sequence with parallel-safe flags, estimated impact, and dependency info. Session-start integration via HEAD delta detection for automatic recommendations when the codebase changes. - packages/cli/src/skill/dispatch-types.ts: DispatchContext, DispatchResult, DispatchedSkill - packages/cli/src/skill/dispatch-engine.ts: Core engine with signal enrichment and annotation - packages/cli/src/skill/dispatch-session.ts: Session-start HEAD delta detection - packages/cli/src/mcp/tools/dispatch-skills.ts: MCP tool adapter - packages/cli/src/skill/recommendation-types.ts: HEALTH_SIGNALS 12→28 - packages/cli/src/skill/recommendation-rules.ts: Fallback rules for 15 bundled skills - packages/cli/src/skill/stack-profile.ts: detectDomainsFromFiles() - 168 new tests across 7 test files, backward compatible Spec: docs/changes/intelligent-skill-dispatch/proposal.md Closes #83
f81f996 to
2f95ca6
Compare
added 4 commits
April 6, 2026 15:34
…ark baselines for CI runner The benchmark baselines were calibrated to local hardware and consistently fail on GitHub Actions runners which are ~2x slower for sub-microsecond operations. Updated core baselines to match observed CI performance. Also regenerated mcp-tools.md after full build to include compute_blast_radius.
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
dispatch_skillsMCP tool that auto-detects changes from git diff and recommends an annotated skill sequence with parallel-safe flags, estimated impact, and dependency info--freshflag to force recapture19 commits, 168 new tests, all passing. Backward compatible — 44 existing recommendation engine tests unchanged.
New files
packages/cli/src/skill/dispatch-types.ts— DispatchContext, DispatchResult, DispatchedSkill typespackages/cli/src/skill/dispatch-engine.ts— Core dispatch engine with signal enrichment, annotation, and git helperspackages/cli/src/skill/dispatch-session.ts— Session-start HEAD delta detection and advisory bannerpackages/cli/src/mcp/tools/dispatch-skills.ts— MCP tool adapterModified files
packages/cli/src/skill/recommendation-types.ts— HEALTH_SIGNALS extended from 12 to 28packages/cli/src/skill/recommendation-rules.ts— Fallback rules for 15 bundled skills with change/domain addressespackages/cli/src/skill/stack-profile.ts— NewdetectDomainsFromFiles()functionpackages/cli/src/mcp/server.ts— dispatch_skills tool registrationpackages/cli/src/commands/setup-mcp.ts— ALL_MCP_TOOLS updatedTest plan
--noEmitharness validatepasses