Skip to content

Commit a4b3207

Browse files
committed
feat: add Claude Code/Cowork plugin support and bump to v1.2.0
Add plugin.json manifest, update marketplace.json to standard schema, and rewrite CLAUDE.md with installation instructions for Claude Code and Cowork. Made-with: Cursor
1 parent 6d34b00 commit a4b3207

File tree

4 files changed

+74
-11
lines changed

4 files changed

+74
-11
lines changed

.claude-plugin/marketplace.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
},
77
"metadata": {
88
"description": "Agent skills for browsing and buying products on Bitrefill",
9-
"version": "1.1.0"
9+
"version": "1.2.0"
1010
},
1111
"plugins": [
1212
{
1313
"name": "bitrefill",
1414
"description": "Skills for buying gift cards, mobile top-ups, eSIMs, and more on Bitrefill",
15-
"source": "./",
16-
"skills": ["./skills/bitrefill-website", "./skills/bitrefill-cli"]
15+
"source": "./"
1716
}
1817
]
1918
}

.claude-plugin/plugin.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "bitrefill",
3+
"description": "Skills for buying gift cards, mobile top-ups, eSIMs, and more on Bitrefill",
4+
"version": "1.2.0",
5+
"author": {
6+
"name": "Bitrefill",
7+
"email": "support@bitrefill.com"
8+
},
9+
"homepage": "https://www.bitrefill.com",
10+
"repository": "https://github.com/bitrefill/agents",
11+
"keywords": ["gift-cards", "esim", "mobile-topup", "crypto", "bitcoin", "lightning"]
12+
}

CLAUDE.md

Lines changed: 59 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,55 @@ Instructions:
66
- Try abstracting instructions that can be applied to multiple cases
77
- Avoid creating new sections as much as possible. Try updating exisiting knowledge instead.
88

9-
This repository is a monorepo of agent skills for Bitrefill. Skills live in the `skills/` directory.
9+
This repository is a monorepo of agent skills for Bitrefill, packaged as a **Claude Code / Cowork plugin marketplace**. Skills live in the `skills/` directory and are distributed through the plugin system shared by Claude Code and Claude Cowork.
10+
11+
## Installing the Plugin
12+
13+
### Claude Code
14+
15+
Add the marketplace and install the plugin:
16+
17+
```shell
18+
/plugin marketplace add bitrefill/agents
19+
/plugin install bitrefill@bitrefill-skills
20+
```
21+
22+
### Claude Cowork
23+
24+
Cowork uses the same plugin system as Claude Code. Install through the Cowork plugin settings UI, or from a Cowork conversation:
25+
26+
1. Open **Settings > Plugins**
27+
2. Add the marketplace source `bitrefill/agents`
28+
3. Install the **bitrefill** plugin
29+
30+
Once installed, Claude gains two skills:
31+
- **bitrefill-website** — browse, search, and buy gift cards, mobile top-ups, and eSIMs on bitrefill.com
32+
- **bitrefill-cli** — autonomous agent commerce via the Bitrefill CLI and x402 payments
33+
34+
Skills activate automatically when Claude detects a relevant task.
35+
36+
### Local Testing
37+
38+
Load the plugin directly without installing from a marketplace:
39+
40+
```shell
41+
claude --plugin-dir ./
42+
```
1043

1144
## Repository Structure
1245

1346
```
47+
.claude-plugin/
48+
plugin.json # Plugin manifest (name, version, author)
49+
marketplace.json # Marketplace catalog listing the plugin
1450
skills/
1551
<skill-name>/
16-
SKILL.md # Required — frontmatter + agent instructions
17-
references/ # Optional — supporting docs, examples
18-
.claude-plugin/
19-
marketplace.json # Plugin manifest listing all skills
52+
SKILL.md # Required — frontmatter + agent instructions
53+
references/ # Optional — supporting docs, examples
2054
```
2155

56+
The marketplace (`marketplace.json`) lists plugins available for installation. The plugin manifest (`plugin.json`) defines the plugin's identity. Skills inside `skills/` are auto-discovered when the plugin loads.
57+
2258
## Adding a New Skill
2359

2460
1. Create a directory: `skills/<skill-name>/`
@@ -31,14 +67,30 @@ skills/
3167
```
3268
3. Write agent instructions in the Markdown body (step-by-step, under 500 lines)
3369
4. Optionally add `references/` with detailed documentation
34-
5. Register the skill in `.claude-plugin/marketplace.json` under the `plugins[0].skills` array
70+
5. Bump the `version` in both `plugin.json` and `marketplace.json`
3571

3672
## Naming Conventions
3773

3874
- Skill names: lowercase, hyphens only (e.g., `bitrefill-buy`, `bitrefill-esim`)
3975
- Directory name **must match** the `name` field in SKILL.md frontmatter
4076
- Prefix with `bitrefill-` for Bitrefill product skills
4177

78+
## Publishing Updates
79+
80+
After modifying skills, bump the `version` field in `.claude-plugin/plugin.json` (and optionally in `marketplace.json`). Users with auto-update enabled receive changes at next Claude Code startup; others run:
81+
82+
```shell
83+
/plugin marketplace update bitrefill-skills
84+
```
85+
86+
## Submitting to the Official Anthropic Directory
87+
88+
To make the plugin available in the official Claude plugin directory (visible in both Claude Code and Cowork), submit via one of:
89+
- **Console**: [platform.claude.com/plugins/submit](https://platform.claude.com/plugins/submit)
90+
- **Claude.ai**: [claude.ai/settings/plugins/submit](https://claude.ai/settings/plugins/submit)
91+
4292
## Specification
4393

44-
See the Agent Skills specification: https://agentskills.io/specification
94+
- Plugin format: [Claude Code plugins docs](https://docs.claude.com/en/docs/claude-code/plugins)
95+
- Marketplace format: [Plugin marketplaces docs](https://docs.claude.com/en/docs/claude-code/plugin-marketplaces)
96+
- Skill format: [Agent Skills specification](https://agentskills.io/specification)

skills/bitrefill-cli/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: bitrefill-cli
33
description: "Give agents real-world spending capabilities via the Bitrefill CLI (@bitrefill/cli). Agents can autonomously search, buy, and deliver gift cards, mobile top-ups, and eSIMs from 1,500+ brands — paying with x402 over Base (USDC) or store credits, no traditional payment methods or human checkout needed. Use when the user wants an agent to purchase something in the real world, spend crypto, or complete an x402 payment flow."
44
metadata:
55
author: bitrefill
6-
version: "1.1"
6+
version: "1.2"
77
---
88

99
# Bitrefill CLI — Real-World Spending for Agents

0 commit comments

Comments
 (0)