AGENT SKILL

moonpay-wallet-statusline-refresh

Manually refresh wallet balances shown in a compatible CLI status line. Use when the user says "refresh balances", "update status bar", or after receiving funds from outside the CLI.

License 许可
MIT
最近更新
2026-10-08
Stars
★ 0
Forks
0

01 前言 Front Matter

name
moonpay-wallet-statusline-refresh
tags
[ "wallet", "statusline" ]
description
Manually refresh wallet balances shown in a compatible CLI status line. Use when the user says "refresh balances", "update status bar", or after receiving funds from outside the CLI.

03 SKILL.md 正文

Refresh wallet status line

Goal

Refresh the cached MoonPay wallet balances shown in a compatible CLI status line.

Prerequisites

  • MoonPay CLI installed: npm i -g @moonpay/cli
  • Authenticated: mp verify
  • Status line config exists: ~/.config/moonpay/statusline.json
  • Refresh script exists: ~/.config/moonpay/refresh-statusline.sh

If the config or refresh script is missing, run the moonpay-wallet-statusline setup skill first.

Commands

# Run the refresh script
bash ~/.config/moonpay/refresh-statusline.sh

# View cached output
cat ~/.config/moonpay/statusline-cache.txt

# Strip ANSI codes for plain text output
sed 's/\x1b\[[0-9;]*m//g' ~/.config/moonpay/statusline-cache.txt

# Check authentication if refresh fails
mp verify

Workflow

  1. Verify the setup files exist:

    • ~/.config/moonpay/statusline.json
    • ~/.config/moonpay/refresh-statusline.sh
  2. Run the refresh command:

    bash ~/.config/moonpay/refresh-statusline.sh
    
  3. If the cache file exists, show the user the refreshed value in plain text:

    sed 's/\x1b\[[0-9;]*m//g' ~/.config/moonpay/statusline-cache.txt
    
  4. If the cache file does not exist after a successful refresh, tell the user no balances were found for the configured address-and-chain entries.

  5. Only query the underlying mp balance commands directly if the user explicitly asks for a detailed balance breakdown. Otherwise, trust the configured refresh script as the source of truth for the status line.

  6. Confirm that the cache was refreshed and remind the user that the target CLI may show the change on the next status line render or next session, depending on local setup.

Error handling

Error Cause Fix
No config file Setup not run Run moonpay-wallet-statusline first
No refresh script Setup not run Run moonpay-wallet-statusline first
mp verify failed Auth expired or missing Run mp login then mp verify
Refresh exits successfully but cache is missing No balances on configured entries Check the configured addresses/chains and verify the wallet has funds

Related skills

04 同仓库更多 Skills

Solizardking
Solizardking/skillhub-main

zkrouter

Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.

★ 0
Solizardking
Solizardking/skillhub-main

zk

For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.

★ 0
Solizardking
Solizardking/skillhub-main

zk-omni-messaging

Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.

★ 0
Solizardking
Solizardking/skillhub-main

zerion-wallet-data

Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.

★ 0
Solizardking
Solizardking/skillhub-main

youtube-clipper

YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video

★ 0
Solizardking
Solizardking/skillhub-main

yield-optimization

Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit/withdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter/exit a position, or check portfolio balances.

★ 0