Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add gear-foundation/vara-skills --skill sails-indexergit clone --depth 1 https://github.com/gear-foundation/vara-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/gear-foundation/vara-skills/sails-indexer)<a href="https://agentmods.dev/skills/gear-foundation/vara-skills/sails-indexer"><img src="https://agentmods.dev/badge/skills/gear-foundation/vara-skills/sails-indexer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/gear-foundation/vara-skills/sails-indexer"><img src="https://agentmods.dev/badge/skills/gear-foundation/vara-skills/sails-indexer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.03998 |
| Opus 5 | $0.00037 | $0.01999 |
| Sonnet 5 | $0.00015 | $0.00800 |
| Haiku 4.5 | $0.00007 | $0.00400 |
Grade A, and why
sails-indexer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sails Indexer
Role
Design and implement the read-side backend for a standard Gear/Vara Sails app.
Use this skill when the frontend or integration layer needs history, pagination, filtering, search, aggregates, charts, timelines, or a fast read API that should not be rebuilt from direct chain queries on every screen load.
Treat the indexer as a projection pipeline:
chain/archive -> Sails event decode -> optional on-chain enrichment -> Postgres read model -> thin GraphQL API
Local Handbook
../../references/gear-execution-model.md../../references/gear-messaging-and-replies.md../../references/sails-program-and-service-architecture.md../../references/sails-idl-client-pipeline.md../../references/sails-cheatsheet.md../../references/sails-gtest-and-local-validation.md../../references/scale-binary-decoding-guide.md../../references/contract-interface-evolution.md../../references/sails-indexer-patterns.md../../references/sails-idl-v2-syntax.md— IDL v2 event syntax (throws,@query, service-scoped types)
Standard Defaults
- Default to an IDL-driven read-side indexer, not a generic command-side backend.
- Treat the program
.idlas the event and route contract for normal Sails decoding work. - Default stack: Subsquid-style archive ingestion, PostgreSQL read model, ORM-backed entities, and a thin GraphQL API.
- Always expose GraphQL as the default read surface for frontend and integration consumers. Do not downgrade the default to REST.
- Mount a real GraphQL endpoint such as
/graphqland make it reachable from local frontend development without browser CORS failures. - Prefer one of two frontend-safe API exposure strategies and name the choice explicitly: enable CORS on the indexer API, or serve GraphQL through the frontend dev proxy or same-origin gateway.
- Use a real ingestion adapter wired to chain or archive sources. Do not leave placeholder, null, or demo adapters in the runtime.
- Prefer event-driven projections first. Use direct on-chain queries only for initial entity bootstrap or explicit source-of-truth confirmation, and keep them out of hot event-processing paths unless the design justifies the cost.
- Keep projection logic in processor or handler services. Keep the API layer thin.
- Model restart, replay, backfill, and duplicate safety as first-class requirements, not as later hardening.
- Prefer deterministic entity IDs derived from chain facts such as program ID, message ID, block number, extrinsic position, or explicit domain keys.
- If the repo already has an indexer stack, extend it instead of replacing it with a new framework casually.
- Treat PostGraphile as a v4-compatible template constraint, not as a product requirement for every indexer. The bundled API template uses the v4 bootstrap/config API (
postgraphile(...),PostGraphileOptions,appendPlugins), so keeppostgraphileon the 4.x line andpostgraphile-plugin-connection-filteron the 2.x line when copying these assets. Do not switch to v5 by changing package versions alone; update the API bootstrap and template config together. - Follow the canonical runtime order from
../../references/sails-indexer-patterns.md, especiallyStart with configuration, not hardcoded endpoints,Build one shared batch processor and export its derived types,Centralize all IDL decoding behind one decoder,Wire the runtime in main.ts, but do not place projection logic there,Give every handler the same lifecycle contract,Process a batch in a stable order,Save in groups and only write what changed, andExpose a thin API layer on top of PostgreSQL.
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 296 lines · 74 tokens per session scan A 0e8dc269b74a
sails-indexer is a skill published in the GitHub repository gear-foundation/vara-skills (17 stars, last pushed 2mo ago), licensed MIT. It adds 74 tokens to every session and 3,998 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
event-store-design
Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.
convex-explain-app
Explain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the schema and function surface. Read-only.
platform-custom-field-generate
Use this skill when users need to create, generate, or validate Salesforce Custom Field metadata. Trigger when users mention custom fields, field types, Roll-up Summary fields, Master-Detail relationships, Lookup relationships, formula fields, picklists, dependent (controlling) picklists, referencing a value set from…
durable-objects
Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.
field-service-sobject-create-configure
Headless 360 REST API deployment step for creating sObject records. Handles describe-based field discovery, required-field derivation, entity-relationship ordering, and composite graph transactions. Use this skill when a designer skill (or a user directly) needs to create sObject records after design confirmation…
nornicdb-grpc
Drive NornicDB over gRPC — the Qdrant-compatible surface (Collections, Points, Snapshots) plus the additive NornicSearch service. Use when ingesting via Qdrant SDKs, migrating from Qdrant, or running hybrid text+vector search from a non-Bolt client. Covers connection, RPC catalog, collection→database mapping…