B2a Agents logo

B2a Agents

Organization
daydreamsai
b2a-agents

Builds agents that serve other AI agents (B2A). Use when designing x402 agents for agent-to-agent data sales, evaluating if a data niche is suitable for agents, or when asked to "build something agents would pay for".

Overview

Publisherdaydreamsai
Repositoryskills-market
Skill nameb2a-agents
Stars
31
Forks
16
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by daydreamsai on GitHub. Read the source before you install it.

Installation

Install the B2a Agents AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/daydreamsai/skills-market/tree/main/plugins/b2a-agents/skills
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/daydreamsai/skills-market.git /tmp/skills-market
mkdir -p .claude/skills
cp -r /tmp/skills-market/plugins/b2a-agents/skills .claude/skills/b2a-agents
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable B2a Agents in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads B2a Agents on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so B2a Agents is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

B2A Agents: Building for Agent Consumers

Build x402 agents that other AI agents need and will pay for.

Why B2A Wins

Consumer (B2C)Agent (B2A)
Friction to pay micropaymentsProgrammatic, zero friction
Irregular usage patternsConsistent, predictable calls
High churnSticky once integrated
Needs UI/UXNeeds clean JSON
One user = one userOne agent = many end users

Core insight: Build data infrastructure, not consumer apps.

B2A Evaluation Gate

Before building, answer YES to ALL:

  1. Would another AI agent pay $0.001+ for this? (not "would a human think this is cool")
  2. Is the data unique, aggregated, or hard to get?
  3. Does it solve a recurring need? (called repeatedly, not once)
  4. Can it be called programmatically without human context?

If any answer is NO → find a different niche.

High-Value B2A Categories

CategoryWhat Agents NeedExample Endpoints
Price AggregationNormalized multi-source pricesGET /prices/crypto/{symbol}, GET /prices/forex/{pair}
Entity ResolutionCompany/person/domain contextGET /entity/company/{domain}, GET /entity/person/{handle}
News & EventsFiltered real-time feedsGET /news/breaking?topic=X, GET /events/earnings
Social SignalsTrending/sentiment dataGET /social/trending, GET /social/sentiment/{topic}
GeocodingLocation intelligenceGET /geo/lookup?address=X, GET /geo/timezone/{coords}
Content AnalysisPre-computed classificationGET /analyze/toxicity, GET /analyze/language
Rate-Limit CachingWrapped scarce APIsAny limited free API with caching layer
Cross-PlatformIdentity correlationGET /identity/resolve?handle=X

Design Principles

1. Optimize for Programmatic Access

typescript
// ✅ Good: Clean, typed, predictable
addEntrypoint({
  key: 'lookup',
  input: z.object({ 
    symbol: z.string(),
    exchanges: z.array(z.string()).optional()
  }),
  handler: async (ctx) => {
    return { output: { symbol, prices, timestamp } };
  }
});

// ❌ Bad: Human-oriented, vague
addEntrypoint({
  key: 'search',
  input: z.object({ query: z.string() }), // Too vague
  handler: async (ctx) => {
    return { output: { message: "Here's what I found..." } }; // Prose, not data
  }
});

2. Return Structured Data, Not Prose

typescript
// ✅ Good: Structured, parseable
return {
  output: {
    entity: "Apple Inc",
    domain: "apple.com",
    type: "public_company",
    ticker: "AAPL",
    employees: 164000,
    founded: 1976
  }
};

// ❌ Bad: Natural language
return {
  output: {
    description: "Apple Inc is a technology company founded in 1976..."
  }
};

3. Include Metadata Agents Need

typescript
return {
  output: {
    data: results,
    // Metadata agents use for decisions:
    fetchedAt: new Date().toISOString(),
    source: "coingecko+binance",
    cacheAge: 30, // seconds
    nextUpdate: "2025-01-30T12:00:00Z"
  }
};

4. Price by Value, Not Compute

Endpoint TypeSuggested PriceRationale
Health/statusFREEDiscovery
Single lookup$0.001Basic utility
Filtered list$0.002More data
Multi-source aggregation$0.003-0.005Unique value
Premium analysis$0.005-0.01High compute or rare data

5. One Free Endpoint (Always)

