Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cashu-ts-migration

Skill by shopstr-eng

Guides a developer through migrating a TypeScript or JavaScript codebase from @cashu/cashu-ts v2 to v4. It covers renamed classes, method changes, the Amount type, and Jest mock updates.

  • Score 71
  • 108 stars
  • GPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cashu-ts-migration

Built from the published package, never by AI.

git clone --depth 1 https://github.com/shopstr-eng/shopstr /tmp/shopstr && mkdir -p ~/.claude/skills && cp -r /tmp/shopstr/.agents/skills/cashu-ts-migration ~/.claude/skills/cashu-ts-migration

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cashu-ts-migration in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill is a step-by-step migration guide for the @cashu/cashu-ts package. It says the authoritative guide ships in the package itself at node_modules/@cashu/cashu-ts/migration-4.0.0.SKILL.md, and it tells the assistant to read that file first. The skill then lists changes to make, such as aliasing Mint and Wallet imports, adding loadMint() after construction, and renaming quote methods to their Bolt11 variants.

It includes shell sed commands for bulk renames, a choice between converting Amount values to numbers or refactoring to Amount, and a Jest mock example. It is written for developers upgrading a codebase that uses cashu-ts, especially sat-denominated apps below MAX_SAFE_INTEGER.

Written from the project's SKILL.md and checked against it.

What it can do

  • Import aliasingMaps the renamed CashuMint and CashuWallet classes to the new Mint and Wallet exports.
  • Constructor changesRemoves the keys option from the Wallet constructor and calls loadMint() instead.
  • Bolt11 method renamesRenames quote and proof methods such as createMintQuote and meltProofs to Bolt11 variants.
  • KeyChain migrationReplaces wallet.getKeySets() with wallet.keyChain.getKeysets() and explains the Keyset type.
  • Amount boundaryExplains how to convert Amount values with toNumber() or refactor types to Amount end to end.
  • getDecodedToken updateShows the new second argument for keyset IDs and when to pass an empty array.
  • MintQuoteState usageShows how to check quote state on the Bolt11 response returned by checkMintQuoteBolt11.
  • Jest mock updatesGives before and after examples for mocking the new export names, methods, and loadMint.
  • Number prototype shimProvides a jest.setup.js shim so raw number mocks support toNumber() in tests.
  • Validation orderLists tsc, jest, and dev server checks to run after the migration.

What you need

  • A TypeScript or JavaScript codebase that uses @cashu/cashu-ts
  • npm for installing the new package version
  • Jest for the test suite
  • TypeScript compiler (tsc) for type checking
  • Git, for the git ls-files commands in the examples

Try asking

  • Migrate my project from @cashu/cashu-ts v2 to v4 using the skill
  • Rename CashuWallet and CashuMint imports to Wallet and Mint in my src folder
  • Update my Jest mocks for the new cashu-ts Bolt11 method names

Good to know

  • Does not cover Bolt12 helpers, which the source says to adopt as needed.
  • Does not cover mint operation durability such as timeouts, retries, and failover.
  • Does not cover OutputConfig for advanced output shaping such as P2PK locking.
  • The sed bulk commands are described as clearing 80% or more of the breakage, so residual tsc errors need manual fixes.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/cashu-ts-migration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to cashu-ts-migration

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

cashu-ts-migration: common questions

Does this skill cover Bolt12 quote methods?

No. The source says Bolt12 helpers such as createMintQuoteBolt12 are out of scope and should be adopted as needed.

Why does the migration need @noble/hashes version 2 or later?

The source says v2 of @noble/hashes dropped implicit .js extension resolution for ESM subpath imports, so imports need the .js extension.

Does the migration require changes to getDecodedToken?

Yes. The source says getDecodedToken now takes a second argument, a list of keyset IDs. Passing an empty array works for standard hex V1 keyset IDs.

How do I install cashu-ts-migration?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cashu-ts-migration free?

The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.

Is cashu-ts-migration safe to use?

It scores 71 of 100. Grades: maintenance A, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to cashu-ts-migration?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

cashu-ts-migration Install

Add to stack

Loading.