AgentSkillsCN

data-streaming

通过 Laserstream gRPC 流式传输 Light Protocol 账户状态。支持代币账户、铸造账户,以及可压缩的 PDA,并提供热/冷生命周期追踪功能。适用于构建自定义数据管道、聚合器或索引器时使用。

SKILL.md
--- frontmatter
name: data-streaming
description: "Stream Light Protocol account state via Laserstream gRPC. Covers token accounts, mint accounts, and compressible PDAs with hot/cold lifecycle tracking. Use when building custom data pipelines, aggregators, or indexers."

Data Streaming

Stream Light Protocol account state transitions via Laserstream gRPC.

Workflow

  1. Clarify intent
    • Recommend plan mode, if it's not activated
    • Use AskUserQuestion to resolve blind spots
    • All questions must be resolved before execution
  2. Identify references and skills
    • Match task to domain references below
    • Locate relevant documentation and examples
  3. Write plan file (YAML task format)
    • Use AskUserQuestion for anything unclear — never guess or assume
    • Identify blockers: permissions, dependencies, unknowns
    • Plan must be complete before execution begins
  4. Execute
    • Use Task tool with subagents for parallel research
    • Subagents load skills via Skill tool
    • Track progress with TodoWrite
  5. When stuck: spawn subagent with Read, Glob, Grep, DeepWiki MCP access and load skills/ask-mcp

When NOT to use

For simple account lookups, call get_account_interface from light-client. It races hot and cold lookups automatically.

This skill is for continuous data pipelines: aggregators, market makers, and indexers that need real-time state change notifications rather than point queries.

Domain references

AudienceReference
All — shared architecture (read first)references/shared.md
Token accounts (SPL-compatible, 165 bytes)references/token-accounts.md
Mint accounts (borsh-deserialized, metadata)references/mint-accounts.md
Compressible PDAs (per-program, discriminator check)references/pdas.md

Account type decision

Streaming...Account typeKey difference
SPL-compatible token balancesToken accountsPodAccount parsing, 165-byte layout
Mint supply, metadata, authoritiesMint accountsMint::deserialize, borsh layout
Your program's PDA stateCompressible PDAs8-byte discriminator check, per-program filter

Program addresses

ProgramAddress
Light Token ProgramcTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m
Light System ProgramSySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7

External references

ResourceLink
Photon indexergithub.com/helius-labs/photon