/polkadot-skills:product-sdk-utilitiesfrom polkadot-skills
Provides Polkadot SDK utilities for SS58/H160 address encoding/validation, encryption (AES, ChaCha, NaCl, HKDF), byte encoding/hashing, token formatting (planck), key-value storage, and structured logging.
Ships in polkadot-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Five leaf packages provide foundational utilities. All are pure TypeScript and framework-agnostic.
| Need | Package | Import |
|---|---|---|
| SS58/H160 address encoding, validation, conversion | address | @parity/product-sdk-address |
| Encryption (AES-GCM, ChaCha20), key derivation (HKDF), NaCl | crypto | @parity/product-sdk-crypto |
| Byte encoding, hashing, token formatting (planck) | utils | @parity/product-sdk-utils |
| Persistent key-value storage | storage | @parity/product-sdk-local-storage |
| Structured logging | logger | @parity/product-sdk-logger |
import {
isValidSs58,
ss58Decode,
ss58Encode,
normalizeSs58,
ss58ToH160,
h160ToSs58,
truncateAddress,
} from "@parity/product-sdk-address";
isValidSs58("5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"); // true
const { publicKey, prefix } = ss58Decode("5GrwvaEF...");
const polkadotAddr = normalizeSs58("5GrwvaEF...", 0);
const evmAddr = ss58ToH160("5GrwvaEF...");
truncateAddress("5GrwvaEF..."); // "5Grwva...utQY"
import {
xchachaEncrypt,
xchachaDecrypt,
deriveKey,
randomBytes,
sealedBoxEncrypt,
sealedBoxDecrypt,
} from "@parity/product-sdk-crypto";
const key = randomBytes(32);
const { ciphertext, nonce } = xchachaEncrypt(data, key);
const plaintext = xchachaDecrypt(ciphertext, key, nonce);
const encKey = deriveKey(masterSecret, "myapp-v1", "encryption");
import { bytesToHex, hexToBytes, utf8ToBytes, concatBytes } from "@parity/product-sdk-utils";
import { blake2b256, sha256, keccak256 } from "@parity/product-sdk-utils";
import { formatPlanck, parseToPlanck, formatBalance } from "@parity/product-sdk-utils";
const hex = bytesToHex(new Uint8Array([0xab, 0xcd]));
const hash = blake2b256(new TextEncoder().encode("hello"));
formatPlanck(10_000_000_000n); // "1.0" (DOT)
parseToPlanck("1.5"); // 15_000_000_000n
formatBalance(10_000_000_000_000n, { symbol: "DOT" }); // "1,000 DOT"
import { createLocalKvStore } from "@parity/product-sdk-local-storage";
const store = await createLocalKvStore({ prefix: "myapp" });
await store.set("theme", "dark");
const theme = await store.get("theme");
await store.setJSON("prefs", { lang: "en" });
const prefs = await store.getJSON<{ lang: string }>("prefs");
import { createLogger, configure } from "@parity/product-sdk-logger";
const log = createLogger("my-feature");
log.error("Connection failed", { url, status });
log.info("Connected");
log.debug("Payload received", payload);
configure({ level: "debug", namespaces: ["my-feature"] });
normalizeSs58() firstss58ToH160 is reversible for native accounts - Keccak256 derivation is one-waychachaEncrypt for high-volume random nonces - Use xchachaEncrypt insteadderiveKey() to derive proper keys0x-prefixed string to hexToBytes - Strip it first: hex.slice(2)createLocalKvStore synchronously - It returns a Promise, always awaitconfigure() only affects future loggers - It affects all existing instancesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
polkadot, ss58, address-encoding, crypto-utils, product-sdk, token-formatting
Generated from the plugin's indexed repository (polkadot-community-foundation/polkadot-skills) — no native marketplace selected
npx claudepluginhub p/polkadot-community-foundation-polkadot-skills11 skills in this plugin
/migrating-to-product-sdkUse when migrating a product codebase to @parity/product-sdk — detects legacy stacks (polkadot-apps, novasamatech, hand-rolled crypto/IPFS, polkadot-api 1.x) in the target repo, decides which migration areas apply, writes a per-repo migration spec, then hands off to writing-plans.
/product-sdk-app-builderEnd-to-end scaffolding and implementation of Polkadot applications using @parity/product-sdk packages. Use when: creating a new Polkadot project, building a dApp, scaffolding chain interactions, choosing which @parity/product-sdk packages to install, or when a user says "build me a Polkadot app". Handles both developer-guided and fully autonomous (non-developer) workflows.
/product-sdk-chain-connectionUse when connecting to Polkadot chains, querying chain state, subscribing to storage, working with typed APIs, or choosing between preset and BYOD paths. Covers @parity/product-sdk-chain-client and @parity/product-sdk-descriptors.
/product-sdk-cloud-storageUse when uploading or retrieving data via Cloud Storage, working with CID-based decentralized storage, or the CloudStorageClient SDK. Covers the store() upload builder, chunked uploads, container-only reads (fetch/query), CID helpers, and authorization.
/product-sdk-contractsUse when interacting with smart contracts (PolkaVM/Solidity) on Asset Hub, using ContractManager with cdm.json manifests, createContract for ad-hoc contracts, ContractRuntime creation, or contract type codegen. Covers @parity/product-sdk-contracts.
/product-sdk-individualityUse when reading a person's personhood or membership standing on the individuality chain from a DotNS username or an account address, when reading the usernames an account holds, or when sending a transaction that must run under a person, lite-person or score-participant origin instead of an account origin. Covers readPersonhoodState, lookupUsername, the seven-state PersonhoodState union, the pure derivation without a chain client and the decode helpers for raw Score.Participants and Resources.Consumers values; the game surface, its prize draws, claiming and sign-up with its airdrop VRFs; productContext, personhoodContext, peopleRing, litePeopleRing and readScoreContext for the ring-VRF proof contexts; withAsPerson, withLiteAlias and the RestrictOrigins requirement that otherwise fails every call; the two-transaction lite personhood bind then sign-up flow with buildLiteAliasBindTx, readLiteSignUpRequirement and signUpWithLiteInviteTx; game registration in one call with registerForGame, readGameSeat, deriveSeat, bindGameSeat and the /host entry's hostGameRegistrationCapabilities; and full-personhood registration with registerMessage, Score.register and withScoreParticipant.
3 plugins in 2 repositories ship this exact skill · first indexed Jun 6, 2026
Other plugins' skills for the same job