---
name: hoodiestudio
description: Operate Hoodie Studio on Robinhood mainnet for an agent that controls OnChainHoodies or has authorized artist delegation. Inspect HoodieWallets, claim INK Bottles, open Canvases, prepare pixel art, and publish approved artwork.
---

# Hoodie Studio

Turn an owned OnChainHoodie into an INK Bottle, a matching Canvas, and permanent onchain pixel art. Operate through the agent's existing authorized wallet/signing tools. This skill provides protocol instructions and an offline artwork planner; it does not supply a signer or grant spending authority.

Site: https://hoodiestudio.xyz/ · Guide: https://hoodiestudio.xyz/guide.html

Read [transactions.md](references/transactions.md) before preparing a chain operation. It contains the pinned mainnet addresses, ABI signatures, claim proof verification, execution paths, and confirmation checks. The skill is for Robinhood mainnet V4.2, chain **4663**, not testnet.

## Establish the operating scope

Use the agent's wallet policy and the owner's established instructions to determine the authorized signer/account, Hoodie IDs, art brief, allowed funding Bottles, OCH budget, and gas budget. For an agent operating its own wallet, use its configured authority and budgets. Obtaining this skill does not itself authorize transactions. Resolve missing authority or budget before spending, without requesting approval again for actions already authorized within that scope.

Never request, print, or include seed phrases, private keys, provider credentials, or signing tokens in artwork files or public output. Use an independently configured Robinhood RPC; the site's browser RPC gateway is not an authenticated agent API.

Read chain ID and contract code. Confirm the dependency addresses and eligibility root against the pinned release. Verify `sourceCollection.ownerOf(hoodieId)` is the authorized controlling account, and resolve `hoodOS.walletOf(hoodieId)`. Read current NFT custody, activation status, remaining INK, delegation, balances, and allowances before acting. An indexed image or cached inventory is not proof of current authority. If reads fail, report unavailable state and retry with a bounded delay; do not infer zero assets.

## Choose a workflow

### Claim an INK Bottle

1. Check the owned Hoodie ID (0–5999) and `bottle.claimed(id)`. A claim is once per source Hoodie, including after transfers or burning.
2. Obtain the frozen INK amount and Merkle proof from the published manifest/proofs. Verify the leaf/proof and root as described in the transaction reference; do not derive claim INK from a live image.
3. Activate the HoodieWallet if necessary, using the live activation cost and exact allowance. Recheck ownership after activation.
4. Have the authorized controller call the HoodieWallet's `execute`, targeting Bottle `claim(id,ink,proof)`. Confirm the successful receipt, claimed flag, Bottle owner and INK amount.

### Open a Canvas

Check the Bottle is still alive, has positive INK, and belongs to a HoodieWallet controlled by the authorized account. Read `hasOpenedCanvas`; do not repeat an existing mint. Through that custody HoodieWallet, call **Canvas** `openCanvas(bottleId,custodyHoodieId)`. Confirm Canvas ownership and `currentBitmap` after the receipt.

Canvas ID equals its opening Bottle ID; custody Hoodie ID can differ after transfers. Opening spends no INK and has no Canvas mint fee; wallet activation and network gas are separate. Open a desired Bottle's Canvas before spending its last INK: empty Bottles burn and cannot open an unminted Canvas afterward.

### Create or extend artwork

Use a 20 × 20 grid with black pixels on a lime background. Pixel index is `y * 20 + x`, with origin at top-left. Read the current bitmap and preserve every published black pixel. Only new black pixels can be added. A full 400-pixel Canvas cannot publish further versions, including title-only changes.

Prepare a local JSON file with:

```json
{
  "canvasId": 678,
  "custodyHoodieId": 678,
  "title": "My Hoodie Art",
  "artistName": "My Agent",
  "currentBitmapLow": "0",
  "currentBitmapHigh": "0",
  "newPixels": [127, 128, 129],
  "allocations": [{"bottleId": 678, "custodyHoodieId": 678, "amount": 3}]
}
```

Those IDs are examples, not recommended transaction targets. Replace the bitmap values with fresh chain reads and the allocations with authorized funding.

Run the bundled offline helper with Node.js 18 or later:

```sh
node scripts/artwork.mjs /absolute/path/to/artwork.json
```

It validates pixel bounds, text byte limits, duplicate pixels/Bottles, and exact INK allocation, then returns the additive bitmap and positional publication arguments. It never connects to a wallet or sends a transaction. Its output is a draft, not evidence of ownership, remaining INK, valid artist-name reservation, live cost, or successful simulation.

Default to funding with the opening Bottle if usable; otherwise the first eligible available Bottle. Add other Bottles only within the authorized funding scope. Each selected Bottle must be held by its stated custody HoodieWallet under the same controller as the Canvas, with sufficient INK and no incompatible reservation. There is no cross-owner pooling in the owner publication path.

Call `quotePublish` with the proposed complete bitmap. Each added pixel consumes 1 INK and burns 1 OCH. The first publication has no flat edit fee; later versions add the current edit fee. Treat the quote as authoritative rather than hardcoding 100 OCH. The Canvas HoodieWallet must hold the required OCH and allow the Canvas contract to spend it. Check the per-Canvas artist-name reservation before using an existing name; ASCII capitalization does not create a new reservation.

Show or record the artwork preview, title, artist name, permanent additions, funding allocations, quoted OCH, and gas estimate according to the wallet's established policy. Simulate the **outer HoodieWallet execute call with the real controlling account**. After any needed funding/approval receipt, reread and simulate publication again. Send only within the established authority and budget. Verify the receipt and resulting version, bitmap, title, artist, INK and OCH changes; report the transaction hash and asset link.

### An agent working as a delegated artist

Read the current delegation and available reserved Bottles. A delegated artist sends `saveDraft` to the Delegation coordinator from its own authorized account; it cannot use the owner's direct publication path or self-approve. This submission costs gas but does not spend INK/OCH. The owner reviews and approves the exact draft hash through the controlling HoodieWallet. Follow the reference for signatures and hash/nonce checks. Do not create a delegation, reserve extra funds, or approve a draft outside the established request.

## Completion and recovery

Use the appropriate receipt status and fresh reads as the outcome. If submission returns a transaction hash but waiting times out, check that hash before submitting again. A reverted transaction did not publish artwork, even if gas was spent. Do not silently alter art, title, funding, recipients, or amounts to overcome a revert.

For a completed workflow report Hoodie/Bottle/Canvas IDs, custody wallet, artwork version, costs, transaction hashes, and `https://opensea.io/item/robinhood/<canvas-address>/<canvas-id>`. Marketplace indexing can lag chain confirmation. If blocked, identify the missing authority, funds, custody, reservation, or read capability and preserve the local draft.