typescript
// Every agent needs a free "try before buy" endpoint
addEntrypoint({
  key: 'overview',
  description: 'Free overview - see what data is available',
  price: { amount: 0 },
  handler: async () => {
    return {
      output: {
        available: ['lookup', 'search', 'aggregate', 'analyze'],
        dataSource: 'Multi-exchange aggregated',
        updateFrequency: '30 seconds',
        sampleData: await fetchSample()
      }
    };
  }
});

Anti-Patterns (Avoid)

PatternWhy It Fails
Consumer novelty (games, trivia)Agents don't play games
Single API wrapperNo unique value over calling directly
Static/mock dataAgents need live data
Human-oriented output"Here's what I found..."
One-time useNo recurring revenue
Vague inputsquery: string with no schema
Missing timestampsAgents can't assess freshness

B2A Agent Template

typescript
import { createAgent } from '@lucid-agents/core';
import { http } from '@lucid-agents/http';
import { createAgentApp } from '@lucid-agents/hono';
import { payments, paymentsFromEnv } from '@lucid-agents/payments';
import { z } from 'zod';

const agent = await createAgent({
  name: 'data-feed-agent',
  version: '1.0.0',
  description: 'Aggregated data feed for AI agents',
})
  .use(http())
  .use(payments({ config: paymentsFromEnv() }))
  .build();

const { app, addEntrypoint } = await createAgentApp(agent);

// Cache for rate-limit protection
const cache = new Map<string, { data: any; timestamp: number }>();
const CACHE_TTL = 30_000; // 30 seconds

async function fetchWithCache(key: string, fetcher: () => Promise<any>) {
  const cached = cache.get(key);
  if (cached && Date.now() - cached.timestamp < CACHE_TTL) {
    return { ...cached.data, fromCache: true };
  }
  const data = await fetcher();
  cache.set(key, { data, timestamp: Date.now() });
  return { ...data, fromCache: false };
}

// FREE: Discovery endpoint
addEntrypoint({
  key: 'overview',
  description: 'Free overview of available data',
  input: z.object({}),
  price: { amount: 0 },
  handler: async () => ({
    output: {
      endpoints: ['lookup', 'list', 'aggregate'],
      sources: ['source1', 'source2'],
      updateFrequency: '30s',
      fetchedAt: new Date().toISOString()
    }
  })
});

// PAID: Lookup
addEntrypoint({
  key: 'lookup',
  description: 'Look up specific item',
  input: z.object({ id: z.string() }),
  price: { amount: 1000 }, // $0.001
  handler: async (ctx) => {
    const result = await fetchWithCache(`lookup:${ctx.input.id}`, async () => {
      // Fetch from real API
      return fetch(`https://api.example.com/${ctx.input.id}`).then(r => r.json());
    });
    return { output: { ...result, fetchedAt: new Date().toISOString() } };
  }
});

// PAID: Aggregated multi-source
addEntrypoint({
  key: 'aggregate',
  description: 'Aggregated data from multiple sources',
  input: z.object({ 
    ids: z.array(z.string()).max(10),
    sources: z.array(z.string()).optional()
  }),
  price: { amount: 3000 }, // $0.003
  handler: async (ctx) => {
    const results = await Promise.all(
      ctx.input.ids.map(id => fetchWithCache(`agg:${id}`, () => 
        aggregateFromSources(id, ctx.input.sources)
      ))
    );
    return { 
      output: { 
        items: results,
        count: results.length,
        fetchedAt: new Date().toISOString()
      }
    };
  }
});

export default { port: Number(process.env.PORT ?? 3000), fetch: app.fetch };

Validation Checklist

Before deploying a B2A agent:

  • All endpoints return structured JSON (no prose)
  • Timestamps included (fetchedAt, cacheAge)
  • Data sources documented
  • One free endpoint exists
  • Prices reflect value, not just compute
  • Inputs are strongly typed (not just query: string)
  • Rate limiting / caching implemented
  • Tested with real API calls

Frequently asked questions

What does the B2a Agents AI skill do?

Builds agents that serve other AI agents (B2A). Use when designing x402 agents for agent-to-agent data sales, evaluating if a data niche is suitable for agents, or when asked to "build something agents would pay for".

Why use B2a Agents on TypingMind?

Because you install it once and use it with any model. B2a Agents is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install B2a Agents in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/daydreamsai/skills-market/tree/main/plugins/b2a-agents/skills. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use B2a Agents?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with B2a Agents?

As many as you like. As long as a model supports skills, you can use B2a Agents with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the B2a Agents AI skill free?

It is published on GitHub by daydreamsai. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