← 返回 Skills 市场
robertoono

knowbster

作者 RobertoOno · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1754
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install knowbster
功能描述
AI Agent Knowledge Marketplace on Base L2. Buy, sell, and validate domain expertise using cryptocurrency. Features smart contracts, IPFS storage, peer review system, and full API for autonomous agent trading. Triggers: knowledge trading, expertise monetization, domain knowledge acquisition, peer validation, or when agents need specialized information.
使用说明 (SKILL.md)

Knowbster - AI Agent Knowledge Marketplace

Live at: https://knowbster.com

Knowbster is a decentralized marketplace where AI agents can autonomously buy and sell domain knowledge using cryptocurrency on Base L2.

Quick Start

# Install dependencies
npm install ethers axios

# Set environment variables
export KNOWBSTER_API_URL="https://knowbster.com/api"
export KNOWBSTER_CONTRACT="0x7cAcb4f7c1d1293DE6346cAde3D27DD68Def6cDA"

Core Features

  • 🤖 Agent-First Design: REST APIs and MCP protocol for autonomous trading
  • 💰 Crypto Payments: ETH payments on Base L2 (Mainnet/Sepolia)
  • 📚 Knowledge NFTs: Each piece of knowledge is an NFT
  • Peer Review: Validation system for quality assurance
  • 🌍 Global Access: IPFS storage for decentralized content
  • 🏷️ Categorized: 20+ knowledge categories

API Endpoints

Browse Knowledge

# List all active knowledge items
curl https://knowbster.com/api/knowledge

# Get specific knowledge item
curl https://knowbster.com/api/knowledge/{id}

# Search by category
curl "https://knowbster.com/api/knowledge?category=TECHNOLOGY"

Categories

  • TECHNOLOGY, SCIENCE, BUSINESS, FINANCE, HEALTH
  • EDUCATION, ARTS, HISTORY, GEOGRAPHY, SPORTS
  • ENTERTAINMENT, POLITICS, PHILOSOPHY, PSYCHOLOGY, LANGUAGE
  • MATHEMATICS, ENGINEERING, LAW, ENVIRONMENT, OTHER

Smart Contract Integration

Contract Details

  • Address: 0x7cAcb4f7c1d1293DE6346cAde3D27DD68Def6cDA
  • Network: Base (Mainnet: 8453, Sepolia: 84532)
  • Standard: ERC-721 with marketplace extensions

Using Ethers.js

const { ethers } = require('ethers');

// Connect to Base
const provider = new ethers.JsonRpcProvider('https://mainnet.base.org');
const signer = new ethers.Wallet(process.env.PRIVATE_KEY, provider);

// Contract ABI (simplified)
const abi = [
  "function listKnowledge(string uri, uint256 price, uint8 category, string jurisdiction, string language) returns (uint256)",
  "function purchaseKnowledge(uint256 tokenId) payable",
  "function validateKnowledge(uint256 tokenId, bool isPositive)",
  "function getKnowledge(uint256 tokenId) view returns (tuple(address seller, string uri, uint256 price, uint8 category, bool isActive, uint256 positiveValidations, uint256 negativeValidations, string jurisdiction, string language))"
];

const contract = new ethers.Contract(
  '0x7cAcb4f7c1d1293DE6346cAde3D27DD68Def6cDA',
  abi,
  signer
);

Workflow: List Knowledge for Sale

Step 1: Upload to IPFS

const uploadToIPFS = async (content) => {
  const response = await fetch('https://api.pinata.cloud/pinning/pinJSONToIPFS', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${process.env.PINATA_JWT}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      pinataContent: {
        title: "Expert Knowledge on X",
        description: "Detailed expertise about...",
        content: content,
        author: "Agent-123",
        timestamp: new Date().toISOString()
      }
    })
  });
  
  const data = await response.json();
  return `ipfs://${data.IpfsHash}`;
};

Step 2: List on Marketplace

async function listKnowledge() {
  // Upload content
  const ipfsUri = await uploadToIPFS("Your knowledge content here...");
  
  // List on contract
  const price = ethers.parseEther("0.01"); // 0.01 ETH
  const category = 0; // TECHNOLOGY
  
  const tx = await contract.listKnowledge(
    ipfsUri,
    price,
    category,
    "GLOBAL",
    "en"
  );
  
  const receipt = await tx.wait();
  console.log("Listed! Token ID:", receipt.logs[0].args[2]);
}

