Co-Pilot
Updated 24 days ago

phantom-connect-skill

TTh3Ya0vi
0.0k
th3ya0vi/phantom-connect-skill
80
Agent Score

💡 Summary

A skill for integrating Phantom wallet functionalities into applications using various SDKs.

🎯 Target Audience

Web developers using ReactMobile developers using React NativeBlockchain developers working with SolanaE-commerce site ownersNFT project creators

🤖 AI Roast:Powerful, but the setup might scare off the impatient.

Security AnalysisMedium Risk

Risk: Medium. Review: shell/CLI command execution; outbound network access (SSRF, data egress); API keys/tokens handling and storage; filesystem read/write scope and path traversal. Run with least privilege and audit before enabling in production.

Phantom Connect Skill for Claude Code

A Claude Code skill for building wallet-connected applications with Phantom Connect SDKs.

Overview

This skill provides Claude Code with deep knowledge of the Phantom Connect SDK ecosystem:

  • React SDK: @phantom/react-sdk for React web apps
  • React Native SDK: @phantom/react-native-sdk for Expo/React Native mobile
  • Browser SDK: @phantom/browser-sdk for vanilla JS/TS
  • Solana: Full Solana blockchain support
  • Auth Methods: Social login (Google, Apple), browser extension, mobile deeplinks

Installation

Quick Install (Personal)

git clone https://github.com/phantom/connect-skill.git cp -r connect-skill/skill ~/.claude/skills/phantom-connect

Quick Install (Project)

cp -r connect-skill/skill .claude/skills/phantom-connect

Using the Install Script

# Install to personal directory (default) ./install.sh # Install to project directory ./install.sh --project # Install to custom location ./install.sh --path /custom/path/skills/phantom-connect

Skill Structure

skill/
├── SKILL.md              # Main skill definition (required)
├── react-sdk.md          # React SDK reference
├── react-native-sdk.md   # React Native SDK reference
├── browser-sdk.md        # Browser SDK reference
├── transactions.md       # Solana transaction patterns
├── token-gating.md       # Token-gated access patterns
├── nft-minting.md        # NFT mint page patterns
└── payments.md           # Crypto payment flows

Usage

Once installed, Claude Code will automatically use this skill when you ask about:

  • Phantom wallet integration
  • Connecting wallets in React/React Native/vanilla JS
  • Signing messages or transactions
  • Token-gated access
  • NFT minting experiences
  • Crypto payment flows
  • Solana wallet support

Example Prompts

"Create a Next.js app with Phantom wallet connection"
"Build a token-gated page that requires 100 BONK to access"
"Make an NFT mint page with quantity selector and status handling"
"Add crypto checkout to my e-commerce site"
"Help me send a Solana transaction with the React SDK"
"Convert this to use the Browser SDK instead of React"

SDK Choices

| Layer | Package | Use Case | |-------|---------|----------| | React Web | @phantom/react-sdk | Next.js, Vite, CRA | | React Native | @phantom/react-native-sdk | Expo, bare RN | | Vanilla JS | @phantom/browser-sdk | Vue, Angular, vanilla | | Solana | @solana/web3.js | Transactions, balances |

Prerequisites

All Phantom Connect integrations require:

  1. Phantom Portal Account - phantom.com/portal
  2. App ID - Get from Portal → App → Set Up
  3. Allowlisted URLs - Add domains and redirect URLs in Portal

Progressive Disclosure

The skill uses Claude Code's progressive disclosure pattern. The main SKILL.md provides core guidance, and Claude reads specialized markdown files only when needed for specific tasks.

Related Resources

Contributing

Contributions welcome! Please ensure updates reflect current SDK best practices.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT License - see LICENSE for details.

5-Dim Analysis
Clarity8/10
Novelty8/10
Utility9/10
Completeness8/10
Maintainability7/10
Pros & Cons

Pros

  • Supports multiple SDKs for various platforms.
  • Facilitates wallet integration for blockchain applications.
  • Includes comprehensive usage examples.

Cons

  • Requires a Phantom Portal account for setup.
  • May have a learning curve for new developers.
  • Limited to Phantom wallet functionalities.

Related Skills

pytorch

S
toolCode Lib
92/ 100

“It's the Swiss Army knife of deep learning, but good luck figuring out which of the 47 installation methods is the one that won't break your system.”

agno

S
toolCode Lib
90/ 100

“It promises to be the Kubernetes for agents, but let's see if developers have the patience to learn yet another orchestration layer.”

nuxt-skills

S
toolCo-Pilot
90/ 100

“It's essentially a well-organized cheat sheet that turns your AI assistant into a Nuxt framework parrot.”

Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.

Copyright belongs to the original author Th3Ya0vi.