agentsclimarketplace

Xrpl go

Skill Peersyst/xrplskills/skills/xrpl-go

Agent Skills for building on the XRP Ledger with AI agents: xrpl.js, XLS standards, xrpl-go, and XRPL EVM.

Install
npx -y skills add Peersyst/xrplskills --skill xrpl-go

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Apply opinionated rules and security patterns to Go code that uses the Peersyst/xrpl-go client library to interact with the XRP Ledger. Use when users want to write a new XRPL integration in Go, review or refactor existing xrpl-go code, sign or submit a transaction, construct or credit a payment, subscribe to ledger or transaction streams, work with issued currencies, AMM, NFToken, escrow, or payment channels, query account or ledger state, or audit an xrpl-go integration for security issues like partial-payment inflation, missing LastLedgerSequence, missing DestinationTag, or unsafe key management.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

9.4 KB, as published. Nobody here has run it

xrpl-go

Each rule under rules/ is self-contained: a short prose summary of the failure mode and the idiomatic fix, with links to the relevant package source under Peersyst/xrpl-go and a runnable example under examples/. Use the index below to jump to the rule that fits the task.

This skill is not an API reference. For exhaustive type signatures, see pkg.go.dev/github.com/Peersyst/xrpl-go. For XLS protocol specs, use the companion xrpl-standards skill — when work touches AMM, MPT, NFToken, Credentials, Batch, etc., load both skills.

Read first: Security

These four rules are non-negotiable. Funds have been lost over every one of them.

  • security-partial-paymentalways credit meta.DeliveredAmount, never the transaction Amount on incoming payments. Partial-payment inflation is the canonical XRPL exchange exploit.
  • security-validate-meta — a preliminary tesSUCCESS from SubmitTxBlob does not mean the tx was applied. Wait for Validated == true on the TxResponse.
  • security-lastledgersequence — never skip client.Autofill(&flatTx) before signing. Autofill is what sets LastLedgerSequence, Sequence, Fee, and NetworkID.
  • security-validate-destination-tag — check the destination's LsfRequireDestTag flag before sending; xrpl-go does not.

What to read when

Map the user's task to the rules to consult before writing code.

User's task or phraseRead these rules
"Credit an incoming payment", "watch for payments", "deposit handler"security-partial-payment, security-validate-meta, ws-lifecycle
"Sign and submit", "send a transaction", "send XRP"tx-autofill-and-sign, tx-submitandwait, security-lastledgersequence, tx-handle-tec-codes
"Set up an exchange deposit address", "custodial account"security-validate-destination-tag, wallet
"Generate a wallet", "key management"wallet
"Connect to rippled", "websocket", "subscribe to a stream"client, ws-lifecycle
"Balance math", "convert XRP / drops", "IOU value"amounts
"Retry a failed tx", "tec error"tx-handle-tec-codes, tx-idempotent-retry, tx-submitandwait
"List trust lines / NFTs / offers", "account_lines", "account_objects"read-pagination-marker
"Audit our xrpl-go integration"Read all security-* rules first, then amounts, wallet, and ws-lifecycle.

Full rule index

Impact tags below match each rule file's frontmatter (CRITICAL, HIGH, MEDIUM).

Security

Amounts & numbers

  • amountsCRITICAL — Drops + currency.XrpToDrops for XRP, pkg/big-decimal for IOUs, never float64; respect the 15-digit IOU mantissa

Client & connection

  • clientHIGHrpc.Client for one-shots, websocket.Client for streams; share the client, don't construct per call
  • ws-lifecycleHIGH — Register handlers, Connect, Subscribe; on shutdown Disconnect. Never call Connect() inside a handler. Don't block in handlers.

Wallet & signing

  • walletCRITICALwallet.New(crypto.ED25519()) by default; never log Seed / PrivateKey; SetRegularKey for hot wallets

Transactions & submission

  • tx-autofill-and-signHIGHtx.Flatten()client.Autofill(&flatTx)wallet.Sign(flatTx)client.SubmitTxBlobAndWait(blob, false)
  • tx-submitandwaitHIGH — Prefer SubmitTxBlobAndWait / SubmitTxAndWait over SubmitTxBlob / SubmitTx
  • tx-handle-tec-codesHIGH — Branch on meta.TransactionResult: tec* is applied-but-failed (fee burned, sequence consumed)
  • tx-idempotent-retryHIGH — Reuse Sequence or a TicketSequence on retry; do not blindly re-Autofill
  • read-pagination-markerMEDIUM — Loop on Marker for paginated Get* requests

How to use a rule file

Once you have picked a rule from the table above, read its file:

Read <skill-dir>/rules/<rule-name>.md

<skill-dir> resolves to wherever the skill is installed — ~/.claude/skills/xrpl-go/ for a user-level Claude Code install, .claude/skills/xrpl-go/ for a project-level install, /mnt/skills/user/xrpl-go/ on claude.ai, or a plugin-managed path. Don't hard-code the directory; rely on the path the host resolves.

Each rule file contains:

  • Frontmattertitle, impact (CRITICAL / HIGH / MEDIUM), tags, and where applicable xrpl_go_source, upstream_docs, example. Fields with no good link are omitted; treat any of these as optional metadata.
  • Why it matters — one or two sentences explaining the failure mode.
  • The fix — a prose summary of the idiomatic Go pattern, naming the exact xrpl-go types and helpers involved.
  • Notes — edge cases, related amendments, version caveats.
  • See also — explicit links back to the relevant xrpl-go package source and a runnable example under examples/.

Runnable examples

The rules in this skill explain what to do and why. When you need a runnable, end-to-end example — how to actually construct, sign, and submit a transaction — go to the xrpl-go examples directory. They are maintained alongside the library and stay current with the API. Prefer them over inventing example code.

TaskExample
Send XRP (RPC + WS variants)send-xrp, send-payment
Partial paymentpartial-payment
Subscribe to ledger / transaction streamssubscription
Multi-signingmultisigning
Use Tickets for parallel submissionuse-tickets
Regular key / disable masterset-regular-key
Account / ledger queriesqueries, ledger
Batch transactionsbatch
Issued currency / clawbacktoken-issuance, clawback
NFTsnft
MPTmptoken
Faucetfaucet

Companion skill: xrpl-standards

If the task touches a specific XLS amendment (AMM, MPT, NFToken, Credentials, Batch, DID, Clawback, Permissioned DEX, etc.), load the xrpl-standards skill alongside this one. That skill holds the raw spec text — field definitions, transaction formats, ledger objects, failure conditions — that this skill deliberately does not duplicate.

Authoritative external resources

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.