← 返回 Skills 市场
san-npm

celo-composer

作者 San Clemente · GitHub ↗ · v1.0.2010 · MIT-0
cross-platform ✓ 安全检测通过
261
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install celo-composer
功能描述
Scaffold Celo dApps with Celo Composer. Use when starting new Celo projects, creating MiniPay apps, or setting up development environments.
使用说明 (SKILL.md)

Celo Composer

This skill covers using Celo Composer to scaffold Celo dApps with pre-configured templates.

When to Use

  • Starting a new Celo project
  • Creating a MiniPay Mini App
  • Setting up a Farcaster Miniapp
  • Need pre-configured Next.js + Web3 setup

Quick Start

Interactive Mode

npx @celo/celo-composer@latest create

Follow the prompts to select your options.

With Project Name

npx @celo/celo-composer@latest create my-celo-app

Non-Interactive (Flags)

npx @celo/celo-composer@latest create my-celo-app \
  --template basic \
  --wallet-provider rainbowkit \
  --contracts hardhat

Quick Start with Defaults

npx @celo/celo-composer@latest create my-celo-app --yes

Templates

Template Description Use Case
basic Standard Next.js 14+ dApp General web3 applications
minipay Mobile-first MiniPay app MiniPay Mini Apps
farcaster-miniapp Farcaster SDK + Frame Farcaster integrations
ai-chat Standalone chat application AI-powered dApps

Create MiniPay App

npx @celo/celo-composer@latest create -t minipay

Create Farcaster Miniapp

npx @celo/celo-composer@latest create -t farcaster-miniapp

Configuration Options

Wallet Providers

Provider Description
rainbowkit Popular wallet connection UI (default)
thirdweb thirdweb Connect SDK
none No wallet provider

Smart Contracts

Option Description
hardhat Hardhat development environment (default)
foundry Foundry development environment
none No smart contracts

Project Structure

my-celo-app/
├── apps/
│   ├── web/              # Next.js application
│   │   ├── app/          # App router pages
│   │   ├── components/   # React components
│   │   └── ...
│   └── contracts/        # Smart contracts (if selected)
│       ├── contracts/    # Solidity files
│       ├── scripts/      # Deployment scripts
│       └── test/         # Contract tests
├── packages/
│   ├── ui/               # Shared UI components
│   └── utils/            # Shared utilities
├── pnpm-workspace.yaml   # Workspace configuration
├── turbo.json            # Turborepo configuration
└── package.json

Running the Project

cd my-celo-app

# Install dependencies
pnpm install

# Start development server
pnpm dev

# Build for production
pnpm build

Tech Stack

  • Framework: Next.js 14+ with App Router
  • Styling: Tailwind CSS
  • Components: shadcn/ui
  • Monorepo: Turborepo + PNPM workspaces
  • Language: TypeScript
  • Web3: viem + wagmi (or thirdweb)

Requirements

  • Node.js 18.0.0 or higher
  • PNPM (recommended) or npm/yarn

Working with Contracts

If you selected Hardhat or Foundry:

Hardhat

# Navigate to contracts
cd apps/contracts

# Compile
npx hardhat compile

# Test
npx hardhat test

# Deploy to Celo Sepolia
npx hardhat run scripts/deploy.ts --network celoSepolia

Foundry

# Navigate to contracts
cd apps/contracts

# Build
forge build

# Test
forge test

# Deploy to Celo Sepolia
forge script script/Deploy.s.sol --rpc-url https://forno.celo-sepolia.celo-testnet.org --broadcast

Environment Variables

Create .env.local in apps/web/:

# Required for wallet connection
NEXT_PUBLIC_WC_PROJECT_ID=your_walletconnect_project_id

# Optional: Alchemy API key
NEXT_PUBLIC_ALCHEMY_API_KEY=your_alchemy_key

Create .env in apps/contracts/:

PRIVATE_KEY=your_private_key
CELOSCAN_API_KEY=your_celoscan_api_key

Customization

Adding New Pages

Create files in apps/web/app/:

// apps/web/app/my-page/page.tsx
export default function MyPage() {
  return \x3Cdiv>My Custom Page\x3C/div>;
}

Adding Components

Add to apps/web/components/ or shared packages/ui/:

// apps/web/components/MyComponent.tsx
export function MyComponent() {
  return \x3Cdiv>My Component\x3C/div>;
}

Additional Resources

安全使用建议
This appears to be a straightforward scaffolding guide, but note: npx executes code fetched from the npm registry — inspect or pin the @celo/celo-composer package (check its repository, maintainer, and release) before running. Treat PRIVATE_KEY and other secrets as sensitive: never commit .env files to source control (add them to .gitignore), consider using a secret manager for deployments, and audit the generated project's dependencies and scripts before running build/deploy commands. If you want extra safety, create the project in an isolated environment (VM or container) and review the scaffolded files before installing or running any scripts.
功能分析
Type: OpenClaw Skill Name: celo-composer Version: 1.0.2010 The skill is a legitimate developer tool for scaffolding Celo blockchain applications using the official '@celo/celo-composer' package. The instructions in SKILL.md and references/templates.md guide the agent through standard project initialization, dependency installation, and contract deployment workflows without any signs of malicious intent, data exfiltration, or harmful prompt injection.
能力评估
Purpose & Capability
Name/description match the content: the SKILL.md documents how to scaffold Celo projects using npx @celo/celo-composer. The skill requests no credentials, binaries, or config paths beyond what a scaffolding guide would reasonably mention.
Instruction Scope
Instructions are limited to running npx create, running local build/test commands, and creating project-local .env files. The skill does not instruct the agent to read host system files, exfiltrate data, or call unexpected external endpoints beyond normal blockchain RPC endpoints and package registries used by the templates.
Install Mechanism
No install spec — instruction-only. The guide recommends using npx to fetch @celo/celo-composer from npm, which is expected for a scaffolding tool but carries the normal risk that npx executes code downloaded from the npm registry; users should prefer pinned versions or review package source before running.
Credentials
The skill itself requires no environment variables or credentials. The documentation advises creating project-local env vars (NEXT_PUBLIC_WC_PROJECT_ID, ALCHEMY key, PRIVATE_KEY, CELOSCAN_API_KEY) which are appropriate for dev/deploy workflows—these are for the generated project, not for the skill runtime.
Persistence & Privilege
The skill is not always-enabled and does not request persistent privileges or modify other skills or system settings. Autonomous invocation is allowed (platform default) but the skill content poses no additional privilege concerns.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install celo-composer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /celo-composer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2010
Initial publish
元数据
Slug celo-composer
版本 1.0.2010
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

celo-composer 是什么?

Scaffold Celo dApps with Celo Composer. Use when starting new Celo projects, creating MiniPay apps, or setting up development environments. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 261 次。

如何安装 celo-composer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install celo-composer」即可一键安装,无需额外配置。

celo-composer 是免费的吗?

是的,celo-composer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

celo-composer 支持哪些平台?

celo-composer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 celo-composer?

由 San Clemente(@san-npm)开发并维护,当前版本 v1.0.2010。

💬 留言讨论