Skill: openclawlaurent/fiberagent (version 1.0.1)

# FiberAgent Skill for OpenClaw **Find products with cryptocurrency cashback across 50,000+ merchants.** ## What This Skill Does FiberAgent connects your OpenClaw agent to a shopping intelligence layer powered by the Wildfire affiliate network on Monad blockchain. When a user asks about shopping deals, cashback, or product prices, this skill: 1. **Searches 50,000+ merchants** for the product they want 2. **Finds cashback rates** (crypto rewards, not fiat) 3. **Calculates effective price** (price - cashback) 4. **Returns the best deal** with affiliate link that earns crypto ## When to Use It Use FiberAgent when users ask: - "I want to buy a Dyson Airwrap, what's the best deal?" - "Find me a laptop with cashback" - "What's the cheapest place to get Nike shoes + rewards?" - "I want cashback in crypto when I shop" - "Are there any AI shopping agents that help with deals?" ## How It Works (Under the Hood) The skill calls the FiberAgent API: ``` GET https://fiberagent.shop/api/agent/search?keywords=PRODUCT&agent_id=YOUR_AGENT_ID&size=10 ``` Returns product matches with: - Price at each retailer - Cashback rate (%) - Crypto cashback amount - Affiliate tracking link (tracked to agent wallet on Monad ERC-8004) ## How to Use In Your Code ```javascript // Fetch products with cashback const response = await fetch( 'https://fiberagent.shop/api/agent/search?keywords=dyson+airwrap&agent_id=your_agent&size=5' ); const { results } = await response.json(); // results[0] = { // title: "Dyson Airwrap i.d. Multi-Styler", // price: 499.99, // cashback: { rate: "15%", amount: 75.00 }, // affiliateUrl: "https://wild.link/e?...", // shop: { name: "Macy's", domain: "macys.com" } // } ``` ## Example: Complete Shopping Query **User:** "I need a new laptop with crypto cashback" **Agent Logic:** 1. Recognize shopping/cashback intent 2. Call FiberAgent skill with keywords="laptop crypto cashback" 3. Get results: Dell at Best Buy ($899, 1.5% back = $13.49), Lenovo at Amazon ($799, 4% back = $31.96) 4. Present to user: "I found a Lenovo at Amazon for $799 with 4% crypto cashback ($31.96 back). Here's the tracked link: [affiliate URL]" ## Registration & Earnings - **Register your agent** at `POST https://fiberagent.shop/api/agent/register` with your wallet address - **Cashback auto-converts to tokens** on Monad blockchain (your wallet, your crypto) - **ERC-8004 reputation** — each purchase builds your agent's on-chain reputation score ## Full API Reference **Search Products** ``` GET /api/agent/search?keywords=QUERY&agent_id=YOUR_AGENT_ID&size=10 ``` **Get Agent Stats** ``` GET /api/agent/[id]/stats ``` **Natural Language Task** ``` POST /api/agent/task Body: { "intent": "find laptop deals", "context": "user has $1000 budget", "agent_id": "..." } ``` ## MCP Support (Claude Desktop, Cline, etc.) FiberAgent also exposes a Model Context Protocol server at: ``` https://fiberagent.shop/api/mcp ``` Claude and other MCP clients can connect directly to search products and compare cashback. ## Links - **Website:** https://fiberagent.shop - **API Docs:** https://fiberagent.shop/api/docs - **OpenAPI Spec:** https://fiberagent.shop/server/openapi.json - **Agent Card:** https://fiberagent.shop/.well-known/agent-card.json - **ERC-8004 Profile:** https://www.8004scan.io/agents/monad/135 - **Demo:** https://fiberagent.shop/compare ## Notes - All cashback is tracked via Wildfire affiliate network - Crypto rewards paid to agent's Monad wallet - Works with any ERC-compatible wallet address - Real-time pricing from 50,000+ merchants - No signup required — just register with wallet address

path: index.js
content: /**
 * FiberAgent Skill for OpenClaw
 * Provides product search with crypto cashback across 50,000+ merchants
 */

module.exports = {
  name: 'fiberagent',
  version: '1.0.0',
  description: 'Find products with cryptocurrency cashback via Fiber affiliate network on Monad',
  
  // Tool definitions for OpenClaw agent
  tools: {
    search_products: {
      description: 'Search for products with cashback rates across merchants',
      params: {
        keywords: { type: 'string', description: 'Product to search for (e.g., "dyson airwrap")' },
        agent_id: { type: 'string', description: 'Your agent ID (wallet address or agent name)' },
        size: { type: 'number', description: 'Number of results (default 10)' }
      },
      fn: async (keywords, agent_id, size = 10) => {
        const url = `https://fiberagent.shop/api/agent/search?keywords=${encodeURIComponent(keywords)}&agent_id=${agent_id}&size=${size}`;
        const res = await fetch(url);
        return res.json();
      }
    },
    
    get_agent_stats: {
      description: 'Get your agent earnings and stats from FiberAgent',
      params: {
        agent_id: { type: 'string', description: 'Your agent ID' }
      },
      fn: async (agent_id) => {
        const url = `https://fiberagent.shop/api/agent/${agent_id}/stats`;
        const res = await fetch(url);
        return res.json();
      }
    },
    
    register_agent: {
      description: 'Register a new agent with FiberAgent to start earning cashback',
      params: {
        agent_id: { type: 'string', description: 'Name for your agent' },
        wallet_address: { type: 'string', description: 'Your Monad wallet address (0x...)' },
        crypto_preference: { type: 'string', description: 'Crypto token preference (default: MON)' }
      },
      fn: async (agent_id, wallet_address, crypto_preference = 'MON') => {
        const url = 'https://fiberagent.shop/api/agent/register';
        const res = await fetch(url, {
          method: 'POST',
          headers: { 'Content-Type': 'application/json' },
          body: JSON.stringify({
            agent_name: agent_id,
            wallet_address: wallet_address,
            crypto_preference: crypto_preference
          })
        });
        return res.json();
      }
    }
  }
};


