AgentSkillsCN

blockchain-sql

区块链 SQL 工作流,适用于量化研究、实施与生产控制。适用于在涉及查询正确性、索引策略以及时间点一致性等任务时使用。

SKILL.md
--- frontmatter
name: blockchain-sql
description: "Blockchain SQL workflows for quantitative research, implementation, and production controls. use when tasks involve query correctness, indexing strategy, and point-in-time consistency."

Blockchain SQL

objective

Execute blockchain sql work with reproducible research, explicit controls, and deployable outputs.

workflow

  1. define source contracts, schema versions, and freshness objectives.
  2. ingest data with replay support and deterministic normalization.
  3. validate keys, timestamps, and point-in-time join behavior.
  4. monitor quality metrics continuously and quarantine degraded feeds.
  5. publish only when lineage, ownership, and quality thresholds are satisfied.

required diagnostics

  • freshness, completeness, null-rate, and duplicate-rate trends.
  • schema drift and breaking-change frequency across sources.
  • point-in-time join integrity for features and labels.
  • backfill and replay consistency versus canonical snapshots.
  • predicate pushdown effectiveness and scan amplification
  • point-in-time alignment for slowly changing dimensions

risk controls

  • enforce hard thresholds for freshness and data-quality metrics.
  • enforce quarantine and fallback paths for corrupted feeds.
  • enforce full lineage metadata before downstream release.

outputs

  • run python scripts/blockchain_sql_diagnostics.py input.csv --output diagnostics.json and keep the json artifact.
  • write an implementation memo using references/blockchain-sql-playbook.md with assumptions, tests, limits, and rollout plan.

resources

  • use scripts/blockchain_sql_diagnostics.py for deterministic diagnostics.
  • use references/blockchain-sql-playbook.md for the domain-specific checklist and delivery structure.