File contents Percolator Skill
name: percolator
description: On-chain perpetuals risk engine with immutable deployment and 5 SOL insurance vault challenge
version: 1.0.0
category: defi
triggers:
percolator
risk engine
immutable market
5 sol challenge
hack percolator
extract funds
perpetual futures
slab architecture
liquidation
margin trading
funding rate
ewma
oracle manipulation
security audit
exploit
commands:
Risk Engine Commands
name: status
description: Display Percolator risk engine status
command: clawd percolator status
name: inspect
description: Inspect a specific position
params:
name: position
type: string
required: true
command: clawd percolator inspect --position {position}
name: mark
description: View EWMA mark price tracking
params:
name: token
type: string
default: SOL
command: clawd percolator mark --token {token}
name: insurance
description: Check insurance fund status
command: clawd percolator insurance
name: size
description: Calculate risk-adjusted position size
params:
name: signal
type: float
default: 0.7
name: confidence
type: float
default: 0.8
name: capital
type: uint64
default: 1000000000
command: clawd percolator size --signal {signal} --confidence {confidence} --capital {capital}
name: vault
description: Show ClawVault memory statistics
command: clawd percolator vault
Deployment Commands
name: deploy-immutable
description: Deploy an immutable Percolator market with 5 SOL insurance
command: |
Run from percolator-cli-master directory:
chmod +x scripts/deploy-immutable.sh
./scripts/deploy-immutable.sh
This will:
1. Generate market keypair
2. Create slab account (200KB)
3. Create vault token account
4. Initialize market
5. BURN admin keys
6. Fund insurance with 5 SOL
7. Verify immutability
name: verify-immutable
description: Verify market immutability
params:
name: slab
type: string
required: true
command: percolator verify-immutable --slab {slab}
Market Inspection Commands
name: slab-config
description: View market configuration
params:
name: slab
type: string
required: true
command: percolator slab-config --slab {slab}
name: slab-engine
description: View engine state
params:
name: slab
type: string
required: true
command: percolator slab-engine --slab {slab}
name: slab-params
description: View risk parameters
params:
name: slab
type: string
required: true
command: percolator slab-params --slab {slab}
name: slab-account
description: View specific account state
params:
name: slab
type: string
required: true
name: idx
type: integer
required: true
command: percolator slab-account --slab {slab} --idx {idx}
name: slab-accounts
description: List all market accounts
params:
name: slab
type: string
required: true
command: percolator slab-accounts --slab {slab}
name: best-price
description: Get best bid/ask prices
params:
name: slab
type: string
required: true
command: percolator best-price --slab {slab}
Keeper Commands
Security Commands
Challenge Commands
name: challenge
description: Display 5 SOL challenge information
command: |
echo "🦂 THE 5 SOL CHALLENGE"
echo "======================"
echo ""
echo "Objective: Extract 5 SOL from an immutable Percolator market"
echo ""
echo "Market Properties:"
echo " • Admin Key: BURNED (11111111111111111111111111111111)"
echo " • Oracle Authority: BURNED"
echo " • Insurance Fund: 5,000,000,000 lamports"
echo " • Crank: Permissionless"
echo " • Trading: Requires external matcher"
echo ""
echo "Attack Vectors:"
echo " 1. Oracle Manipulation (Pyth price feeds)"
echo " 2. Liquidation Circuit Exploits"
echo " 3. Funding Rate Calculation Bugs"
echo " 4. U128 Math Overflow/Underflow"
echo " 5. Account Slot Attacks"
echo " 6. Cross-Program Invocations"
echo ""
echo "See CLAUDE.md for full exploration guide."
name: analyze
description: Analyze market for vulnerabilities
params:
name: slab
type: string
required: false
command: |
Run from percolator-cli-master directory:
chmod +x scripts/challenge-analyze.sh
./scripts/challenge-analyze.sh {slab}
name: security-audit
description: View security audit report
command: |
cat solana-clawd/PERCOLATOR_SECURITY_AUDIT.md
security_notes:
Markets are immutable once admin keys are burned
Insurance fund can only be extracted through liquidation profits
Keeper crank is permissionless - anyone can run it
Oracle prices come from external Pyth feeds
Trading requires a separate matcher program
Only way to extract insurance is via legitimate liquidation profits
examples:
description: Deploy immutable market
command: |
cd percolator-cli-master
chmod +x scripts/deploy-immutable.sh
./scripts/deploy-immutable.sh
description: Check risk status
command: clawd percolator status
description: Analyze deployed market
command: |
cd percolator-cli-master
./scripts/challenge-analyze.sh
description: Get challenge info
command: clawd percolator challenge
description: View market engine state
command: percolator slab-engine --slab
description: List market accounts
command: percolator slab-accounts --slab
description: Run keeper crank
command: percolator keeper-crank --slab --oracle
1 --- 2 name: percolator 3 description: Percolator Skill 4 --- 5 # Percolator Skill 6 7 name: percolator 8 description: On-chain perpetuals risk engine with immutable deployment and 5 SOL insurance vault challenge 9 version: 1.0.0 10 category: defi 11 triggers: 12 - percolator 13 - risk engine 14 - immutable market 15 - 5 sol challenge 16 - hack percolator 17 - extract funds 18 - perpetual futures 19 - slab architecture 20 - liquidation 21 - margin trading 22 - funding rate 23 - ewma 24 - oracle manipulation 25 - security audit 26 - exploit 27 28 commands: 29 # Risk Engine Commands 30 - name: status 31 description: Display Percolator risk engine status 32 command: clawd percolator status 33 34 - name: inspect 35 description: Inspect a specific position 36 params: 37 - name: position 38 type: string 39 required: true 40 command: clawd percolator inspect --position {position} 41 42 - name: mark 43 description: View EWMA mark price tracking 44 params: 45 - name: token 46 type: string 47 default: SOL 48 command: clawd percolator mark --token {token} 49 50 - name: insurance 51 description: Check insurance fund status 52 command: clawd percolator insurance 53 54 - name: size 55 description: Calculate risk-adjusted position size 56 params: 57 - name: signal 58 type: float 59 default: 0.7 60 - name: confidence 61 type: float 62 default: 0.8 63 - name: capital 64 type: uint64 65 default: 1000000000 66 command: clawd percolator size --signal {signal} --confidence {confidence} --capital {capital} 67 68 - name: vault 69 description: Show ClawVault memory statistics 70 command: clawd percolator vault 71 72 # Deployment Commands 73 - name: deploy-immutable 74 description: Deploy an immutable Percolator market with 5 SOL insurance 75 command: | 76 # Run from percolator-cli-master directory: 77 chmod +x scripts/deploy-immutable.sh 78 ./scripts/deploy-immutable.sh 79 80 # This will: 81 # 1. Generate market keypair 82 # 2. Create slab account (200KB) 83 # 3. Create vault token account 84 # 4. Initialize market 85 # 5. BURN admin keys 86 # 6. Fund insurance with 5 SOL 87 # 7. Verify immutability 88 89 - name: verify-immutable 90 description: Verify market immutability 91 params: 92 - name: slab 93 type: string 94 required: true 95 command: percolator verify-immutable --slab {slab} 96 97 # Market Inspection Commands 98 - name: slab-config 99 description: View market configuration 100 params: 101 - name: slab 102 type: string 103 required: true 104 command: percolator slab-config --slab {slab} 105 106 - name: slab-engine 107 description: View engine state 108 params: 109 - name: slab 110 type: string 111 required: true 112 command: percolator slab-engine --slab {slab} 113 114 - name: slab-params 115 description: View risk parameters 116 params: 117 - name: slab 118 type: string 119 required: true 120 command: percolator slab-params --slab {slab} 121 122 - name: slab-account 123 description: View specific account state 124 params: 125 - name: slab 126 type: string 127 required: true 128 - name: idx 129 type: integer 130 required: true 131 command: percolator slab-account --slab {slab} --idx {idx} 132 133 - name: slab-accounts 134 description: List all market accounts 135 params: 136 - name: slab 137 type: string 138 required: true 139 command: percolator slab-accounts --slab {slab} 140 141 - name: best-price 142 description: Get best bid/ask prices 143 params: 144 - name: slab 145 type: string 146 required: true 147 command: percolator best-price --slab {slab} 148 149 # Keeper Commands 150 - name: keeper-crank 151 description: Run keeper crank (permissionless) 152 params: 153 - name: slab 154 type: string 155 required: true 156 - name: oracle 157 type: string 158 required: true 159 command: percolator keeper-crank --slab {slab} --oracle {oracle} 160 161 - name: liquidate 162 description: Liquidate a position at oracle price 163 params: 164 - name: slab 165 type: string 166 required: true 167 - name: target 168 type: integer 169 required: true 170 - name: oracle 171 type: string 172 required: true 173 command: percolator liquidate-at-oracle --slab {slab} --target-idx {target} --oracle {oracle} 174 175 # Security Commands 176 - name: burn-admin 177 description: Burn admin keys to make market immutable 178 params: 179 - name: slab 180 type: string 181 required: true 182 command: percolator burn-admin --slab {slab} 183 184 - name: burn-oracle-auth 185 description: Burn oracle authority 186 params: 187 - name: slab 188 type: string 189 required: true 190 command: percolator burn-oracle-auth --slab {slab} 191 192 # Challenge Commands 193 - name: challenge 194 description: Display 5 SOL challenge information 195 command: | 196 echo "🦂 THE 5 SOL CHALLENGE" 197 echo "======================" 198 echo "" 199 echo "Objective: Extract 5 SOL from an immutable Percolator market" 200 echo "" 201 echo "Market Properties:" 202 echo " • Admin Key: BURNED (11111111111111111111111111111111)" 203 echo " • Oracle Authority: BURNED" 204 echo " • Insurance Fund: 5,000,000,000 lamports" 205 echo " • Crank: Permissionless" 206 echo " • Trading: Requires external matcher" 207 echo "" 208 echo "Attack Vectors:" 209 echo " 1. Oracle Manipulation (Pyth price feeds)" 210 echo " 2. Liquidation Circuit Exploits" 211 echo " 3. Funding Rate Calculation Bugs" 212 echo " 4. U128 Math Overflow/Underflow" 213 echo " 5. Account Slot Attacks" 214 echo " 6. Cross-Program Invocations" 215 echo "" 216 echo "See CLAUDE.md for full exploration guide." 217 218 - name: analyze 219 description: Analyze market for vulnerabilities 220 params: 221 - name: slab 222 type: string 223 required: false 224 command: | 225 # Run from percolator-cli-master directory: 226 chmod +x scripts/challenge-analyze.sh 227 ./scripts/challenge-analyze.sh {slab} 228 229 - name: security-audit 230 description: View security audit report 231 command: | 232 cat solana-clawd/PERCOLATOR_SECURITY_AUDIT.md 233 234 security_notes: 235 - Markets are immutable once admin keys are burned 236 - Insurance fund can only be extracted through liquidation profits 237 - Keeper crank is permissionless - anyone can run it 238 - Oracle prices come from external Pyth feeds 239 - Trading requires a separate matcher program 240 - Only way to extract insurance is via legitimate liquidation profits 241 242 examples: 243 - description: Deploy immutable market 244 command: | 245 cd percolator-cli-master 246 chmod +x scripts/deploy-immutable.sh 247 ./scripts/deploy-immutable.sh 248 249 - description: Check risk status 250 command: clawd percolator status 251 252 - description: Analyze deployed market 253 command: | 254 cd percolator-cli-master 255 ./scripts/challenge-analyze.sh <SLAB_PUBKEY> 256 257 - description: Get challenge info 258 command: clawd percolator challenge 259 260 - description: View market engine state 261 command: percolator slab-engine --slab <SLAB> 262 263 - description: List market accounts 264 command: percolator slab-accounts --slab <SLAB> 265 266 - description: Run keeper crank 267 command: percolator keeper-crank --slab <SLAB> --oracle <ORACLE>
clawdsolana/OpenClawd/tree/main/skills/percolator commit c92ffcd6c6
Frequently asked questions How do I install the Percolator skill? Run npx skillmds@latest add clawdsolana/percolator in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Percolator skill do? Percolator Skill It is listed under Coding & Dev Tools on SkillMD.
Is Percolator safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: WARNING. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Percolator? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Percolator free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Percolator? clawdsolana (@clawdsolana) published this skill. Their other Agent Skills are listed on their SkillMD profile.