Chuyển đến nội dung
Skillpedia
Lập trình chung48k · #6257

blockrun

Skill này làm gì

BlockRun cho phép AI dùng các công cụ mà nó không có sẵn, như tạo hình ảnh hoặc tìm kiếm thông tin thời gian thực trên internet. Nó làm điều này bằng hệ thống “ví” để thanh toán cho các dịch vụ.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu AI tạo một hình ảnh.
  • ✓Khi bạn yêu cầu thông tin hiện tại từ internet hoặc mạng xã hội.
  • ✓Khi bạn muốn AI dùng một mô hình ngôn ngữ khác rẻ hơn.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/blockrun/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/blockrun/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“BlockRun, tạo một hình ảnh phi hành gia mèo.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI kiểm tra xem nó có cần công cụ bên ngoài không. Nếu có, nó dùng “ví” của mình để thanh toán cho dịch vụ (như tạo hình ảnh hoặc lấy dữ liệu) và đưa kết quả cho bạn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

BlockRun

BlockRun works with Claude Code and Google Antigravity.

You can't generate images. You have no real-time X/Twitter access. BlockRun gives you these capabilities.

Philosophy

You have a wallet. When you need a capability you lack, you pay for it autonomously.

You Need You Call Pricing
Image generation DALL-E $0.04/image
Real-time X data Grok + Live Search $0.025/source
Second opinion GPT-5.2 $1.75/M input, $14/M output
Cheaper processing DeepSeek $0.14/M input, $0.28/M output

How it works: BlockRun uses x402 micropayments to route your requests to OpenAI, xAI, Google, and other providers. No API keys needed - your wallet pays per token.

Budget Control (Optional)

If the user specifies a budget (e.g., "use at most $1"), track spending and stop when budget is reached:

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()
budget = 1.0  # User's budget

# Before each call, check if within budget
spending = client.get_spending()
if spending['total_usd'] >= budget:
    print(f"Budget reached: ${spending['total_usd']:.4f} spent")
    # Stop making calls
else:
    response = client.chat("openai/gpt-5.2", "Hello!")

# At the end, report spending
spending = client.get_spending()
print(f"💰 Total spent: ${spending['total_usd']:.4f} across {spending['calls']} calls")

When to Use

Trigger Your Action
User explicitly requests ("blockrun second opinion with GPT on...", "use grok to check...", "generate image with dall-e") Execute via BlockRun
User needs something you can't do (images, live X data) Suggest BlockRun, wait for confirmation
You can handle the task fine Do it yourself, don't mention BlockRun

Example User Prompts

Users will say things like:

User Says What You Do
"blockrun generate an image of a sunset" Call DALL-E via ImageClient
"use grok to check what's trending on X" Call Grok with search=True
"blockrun GPT review this code" Call GPT-5.2 via LLMClient
"what's the latest news about AI agents?" Suggest Grok (you lack real-time data)
"generate a logo for my startup" Suggest DALL-E (you can't generate images)
"blockrun check my balance" Show wallet balance via get_balance()
"blockrun deepseek summarize this file" Call DeepSeek for cost savings

Wallet & Balance

Use setup_agent_wallet() to auto-create a wallet and get a client. This shows the QR code and welcome message on first use.

Initialize client (always start with this):

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()  # Auto-creates wallet, shows QR if new

Check balance (when user asks "show balance", "check wallet", etc.):

balance = client.get_balance()  # On-chain USDC balance
print(f"Balance: ${balance:.2f} USDC")
print(f"Wallet: {client.get_wallet_address()}")

Show QR code for funding:

from blockrun_llm import generate_wallet_qr_ascii, get_wallet_address

# ASCII QR for terminal display
print(generate_wallet_qr_ascii(get_wallet_address()))

SDK Usage

Prerequisite: Install the SDK with pip install blockrun-llm

Basic Chat

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()  # Auto-creates wallet if needed
response = client.chat("openai/gpt-5.2", "What is 2+2?")
print(response)

# Check spending
spending = client.get_spending()
print(f"Spent ${spending['total_usd']:.4f}")

Real-time X/Twitter Search (xAI Live Search)

IMPORTANT: For real-time X/Twitter data, you MUST enable Live Search with search=True or search_parameters.

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()

# Simple: Enable live search with search=True
response = client.chat(
    "xai/grok-3",
    "What are the latest posts from @blockrunai on X?",
    search=True  # Enables real-time X/Twitter search
)
print(response)

Advanced X Search with Filters

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()

response = client.chat(
    "xai/grok-3",
    "Analyze @blockrunai's recent content and engagement",
    search_parameters={
        "mode": "on",
        "sources": [
            {
                "type": "x",
                "included_x_handles": ["blockrunai"],

…
Câu hỏi thường gặp

AI có thể tạo bất kỳ hình ảnh nào không?

Có, nó có thể dùng các công cụ như DALL-E để tạo hình ảnh dựa trên mô tả của bạn.

AI làm sao biết mình sẽ chi bao nhiêu?

Bạn có thể đặt giới hạn chi tiêu. AI theo dõi mức sử dụng và sẽ dừng nếu đạt đến giới hạn.

Tôi có cần thiết lập gì để dùng BlockRun không?

Không, AI tự xử lý việc đó. Nó dùng một ví tự động để thanh toán cho dịch vụ khi cần.

Chi tiết

Mô tả gốc của tác giả

BlockRun works with Claude Code and Google Antigravity.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#6257
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự