mantle-data-indexer
Use when a Mantle task needs historical wallet activity, time-windowed metrics, event backfills, or protocol analytics that raw RPC cannot answer efficiently.
What this skill does
# Mantle Data Indexer ## Overview Use GraphQL or SQL indexers to answer historical questions on Mantle with reproducible queries, clear time boundaries, and source attribution. ## Workflow 1. Normalize request: - objective (for example volume, swaps, user history) - entities (wallet, pool, token, protocol) - time range (absolute UTC start/end). If the user provides relative times like "past 7 days" or "last month", convert them to absolute UTC timestamps (e.g., "2026-03-18T00:00:00Z to 2026-03-25T00:00:00Z") and state the conversion explicitly. 2. Resolve endpoint availability: - `mantle-cli indexer subgraph --endpoint <url> --query <graphql> --json` requires an endpoint URL + query. - `mantle-cli indexer sql --endpoint <url> --query <sql> --json` requires an endpoint URL + query. - If endpoint config is missing, STOP and use the Blocked Output Format below. Do NOT proceed to step 3. - WRONG: making up a URL like `https://api.thegraph.com/subgraphs/name/mantle-...` or `https://indexer.mantle.xyz/...`. - RIGHT: responding with the Blocked Output Format and asking the user to provide the endpoint. - In E2E `endpoint-configured` scenarios, skip when `E2E_SUBGRAPH_ENDPOINT` or `E2E_SQL_ENDPOINT` is unset. 3. Select source by availability and latency target: - GraphQL indexer -> `mantle-cli indexer subgraph --endpoint <url> --query <graphql> --json` - SQL indexer -> `mantle-cli indexer sql --endpoint <url> --query <sql> --json` 4. Build query from `references/query-templates.md`. 5. Execute with pagination and deterministic ordering. 6. Normalize units and decimals before aggregation. 7. Produce output with query provenance, tool warnings, and caveats. ## Guardrails - Confirm chain scope is Mantle before querying. - Use absolute timestamps and include timezone (`UTC`). - Do not invent endpoint URLs. If missing, report blocked input and request an endpoint. - Keep SQL read-only; avoid mutation statements. - Do not merge datasets with mismatched granularity without labeling. - Distinguish `no data` from `query failure`. - Propagate tool warnings (for example `hasNextPage=true` or SQL truncation). - If indexer lag is known or suspected, disclose it. ## Output Format ```text Mantle Historical Data Report - objective: - source_type: graphql | sql - source_endpoint: - queried_at_utc: - time_range_utc: - entity_scope: Query Summary - dataset_or_subgraph: - filters_applied: - pagination_strategy: - records_scanned: Results - metric_1: - metric_2: - sample_rows: Quality Notes - indexer_lag_status: - tool_warnings: - assumptions: - caveats: - confidence: ``` ## Blocked Output Format When the workflow cannot proceed (for example, no endpoint URL was provided), you MUST still use a structured output. NEVER fabricate an endpoint URL. Instead, use this format: ```text Mantle Historical Data Report -- BLOCKED - objective: - status: blocked - blocked_reason: [explain exactly what is missing, e.g. "No GraphQL or SQL endpoint was provided"] - action_required: [what the user must supply, e.g. "Provide a subgraph endpoint URL or SQL indexer endpoint URL"] - time_range_utc: [convert any relative time to absolute UTC, e.g. "2026-02-23T00:00:00Z to 2026-03-25T00:00:00Z"] - entity_scope: Quality Notes - tool_warnings: Endpoint missing -- cannot execute query. This is NOT a "no data" result; it is a configuration gap. - assumptions: none - caveats: No query was executed. Results will be available once an endpoint is provided. - confidence: n/a ``` CRITICAL: If the user does not provide an endpoint URL and you do not have one configured, you MUST use the blocked format above. Do not guess, fabricate, or assume any endpoint URL. ## References - `references/indexer-selection-and-quality.md` - `references/query-templates.md`
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.