@pocketagent/paw-skills 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # PocketAgent Wallet (PAW) Skills
2
+
3
+ AI Agent Skills for PocketAgent Wallet - autonomous wallet for Solana.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npx skills add @pocketagent/paw-skills
9
+ ```
10
+
11
+ Or install from GitHub:
12
+
13
+ ```bash
14
+ npx skills add pocketagent/paw-skills
15
+ ```
16
+
17
+ ## What's Included
18
+
19
+ ### pocketagent-wallet
20
+
21
+ Complete skill for AI agents to interact with PocketAgent Wallet (PAW) on Solana.
22
+
23
+ **Capabilities:**
24
+ - Create and manage wallets programmatically
25
+ - Execute token swaps via Jupiter DEX
26
+ - Send SOL and SPL tokens
27
+ - Check balances and portfolio values
28
+ - View transaction history
29
+ - Configure network settings (devnet/mainnet)
30
+ - Autonomous trading and DeFi operations
31
+
32
+ **Use Cases:**
33
+ - High-frequency trading bots
34
+ - Meme coin trading and sniping
35
+ - Portfolio management
36
+ - Payment processing
37
+ - Arbitrage bots
38
+ - DCA strategies
39
+ - Market making
40
+
41
+ ## Requirements
42
+
43
+ - PocketAgent Wallet CLI installed: `npm install -g @pocketagent/paw`
44
+ - Solana CLI (optional, for devnet testing)
45
+
46
+ ## Quick Start
47
+
48
+ Once installed, AI agents can automatically use PAW commands when you mention:
49
+ - "create a wallet"
50
+ - "check my balance"
51
+ - "swap tokens"
52
+ - "send SOL"
53
+ - "trade on Solana"
54
+ - "Jupiter DEX"
55
+ - And more...
56
+
57
+ ## Documentation
58
+
59
+ Full documentation is available in the skill file at `skills/pocketagent-wallet/SKILL.md`
60
+
61
+ ## License
62
+
63
+ MIT
64
+
65
+ ## Links
66
+
67
+ - [PocketAgent Wallet](https://github.com/pocketagent/paw)
68
+ - [Skills Registry](https://skills.sh)
69
+ - [Report Issues](https://github.com/pocketagent/paw-skills/issues)
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@pocketagent/paw-skills",
3
+ "version": "1.0.3",
4
+ "description": "AI Agent Skills for PocketAgent Wallet (PAW) - wallet for Agentic AI on Solana",
5
+ "keywords": [
6
+ "ai",
7
+ "agent",
8
+ "skills",
9
+ "solana",
10
+ "wallet",
11
+ "crypto",
12
+ "blockchain",
13
+ "defi",
14
+ "trading",
15
+ "jupiter",
16
+ "dex",
17
+ "autonomous",
18
+ "pocketagent",
19
+ "paw"
20
+ ],
21
+ "author": "PocketAgent Team",
22
+ "license": "MIT",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/thejamesnick/paw-skills.git"
26
+ },
27
+ "files": [
28
+ "skills/**/*"
29
+ ]
30
+ }
@@ -0,0 +1,406 @@
1
+ ---
2
+ name: pocketagent-wallet
3
+ description: >-
4
+ Lightning-fast autonomous wallet for AI agents on Solana. Use for wallet creation,
5
+ crypto transactions, token swaps, DeFi trading, Jupiter DEX, meme coin trading,
6
+ Solana payments, autonomous trading bots, portfolio management, and agentic wallets.
7
+ license: MIT
8
+ metadata:
9
+ author: PocketAgent Team
10
+ version: "1.0.3"
11
+ category: wallet
12
+ ---
13
+
14
+ # 📟 PAW Skills for AI Agents
15
+
16
+ **PocketAgent Wallet (PAW)** - Lightning-fast autonomous wallet for AI agents on Solana
17
+
18
+ ## What is PAW?
19
+
20
+ PAW is a high-performance agentic wallet designed for AI agents to execute crypto operations at Telegram bot speed. Built with Helius RPC for maximum throughput.
21
+
22
+ Key capabilities:
23
+ - Create and manage wallets programmatically
24
+ - Sign transactions automatically (no human approval needed)
25
+ - Execute swaps in milliseconds via Jupiter DEX
26
+ - Hold SOL and any SPL token
27
+ - Real-time balance and transaction tracking
28
+
29
+ ## Quick Command Reference
30
+
31
+ ### Essential Commands
32
+
33
+ ```bash
34
+ # Create wallet (defaults to mainnet-beta for real trading)
35
+ paw init <agent-id>
36
+
37
+ # Or specify network:
38
+ # paw init <agent-id> --network devnet # For testing with free SOL
39
+ # paw init <agent-id> --network mainnet-beta # For real trading (default)
40
+
41
+ # Get address
42
+ paw address <agent-id>
43
+
44
+ # Check total portfolio (SOL + tokens in USD)
45
+ paw balance <agent-id>
46
+
47
+ # List all tokens
48
+ paw tokens <agent-id>
49
+
50
+ # Send SOL
51
+ paw send <agent-id> --to <address> --amount <sol-amount>
52
+
53
+ # Swap tokens (Jupiter DEX)
54
+ paw swap <agent-id> --from <token> --to <token> --amount <amount>
55
+
56
+ # View transaction history
57
+ paw history <agent-id>
58
+
59
+ # Configure wallet settings
60
+ paw config <agent-id> --network <devnet|mainnet-beta|testnet>
61
+ paw config <agent-id> --slippage <bps>
62
+ paw config <agent-id> --priority-fee <lamports>
63
+ paw config <agent-id> --show
64
+ ```
65
+
66
+ ## AI Agent Workflow Examples
67
+
68
+ ### Example 1: Check Balance Before Action
69
+
70
+ ```bash
71
+ # Get balance
72
+ paw balance trading-bot-001
73
+
74
+ # Output shows total portfolio:
75
+ # 💰 Total Portfolio:
76
+ # ~1.649990 SOL
77
+ # ~138.68 USD
78
+ ```
79
+
80
+ ### Example 2: Fast Token Swap
81
+
82
+ ```bash
83
+ # Swap 0.1 SOL to USDC on mainnet
84
+ paw swap trading-bot-001 --from SOL --to USDC --amount 0.1 --network mainnet-beta
85
+
86
+ # Executes in <2 seconds using Jupiter aggregator
87
+ ```
88
+
89
+ ### Example 3: Send Payment
90
+
91
+ ```bash
92
+ # Send 0.5 SOL to another agent
93
+ paw send agent-alice --to DJcVfT6dienfSbudJzZ82WN4EkVPgVaT18oBK971Yi2c --amount 0.5
94
+
95
+ # Or send to another agent by ID (if you know their address)
96
+ paw send agent-alice --to <address> --amount 0.5
97
+ ```
98
+
99
+ ### Example 4: Monitor Transactions
100
+
101
+ ```bash
102
+ # Check last 10 transactions
103
+ paw history trading-bot-001 --limit 10
104
+
105
+ # Shows table with:
106
+ # - Transaction signature
107
+ # - Type (send/receive)
108
+ # - Amount
109
+ # - Status (success/failed)
110
+ # - Timestamp
111
+ ```
112
+
113
+ ### Example 5: Multi-Agent Setup
114
+
115
+ ```bash
116
+ # Create multiple agents
117
+ paw init agent-alice
118
+ paw init agent-bob
119
+ paw init trading-bot-001
120
+
121
+ # Each agent has independent wallet and config
122
+ # Stored in ~/.paw/agents/<agent-id>/
123
+ ```
124
+
125
+ ## Decision-Making Script for AI Agents
126
+
127
+ ```bash
128
+ #!/bin/bash
129
+ # Autonomous trading agent
130
+
131
+ AGENT="trading-bot-001"
132
+
133
+ # 1. Check portfolio
134
+ BALANCE=$(paw balance $AGENT)
135
+
136
+ # 2. Get transaction history
137
+ HISTORY=$(paw history $AGENT --limit 5)
138
+
139
+ # 3. Make decision based on balance
140
+ # If balance > 1 SOL, swap some to USDC
141
+ paw swap $AGENT --from SOL --to USDC --amount 0.5
142
+
143
+ # 4. Verify transaction
144
+ paw history $AGENT --limit 1
145
+ ```
146
+
147
+ ## Performance Features
148
+
149
+ ### Lightning Fast Execution
150
+ - **Helius RPC**: Premium RPC endpoints for mainnet and devnet
151
+ - **Connection Pooling**: Reuses connections for speed
152
+ - **Jupiter DEX**: Best price aggregation across all Solana DEXs
153
+ - **Real-time Prices**: Live SOL price from CoinGecko
154
+
155
+ ### Speed Comparison
156
+ - Balance check: ~200ms
157
+ - Token swap: ~1-2 seconds
158
+ - Send transaction: ~500ms
159
+ - History fetch: ~300ms
160
+
161
+ Similar to Telegram trading bots - fast enough for real-time trading!
162
+
163
+ ## Network Configuration
164
+
165
+ ```bash
166
+ # Set network (persists in config)
167
+ paw config <agent-id> --network mainnet-beta
168
+
169
+ # Set default slippage for all swaps (in basis points)
170
+ paw config <agent-id> --slippage 1000 # 10% for meme coins
171
+
172
+ # Set default priority fee for faster execution
173
+ paw config <agent-id> --priority-fee 100000 # 100k lamports
174
+
175
+ # Set multiple settings at once
176
+ paw config <agent-id> --network mainnet-beta --slippage 1000 --priority-fee 100000
177
+
178
+ # View current configuration
179
+ paw config <agent-id> --show
180
+
181
+ # Networks:
182
+ # - devnet: Free testing (use faucet for SOL)
183
+ # - mainnet-beta: Real money, production
184
+ # - testnet: Testing network
185
+
186
+ # Override config for single command
187
+ paw balance <agent-id> --network mainnet-beta
188
+ paw swap <agent-id> --from SOL --to USDC --amount 0.1 --slippage 500
189
+ ```
190
+
191
+ ## Common Token Addresses
192
+
193
+ ```bash
194
+ # Mainnet tokens
195
+ SOL: Native token (use "SOL")
196
+ USDC: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
197
+ USDT: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
198
+ BONK: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
199
+
200
+ # Use token symbol or mint address
201
+ paw swap bot-1 --from SOL --to USDC --amount 0.1
202
+ ```
203
+
204
+ ## Security Model
205
+
206
+ ### Double Encryption (Safe Inside a Safe)
207
+ 1. **Layer 1**: Wallet keypair encrypted with AES-256-GCM + passphrase
208
+ 2. **Layer 2**: Passphrase encrypted with machine-specific key
209
+
210
+ ### Machine-Specific Key
211
+ Generated from:
212
+ - Hostname + Username + OS + Architecture + Home directory
213
+ - Wallet files are useless if stolen (only work on your machine)
214
+
215
+ ### Memory Safety
216
+ - Keypairs loaded only when needed
217
+ - Cleared from memory immediately after use
218
+ - No plaintext secrets on disk
219
+
220
+ ## Getting Started on Devnet (Testing)
221
+
222
+ ```bash
223
+ # 1. Create wallet on devnet for testing
224
+ paw init my-first-agent --network devnet
225
+
226
+ # 2. Get address
227
+ ADDRESS=$(paw address my-first-agent | grep "Address:" | awk '{print $2}')
228
+
229
+ # 3. Get free devnet SOL
230
+ solana airdrop 2 $ADDRESS --url devnet
231
+
232
+ # 4. Check balance
233
+ paw balance my-first-agent
234
+
235
+ # 5. Test send
236
+ paw send my-first-agent --to <another-address> --amount 0.1
237
+
238
+ # 6. Check history
239
+ paw history my-first-agent
240
+ ```
241
+
242
+ ## Use Cases for AI Agents
243
+
244
+ 1. **High-Frequency Trading Bot**: Execute trades based on price signals
245
+ 2. **Meme Coin Trading**: Snipe launches, scalp pumps, automated take-profit
246
+ 3. **Portfolio Manager**: Rebalance assets automatically
247
+ 4. **Payment Processor**: Handle recurring payments
248
+ 5. **Arbitrage Bot**: Cross-DEX arbitrage opportunities
249
+ 6. **Yield Optimizer**: Move funds to highest yield protocols
250
+ 7. **Market Maker**: Provide liquidity and earn fees
251
+ 8. **DCA Bot**: Dollar-cost averaging strategy
252
+
253
+ ## Meme Trading Capabilities
254
+
255
+ PAW is built for fast, autonomous meme coin trading:
256
+
257
+ ### Quick Meme Trading Commands
258
+
259
+ ```bash
260
+ # Buy meme coin with custom slippage
261
+ paw swap bot --from SOL --to <MEME_MINT> --amount 0.5 --slippage 1000
262
+
263
+ # Sell meme coin fast with priority fee
264
+ paw swap bot --from <MEME_MINT> --to SOL --amount 1000000 --slippage 1000 --priority-fee 100000
265
+
266
+ # Trade popular meme coins by symbol
267
+ paw swap bot --from SOL --to BONK --amount 0.5 --slippage 500
268
+ ```
269
+
270
+ ### Slippage Settings for Meme Coins
271
+
272
+ ```bash
273
+ --slippage 50 # 0.5% - Stable tokens
274
+ --slippage 100 # 1% - Normal trading
275
+ --slippage 500 # 5% - Meme coins (volatile)
276
+ --slippage 1000 # 10% - High volatility / low liquidity
277
+ --slippage 5000 # 50% - New launches / extreme volatility
278
+ ```
279
+
280
+ ### Priority Fees for Speed
281
+
282
+ ```bash
283
+ --priority-fee 10000 # Normal speed
284
+ --priority-fee 50000 # Fast
285
+ --priority-fee 100000 # Very fast (meme launches)
286
+ --priority-fee 500000 # Ultra fast (competitive sniping)
287
+ ```
288
+
289
+ ### Example: Sniper Bot
290
+
291
+ ```bash
292
+ #!/bin/bash
293
+ # Snipe new token launch
294
+
295
+ AGENT="sniper-bot"
296
+ TARGET="<NEW_MEME_MINT>"
297
+
298
+ # Fast execution with high priority
299
+ paw swap $AGENT \
300
+ --from SOL \
301
+ --to $TARGET \
302
+ --amount 0.5 \
303
+ --slippage 2000 \
304
+ --priority-fee 500000
305
+
306
+ # Verify purchase
307
+ paw tokens $AGENT | grep $TARGET
308
+ ```
309
+
310
+ ### Example: Take Profit Bot
311
+
312
+ ```bash
313
+ #!/bin/bash
314
+ # Sell when target hit
315
+
316
+ AGENT="profit-bot"
317
+ MEME="<MEME_MINT>"
318
+
319
+ # Sell 50% of holdings
320
+ paw swap $AGENT \
321
+ --from $MEME \
322
+ --to SOL \
323
+ --amount 500000 \
324
+ --slippage 1000 \
325
+ --priority-fee 100000
326
+ ```
327
+
328
+ ### Popular Meme Coins
329
+
330
+ ```bash
331
+ BONK: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
332
+ WIF: EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm
333
+ POPCAT: 7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr
334
+
335
+ # Use symbol or mint address
336
+ paw swap bot --from SOL --to BONK --amount 0.5
337
+ ```
338
+
339
+ ### Why PAW is Fast for Meme Trading
340
+
341
+ - **Helius RPC**: Premium endpoints for fastest execution
342
+ - **Jupiter DEX**: Aggregates ALL Solana DEXs for best prices
343
+ - **Auto Priority Fees**: Transactions land faster during congestion
344
+ - **<2 Second Swaps**: Fast enough to snipe launches and catch pumps
345
+ - **No Human Approval**: Fully autonomous execution
346
+
347
+ For detailed meme trading strategies, see: `docs/MEME_TRADING_GUIDE.md`
348
+
349
+ ## Command Output Format
350
+
351
+ All commands output clean, parseable text:
352
+
353
+ ```bash
354
+ # Balance output
355
+ 📟 PAW - Balance
356
+ Agent ID: trading-bot-001
357
+ Address: HWd4qkpz5r7c9zSFSUGy2MkkvwuvFd3tqiMkCLiMyb4D
358
+ Network: devnet
359
+
360
+ 💰 Total Portfolio:
361
+ ~1.649990 SOL
362
+ ~138.68 USD
363
+
364
+ # Easy to parse with grep/awk for automation
365
+ ```
366
+
367
+ ## Error Handling
368
+
369
+ PAW provides clear error messages:
370
+
371
+ ```bash
372
+ # Insufficient balance
373
+ ❌ Error: Insufficient balance. Required: 1.5 SOL, Available: 0.5 SOL
374
+
375
+ # Invalid address
376
+ ❌ Error: Invalid recipient address
377
+
378
+ # Network issues
379
+ ❌ Error: Failed to connect to Solana network
380
+ ```
381
+
382
+ ## Tips for AI Agents
383
+
384
+ 1. **Always check balance before transactions**
385
+ 2. **Use --network flag to override config when needed**
386
+ 3. **Monitor transaction history to verify operations**
387
+ 4. **Start on devnet for testing, move to mainnet when ready**
388
+ 5. **Use tokens command to see all assets**
389
+ 6. **Set network in config to avoid repeating --network flag**
390
+
391
+ ## File Locations
392
+
393
+ ```bash
394
+ # Wallet data
395
+ ~/.paw/agents/<agent-id>/wallet.enc
396
+ ~/.paw/agents/<agent-id>/passphrase.enc
397
+ ~/.paw/agents/<agent-id>/config.json
398
+
399
+ # All encrypted except config.json
400
+ ```
401
+
402
+ ---
403
+
404
+ **Built for speed, security, and autonomy** 📟
405
+
406
+ For issues or questions: https://github.com/pocketagent/paw