Extension override skills#16
Merged
Merged
Conversation
…ll override ## Intent When an extension contributes domain-specific skills (e.g. `sabdx-architecture`) that supersede generic baseline skills provided by `codemcp-workflows-skilled` (e.g. `architecture`), both sets were previously included in the resolved skills list — resulting in duplicate, redundant skills shown at setup and installed into the project. This change allows extension authors to declare which generic skills their domain skill replaces, so the resolver can produce a clean, non-redundant final list. ## Key changes - `InlineSkill` and `ExternalSkill` now accept an optional `replaces?: string[]` field listing the names of skills the declaring skill supersedes. - The resolver post-processes the merged skills list: it collects all replaced names into a Set, deduplicates by name (last-writer-wins), then filters out any skill whose name appears in the replaced set. The result is the effective, non-redundant skills list. - The `replaces` field is a resolver-level concern only — it is never written to SKILL.md frontmatter and does not appear in the lock file (which records the post-dedup list). - With the sadb-agentic-template extension declaring `replaces` on all five lifecycle skills, the setup wizard reduces from 13 → 8 skills for the sabdx-frontend scenario. ## Dependencies and side effects - The `replaces` field is purely additive — existing extension files without it continue to work unchanged. - `writeInlineSkills()` in `util.ts` required no changes: it only reads `name`, `description`, and `body`, so `replaces` is silently ignored during file writing.
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.
No description provided.