/product-sdk:migrating-to-product-sdkfrom product-sdk
Detects legacy Polkadot stacks (polkadot-apps, novasamatech, polkadot-api 1.x, hand-rolled crypto/IPFS) in a target repo, decides migration areas, and writes a per-repo migration spec for @parity/product-sdk.
Ships in product-sdk. 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.
This skill is a discovery + spec orchestrator. It does NOT edit code,
NOT run tests, and NOT commit. Its only output is a written migration
spec at .claude/migrations/specs/ (project-local — typically gitignored
so the planning artifact does not get committed to the target repo).
After the spec is approved, it hands off to writing-plans which
produces an executable implementation plan in .claude/migrations/plans/.
The skill composes with the seven existing SDK skills (one per package area) and references them by name rather than duplicating their content:
product-sdk-app-builder — bootstrap, createAppproduct-sdk-chain-connection — getChainAPI / createChainClientproduct-sdk-transactions — tx + signer + keysproduct-sdk-utilities — address + crypto + utils + storage + loggerproduct-sdk-cloud-storage — CloudStorageClient, upload / fetchproduct-sdk-contracts — ContractManager, createContractproduct-sdk-statement-store — pub/subThe host transport is @parity/truapi, since 9f145ce (#186, host 0.12.0).
@novasamatech/*. host, signer and
statement-store dropped it in 9f145ce, and -terminal from 0.14.0.getTruApi() / getPreimageManager() still exist in
packages/host/src/truapi.ts, now backed by the truAPI client. Other
packages use that file's facades, not @parity/truapi directly.@novasamatech/* names in the trigger list and greps below are legacy
markers to find in the target repo, not part of the target stack. Check G11
before calling a leftover lockfile entry a finding.Invoke when any of:
@parity/product-sdk.package.json (any workspace) declares any of:
@polkadot-apps/*, @novasamatech/product-sdk ∨ @novasamatech/host-api-wrapper,
polkadot-api@^1.x, @skiff-org/skiff-crypto, tweetnacl,
@polkadot-labs/hdkd-helpers, helia / @helia/*.executing-plans.local) does none of them.By default the skill writes a local spec and does not commit or open anything in the target repo. The user can opt into other modes by stating intent at invocation. Three modes:
local (default) — spec written to .claude/migrations/specs/,
no commit, no issue. Use when planning before deciding.commit — spec written to docs/migrations/specs/ (tracked
path) AND committed with a single-line message (no co-author
trailer). Triggered by user phrasing like "commit the spec",
"committa la spec", "commit the migration plan".issue — spec content used as the body of a new GitHub issue
via gh issue create --title "Migrate to @parity/product-sdk" --body-file <spec-path>. The spec is also written
locally to .claude/migrations/specs/ for reference. Triggered by
phrasing like "open an issue", "apri un'issue", "create a migration
issue". Requires gh authenticated for the target repo.If the user's intent is ambiguous, ask once: "Mode? local (default,
no commit/issue), commit (commit the spec), or issue (open a GitHub
issue with the spec)?" Default to local if no answer.
Modes are mutually exclusive in the same invocation. To do both "commit the spec" AND "open an issue", run the skill twice or ask the user which to do first.
Inspect the target repo and produce an in-memory discovery report. The report drives every decision in Phase 2.
Every package.json in the workspace. Use find . -name package.json -not -path '*/node_modules/*' to enumerate. For each, extract: the
dependencies, devDependencies, and any pnpm.overrides /
overrides. Also note the package's name and private flag.
The lockfile. Confirm the resolved version of polkadot-api (1.x
vs 2.x is decision-relevant) and check whether
@polkadot-api/[email protected] is present anywhere
transitively — if yes, gotcha G1 applies.
The .papi/descriptors/package.json (if present) — note the
catalog source (@parity / @novasamatech) and version.
tsconfig.json and framework config — to detect the framework:
next.config.* → Next.js; nuxt.config.* → Nuxt; vite.config.* →
Vite; presence of bin in package.json and no framework config →
CLI.
Run these greps against src/, app/, apps/, packages/,
lib/ — whichever the repo uses. Report counts and example files for
each non-zero result.
# Direct legacy package imports
grep -rEn "from '@polkadot-apps/" --include='*.ts' --include='*.tsx' --include='*.vue' --include='*.js'
grep -rEn "from '@novasamatech/(product-sdk|host-api-wrapper)" --include='*.ts' --include='*.tsx' --include='*.vue' --include='*.js'
grep -rEn "from '@skiff-org/skiff-crypto'" --include='*.ts' --include='*.tsx'
grep -rEn "from 'tweetnacl'" --include='*.ts' --include='*.tsx'
grep -rEn "from '@polkadot-labs/hdkd-helpers'" --include='*.ts' --include='*.tsx'
grep -rEn "from 'helia'|from '@helia/" --include='*.ts' --include='*.tsx'
# Legacy PAPI 1.x patterns
grep -rEn "polkadot-api/ws-provider/(web|node)" --include='*.ts'
grep -rEn "withPolkadotSdkCompat" --include='*.ts'
grep -rEn "\.asHex\(\)|Binary\.fromBytes\(" --include='*.ts'
grep -rEn "api\.event\.\w+\.\w+\.watch\(" --include='*.ts'
# Hand-rolled crypto / encoding
grep -rEn "crypto\.subtle\.digest" --include='*.ts'
grep -rEn "padStart\(2, *'0'\)" --include='*.ts'
grep -rEn "createClient\b|createPapiProvider\b" --include='*.ts'
grep -rEn "getAccountsProvider\b" --include='*.ts'
# Storage / Bulletin / Contracts patterns
grep -rEn "localStorage\.(get|set|remove)Item" --include='*.ts' --include='*.tsx' --include='*.vue'
grep -rEn "createInkSdk\b|@polkadot-api/sdk-ink" --include='*.ts'
Check whether the repo already uses isInsideContainer or
isInsideContainerSync (from @parity/host-api or
@parity/product-sdk-host). If yes, the repo is dual (container +
standalone). If no, classify by framework: CLI / web-only is
standalone; Polkadot Desktop / Mobile embed is container-only.
The report is an in-memory object the skill carries into Phase 2. Include at minimum:
framework: one of next / nuxt / vite / cli / mixedworkspaceStructure: single-app | monorepo with N workspacescontainerDetection: dual | container-only | standalonelegacyStacks: list of detected stacks with example filespapiVersion: resolved version from lockfiletests: detected test runner + countIf discovery finds none of the trigger patterns, the repo is already migrated. Say so and give the 15-area table as evidence. Do not write a spec for work that does not exist.
Then check whether a version bump is needed, because "already migrated" is not
"up to date" — compare the @parity/product-sdk* versions in the manifest against
the published latest (npm view @parity/product-sdk version). If the repo is behind,
report that as the actionable next step. A bump is a dependency change, not a
migration, and needs no spec. G11 still applies on that path: a bump is exactly when
a stale transitive @novasamatech/* entry surfaces.
When the discovery report is complete, immediately proceed to Phase 2.
For each of the 15 areas below, assign a status and pick a sub-pattern. Status values:
| # | Area | Owning skill | In-scope when | Defer when |
|---|---|---|---|---|
| 1 | Bootstrap | product-sdk-app-builder | at least one other area is in-scope (evaluate last — depends on rows 2–15) | n/a |
| 2 | Chain access | product-sdk-chain-connection | createClient / createPapiProvider / @polkadot-apps/chain-client / @novasamatech/{product-sdk,host-api-wrapper} present | target chain not supported by host |
| 3 | Wallet/Signer | product-sdk-transactions | getAccountsProvider ∨ hand-rolled wallet injection | demo/mock mode (keep custom adapter) |
| 4 | Crypto primitives | product-sdk-utilities | tweetnacl ∨ @skiff-org/skiff-crypto ∨ crypto.subtle.digest | n/a |
| 5 | Utils (hex/hashing/planck) | product-sdk-utilities | manual padStart(2,'0') hex ∨ manual planck formatting | n/a |
| 6 | Key management | product-sdk-utilities + product-sdk-transactions | local HKDF ∨ custom deriveMasterKey/deriveDocumentKey | HKDF info-string mismatch on existing on-chain entries (see G3) |
| 7 | Address utils | product-sdk-utilities | ss58Encode/toGenericSs58/h160ToSs58/ss58ToH160 ∨ wrapper file | n/a |
| 8 | App storage | product-sdk-utilities | direct localStorage / IndexedDB ∨ @parity/host-api StorageApi | non-cross-environment persistence |
| 9 | Cloud Storage | product-sdk-cloud-storage | helia / @polkadot-apps/bulletin ∨ in-browser IPFS | product does not use Cloud Storage (cloudStorage: false) |
| 10 | Contracts | product-sdk-contracts | @polkadot-api/sdk-ink ∨ createInkSdk | signer-plumbing refactor still open |
| 11 | Logger | product-sdk-utilities | scattered console.* ∨ custom logger | n/a |
| 12 | Statement Store | product-sdk-statement-store | pub/sub pattern ∨ manual statement-store interaction | n/a |
| 13 | Identity / DotNS | (uses @parity/product-sdk/identity directly) | product resolves DotNS names | n/a — optional simplification |
| 14 | PAPI 3.x bump + descriptors | (this skill) | polkadot-api below 3.x in lockfile | major version pinning by product policy |
| 15 | Deps + overrides | (this skill) | at least one other area is in-scope | n/a |
(1) Bootstrap → createApp({ name, cloudStorage: <env|false>, logLevel }) lazy singleton in lib/app.ts (or equivalent). If framework is React, prefer ProductSDKProvider + useWallet/useStorage/useChain from @parity/product-sdk/react over a manual singleton — flag as opportunity even when current code is React-based but rolled its own provider. cloudStorage: false is required when area 9 is out of scope (default opens an unnecessary WebSocket).
(2) Chain access → preset path getChainAPI('paseo') (zero-config) vs BYOD createChainClient({ chains }). Both paths already route through the host provider (getHostProvider(genesisHash) from @parity/product-sdk-host) with no direct-WebSocket fallback, so don't wire one up; check reachability first with isChainSupported(genesisHash). Cache the chain client per-chain so a single failed chain doesn't bring down the others. Note: 'paseo' resolves to Paseo Next v2 chains in current SDK (@parity/[email protected]+, @parity/[email protected]+, @parity/[email protected]+).
(3) Wallet / Signer → SignerManager from @parity/product-sdk-signer. If Cloud Storage (9) is in scope, also call app.wallet.connect() + app.wallet.selectAccount(addr) after the existing connection flow so the App-bound signer is populated (gotcha G2).
(4) Crypto → @parity/product-sdk-crypto: aesGcmEncryptText/Decrypt, boxEncrypt/Decrypt, deriveKey, randomBytes, nacl re-export.
(5) Utils → @parity/product-sdk-utils: bytesToHex, hexToBytes, utf8ToBytes, concatBytes, sha256, blake2b256, keccak256, formatPlanck, parseToPlanck, getBalance. Prefer the leaf package over the @parity/product-sdk/crypto re-exports in new code.
(6) Key management → KeyManager.fromSignature(sig, addr, { salt }) + deriveSymmetricKey('domain:'+id). Verify byte-for-byte against the legacy implementation before adopting KeyManager.deriveKeypairs() — SDK info strings are hardcoded (gotcha G3).
(7) Address → inline normalizeSs58/isValidSs58/toGenericSs58/ss58Encode/ss58Decode/ss58ToH160/h160ToSs58/accountIdBytes/accountIdFromBytes/truncateAddress/addressesEqual from @parity/product-sdk-address. Delete any thin wrapper file.
Common rename map — legacy names typically used in product code, mapped to their @parity/product-sdk-address equivalents:
| Legacy name (common forms) | SDK equivalent | Notes |
|---|---|---|
isValidEvmAddress / isValidEthAddress | isValidH160 | |
shortenAddress / formatAddress(addr, n, m) | truncateAddress(addr, n, m) | Default (6, 4); signature is (address, startChars?, endChars?) |
isSameAddress / addressEquals | addressesEqual | H160 case-insensitive; SS58 case-sensitive; cross-type returns false |
ss58Decode(addr)[0] | accountIdBytes(addr) | Direct Uint8Array return, no tuple destructure |
ss58Encode(toHex(bytes)) | accountIdFromBytes(bytes, prefix?) | Default prefix 42 |
Things the SDK does NOT cover — keep as local wrappers if the product needs them:
toH160 preserves casing; products surfacing host-provided addresses through viem need a thin local wrapper.addressesEqual returns false for the same key encoded at different prefixes; products needing that must normalizeSs58 both sides first.(8) App storage → createLocalKvStore() from @parity/product-sdk-local-storage. Migrate direct localStorage.{get,set,remove}Item to the resulting LocalKvStore.
(9) Cloud Storage → drop Helia/IndexedDB stack. Three valid paths: (a) via App — app.cloudStorage.upload(bytes) / fetch(cid) (both return a Result — branch on .ok, read .value); (b) standalone — CloudStorageClient.create({ environment, signer }) (its fetchBytes/fetchJson also return Result). (c) host-sponsored — getPreimageManager().submit(data) from @parity/product-sdk-host (@^0.3.0+). Host signs end-to-end, no app-side signer wired; ≤ 2 MiB only (single preimage, no chunking). Cloud Storage can migrate independently of AuthProvider. For better UX, pair (c) with requestResourceAllocation([{tag: 'BulletinAllowance'}]) (also in @^0.3.0+, typed wrapper from PR #82) to grant the allowance once via a single permission modal rather than re-prompting per submission. Decision: any file > 2 MiB in the product → (a) or (b) — both require an app-side signer source, so cloud storage migrates alongside AuthProvider / HostProvider.connect() work. All files ≤ 2 MiB → (c) — smallest migration scope, cloud storage flips independently. Use .withWaitFor('finalized') for reorg-safe semantics. Reconstruct block hash via api.query.System.BlockHash.getValue(blockNumber) when needed (gotcha G9). calculateCid returns Promise<CID> (uses Web Crypto for blake2b on web platforms) — any hand-rolled CID computation that imports it needs to async-ify its wrappers and any test fixtures. node:test test bodies (test('name', () => {...})) need to become async () => {...}; grep for the wrapper function name when searching for callsites, not just for calculateCid. When a product stores CID digests in bytes32-shaped on-chain slots, use cidToPreimageKey + parseCid(hashToCid(...)) from @parity/product-sdk-cloud-storage — not cidToBytes / cidFromBytes, which operate on the full 38-byte CIDv1 encoding (see G12).
(10) Contracts → createContract(runtime, address, abi) for ad-hoc reads; ContractManager with cdm.json for full apps. Drop @polkadot-api/sdk-ink unless signer plumbing is non-trivial.
(11) Logger → configure({ level }) once at bootstrap. Wrap the existing createLogger(prefix) so app-level call sites don't change.
(12) Statement Store → StatementStoreClient with { mode: 'host', accountId } inside containers, { mode: 'local', signer } standalone. Use ChannelStore for stable two-party streams.
(13) Identity / DotNS → resolveDotNs / reverseDotNs from @parity/product-sdk/identity instead of writing the contract call by hand. Status: no when the product does not use DotNS at all (nothing to migrate); optional when the product already integrates DotNS via a hand-rolled contract call (simplification opportunity — the hand-rolled call still works; replacing it is a nice-to-have).
(14) PAPI 3.x + descriptors → bump polkadot-api to ^3.x plus aligned subpackages (substrate-bindings, substrate-client, observable-client, metadata-compatibility, polkadot-sdk-compat, sdk-ink, sdk-statement, utils); replace polkadot-api/ws-provider/web → polkadot-api/ws; replace Binary.fromBytes/.asHex() with Binary.toHex(uint8) and raw Uint8Array; rewrite event watching to iterate watch().{block,events[]}; from 2.x, replace every PolkadotSigner with a PAPI 3 TxCreator (getPolkadotSigner becomes getTxCreator from polkadot-api/tx-creator), signSubmitAndWatch / signAndSubmit with createSubmitAndWatch / createAndSubmit, getEstimatedFees(address) with getEstimatedFees(getFakeTxCreator(address)), and the signed and txBestBlocksState events with created, inBestBlock and notInBestBlock; bump .papi/descriptors/package.json to match.
(15) Deps + overrides → see the "Cross-cutting work → Dependencies and overrides" block in the Phase 3 spec template (below) for the canonical add/remove/override lists.
After populating the matrix, stop and present it to the user.
Format as a compact Markdown table with columns: #, Area,
Status, Sub-pattern, Notes. Example shape (rows shown are
illustrative — yours must reflect the actual repo):
| # | Area | Status | Sub-pattern | Notes |
|----|-------------------|----------|-------------------------------------------------|------------------------------------|
| 1 | Bootstrap | yes | createApp({ name: '<repo>', cloudStorage: false }) | Singleton in lib/app.ts |
| 2 | Chain access | yes | getChainAPI('paseo') | host-routed; per-chain cache |
| 4 | Crypto | yes | replace tweetnacl + skiff-adapter | |
| 6 | Key management | deferred | KeyManager.fromSignature only | G3 — info-string mismatch persists |
| 8 | App storage | no | | sessionStorage only |
| 13 | Identity / DotNS | optional | resolveDotNs (hand-rolled call still works) | |
Wait for explicit user approval before advancing to Phase 3. Do not proceed unprompted — even if every status looks obvious. Upon approval, immediately begin Phase 3.
Write a per-repo migration spec. The output path depends on the launch mode (see Launch modes above):
local or issue mode →
.claude/migrations/specs/YYYY-MM-DD-migrate-<repo>-to-product-sdk-design.mdcommit mode →
docs/migrations/specs/YYYY-MM-DD-migrate-<repo>-to-product-sdk-design.mdUse today's date. If the directory doesn't exist, create it. For
local / issue modes, if .claude/ is not already in the repo's
.gitignore, add .claude/migrations/ to it before writing the spec
(planning artifact stays local). For commit mode, the docs/
location is intentional: the spec is tracked alongside other
documentation.
# Migrate <repo-name> to @parity/product-sdk
## Target
- Repo: <repo-name>
- Target SDK version: @parity/product-sdk@^X.Y.Z
- Target polkadot-api version: ^2.x
## Discovery summary
- Framework: <next | nuxt | vite | cli | mixed>
- Container detection: <dual | container-only | standalone>
- Workspace structure: <single-app | monorepo (N workspaces)>
- Legacy stacks detected: <list with example files>
- Tests: <runner + counts>
## Migration areas
For each in-scope/deferred/optional area: status, sub-pattern,
files affected (with paths), owning SDK skill, notes.
### 1. Bootstrap [yes]
- Sub-pattern: createApp({ name: '<repo>', cloudStorage: <env|false> })
- Files: lib/app.ts (new), N call-sites
- Owning skill: product-sdk-app-builder
- Notes: ...
[... one subsection per area from the matrix ...]
## Cross-cutting work
### PAPI 3.x bump + descriptors
- Bump polkadot-api to ^3.x plus aligned subpackages: [list]
- Import path migrations: ws-provider/web → ws (N files)
- Binary API: .asHex()/.fromBytes() → Binary.toHex(uint8) / raw Uint8Array
- Event watching: api.event.X.watch(filter) → watch().{block,events[]} + filter in subscriber
- Signers: PolkadotSigner → TxCreator, sign* tx methods → create*, tx events renamed (N files)
- .papi/descriptors/package.json bumped to <version>
### Dependencies and overrides
- Add: [list with versions]
- Remove (direct): [list]
- Remains transitive: run `pnpm why` / `yarn why` on each @novasamatech/* entry left in the
lockfile and record the owner. Owned by @parity/product-sdk-terminal 0.13.x or older
(directly or via a CLI that pins it): bump it to 0.14.0 or later. Any other owner: a
finding, file it — see G11
- pnpm.overrides (required):
"@polkadot-api/json-rpc-provider": "^0.2.0" # always; SDK monorepo root has this
"@polkadot-api/json-rpc-provider-proxy": "^0.4.0" # add if legacy 0.2.8 proxy is being hoisted
Reason: isolated-install hoisting picks up 0.0.4 stub (empty "main") and
0.2.8 proxy with legacy input() signature → "onReady is not a function"
## Cleanup
After all in-scope area swaps land and before final verification —
remove dead code, unused imports, and now-redundant glue. The agent
must do this explicitly; it does not emerge from the per-area work.
- [ ] Delete orphaned files: wrapper modules replaced by SDK inlines
(e.g. `utils/address.ts`), hand-rolled adapters (e.g.
`skiff-adapter.ts`), legacy IPFS / Helia glue, `wallet-signer.ts`
stubs. Verify zero in-tree references via `git grep` before each
deletion.
- [ ] Remove unused imports across all touched files (run the
project's lint/format script and resolve every "unused import"
warning, then re-run to confirm clean).
- [ ] Remove deps that became unused after the migration. For each
candidate (e.g. `@polkadot-labs/hdkd-helpers`, `tweetnacl`,
`@skiff-org/skiff-crypto`, `helia`, `@polkadot-api/sdk-ink`),
confirm zero in-tree consumers with `pnpm why <pkg>` (or
equivalent for npm / bun) before removing from `package.json`.
- [ ] Delete `TODO migrate later` / `FIXME` comments that the
migration has now resolved.
- [ ] Remove commented-out legacy code kept "just in case" during the
swap. If tests pass without it, delete it — git history is the
backup.
## Verification plan
- [ ] typecheck clean across N workspaces
- [ ] lint clean
- [ ] tests: <X/X unit, Y/Y integration, Z/Z e2e>
- [ ] build green
- [ ] manual smoke: <golden-path scenarios specific to this product>
## Recommended ordering
Phases (each = independent commit-worthy chunk):
1. Deps + overrides (failure mode contained)
2. PAPI 3.x adapt (mechanical)
3. Address utils inline (low risk, deletions)
4. Crypto + utils swap (mechanical, byte-identical verifiable)
5. Logger swap (low risk)
6. Chain access (touches bootstrap)
7. Bootstrap + Signer (interlocked — must land together)
8. Cloud Storage / Storage / Contracts / Statement Store (depend on bootstrap+signer)
9. Cleanup (see Cleanup section — dead files, unused imports, unused deps)
10. Final verification (Verification plan checklist)
## Out of scope
[list of intentionally skipped concerns + reasons]
After writing the spec, before the user-review checkpoint, verify:
TBD / TODO / FIXME / ??? and replace each.Fix issues inline. No need to re-review.
After the spec passes self-review, ask the user to review it:
"Spec written and saved to
<path>. Please review it and let me know if you want changes before I hand off to writing-plans."
Wait for explicit approval. If changes are requested, make them and re-run the self-review. Once the user approves, immediately invoke Phase 4.
Once the spec is approved by the user, perform mode-specific actions
then hand off to writing-plans.
local (default): nothing extra. Proceed to hand-off below.commit: stage and commit the spec file with a single-line
message (no co-author trailer). Use:
git add docs/migrations/specs/<spec-filename>
git commit -m "docs(migrations): add @parity/product-sdk migration spec"
Report the commit hash to the user. Do NOT push — the user pushes
manually.issue: open a GitHub issue with the spec as the body:
gh issue create \
--title "Migrate to @parity/product-sdk" \
--body-file .claude/migrations/specs/<spec-filename>
Report the issue URL to the user. If gh is not authenticated for
the target repo, stop and ask the user to authenticate before
retrying (do not silently fall back to a different mode).superpowers:writing-plans with the spec path as input.
Explicitly instruct writing-plans to save the implementation plan
to .claude/migrations/plans/YYYY-MM-DD-migrate-<repo>-to-product-sdk.md
— this overrides its default docs/superpowers/plans/ location and
keeps the plan project-local. (The plan is always local regardless
of the spec's launch mode — it is a working artifact, not a
deliverable.)writing-plans produces the implementation plan at that path.superpowers:subagent-driven-development (recommended), orsuperpowers:executing-plans.This skill ends here. Do not attempt to execute the plan yourself.
Twelve trap doors observed across four reference migrations. Full
catalog with cause/symptom/fix per gotcha: see references/gotchas.md.
Apply the fix when the symptom appears; reference the gotcha number
(G1–G12) from the spec when applicable. The most frequently relevant
are: G1 (JSON-RPC overrides, always required), G7 (cloudStorage: false
when Cloud Storage out of scope), G10 (descriptors bump).
For "how to use package X" content, the spec should point the reader at the corresponding SDK skill (listed in the intro above) rather than restating the API.
Hand-off target:
superpowers:writing-plans — Phase 4 hand-offWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub paritytech/product-sdk --plugin product-sdk11 skills in this plugin
/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.
/product-sdk-nftsUse when reading Scarcity NFT collections or their item catalogues on Asset Hub, which collections a claim can mint into, every collection, and what one of them holds. Covers getClaimableCollections, getCollections and getCollectionItems, getApprovedCollections for the collections apps offer per network, the one storage map that separates claimable from merely existing, the chain client they require and why a TypedApi is not enough, the descriptor entries they touch and what a pruned whitelist does, the open metadata schema and the two readings of ImageRef, why a missing collection is a success value rather than an error, getClaims across the People chain and Asset Hub with the four states a credit can be in, previewClaim and why it is the item a claim will produce, getVerifiedArtwork and why bytes are withheld unless they hash to the reference, getInstanceDisplays for the display metadata of minted NFTs by instance id with Found/NotFound per instance, and the purse-scoped reads that do not exist yet.
Other plugins' skills for the same job