Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/connector-ui/public/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: polygon-agent-kit
name: Polygon Agent
description: "Complete Polygon agent toolkit for on-chain operations on Polygon. Use this skill whenever helping an agent set up a wallet, check balances, send or swap tokens, bridge assets, deposit to earn yield, register on-chain identity, submit or query reputation/feedback, or make x402 micropayments. Covers the full lifecycle: Sequence smart contract wallets, Trails DeFi actions, ERC-8004 identity + reputation, x402 payments. Single CLI entry point (`polygon-agent`), AES-256-GCM encrypted storage."
---

Expand Down Expand Up @@ -54,6 +54,8 @@ polygon-agent wallet create --usdc-limit 100 --native-limit 5
# → user approves in browser, browser shows a 6-digit code
# → enter the 6-digit code in the terminal when prompted
# → session saved to ~/.polygon-agent/wallets/main.json
# → notify the user and send them to https://agentconnect.polygon.technology/?rid=<rid>
# so they can fund their wallet with access to the session

# Step 3: Fund wallet
polygon-agent fund
Expand Down Expand Up @@ -182,12 +184,12 @@ $0.005 USDC per call.
```bash
# Profile + recent tweets
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/call/99063826-5171-47d1-8b96-56ab8a6e3ddb?user=<username>" \
--url "https://x402-api.onrender.com/api/twitter?user=<username>" \
--wallet main --method POST

# Specific tweet
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/call/99063826-5171-47d1-8b96-56ab8a6e3ddb?tweet=https://x.com/user/status/<id>" \
--url "https://x402-api.onrender.com/api/twitter?tweet=https://x.com/user/status/<id>" \
--wallet main --method POST
```
Returns: follower count, recent tweets, engagement metrics.
Expand Down
2 changes: 1 addition & 1 deletion packages/connector-ui/public/skills/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: polygon-agent-kit
name: Polygon Agent
description: "Complete Polygon agent toolkit for on-chain operations on Polygon. Use this skill whenever helping an agent set up a wallet, check balances, send or swap tokens, bridge assets, deposit to earn yield, register on-chain identity, submit or query reputation/feedback, or make x402 micropayments. Covers the full lifecycle: Sequence smart contract wallets, Trails DeFi actions, ERC-8004 identity + reputation, x402 payments. Single CLI entry point (`polygon-agent`), AES-256-GCM encrypted storage."
---

Expand Down
17 changes: 13 additions & 4 deletions packages/connector-ui/public/skills/polygon-discovery/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,29 @@ Pay-per-call APIs accessible via `x402-pay`. No API keys or subscriptions — ea

$0.005 USDC per call.

> **Note:** The catalog proxy (`/api/call/99063826-...`) returns 401 or HTML for this service.
> Use the direct endpoint below instead.

```bash
# Profile + recent tweets
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/call/99063826-5171-47d1-8b96-56ab8a6e3ddb?user=<username>" \
--wallet main --method GET
--url "https://x402-api.onrender.com/api/twitter?user=<username>" \
--wallet main --method POST

# Specific tweet
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/call/99063826-5171-47d1-8b96-56ab8a6e3ddb?tweet=https://x.com/user/status/<id>" \
--wallet main --method GET
--url "https://x402-api.onrender.com/api/twitter?tweet=https://x.com/user/status/<id>" \
--wallet main --method POST
```

Returns: follower count, recent tweets, engagement metrics.

**Troubleshooting:** If the direct endpoint fails, check the live catalog for the current URL:
```bash
curl -s "https://x402-api.onrender.com/api/catalog?status=online" \
| jq '.[] | select(.name | test("twitter"; "i"))'
```

---

## Generate an AI Image
Expand Down
2 changes: 1 addition & 1 deletion packages/polygon-agent-cli/skills/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: polygon-agent-cli
name: Polygon Agent
description: "Complete Polygon agent toolkit for on-chain operations on Polygon. Use this skill whenever helping an agent set up a wallet, check balances, send or swap tokens, bridge assets, deposit to earn yield, register on-chain identity, submit or query reputation/feedback, or make x402 micropayments. Covers the full lifecycle: Sequence smart contract wallets, Trails DeFi actions, ERC-8004 identity + reputation, x402 payments. Single CLI entry point (`polygon-agent`), AES-256-GCM encrypted storage."
---

