@@ -45,6 +45,7 @@ import { shutdownWorker } from '../retriv/pool.ts'
4545import {
4646 fetchPkgDist ,
4747 isPrerelease ,
48+ parseGitHubRepoSlug ,
4849 parsePackageSpec ,
4950 readLocalDependencies ,
5051 resolveCrateDocsWithAttempts ,
@@ -460,7 +461,7 @@ async function syncSinglePackage(packageSpec: string, config: SyncConfig): Promi
460461 linkPkgNamed ( skillDir , storagePackageName , cwd , version )
461462
462463 // Merge into lockfile
463- const repoSlug = resolved . repoUrl ?. match ( / g i t h u b \. c o m \/ ( [ ^ / ] + \/ [ ^ / ] + ? ) (?: \. g i t ) ? (?: [ / # ] | $ ) / ) ?. [ 1 ]
464+ const repoSlug = parseGitHubRepoSlug ( resolved . repoUrl )
464465 writeLock ( baseDir , skillDirName , {
465466 packageName : identityPackageName ,
466467 version,
@@ -566,7 +567,7 @@ async function syncSinglePackage(packageSpec: string, config: SyncConfig): Promi
566567 const pkgFiles = getPkgKeyFiles ( storagePackageName , cwd , version )
567568
568569 // Write base SKILL.md (no LLM needed)
569- const repoSlug = resolved . repoUrl ?. match ( / g i t h u b \. c o m \/ ( [ ^ / ] + \/ [ ^ / ] + ? ) (?: \. g i t ) ? (?: [ / # ] | $ ) / ) ?. [ 1 ]
570+ const repoSlug = parseGitHubRepoSlug ( resolved . repoUrl )
570571
571572 // Also create named symlink for this package (skip in eject mode)
572573 if ( ! config . eject )
@@ -1252,7 +1253,7 @@ export async function exportPortablePrompts(packageSpec: string, opts: {
12521253 writeFileSync ( join ( skillDir , 'SKILL.md' ) , skillMd )
12531254
12541255 // Write lockfile so skilld list/update/assemble can discover this skill
1255- const repoSlug = resolved . repoUrl ?. match ( / g i t h u b \. c o m \/ ( [ ^ / ] + \/ [ ^ / ] + ? ) (?: \. g i t ) ? (?: [ / # ] | $ ) / ) ?. [ 1 ]
1256+ const repoSlug = parseGitHubRepoSlug ( resolved . repoUrl )
12561257 writeLock ( baseDir , skillDirName , {
12571258 packageName,
12581259 version,
0 commit comments