.claude/skills/check-prod/SKILL.md
Query the production Vercel database via the public API to investigate data issues
npx skillsauth add erickpinos/sai-explorer check-prodInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Query the production Sai Explorer API to investigate data in the Vercel Postgres database.
Base URL: https://sai-explorer.vercel.app
Use curl -s to fetch JSON, then pipe to python3 -c for parsing/filtering.
$ARGUMENTS
| Endpoint | Params | Description |
|----------|--------|-------------|
| /api/trades | network, limit, offset | All trades (default limit 1000) |
| /api/user-trades | network, address | Trades for a specific user |
| /api/user-stats | network, address | Aggregate stats for a user (volume, PnL, trade count) |
| /api/user-deposits | network, address | Deposits for a specific user |
| /api/user-withdraws | network, address | Withdraws for a specific user |
| /api/stats | network | Global platform stats |
| /api/volume | network | Volume leaderboard |
| /api/deposits | network | All deposits |
| /api/withdraws | network | All withdraws |
| /api/insights | network | PnL insights and analytics |
| /api/chart-data | network, type | Chart time series data |
| /api/markets | network | Market info |
| /api/collateral | network | Collateral breakdown |
| /api/tvl-breakdown | network | TVL by vault |
Default network=mainnet for all endpoints.
collateralAmount, realizedPnlCollateral, openCollateralAmount are in micro-units (divide by 1,000,000)microAmount / 1e6 * collateralPricetrade.perpBorrowing.collateralToken.symbol and trade.perpBorrowing.baseToken.symbolnibi1...) and EVM (0x...) addressescurl -s and parse with python3 -climit and offset to page through resultsdata-ai
Clear the freeze boundary set by /freeze, allowing edits to all directories again. Use when you want to widen edit scope without ending the session. Use when asked to "unfreeze", "unlock edits", "remove freeze", or "allow all edits".
development
Ship workflow: detect + merge base branch, run tests, review diff, bump VERSION, update CHANGELOG, commit, push, create PR. Use when asked to "ship", "deploy", "push to main", "create a PR", or "merge and push". Proactively suggest when the user says code is ready or asks about deploying.
testing
Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages. Use when asked to "import cookies", "login to the site", or "authenticate the browser".
development
Pre-landing PR review. Analyzes diff against the base branch for SQL safety, LLM trust boundary violations, conditional side effects, and other structural issues. Use when asked to "review this PR", "code review", "pre-landing review", or "check my diff". Proactively suggest when the user is about to merge or land code changes.