Expand Down
17 changes: 13 additions & 4 deletions packages/polygon-agent-cli/skills/polygon-discovery/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,29 @@ Pay-per-call APIs accessible via `x402-pay`. No API keys or subscriptions — ea

$0.005 USDC per call.

> **Note:** The catalog proxy (`/api/call/99063826-...`) returns 401 or HTML for this service.
> Use the direct endpoint below instead.

```bash
# Profile + recent tweets
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/call/99063826-5171-47d1-8b96-56ab8a6e3ddb?user=<username>" \
--wallet main --method GET
--url "https://x402-api.onrender.com/api/twitter?user=<username>" \
--wallet main --method POST

# Specific tweet
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/call/99063826-5171-47d1-8b96-56ab8a6e3ddb?tweet=https://x.com/user/status/<id>" \
--wallet main --method GET
--url "https://x402-api.onrender.com/api/twitter?tweet=https://x.com/user/status/<id>" \
--wallet main --method POST
```

Returns: follower count, recent tweets, engagement metrics.

**Troubleshooting:** If the direct endpoint fails, check the live catalog for the current URL:
```bash
curl -s "https://x402-api.onrender.com/api/catalog?status=online" \
| jq '.[] | select(.name | test("twitter"; "i"))'
```

---

## Generate an AI Image
Expand Down
4 changes: 3 additions & 1 deletion skills/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: polygon-agent-kit
name: Polygon Agent
description: "Complete Polygon agent toolkit for on-chain operations on Polygon. Use this skill whenever helping an agent set up a wallet, check balances, send or swap tokens, bridge assets, deposit to earn yield, register on-chain identity, submit or query reputation/feedback, or make x402 micropayments. Covers the full lifecycle: Sequence smart contract wallets, Trails DeFi actions, ERC-8004 identity + reputation, x402 payments. Single CLI entry point (`polygon-agent`), AES-256-GCM encrypted storage."
---

Expand Down Expand Up @@ -54,6 +54,8 @@ polygon-agent wallet create --usdc-limit 100 --native-limit 5
# → user approves in browser, browser shows a 6-digit code
# → enter the 6-digit code in the terminal when prompted
# → session saved to ~/.polygon-agent/wallets/main.json
# → notify the user and send them to https://agentconnect.polygon.technology/?rid=<rid>
# so they can fund their wallet with access to the session

# Step 3: Fund wallet
polygon-agent fund
Expand Down
17 changes: 13 additions & 4 deletions skills/polygon-discovery/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,29 @@ Pay-per-call APIs accessible via `x402-pay`. No API keys or subscriptions — ea

$0.005 USDC per call.

> **Note:** The catalog proxy (`/api/call/99063826-...`) returns 401 or HTML for this service.
> Use the direct endpoint below instead.

```bash
# Profile + recent tweets
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/call/99063826-5171-47d1-8b96-56ab8a6e3ddb?user=<username>" \
--wallet main --method GET
--url "https://x402-api.onrender.com/api/twitter?user=<username>" \
--wallet main --method POST

# Specific tweet
polygon-agent x402-pay \
--url "https://x402-api.onrender.com/api/call/99063826-5171-47d1-8b96-56ab8a6e3ddb?tweet=https://x.com/user/status/<id>" \
--wallet main --method GET
--url "https://x402-api.onrender.com/api/twitter?tweet=https://x.com/user/status/<id>" \
--wallet main --method POST
```

Returns: follower count, recent tweets, engagement metrics.

**Troubleshooting:** If the direct endpoint fails, check the live catalog for the current URL:
```bash
curl -s "https://x402-api.onrender.com/api/catalog?status=online" \
| jq '.[] | select(.name | test("twitter"; "i"))'
```

---

## Generate an AI Image
Expand Down
Loading