feat: dynamic skill registry, trigger-based matching, and session memory#22
Merged
Merged
Conversation
…ory (#2, #4, #5, #17) Replace the static TypeScript catalog with a runtime JSON registry, add trigger-based keyword scoring to fix invisible skill domains, and introduce session-aware skill memory to avoid redundant fetches. Phase 0 — Extract reusable modules from web-discovery.ts: - text-utils.ts, url-utils.ts, security-scanner.ts, github-client.ts Phase 1 — Central skill registry (#2 + #17): - registry/index.json with 87 skills, 28 domains, trigger keywords - registry-loader.ts with bundled fallback and user override - catalog.ts rewritten as facade over the registry Phase 3 — Trigger-based skill matching (#4): - trigger-matcher.ts with keyword scoring and lightweight stemming - Tool description now lists all 28 domain names dynamically - Fixes: "UX design" tasks now correctly match frontend-design domain Phase 4 — Session-aware skill memory (#5): - skill-session.ts caches activations within a process lifetime Also removes commercial license (AGPL-3.0-or-later only). 832 tests passing, 90%+ coverage on new code. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
af1a980 to
6fa1cea
Compare
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
registry/index.json) replaces static TypeScript catalog — 87 skills, 28 domains, trigger keywords per skill (Central skill registry (registry/index.json) #2, Add trigger keywords for all 90+ skills in registry #17)web-discovery.ts: text-utils, url-utils, security-scanner, github-clientTest plan
superskill({task: "UX design analysis"})now matchesfrontend-designtsc --noEmit)npx superskilland activate a skill via task description🤖 Generated with Claude Code