Skip to content

KrystalDeFi/claude-code-skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Krystal Cloud API Skills for Claude Code

Claude Code skills for building applications with the Krystal Cloud API - a REST API for accessing DeFi pool and liquidity position data across multiple blockchain networks.

Installation

Option 1: Add the Marketplace (Recommended)

/plugin marketplace add KrystalDeFi/claude-code-skills
/plugin install build-with-krystal-cloud@KrystalDeFi/claude-code-skills

Option 2: Local Development

To add the marketplace locally (e.g., for testing or development), navigate to the parent directory of this repository:

cd /path/to/parent  # e.g., if repo is at ~/projects/claude-code-skills, be in ~/projects
/plugin marketplace add ./claude-code-skills

Available Plugins

build-with-krystal-cloud

Provides guidance for integrating with the Krystal Cloud API, including:

  • API authentication - Using KC-APIKey header
  • Credit system - Understanding API credit consumption
  • Pool endpoints - Fetching pool data, historical metrics, transactions, tick data
  • Position endpoints - Tracking LP positions, performance, transaction history
  • Balance endpoints - Getting wallet token balances
  • Strategy endpoints - Managing automated liquidity strategies
  • Code examples - TypeScript and Python examples

Trigger phrases:

  • "integrate with Krystal Cloud API"
  • "fetch DeFi pool data"
  • "get liquidity positions"
  • "query wallet balances"
  • "build with Krystal API"
  • "track LP positions"

API Overview

Base URL: https://cloud-api.krystal.app

Authentication: All endpoints (except chains/protocols) require the KC-APIKey header.

Supported Chains:

  • Ethereum (1)
  • BNB Smart Chain (56)
  • Polygon (137)
  • Arbitrum (42161)
  • Optimism (10)
  • Base (8453)
  • Ronin (2020)

Supported Protocols:

  • Uniswap V2, V3, V4
  • PancakeSwap V2, V3
  • Katana (Ronin)
  • And more

Quick Start

# Get supported chains (free)
curl https://cloud-api.krystal.app/v1/chains

# Get top pools on Ethereum
curl -H "KC-APIKey: YOUR_API_KEY" \
  "https://cloud-api.krystal.app/v1/pools?chainId=1&sortBy=1&limit=10"

# Get positions for a wallet
curl -H "KC-APIKey: YOUR_API_KEY" \
  "https://cloud-api.krystal.app/v1/positions?wallet=0x..."

Resources

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors