{
  "schemaVersion": "1.0",
  "item": {
    "slug": "solana-light-sdk",
    "name": "solana-light-sdk",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tilo-14/solana-light-sdk",
    "canonicalUrl": "https://clawhub.ai/tilo-14/solana-light-sdk",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/solana-light-sdk",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=solana-light-sdk",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/anchor.md",
      "references/pinocchio.md",
      "references/client-sdk.md",
      "references/router.md",
      "references/instructions.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "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. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.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/solana-light-sdk"
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/solana-light-sdk",
    "agentPageUrl": "https://openagent3.xyz/skills/solana-light-sdk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/solana-light-sdk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/solana-light-sdk/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Rent-Free Solana Programs",
        "body": "The Light SDK pays rent-exemption for PDAs, token accounts, and mints. Program logic stays mostly untouched.\n\nRent cost (per account)Solana / SPLLight SDKToken account~2,000,000 lamports~11,000 lamportsAvg. DeFi pool~$2~$0.02"
      },
      {
        "title": "Workflow",
        "body": "Clarify intent\n\nRecommend plan mode, if it's not activated\nUse AskUserQuestion to resolve blind spots\nAll questions must be resolved before execution\n\n\nIdentify references and skills\n\nMatch task to domain references below\nLocate relevant documentation and examples\n\n\nWrite plan file (YAML task format)\n\nUse AskUserQuestion for anything unclear — never guess or assume\nIdentify blockers: permissions, dependencies, unknowns\nPlan must be complete before execution begins\n\n\nExecute\n\nUse Task tool with subagents for parallel research\nSubagents load skills via Skill tool\nTrack progress with TodoWrite\n\n\nWhen stuck: spawn subagent with Read, Glob, Grep, DeepWiki MCP access and load skills/ask-mcp"
      },
      {
        "title": "Domain References",
        "body": "AudienceReferenceAnchor patternreferences/anchor.mdPinocchio patternreferences/pinocchio.mdClient SDK (LightProgramInterface)references/client-sdk.mdTestingreferences/testing.mdCPI instructionsreferences/instructions.mdFAQreferences/faq.mdRouter integrationreferences/router.md"
      },
      {
        "title": "When to use which",
        "body": "CriteriaAnchorPinocchioFrameworkanchor-lang 0.31, #[light_program] macropinocchio 0.9, LightProgramPinocchio deriveState structOption<CompressionInfo> + LightAccount deriveCompressionInfo (non-optional) + bytemuck::Pod + Zeroable + #[repr(C)]Account creation#[light_account(init, ...)] attribute or CreateTokenAccountCpiCreateTokenAccountCpi, CreateMints batch patternCompress/decompress handlersAuto-generated by #[light_program] macroRoute ProgramAccounts::COMPRESS_ACCOUNTS_IDEMPOTENT etc. in entrypointProgram ID constantNot needed (macro derives it)pub const ID: Pubkey = pubkey_array!(...) + LIGHT_CPI_SIGNER requiredDependencieslight-sdk, light-sdk-macros, light-token, light-anchor-spllight-account-pinocchio, light-token-pinocchio, bytemuck"
      },
      {
        "title": "DeFi integration",
        "body": "For DeFi programs (AMMs, lending, vaults): the Anchor and Pinocchio patterns above apply directly. DeFi-specific references:\n\nTaskReferenceRouter/aggregator integration (cold account loading)references/router.mdLightProgramInterface trait (client SDK for routers)references/client-sdk.md"
      },
      {
        "title": "Hot vs Cold Model",
        "body": "After extended inactivity (multiple epochs without writes), accounts auto-compress to cold state. Programs only interact with hot accounts. Clients load cold accounts back on-chain via create_load_instructions.\n\nHot (active)Cold (inactive)StorageOn-chainCompressedLatencyNormal+0-200msTx sizeNormal+100-2400 bytesCUNormal+15k-400k CUProgram codeNo changeNo change\n\nThe hot path has zero overhead."
      },
      {
        "title": "External References",
        "body": "ResourceLinkAnchor AMM referencecp-swap-referencePinocchio swap referencepinocchio-swapAnchor counter (rent-free PDA)basic-macros/counterPinocchio counter (zero-copy PDA)pinocchio/counter"
      },
      {
        "title": "SDK references",
        "body": "PackageLinklight-sdkdocs.rslight-sdk-macrosdocs.rslight-sdk-pinocchiodocs.rslight-tokendocs.rslight-token-pinocchiodocs.rslight-account-pinocchiodocs.rslight-token-clientdocs.rslight-clientdocs.rslight-program-testdocs.rs"
      },
      {
        "title": "Security",
        "body": "This skill does not pull, store, or transmit external secrets. It provides code patterns, documentation references, and development guidance only.\n\nNo credentials consumed. The skill requires no API keys, private keys, or signing secrets. env: [] is declared explicitly.\nUser-provided configuration. RPC endpoints, wallet keypairs, and authentication tokens (Privy, wallet adapters) are configured in the user's own application code — the skill only demonstrates how to use them.\nInstall source. npx skills add Lightprotocol/skills installs from the public GitHub repository (Lightprotocol/skills). Verify the source before running.\nSubagent scope. This skill may spawn read-only subagents that use Read, Glob, and Grep to search the local repository. Restrict the working directory to your project.\nAudited protocol. Light Protocol smart contracts are independently audited. Reports are published at github.com/Lightprotocol/light-protocol/tree/main/audits."
      }
    ],
    "body": "Rent-Free Solana Programs\n\nThe Light SDK pays rent-exemption for PDAs, token accounts, and mints. Program logic stays mostly untouched.\n\nRent cost (per account)\tSolana / SPL\tLight SDK\nToken account\t~2,000,000 lamports\t~11,000 lamports\nAvg. DeFi pool\t~$2\t~$0.02\nWorkflow\nClarify intent\nRecommend plan mode, if it's not activated\nUse AskUserQuestion to resolve blind spots\nAll questions must be resolved before execution\nIdentify references and skills\nMatch task to domain references below\nLocate relevant documentation and examples\nWrite plan file (YAML task format)\nUse AskUserQuestion for anything unclear — never guess or assume\nIdentify blockers: permissions, dependencies, unknowns\nPlan must be complete before execution begins\nExecute\nUse Task tool with subagents for parallel research\nSubagents load skills via Skill tool\nTrack progress with TodoWrite\nWhen stuck: spawn subagent with Read, Glob, Grep, DeepWiki MCP access and load skills/ask-mcp\nDomain References\nAudience\tReference\nAnchor pattern\treferences/anchor.md\nPinocchio pattern\treferences/pinocchio.md\nClient SDK (LightProgramInterface)\treferences/client-sdk.md\nTesting\treferences/testing.md\nCPI instructions\treferences/instructions.md\nFAQ\treferences/faq.md\nRouter integration\treferences/router.md\nWhen to use which\nCriteria\tAnchor\tPinocchio\nFramework\tanchor-lang 0.31, #[light_program] macro\tpinocchio 0.9, LightProgramPinocchio derive\nState struct\tOption<CompressionInfo> + LightAccount derive\tCompressionInfo (non-optional) + bytemuck::Pod + Zeroable + #[repr(C)]\nAccount creation\t#[light_account(init, ...)] attribute or CreateTokenAccountCpi\tCreateTokenAccountCpi, CreateMints batch pattern\nCompress/decompress handlers\tAuto-generated by #[light_program] macro\tRoute ProgramAccounts::COMPRESS_ACCOUNTS_IDEMPOTENT etc. in entrypoint\nProgram ID constant\tNot needed (macro derives it)\tpub const ID: Pubkey = pubkey_array!(...) + LIGHT_CPI_SIGNER required\nDependencies\tlight-sdk, light-sdk-macros, light-token, light-anchor-spl\tlight-account-pinocchio, light-token-pinocchio, bytemuck\nDeFi integration\n\nFor DeFi programs (AMMs, lending, vaults): the Anchor and Pinocchio patterns above apply directly. DeFi-specific references:\n\nTask\tReference\nRouter/aggregator integration (cold account loading)\treferences/router.md\nLightProgramInterface trait (client SDK for routers)\treferences/client-sdk.md\nHot vs Cold Model\n\nAfter extended inactivity (multiple epochs without writes), accounts auto-compress to cold state. Programs only interact with hot accounts. Clients load cold accounts back on-chain via create_load_instructions.\n\n\tHot (active)\tCold (inactive)\nStorage\tOn-chain\tCompressed\nLatency\tNormal\t+0-200ms\nTx size\tNormal\t+100-2400 bytes\nCU\tNormal\t+15k-400k CU\nProgram code\tNo change\tNo change\n\nThe hot path has zero overhead.\n\nExternal References\nResource\tLink\nAnchor AMM reference\tcp-swap-reference\nPinocchio swap reference\tpinocchio-swap\nAnchor counter (rent-free PDA)\tbasic-macros/counter\nPinocchio counter (zero-copy PDA)\tpinocchio/counter\nSDK references\nPackage\tLink\nlight-sdk\tdocs.rs\nlight-sdk-macros\tdocs.rs\nlight-sdk-pinocchio\tdocs.rs\nlight-token\tdocs.rs\nlight-token-pinocchio\tdocs.rs\nlight-account-pinocchio\tdocs.rs\nlight-token-client\tdocs.rs\nlight-client\tdocs.rs\nlight-program-test\tdocs.rs\nSecurity\n\nThis skill does not pull, store, or transmit external secrets. It provides code patterns, documentation references, and development guidance only.\n\nNo credentials consumed. The skill requires no API keys, private keys, or signing secrets. env: [] is declared explicitly.\nUser-provided configuration. RPC endpoints, wallet keypairs, and authentication tokens (Privy, wallet adapters) are configured in the user's own application code — the skill only demonstrates how to use them.\nInstall source. npx skills add Lightprotocol/skills installs from the public GitHub repository (Lightprotocol/skills). Verify the source before running.\nSubagent scope. This skill may spawn read-only subagents that use Read, Glob, and Grep to search the local repository. Restrict the working directory to your project.\nAudited protocol. Light Protocol smart contracts are independently audited. Reports are published at github.com/Lightprotocol/light-protocol/tree/main/audits."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/tilo-14/solana-light-sdk",
    "publisherUrl": "https://clawhub.ai/tilo-14/solana-light-sdk",
    "owner": "tilo-14",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/solana-light-sdk",
    "downloadUrl": "https://openagent3.xyz/downloads/solana-light-sdk",
    "agentUrl": "https://openagent3.xyz/skills/solana-light-sdk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/solana-light-sdk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/solana-light-sdk/agent.md"
  }
}