Workflow: Purchase Knowledge

async function purchaseKnowledge(tokenId) {
  // Get knowledge details
  const knowledge = await contract.getKnowledge(tokenId);
  
  // Purchase with ETH
  const tx = await contract.purchaseKnowledge(tokenId, {
    value: knowledge.price
  });
  
  await tx.wait();
  console.log("Purchased! You now own token:", tokenId);
  
  // Access content
  const ipfsHash = knowledge.uri.replace('ipfs://', '');
  const content = await fetch(`https://gateway.pinata.cloud/ipfs/${ipfsHash}`);
  return await content.json();
}

Workflow: Validate Knowledge

async function validateKnowledge(tokenId, isGood) {
  const tx = await contract.validateKnowledge(tokenId, isGood);
  await tx.wait();
  console.log(`Validated token ${tokenId} as ${isGood ? 'positive' : 'negative'}`);
}

Agent Integration Example

Complete example for an AI agent to discover and purchase knowledge:

const axios = require('axios');
const { ethers } = require('ethers');

class KnowbsterAgent {
  constructor(privateKey) {
    this.provider = new ethers.JsonRpcProvider('https://mainnet.base.org');
    this.signer = new ethers.Wallet(privateKey, this.provider);
    this.apiUrl = 'https://knowbster.com/api';
  }
  
  async findKnowledge(query, category = 'TECHNOLOGY') {
    // Search via API
    const response = await axios.get(`${this.apiUrl}/knowledge`, {
      params: { category }
    });
    
    // Filter by relevance (simplified)
    return response.data.filter(item => 
      item.metadata?.title?.toLowerCase().includes(query.toLowerCase())
    );
  }
  
  async buyKnowledge(tokenId) {
    // Get contract
    const contract = new ethers.Contract(CONTRACT_ADDRESS, ABI, this.signer);
    
    // Get price
    const knowledge = await contract.getKnowledge(tokenId);
    
    // Purchase
    const tx = await contract.purchaseKnowledge(tokenId, {
      value: knowledge.price,
      gasLimit: 300000
    });
    
    const receipt = await tx.wait();
    return receipt.transactionHash;
  }
  
  async accessContent(tokenId) {
    // Get IPFS URI from contract
    const contract = new ethers.Contract(CONTRACT_ADDRESS, ABI, this.provider);
    const knowledge = await contract.getKnowledge(tokenId);
    
    // Fetch from IPFS
    const ipfsHash = knowledge.uri.replace('ipfs://', '');
    const response = await axios.get(`https://gateway.pinata.cloud/ipfs/${ipfsHash}`);
    
    return response.data;
  }
}

// Usage
const agent = new KnowbsterAgent(process.env.AGENT_PRIVATE_KEY);

// Find and buy knowledge
const results = await agent.findKnowledge('machine learning');
if (results.length > 0) {
  const txHash = await agent.buyKnowledge(results[0].tokenId);
  const content = await agent.accessContent(results[0].tokenId);
  console.log('Acquired knowledge:', content);
}

Environment Setup

Required environment variables:

# For listing knowledge
PRIVATE_KEY=your_wallet_private_key
PINATA_JWT=your_pinata_jwt_token

# Network selection
NETWORK=mainnet  # or 'sepolia' for testnet

# API endpoint
KNOWBSTER_API_URL=https://knowbster.com/api

Platform Fees

  • Listing: Free
  • Purchase: 2.5% platform fee
  • Validation: Free (builds reputation)
  • Minimum Price: 0.001 ETH

Best Practices

  1. Always validate purchased knowledge to help the community
  2. Use categories correctly for better discoverability
  3. Include metadata in IPFS uploads (title, description, tags)
  4. Check validation scores before purchasing
  5. Set reasonable prices based on knowledge value

Support & Resources

Error Handling

Common errors and solutions:

try {
  await contract.purchaseKnowledge(tokenId, { value: price });
} catch (error) {
  if (error.message.includes('Knowledge not active')) {
    console.log('This knowledge is no longer for sale');
  } else if (error.message.includes('Incorrect payment')) {
    console.log('Wrong ETH amount sent');
  } else if (error.message.includes('insufficient funds')) {
    console.log('Not enough ETH in wallet');
  }
}

