Repository navigation
feat(core): add public @jimhoyd/urlcode/skills export - #627
Merged
Merged
Conversation
A first-party hosted service built on this package had to read
node_modules/@jimhoyd/urlcode/.claude/skills/... directly to serve
URLCode's authoring skills to a model -- an internal package-layout
path that can move without notice.
Add listShippedSkills() at @jimhoyd/urlcode/skills, returning
{name, version, text}[] for every skill this package ships (urlcode,
urlcode-authoring, urlcode-operations), read fresh from the installed
package. This is now the supported way to read shipped skill content;
the package-layout paths stay explicitly unsupported, as noted in the
export's doc comment and docs/TYPESCRIPT.md.
Closes #574.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 24, 2026
jimhoyd
added a commit
that referenced
this pull request
Sep 24, 2026
…agent-context.ts (#648) 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
listShippedSkills()at a new@jimhoyd/urlcode/skillsexport, returning{name, version, text}[]for every skill this package ships (urlcode,urlcode-authoring,urlcode-operations), read fresh from the installed package.node_modules/@jimhoyd/urlcode/.claude/skills/...ornode_modules/@jimhoyd/urlcode/skills/...directly stays explicitly unsupported, and the export's doc comment says so.versionis this package's own version (skill text ships and versions with the package, not independently per skill).package.json'sexportsmap following the existing./agent-contextpattern (types + dist path).docs/TYPESCRIPT.mdalongside the other public subpaths.test/exports.test.ts(subpath/name coverage), addstest/skills-export.test.ts(imports the real export and checks its output against the actual files on disk), and extendsscripts/package-smoke.tsto exercise the export against the packed-and-installed tarball, including the TypeScript declaration consumer check.Notes
packages/core/src/skills.tsrather than waiting. If/when [Request]: tidy the local MCP surface for agents #590 lands a canonical inventory helper, that and this export'sshippedSkillFileslist are natural candidates to consolidate onto one source of truth.agent-context.ts's existinglistSkills/getSkillare unchanged and serve a different purpose (compact metadata + on-demand load for the single MCP-facingurlcodeskill, used byserveMcp'slist_skills/get_skilltools); this new export is the full-text, all-skills, non-MCP surface [Request]: public export for the packaged skill text #574 asked for.Test plan
npm run typechecknpm test(837 passed, 1 skipped, 0 failed in an isolated run; a few unrelated deadline/timing-sensitive tests insandbox-pool/cli/provider-verification/verify-deploymentflaked intermittently under concurrent load in this sandbox across different reruns — never the same test twice, none touching this change — consistent with CPU-contention flakiness rather than a regression)npm run lintnpm run check(check:code+check:docs)npm run test:package(packs, installs the tarball, and exercises every public subpath including the new./skillsexport and its TypeScript declarations)Closes #574
🤖 Generated with Claude Code