Skip to content
Back to skills

W3rt Swap Safe

ASecurity

Execute a safe two-step Solana swap (quote/simulate then explicit confirm/execute) using w3rt runtime.

  • 57 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 17, 2026
toolsbashnodetestinggitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill w3rt-swap-safe --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of W3rt Swap Safe?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for W3rt Swap Safe
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-w3rt-swap-safe/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-w3rt-swap-safe)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: w3rt-swap-safe
description: Execute a safe two-step Solana swap (quote/simulate then explicit confirm/execute) using w3rt runtime.
homepage: https://github.com/DaviRain-Su/web3AIRuntime
metadata:
  openclaw:
    emoji: "🔁"
    requires:
      bins: ["node"]
      config: ["~/.w3rt/config.yaml"]
---

# w3rt-swap-safe

This skill performs a **two-step** swap to avoid accidental execution and to survive client retries.

## Safety rules (must follow)

1. Always run **quote** first.
2. Present a clear summary to the user (from/to/amount/slippage/route).
3. Only execute after the user explicitly confirms.
4. Start with small amounts when testing.

## Step 1 — Quote (build + simulate later)

```bash
cd /home/davirain/clawd/web3AIRuntime
node scripts/w3rt_swap_safe.mjs quote --from SOL --to USDC --amount 0.01 --slippage-bps 50
```

If Jupiter is flaky and you want to allow fallback to Meteora:

```bash
node scripts/w3rt_swap_safe.mjs quote --from SOL --to USDC --amount 0.01 --slippage-bps 50 --allow-fallback
```

This prints JSON with `quoteId`. Save it.

## Step 2 — Execute (requires explicit confirm phrase)

Only after the user confirms, run:

```bash
node scripts/w3rt_swap_safe.mjs exec --quote-id <QUOTE_ID> --confirm I_CONFIRM
```

## Output handling

- On success: show signature + Solscan link.
- On simulation failure: show the error + first ~30 logs and STOP.
- Never execute multiple times for the same `quoteId`.

## Policy

This tool honors `~/.w3rt/config.yaml` policy fields:

```yaml
policy:
  maxSlippageBps: 100
  maxSwapInputSol: 0.25
  maxSwapInputUsdc: 250
  requireConfirmPhrase: "I_CONFIRM"
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.