We recommend using the Deprecated Package Migration Orchestrator. It detects which packages your project uses.
The abyss-api-migration skill removes @uhg-abyss/api from consumer applications
while preserving runtime behavior.
npx @uhg-abyss/cli skills add abyss-api-migrationAsk your agent: "Migrate this application off @uhg-abyss/api."
What it migrates
- Express server setup, router behavior, and request logging middleware
- Apollo startup, federation schema, default scalars, plugins, and context
- Environment config and schema/module loading
- JWT, BSON, YAML, logging, serialization, and ID utilities
- REST and Mongo data sources
- Dependency declarations, aliases, mocks, and lockfile cleanup
The skill follows fixed replacement rules: simple upstream re-exports become direct imports, and used wrappers move into the project with their installed behavior intact. It inventories actual callers instead of assuming a standard API layout. Bundled source assets provide concrete implementations and export files, with a reference map for copy destinations, direct dependencies, and version-sensitive checks. The agent compares these with the installed implementation before copying.
For each detected family, the agent inspects baseline behavior, applies the replacement, installs dependencies, and runs the applicable lint, typecheck, build, contract, and startup/request checks. Failures trigger diagnosis and a minimal repair followed by revalidation, with up to three repair attempts per failing batch. Unavailable infrastructure is reported as a verification blocker.
After all families pass, the skill removes the API dependency and repeats the affected-workspace checks to catch hidden transitive dependencies. It preserves compatible framework majors and records verified, blocked, and remaining work.
The Core Migration skill handles Abyss CLI and build tooling separately. Its API build phase retains runtime API imports; run API Migration afterward to remove those imports and the API package itself.