Back to Skills

optimizing-staking-rewards

verified

Compare and optimize staking rewards across validators, protocols, and blockchains with risk assessment. Use when analyzing staking opportunities, comparing validators, calculating staking rewards, or optimizing PoS yields. Trigger with phrases like "optimize staking", "compare staking", "best staking APY", "liquid staking", "validator comparison", "staking rewards", or "ETH staking options".

View on GitHub

Marketplace

claude-code-plugins-plus

jeremylongshore/claude-code-plugins-plus-skills

Plugin

staking-rewards-optimizer

crypto

Repository

jeremylongshore/claude-code-plugins-plus-skills
1.1kstars

plugins/crypto/staking-rewards-optimizer/skills/optimizing-staking-rewards/SKILL.md

Last Verified

January 22, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/crypto/staking-rewards-optimizer/skills/optimizing-staking-rewards/SKILL.md -a claude-code --skill optimizing-staking-rewards

Installation paths:

Claude
.claude/skills/optimizing-staking-rewards/
Powered by add-skill CLI

Instructions

# Optimizing Staking Rewards

## Overview

This skill analyzes staking opportunities across multiple proof-of-stake blockchains and liquid staking protocols. It compares APY/APR, calculates net yields after fees, assesses protocol risks, and provides optimization recommendations for maximizing staking returns.

Key capabilities:
- Compare native and liquid staking options across chains
- Calculate true APY after protocol fees and gas costs
- Assess risk factors for each staking protocol
- Optimize portfolio allocation across staking opportunities
- Project returns over custom time horizons

## Prerequisites

Before using this skill, ensure you have:
- Python 3.8+ installed
- `requests` library for API calls (`pip install requests`)
- Network access to DeFiLlama APIs
- Basic understanding of staking concepts (APY, validators, unbonding)

Optional:
- CoinGecko API key for higher rate limits on price data

## Instructions

### Step 1: Compare Staking Opportunities

To compare staking options for a specific asset:

```bash
python {baseDir}/scripts/staking_optimizer.py --asset ETH
```

This fetches current rates from DeFiLlama and displays:
- Protocol name and type (native vs liquid)
- Gross APY (advertised rate)
- Net APY (after protocol fees)
- Risk score (1-10, where 10 is safest)
- TVL and lock-up period

### Step 2: Analyze with Position Size

For gas-adjusted yields based on your stake amount:

```bash
python {baseDir}/scripts/staking_optimizer.py --asset ETH --amount 10
```

Adding `--amount` calculates:
- Effective APY accounting for gas costs
- Projected returns (1M, 3M, 6M, 1Y)
- Gas cost as percentage of position

### Step 3: Optimize Existing Portfolio

Input current positions for optimization recommendations:

```bash
python {baseDir}/scripts/staking_optimizer.py --optimize \
  --positions "10 ETH @ lido 4.0%, 100 ATOM @ native 18%, 50 DOT @ native 14%"
```

The optimizer will:
- Calculate current total yield
- Suggest higher-yield alternatives
- Show projec

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
7835 chars