Integrates Seal threshold encryption on Sui for access-controlled decryption via Move policies. Encrypts data client-side, defines allowlist/token-gate/time-lock policies, and verifies round-trip.
Ships in suiper. 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.
# Suiperpower telemetry. Routes through the CLI so projects.json + Convex stay in sync.
# Silent on failure so the skill never blocks. Opt out: SUIPERPOWER_TELEMETRY=off.
#
# AGENT NOTE: when this skill finishes, run the matching completion command:
# suiperpower track seal-access-control build completed
# Or use "failed" / "aborted" if it ended that way.
command -v suiperpower >/dev/null 2>&1 && suiperpower track seal-access-control build started >/dev/null 2>&1 &
true
If TEL_PROMPTED is no, before doing real work, ask the user:
Help suiperpower get better. We track which skills get used and how long they take. No code, no file paths, no PII. Change anytime in
~/.suiperpower/config.json.A) Sure, anonymous B) No thanks
Write the answer to ~/.suiperpower/config.json telemetryTier field and create ~/.suiperpower/.telemetry-prompted. Then continue.
Integrates Seal into a Sui project so the user can encrypt data client-side and control decryption through Move access policies on chain. Picks the right access pattern (allowlist, subscription, token-gate, time-lock, etc.), writes the Move policy module with seal_approve functions, wires up the @mysten/seal TS SDK for encrypt and decrypt, and verifies a real round-trip before declaring done.
find-next-sui-idea first.scaffold-project first.walrus-storage instead.build-with-move.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.
.suiperpower/build-context.md from scaffold-project. Read it if present.If unclear, interview the user for:
A Move module with one or more seal_approve entry functions implementing the access policy.
TS integration code using @mysten/seal for encrypt and decrypt flows.
A working SessionKey flow with personal message signing.
Optional: Walrus integration for storing encrypted blobs (uses walrus-storage patterns).
Append to .suiperpower/build-context.md:
## seal-access-control session, <timestamp>
- pattern: <whitelist | subscription | account_based | private_data | tle | voting | key_request>
- policy module: <module::name>
- seal_approve functions: <names>
- package id (testnet): <id or pending>
- walrus integration: <yes | no>
- open issues: <list>
Context gathering
.suiperpower/build-context.md if it exists.Pick the access pattern
seal_approve function.Write the Move policy module
seal_approve entry functions following the Seal convention (see references/seal-patterns.md).seal_approve function: name starts with seal_approve, first param is id: vector<u8>, must not modify state.Integrate the TS SDK
@mysten/seal and @mysten/sui.SealClient with testnet key server config (see references/seal-quickstart.md).client.encrypt().SessionKey, get personal message signature from wallet, build seal_approve PTB, call client.decrypt().Walrus integration (if applicable)
blobId on chain.walrus-storage skill and references/seal-quickstart.md for the canonical pattern.Test the round-trip
Writeback
.suiperpower/build-context.md.Closing handoff
.suiperpower/intent.md exists and the session was non-trivial (new module, new sponsor integration, or material changes to public functions), recommend verify-against-intent as the next step so drift is caught before shipping.intent.md exists and the session was non-trivial, surface that gap once: offer clarify-intent to backfill, do not force it.| Use case | Pattern | Module |
|---|---|---|
| Admin controls who can decrypt | whitelist | Admin-managed address allowlist |
| Paid, time-limited access | subscription | Fee + TTL, auto-expires |
| Encrypt to a specific address | account_based | Only that address decrypts |
| Creator-only private data | private_data | Only the object creator decrypts |
| Content unlocks after a date | tle (time-lock) | Anyone decrypts after timestamp |
| Secret ballot / sealed-bid auction | voting | Threshold decryption after vote closes |
| Delegated access via witness | key_request | Third party grants access on behalf |
If the user's requirement spans two patterns (e.g., allowlist that expires), compose them in a single module. The seal_approve convention is flexible enough for custom logic.
Before reporting done, the skill asks itself the following and refuses to declare success if any answer is no:
sui move build?seal_approve function follow the convention (name prefix, id: vector<u8> first param, no state mutation)?verifyKeyServers documented as false for dev and true for production?If any answer is no, the skill reports the gap and works through it before claiming the integration is complete.
On-demand references (load when relevant to the user's question):
references/seal-quickstart.md: SealClient init, encrypt, decrypt, SessionKey, Walrus integration recipes.references/seal-patterns.md: All 7 Move access patterns with seal_approve function signatures and when to use each.references/seal-pitfalls.md: Common mistakes with Seal integration and how to avoid them.Knowledge docs (load when scope expands beyond what is in references):
skills/data/sui-knowledge/sponsor-docs/walrus.md: Walrus concepts and integration for encrypted blob storage.External docs (fetch at runtime for the latest API surface):
claude "/suiper:seal-access-control <your message>"codex "/seal-access-control <your message>"grok, then /seal-access-control <your message> in the session~/.cursor/rules/seal-access-control.mdc and reference it.If you activated this and the user actually wants something else, consult skills/SKILL_ROUTER.md and hand off.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
seal, sui, threshold-encryption, access-control, move, walrus
/suiper:seal-access-controlfrom suiper
npx claudepluginhub pivyme/suiperpower --plugin suiper60 skills in this plugin
/apply-grantDraft a Sui Foundation grant application with milestones and sustainability plan. Use when the user wants to apply for a Sui grant or draft a grant application./brand-designPick a brand name, color palette, or typography for a Sui product. Use when the user wants to name or brand a Sui project./build-ai-agentBuild an AI agent that signs Sui transactions or runs onchain actions. Use when the user wants an AI agent on Sui./build-data-pipelineBuild a Sui data indexer or analytics pipeline. Use when the user wants to index Sui events, build a pipeline, or query Sui RPC data.Other plugins' skills for the same job