Guides building verifiable off-chain computation on Sui using Nautilus, with Rust in AWS Nitro Enclaves and Move contract verification.
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 nautilus-offchain build completed
# Or use "failed" / "aborted" if it ended that way.
command -v suiperpower >/dev/null 2>&1 && suiperpower track nautilus-offchain 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.
Guides the user through building verifiable off-chain computation on Sui using Nautilus. The result is a Rust server running inside an AWS Nitro Enclave whose outputs are cryptographically verified by a Move contract on chain. Covers both the enclave-side Rust code and the on-chain Move verification logic.
find-next-sui-idea first.scaffold-project first.build-with-move instead.pyth-oracle instead.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 using enclave::enclave to register and verify enclave signatures.
A Rust server (Axum) implementing the enclave logic with Nautilus SDK endpoints.
Integration code: PTB or TS that calls the enclave server, posts verified results on chain.
Append to .suiperpower/build-context.md:
## nautilus-offchain session, <timestamp>
- enclave logic: <what it computes>
- move module: <module::name>
- rust server endpoints: <list>
- pcr values: <pending build | recorded>
- deployment: <local | AWS Nitro>
- open issues: <list>
Decide if TEE is needed
build-with-move.Design the enclave logic
Write the Move contract
enclave::enclave module functions. See references/nautilus-architecture.md for the full API.new_cap<T> for admin capabilities.EnclaveConfig with expected PCR values via create_enclave_config.verify_signature to validate enclave output before acting on it.verify_signature does not enforce this).Build the Rust enclave server
git clone https://github.com/MystenLabs/nautilus./health_check, GET /get_attestation, and POST endpoint for the custom logic.Deploy the Move package
sui move build and sui client publish.create_enclave_config with the PCR values from the built enclave image.Deploy the enclave
register_enclave on chain with the attestation document.Register on chain
/get_attestation.register_enclave<T>(config, attestation_doc, ctx) to register the enclave's public key.Verify the integration
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.| Scenario | Use Nautilus? | Alternative |
|---|---|---|
| Heavy computation (ML, data processing) | Yes | None on chain |
| External API calls (web2 data) | Yes | Pyth for price feeds specifically |
| Private data processing | Yes | Seal for encryption-only use cases |
| Simple on-chain logic | No | build-with-move |
| Price feeds only | No | pyth-oracle |
| Verifiable randomness only | No | Sui native randomness module |
| ZK proof generation | No | ZK tooling (Circom, Noir) |
Before reporting done, the skill asks itself the following and refuses to declare success if any answer is no:
sui move build?verify_signature include a manual timestamp freshness check?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/nautilus-architecture.md: Move module API (enclave::enclave), Rust server setup, deployment flow.references/nautilus-pitfalls.md: Key pitfalls with PCR values, BCS ordering, ephemeral keys, and timestamp freshness.External docs (fetch at runtime for the latest API surface):
claude "/suiper:nautilus-offchain <your message>"codex "/nautilus-offchain <your message>"grok, then /nautilus-offchain <your message> in the session~/.cursor/rules/nautilus-offchain.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
sui, nautilus, tee-compute, off-chain-verification, aws-nitro-enclaves
/suiper:nautilus-offchainfrom 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