path: README.md
content: # FiberAgent OpenClaw Skill

A shopping intelligence skill for OpenClaw agents. Find products with cryptocurrency cashback across 50,000+ merchants on the Monad blockchain.

## Installation

### Option 1: Local (Instant)
```bash
mkdir -p ~/.openclaw/workspace/skills
cp -r fiberagent ~/.openclaw/workspace/skills/
openclaw restart  # or restart OpenClaw gateway
```

### Option 2: npm (Soon)
```bash
npm install @fiberagent/openclaw-skill
```

### Option 3: ClawHub (TBD)
Visit https://clawhub.com to discover and install directly from OpenClaw UI.

## Quick Start

Once installed, your agent automatically gains access to shopping with cashback:

```
User: "Find me a Dyson Airwrap with cashback"

Agent: "I'll search for that using FiberAgent..."
[Calls search_products tool]

Agent: "Found it! Dyson Airwrap i.d. at Macy's:
- Price: $499.99
- Cashback: 15% ($75.00)
- Effective cost: $424.99
- Your crypto wallet gets +$75 MON

Here's the tracked link: [affiliate URL]"
```

## Features

✅ **50,000+ merchants** — Nike, Dyson, Sephora, Amazon, Best Buy, Lenovo, Ray-Ban, and more
✅ **Real-time cashback rates** — Powered by Wildfire affiliate network
✅ **Crypto rewards** — Cashback paid in tokens on Monad blockchain
✅ **On-chain reputation** — ERC-8004 agent score increases with each purchase
✅ **MCP compatible** — Works with Claude, Cline, and other MCP-enabled agents
✅ **Agent-to-agent** — Agents can earn money from referring to other agents

## Tools

### `search_products(keywords, agent_id, [size])`
Search for products with cashback rates.

```javascript
const results = await agent.tools.search_products(
  "dyson airwrap",
  "my_agent",
  10
);
// Returns: { results: [{ title, price, cashback, shop, affiliateUrl }, ...] }
```

### `register_agent(agent_id, wallet_address, [crypto])`
Register your agent to start earning crypto.

```javascript
const registration = await agent.tools.register_agent(
  "my_shopping_bot",
  "0x123456...",
  "MON"  // or USDC, USDT, ETH
);
// Returns: { agent_id, token, wallet_address, total_earnings }
```

### `get_agent_stats(agent_id)`
View your earnings and activity.

```javascript
const stats = await agent.tools.get_agent_stats("my_agent");
// Returns: { total_searches, total_earnings, conversions, api_calls_made }
```

## Configuration

Add your agent ID and wallet to OpenClaw config:

```yaml
# ~/.openclaw/openclaw.json
{
  "skills": {
    "fiberagent": {
      "enabled": true,
      "agentId": "my_agent",
      "wallet": "0x123456..."
    }
  }
}
```

## How It Works

1. **Agent gets question:** "Find me a laptop with cashback"
2. **Skill detects intent** — shopping + cashback
3. **Calls FiberAgent API** — searches 50,000+ merchants
4. **Gets results** — products with real-time cashback rates
5. **Returns to user** — best deal + tracked affiliate link
6. **Earns crypto** — when user buys via link, agent wallet receives cashback tokens on Monad

## Earnings

When a user buys through your agent's affiliate link:
- **15% cashback** if using Macy's, DySON, etc.
- **7% cashback** if using Ray-Ban, Sephora
- **Up to 40%** at certain merchants (see live rates)

Your agent's wallet on Monad automatically receives the crypto rewards. You can withdraw, stake, or trade them anytime.

## Links

- **Website:** https://fiberagent.shop
- **API Docs:** https://fiberagent.shop/api/docs
- **Agent Card:** https://fiberagent.shop/.well-known/agent-card.json
- **MCP Server:** https://fiberagent.shop/api/mcp
- **On-chain Profile:** https://www.8004scan.io/agents/monad/135
- **Live Demo:** https://fiberagent.shop/compare

## Support

- **GitHub Issues:** https://github.com/openclawlaurent/fiberagent-openclaw-skill/issues
- **Discord:** Join the OpenClaw Discord
- **Email:** [REDACTED_SECRET]

## License

MIT © 2026 FiberAgent


path: package.json
content: {
  "name": "fiberagent",
  "version": "1.0.1",
  "description": "OpenClaw skill for FiberAgent — find products with crypto cashback across 50,000+ merchants on Monad",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "openclaw",
    "skill",
    "shopping",
    "cashback",
    "crypto",
    "monad",
    "affiliate",
    "erc-8004",
    "agent-commerce"
  ],
  "author": "Laurent Salou <[REDACTED_SECRET]>",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/openclawlaurent/fiberagent-openclaw-skill"
  },
  "homepage": "https://fiberagent.shop",
  "bugs": {
    "url": "https://github.com/openclawlaurent/fiberagent-openclaw-skill/issues"
  }
}


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: suspicious | SkillSpector: suspicious (CRITICAL)