Repository navigation
fix(core): consolidate shipped-skill file list between skills.ts and agent-context.ts - #648
Merged
Merged
Conversation
…agent-context.ts skills.ts's listShippedSkills (added in #627 for #574) and agent-context.ts's listSkills/getSkill (added in #633 for #590) each maintained their own copy of the same {name, file} triples for the three shipped SKILL.md files. Move that list into a new packages/core/src/shipped-skills.ts and have both modules import it, so a renamed, moved, or added skill only needs to change in one place. Neither module's public return shape or behavior changes. Closes #639 Co-Authored-By: Claude Sonnet 5 <[email protected]>
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
skills.ts'slistShippedSkills(feat(core): add public @jimhoyd/urlcode/skills export #627, for [Request]: public export for the packaged skill text #574) andagent-context.ts'slistSkills/getSkill(fix(core): canonical verb-first MCP tool vocabulary with legacy aliases (#590) #633, for [Request]: tidy the local MCP surface for agents #590) independently maintained the same{name, file}list of the three shipped SKILL.md files.packages/core/src/shipped-skills.tsas the single source of truth; both modules now importshippedSkillFilesfrom it instead of duplicating the pairs.listShippedSkillsstill returns{name, version, text}[], andlistSkills/getSkillstill derivedescriptionfrom each SKILL.md's frontmatter at call time.Closes #639
Test plan
npm run typechecknpm run lintnpm run checknpm run buildnpm run verify(full workspace pipeline: core tests, store/forms/mcp package typecheck+build+test, package audit, workspace-scaffold integration tests) — all green