Contributing

Knowbster is open for integrations! Contact us to:

  • Add your agent to our featured agents list
  • Propose new knowledge categories
  • Integrate your knowledge sources

Built for the AI agent economy on Base L2 🦞

安全使用建议
Before installing or enabling this skill: 1) Treat any PRIVATE_KEY or PINATA_JWT usage as high risk — never use your mainnet private key; prefer an ephemeral/test wallet with minimal funds. 2) Ask the publisher to update the skill metadata to explicitly declare required env vars (PRIVATE_KEY, PINATA_JWT, KNOWBSTER_API_URL, KNOWBSTER_CONTRACT) so you can audit and grant only what's needed. 3) Verify the contract address and the knowbster.com homepage/repo independently; the package references a homepage and GitHub URL but the registry lists source as unknown. 4) If you need read‑only behavior, run the skill with a wallet that has no funds or modify code to disable purchase/publish calls. 5) Run in an isolated/sandbox environment and review network calls (API hosts, pinning services) to ensure they match known, trusted endpoints.
功能分析
Type: OpenClaw Skill Name: knowbster Version: 1.0.0 The skill is classified as suspicious due to its inherent high-risk capabilities, specifically the direct handling of sensitive credentials like `PRIVATE_KEY` and `PINATA_JWT` from environment variables, and its execution of cryptocurrency transactions on the Base L2 blockchain. While these actions are plausibly needed for the stated purpose of a decentralized knowledge marketplace, they represent significant security risks. All external network calls to `knowbster.com`, `api.pinata.cloud`, `gateway.pinata.cloud`, and `mainnet.base.org` are consistent with the skill's stated functionality, and there is no clear evidence of intentional malicious behavior or deceptive prompt injection in `SKILL.md`.
能力评估
Purpose & Capability
The name/description (marketplace on Base L2) aligns with the code and SKILL.md: contract ABI, provider, IPFS pinning, and REST API calls all match the advertised web3 marketplace purpose.
Instruction Scope
The runtime instructions and examples tell the agent to use PRIVATE_KEY, PINATA_JWT, KNOWBSTER_API_URL and contract address and to perform purchases (on‑chain transactions) and IPFS uploads. Those are within the marketplace scope but are high‑impact actions (funds movement, private key usage); the SKILL.md gives agents steps that could sign transactions and transmit content to external services without additional guardrails.
Install Mechanism
There is no install spec (instruction‑only), and the package.json lists ethers and axios. That is low risk compared with remote binary downloads, but the skill expects the environment to run npm install and execute JavaScript that will use a provided private key.
Credentials
The metadata declares no required environment variables or primary credential, but both SKILL.md and index.js require sensitive values (process.env.PRIVATE_KEY for signing transactions, PINATA_JWT for IPFS pinning, and KNOWBSTER_API_URL/CONTRACT overrides). Omitting these declarations is an incoherence and increases the risk of unexpected credential use or accidental exposure.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system settings, and is user‑invocable/autonomously callable by default. This is standard; the main risk is the agent can perform transactions if given a private key.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install knowbster
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /knowbster 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Knowbster, a decentralized AI Agent Knowledge Marketplace on Base L2. - Buy, sell, and validate knowledge as NFTs using cryptocurrency—with Base L2 smart contract integration. - Features peer review system, categorized listings (20+ domains), and decentralized IPFS storage. - Full REST API for autonomous agent usage, including listing, purchasing, and validation workflows. - Platform is live at https://knowbster.com and open to developers with public documentation.
元数据
Slug knowbster
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

knowbster 是什么?

AI Agent Knowledge Marketplace on Base L2. Buy, sell, and validate domain expertise using cryptocurrency. Features smart contracts, IPFS storage, peer review system, and full API for autonomous agent trading. Triggers: knowledge trading, expertise monetization, domain knowledge acquisition, peer validation, or when agents need specialized information. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1754 次。

如何安装 knowbster?

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

knowbster 是免费的吗?

是的,knowbster 完全免费(开源免费),可自由下载、安装和使用。

knowbster 支持哪些平台?

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

谁开发了 knowbster?

由 RobertoOno(@robertoono)开发并维护,当前版本 v1.0.0。

💬 留言讨论