Skip to content
Back to skills

Solana Keypair

ASecurity

Configure and validate a Solana keypair for write operations (transfers, token management). Use this skill when the user runs /solana-keypair, asks to "set up keypair", "configure wallet", "add my keypair", or mentions keypair setup for signing transactions.

  • 7 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
securitybashtestingsecurity

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add widnyana/eyay-toolkits --skill solana-keypair --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Solana Keypair?

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

Security grade badge for Solana Keypair
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/widnyana-solana-keypair/badge)](https://www.skillsdirectory.com/skills/widnyana-solana-keypair)

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: solana-keypair
description: |
  Configure and validate a Solana keypair for write operations (transfers, token management).
  Use this skill when the user runs /solana-keypair, asks to "set up keypair", "configure wallet",
  "add my keypair", or mentions keypair setup for signing transactions.
argument-hint: "[action] (optional: show, set <path>, validate)"
allowed-tools: [Bash]
---

Configure the Solana keypair used for signing write operations.

Review: $ARGUMENTS

## Instructions

### show (default)

1. Read `SOLANA_KEYPAIR_PATH` from environment.
2. If set and file exists — show public address (never the private key).
3. If not set — show setup instructions:
   ```
   Option 1 (env var): export SOLANA_KEYPAIR_PATH=~/.config/solana/id.json
   Option 2 (command): /solana-keypair set /path/to/keypair.json
   ```

### set <path>

1. Validate the file exists and is readable.
2. If valid — extract public address, confirm success.
3. If invalid — show error with troubleshooting (check path, permissions, format).
4. Always remind: keypair files are sensitive. Never share or commit them.

### validate

1. Check file exists, is readable, and is valid Solana keypair format.
2. Show validation result with details (path, public address, permissions).

### Security rules

- Never display private keys — only public addresses.
- Warn users to `chmod 400` keypair files.
- Remind that keypair controls all funds in the associated wallet.
- Suggest dedicated wallets for testing, hardware wallets for large amounts.

### Keypair creation (if user has none)

Point user to:
- `solana-keygen new --outfile ~/.config/solana/id.json`
- Wallet apps: Solflare, Phantom, Magic Eden (export keypair to JSON)

### Related skills

- `/solana-accept-risk` — required before mainnet write operations
- `/solana-network` — choose which network to use

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.

Comments

Loading comments…

Newsletter

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