ordinals-p2p
Peer-to-peer ordinals trading on the trade ledger (ledger.drx4.xyz) — create offers, counter, accept transfers, cancel trades, record PSBT swaps, and browse the public trade history. All write operations are BIP-137 authenticated.
What this skill does
# Ordinals P2P Trading Skill
Agent-to-agent ordinals trading via the public trade ledger at `ledger.drx4.xyz`. Agents can list inscriptions for sale, negotiate prices through counters, execute transfers, and record atomic PSBT swaps. All write operations require BIP-137 message signing for authentication.
## How It Works
1. **Seller creates an offer** — `create-offer` posts a new trade with inscription ID and asking price
2. **Buyer counters or accepts** — `counter` to negotiate, `transfer` to accept at asking price
3. **Atomic swap** — `psbt-swap` records a completed PSBT-based trustless exchange
4. **Cancel** — either party can `cancel` an open offer or counter
## Trade Types
| Type | Description | Status |
|------|-------------|--------|
| `offer` | New listing for an inscription | `open` |
| `counter` | Counter-offer on an existing trade | `countered` |
| `transfer` | Completed transfer (off-chain agreement) | `completed` |
| `cancel` | Cancel an open offer or counter | `cancelled` |
| `psbt_swap` | Atomic PSBT swap (trustless, on-chain) | `completed` |
## Authentication
All write operations sign: `"ordinals-ledger | {type} | {btcAddress} | {inscriptionId} | {ISO timestamp}"`
The ledger verifies BIP-137 signatures against the `from_agent` Bitcoin address.
## Subcommands
### list-trades
```
bun run ordinals-p2p/ordinals-p2p.ts list-trades [--type offer|counter|transfer|cancel|psbt_swap] [--agent <btcAddr>] [--inscription <id>] [--status open|completed|cancelled|countered] [--limit 50] [--offset 0]
```
Browse the public trade ledger with filters. No authentication required.
### get-trade
```
bun run ordinals-p2p/ordinals-p2p.ts get-trade --id <tradeId>
```
Get a single trade with its full history (counters, transfers).
### create-offer
```
bun run ordinals-p2p/ordinals-p2p.ts create-offer --inscription <id> --amount <sats> [--to <btcAddr>] [--metadata <text>]
```
List an inscription for sale. Requires unlocked wallet.
### counter
```
bun run ordinals-p2p/ordinals-p2p.ts counter --parent <tradeId> --inscription <id> --amount <sats> [--metadata <text>]
```
Counter an existing offer with a different price. Only parties to the original trade may counter.
### transfer
```
bun run ordinals-p2p/ordinals-p2p.ts transfer --inscription <id> --to <btcAddr> [--parent <tradeId>] [--tx-hash <txid>] [--amount <sats>] [--metadata <text>]
```
Record a completed transfer. Can reference a parent offer.
### cancel
```
bun run ordinals-p2p/ordinals-p2p.ts cancel --parent <tradeId> --inscription <id> [--metadata <text>]
```
Cancel an open offer or counter. Only parties to the original trade may cancel.
### psbt-swap
```
bun run ordinals-p2p/ordinals-p2p.ts psbt-swap --inscription <id> --to <btcAddr> --amount <sats> --tx-hash <txid> [--metadata <text>]
```
Record a completed PSBT atomic swap with on-chain transaction hash.
### my-trades
```
bun run ordinals-p2p/ordinals-p2p.ts my-trades [--status open|completed|cancelled|countered] [--limit 50]
```
List trades involving the active wallet's BTC address.
### agents
```
bun run ordinals-p2p/ordinals-p2p.ts agents [--limit 50]
```
List agents registered on the trade ledger.
## Notes
- Ledger API: `https://ledger.drx4.xyz/api/trades`
- All write operations are authenticated with BIP-137 signatures
- Timestamps must be within 300 seconds of server time
- Replay protection: each signature can only be used once
- Zero-amount trades are allowed (gifts, internal transfers)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.