Skip to content

feat(core): add public @jimhoyd/urlcode/skills export - #627

Merged
jimhoyd merged 1 commit into
mainfrom
claude/public-skills-export
Sep 24, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/public-skills-export

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds listShippedSkills() at a new @jimhoyd/urlcode/skills export, returning {name, version, text}[] for every skill this package ships (urlcode, urlcode-authoring, urlcode-operations), read fresh from the installed package.
  • Per the triage decision on [Request]: public export for the packaged skill text #574: this becomes the SUPPORTED way for a host (e.g. the urlcode-ai hosted service) to read shipped skill content. Reading internal package-layout paths like node_modules/@jimhoyd/urlcode/.claude/skills/... or node_modules/@jimhoyd/urlcode/skills/... directly stays explicitly unsupported, and the export's doc comment says so.
  • version is this package's own version (skill text ships and versions with the package, not independently per skill).
  • Wires the new subpath into package.json's exports map following the existing ./agent-context pattern (types + dist path).
  • Documents the export in docs/TYPESCRIPT.md alongside the other public subpaths.
  • Extends test/exports.test.ts (subpath/name coverage), adds test/skills-export.test.ts (imports the real export and checks its output against the actual files on disk), and extends scripts/package-smoke.ts to exercise the export against the packed-and-installed tarball, including the TypeScript declaration consumer check.

Notes

Test plan

  • npm run typecheck
  • npm test (837 passed, 1 skipped, 0 failed in an isolated run; a few unrelated deadline/timing-sensitive tests in sandbox-pool/cli/provider-verification/verify-deployment flaked 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 lint
  • npm run check (check:code + check:docs)
  • npm run test:package (packs, installs the tarball, and exercises every public subpath including the new ./skills export and its TypeScript declarations)

Closes #574

🤖 Generated with Claude Code

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]>
@jimhoyd
jimhoyd merged commit 81594f3 into main Sep 24, 2026
21 checks passed
@jimhoyd
jimhoyd deleted the claude/public-skills-export branch September 24, 2026 03:31
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: public export for the packaged skill text

1 participant