Co-Pilot / 辅助式
更新于 24 days ago

phantom-connect-skill

TTh3Ya0vi
0.0k
th3ya0vi/phantom-connect-skill
80
Agent 评分

💡 摘要

一个用于将 Phantom 钱包功能集成到应用程序中的技能,使用各种 SDK。

🎯 适合人群

使用 React 的 Web 开发者使用 React Native 的移动开发者从事 Solana 的区块链开发者电子商务网站所有者NFT 项目创建者

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析中风险

风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险;文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。

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.

五维分析
清晰度8/10
创新性8/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析

优点

  • 支持多种平台的多个 SDK。
  • 为区块链应用程序提供钱包集成。
  • 包含全面的使用示例。

缺点

  • 设置需要 Phantom Portal 账户。
  • 新开发者可能需要一定的学习曲线。
  • 仅限于 Phantom 钱包功能。

相关技能

pytorch

S
toolCode Lib / 代码库
92/ 100

“它是深度学习的瑞士军刀,但祝你好运能从47种安装方法里找到那个不会搞崩你系统的那一个。”

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

nuxt-skills

S
toolCo-Pilot / 辅助式
90/ 100

“这本质上是一份组织良好的小抄,能把你的 AI 助手变成一只 Nuxt 框架的复读机。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 Th3Ya0vi.