Skip to content

Unique-Divine/jiyuu / ai-skills/sai-perps

sai-perps

Verified

Moved into agent skill `sai`. Query and reconcile Sai Perps data from live contracts, Sai Keeper GraphQL and Postgres, and DexPal REST. Use for markets, trades, fees, open interest, vaults, balances, referrals, Sai Keeper Postgres tables, columns, and schema questions, or disagreements between on-chain and indexed data. Load agent skill `sai` for everything except the Postgres table guide, which stays here. Use agent skill `sai-ops` for mutations.

FileKindSize
SKILL.mdskill md2.2 KB
references/sai-db.mdmarkdown34.2 KB
---
name: sai-perps
description: >-
  Moved into agent skill `sai`. Query and reconcile Sai Perps data from live
  contracts, Sai Keeper GraphQL and Postgres, and DexPal REST. Use for
  markets, trades, fees, open interest, vaults, balances, referrals, Sai
  Keeper Postgres tables, columns, and schema questions, or disagreements
  between on-chain and indexed data. Load agent skill `sai` for everything
  except the Postgres table guide, which stays here. Use agent skill
  `sai-ops` for mutations.
---

# Sai Perps

This skill moved into agent skill `sai`. Load `sai` and follow its router.

If agent skill `sai` is not installed, read it from its repository at
<https://github.com/Unique-Divine/jiyuu/tree/main/ai-skills/sai>. The `sai`
CLI also prints its packaged copy with `sai --skill`.

| Old page in `sai-perps` | Page in `sai` |
| --- | --- |
| `references/sai-contracts.md` | [`references/contracts.md`](../sai/references/contracts.md) |
| `references/sai-vaults.md` | [`references/vaults.md`](../sai/references/vaults.md) |
| `references/sai-graphql.md` | [`references/graphql.md`](../sai/references/graphql.md) |
| `references/sai-rest.md` | [`references/rest.md`](../sai/references/rest.md) |
| `references/sai-referrals.md` | [`references/referrals.md`](../sai/references/referrals.md) |
| `references/sai-reconciliation.md` | [`references/reconciliation.md`](../sai/references/reconciliation.md) |
| `examples/sai-perps-prompts.md` | [`examples/prompts.md`](../sai/examples/prompts.md) |

The links above work when both skills sit in the same directory. Otherwise
use the same paths under the repository URL.

## Sai Keeper Postgres

For a question about a Sai Keeper Postgres table, column, unit, migration, or
which table feeds a GraphQL field or REST metric, read
[`references/sai-db.md`](references/sai-db.md). That page stays in this
skill, because agent skill `sai` ships inside the public `sai` CLI and
carries no database material.

For database access, primary and replica routing, or any write, use private
agent skill `sai-db`. Do not infer connection details from repository
configuration or environment variables.

## Mutations

Contract and operator mutations belong to agent skill `sai-ops`.
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall