# Send Forever Moments to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "forever-moments",
    "name": "Forever Moments",
    "source": "tencent",
    "type": "skill",
    "category": "内容创作",
    "sourceUrl": "https://clawhub.ai/LUKSOAgent/forever-moments",
    "canonicalUrl": "https://clawhub.ai/LUKSOAgent/forever-moments",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/forever-moments",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=forever-moments",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "references/api-docs.md",
      "scripts/mint-likes.js",
      "scripts/post-moment-ai.js",
      "scripts/post-moment-simple.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/forever-moments"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/forever-moments",
    "downloadUrl": "https://openagent3.xyz/downloads/forever-moments",
    "agentUrl": "https://openagent3.xyz/skills/forever-moments/agent",
    "manifestUrl": "https://openagent3.xyz/skills/forever-moments/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/forever-moments/agent.md"
  }
}
```
## Documentation

### Forever Moments - LUKSO Social Platform

Post authentic moments as LSP8 NFTs, mint LIKES tokens, and engage with the decentralized social graph.

### USE WHEN

Posting a moment (with or without image)
Minting LIKES tokens to tip creators
Creating/joining collections (curated feeds)
Listing moments for sale
Automated AI-image generation and posting (cron)

### DON'T USE WHEN

Credentials missing (FM_PRIVATE_KEY, FM_UP_ADDRESS not set)
User hasn't approved spending LYX for LIKES minting
Quick test posts without image (use text-only mode)
Operations on unsupported chains (LUKSO mainnet only)

### Quick Commands

# Post text moment
node scripts/post-moment.js "Title" "Description" "tag1,tag2"

# Post with AI image (Pollinations - FREE)
node scripts/post-moment-ai.js "Title" "Desc" "tags" "image prompt"

# Post with AI image (DALL-E 3 - Premium)
node scripts/post-moment-ai.js --dalle "Title" "Desc" "tags" "prompt"

# Mint LIKES tokens (costs LYX)
node scripts/mint-likes.js 0.5

### The 4-Step Relay Flow (Gasless)

All operations follow this pattern:

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  1. Pin Image   │────▶│  2. Build Tx    │────▶│ 3. Prepare Relay│────▶│ 4. Sign & Submit│
│  (if needed)    │     │                 │     │                 │     │                 │
└─────────────────┘     └─────────────────┘     └─────────────────┘     └─────────────────┘

### Code Template

// 1. Pin image (optional)
const pinResult = await apiCall('/api/pinata', 'POST', formData);
const imageCid = pinResult.IpfsHash;

// 2. Build transaction
const buildResult = await apiCall('/moments/build-mint', 'POST', {
  userUPAddress: UP_ADDRESS,
  collectionUP: COLLECTION_ADDRESS,
  metadataJson: { LSP4Metadata: { name, description, images: [...] }}
});

// 3. Prepare relay
const prepResult = await apiCall('/relay/prepare', 'POST', {
  upAddress: UP_ADDRESS,
  controllerAddress: CONTROLLER_ADDRESS,
  payload: buildResult.data.derived.upExecutePayload
});

// 4. Sign raw digest (CRITICAL!)
const signature = wallet.signingKey.sign(ethers.getBytes(prepResult.data.hashToSign));

// Submit
const submitResult = await apiCall('/relay/submit', 'POST', {
  upAddress: UP_ADDRESS,
  payload: buildResult.data.derived.upExecutePayload,
  signature: signature.serialized,
  nonce: prepResult.data.lsp15Request.transaction.nonce,
  validityTimestamps: prepResult.data.lsp15Request.transaction.validityTimestamps,
  relayerUrl: prepResult.data.relayerUrl
});

### Negative Examples

❌ WRONG: Using wrong signing method

// WRONG - adds EIP-191 prefix
await wallet.signMessage(hashToSign)

// CORRECT - sign raw bytes
wallet.signingKey.sign(ethers.getBytes(hashToSign))

❌ WRONG: Wrong IPFS endpoint

// WRONG
POST /api/agent/v1/pinata

// CORRECT
POST /api/pinata  (no /agent/v1 prefix!)

❌ WRONG: Missing credentials

// DON'T proceed if env vars not set
if (!process.env.FM_PRIVATE_KEY) {
  throw new Error('FM_PRIVATE_KEY not set - check .credentials');
}

### Post Moment with Image

const metadata = {
  LSP4Metadata: {
    name: "Moment Title",
    description: "Description text",
    images: [[{
      width: 1024, height: 1024,
      url: \`ipfs://${cid}\`,
      verification: { method: "keccak256(bytes)", data: "0x" }
    }]],
    tags: ["art", "lukso"]
  }
};

### LSP4 Metadata Structure

FieldRequiredFormatnameYesString, max 100 charsdescriptionYesString, max 1000 charsimagesNoArray of arrays with IPFS URLsiconNoSingle image for thumbnailtagsNoArray of strings, max 10 tags

### Edge Cases

ScenarioHandlingPollinations rate limitWait 60s, retry with backoffDALL-E not configuredFall back to Pollinations (free)IPFS pin failsRetry once, then fail with errorINVALID_SIGNATURECheck signing method (raw digest!)RELAY_FAILEDVerify controller has EXECUTE_RELAY_CALL permissionCollection already joinedSkip join, proceed with postCron timeout (180s)Increase timeout or optimize image generation

### Required Environment Variables

# Required for all operations
export FM_PRIVATE_KEY="0x..."           # Controller private key
export FM_UP_ADDRESS="0x..."            # Universal Profile address
export FM_CONTROLLER_ADDRESS="0x..."    # Controller address

# Optional (has default)
export FM_COLLECTION_UP="0x439f..."     # Default collection

# For premium images
export DALLE_API_KEY="sk-..."           # OpenAI API key

### Image Generation Options

MethodCostQualityBest ForPollinations.aiFREEGoodCron jobs, bulk postingDALL-E 3$0.04/imgExcellentManual posts, premium content

### Known Collections

Art by the Machine (AI art): 0x439f6793b10b0a9d88ad05293a074a8141f19d77

### API Base URL

https://www.forevermoments.life/api/agent/v1

Note: IPFS pin endpoint is /api/pinata (NOT under /api/agent/v1)

### Success Indicators

✅ Good response:

{
  "success": true,
  "data": {
    "ok": true,
    "responseText": "{\\"transactionHash\\":\\"0x...\\"}"
  }
}

❌ Bad response:

{
  "success": false,
  "error": "INVALID_SIGNATURE"
}

### Related Tools

universal-profile skill - For UP/KeyManager operations
bankr skill - For direct LYX transactions (if gasless fails)
lsp28-grid skill - For profile grid management
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: LUKSOAgent
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/forever-moments)
- [Send to Agent page](https://openagent3.xyz/skills/forever-moments/agent)
- [JSON manifest](https://openagent3.xyz/skills/forever-moments/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/forever-moments/agent.md)
- [Download page](https://openagent3.xyz/downloads/forever-moments)