Command Palette

Search for a command to run...

Назад к скиллам
скилл № 82411

arweave-ao-cookbook

Build decentralized applications on AO - a permanent, decentralized compute platform using actor model for parallel processes with native message-passing and…

БесплатноБез исполняемых скриптов
diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Установить arweave-ao-cookbook в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

AO Cookbook Skill

Purpose

Master building decentralized applications on AO - a revolutionary decentralized compute system where countless parallel processes interact within a single, cohesive environment. AO combines permanent storage on Arweave with actor model architecture to create truly decentralized, permanently available compute.

What is AO?

AO is a decentralized compute system built on the AO-Core protocol that employs the actor model (inspired by Erlang), enabling independent process operation through native message-passing mechanisms. Each process is an independent server in the network, communicating through messages stored permanently on Arweave.

HyperBEAM is the current production network, delivering:

  • High-performance message processing
  • Instant HTTP access to process state
  • Trustless, permissionless infrastructure
  • Permanent availability

Key Differentiator: Unlike traditional blockchains or cloud platforms, AO provides "your personal server in the AO computer" - a genuinely decentralized alternative to traditional hosting with permanent message storage.

When to Use This Skill

✅ Perfect for:

  • Building decentralized applications requiring permanent storage
  • Creating smart contracts with complex state and interactions
  • Developing chatbots, games, and interactive applications on blockchain
  • Implementing token systems, voting mechanisms, and governance
  • Building systems that require trustless, permanent compute
  • Creating applications that benefit from parallel process execution
  • Developing Arweave-integrated applications

❌ Not ideal for:

  • Simple static websites (use traditional hosting)
  • Applications requiring real-time sub-millisecond latency
  • Systems that need to delete or modify historical data
  • Traditional centralized database applications
  • Projects without permanent storage requirements

Core Concepts

1. Processes

Independent servers in the decentralized AO network. Each process:

  • Has its own state and memory
  • Executes autonomously
  • Communicates via messages
  • Persists permanently on Arweave
  • Can spawn other processes

2. Messages

The core communication mechanism between processes:

  • Permanently stored on Arweave
  • Asynchronous by nature
  • Contain data and metadata
  • Trigger handler functions
  • Enable process interaction

3. Handlers

Event processors that respond to incoming messages:

  • Pattern-match on message properties
  • Execute logic based on message content
  • Update process state
  • Send responses to other processes
  • Enable reactive programming model

4. aos (AO Shell)

Interactive development environment:

  • Command-line interface for AO processes
  • Built-in Lua REPL
  • Supports modules and blueprints
  • Enables rapid prototyping
  • Provides process management tools

5. Permanence

Everything is permanent on Arweave:

  • Messages never disappear
  • Code is immutable once deployed
  • State history is preserved
  • Audit trails are built-in
  • No centralized control

Installation & Setup

Prerequisites

  • NodeJS: Version 20 or higher
  • Code Editor: Any editor (VS Code recommended)
  • Arweave Wallet (optional): For custom wallet authentication

Step 1: Install AOS

# Install AOS globally via npm
npm i -g https://get_ao.arweave.net

# Verify installation
aos --version

Step 2: Connect to HyperBEAM Network

# Option 1: Connect to HyperBEAM for optimal performance
aos --node https://forward.computer

# Option 2: Use default settings
aos

# Option 3: Specify custom wallet
aos --wallet ~/.arweave-wallet.json

# Auto-generated wallet location
# Default: ~/.aos.json (created automatically if not specified)

Step 3: Verify Connection

-- In aos shell, try basic commands:
print("Hello AO")
-- Output: Hello AO

-- Check your process ID
Name
-- Output: Your process name

Owner
-- Output: Your wallet address

-- View inbox
#Inbox
-- Output: Number of unhandled messages

Basic Usage Patterns

Pattern 1: Simple State Management

-- Initialize state variable
counter = 0

-- Create handler for increment messages
Handlers.add(
  "increment",
  Handlers.utils.hasMatchingTag("Action", "Increment"),
  function(msg)
    counter = counter + 1
    print("Counter incremented to: " .. counter)

    -- Send response
    Send({
      Target = msg.From,
      Data = tostring(counter)
    })
  end
)

-- Access state via HTTP
-- https://forward.computer/<process-id>[email protected]/compute/counter

Why this works: State persists permanently and is accessible via HTTP through HyperBEAM.

Pattern 2: Message Passing Between Processes

-- Send message to another process
Send({
  Target = "process-id-here",
  Action = "Chat-Message",
  Data = "Hello from my process!"
})

-- Handle incoming messages
Handlers.add(
  "chat",
  Handlers.utils.hasMatchingTag("Action", "Chat-Message"),
  function(msg)
    print("Received: " .. msg.Data)
    print("From: " .. msg.From)
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • metadata.json

FAQ

Что делает скилл arweave-ao-cookbook?

Build decentralized applications on AO - a permanent, decentralized compute platform using actor model for parallel processes with native message-passing and permanent storage on Arweave

Как установить скилл arweave-ao-cookbook?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл arweave-ao-cookbook запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить arweave-ao-cookbook с