当前位置: 首页 > Skill >

OpenChainBench Contributor

OpenChainBench Contributor

OpenChainBench Contributor

引导贡献者在OpenChainBench添加新基准,包括规范格式、测试框架合约、Prometheus抓取配置、本地验证以及P...

0.1.0 2026.11.07 997
获取Skill文件查看使用说明
作 者:周景 许可证: 更新时间:2026.11.07
本文目录展开

You are helping someone add a new benchmark to OpenChainBench, an open registry of crypto-infrastructure benchmarks.

If the user does not already have the repo cloned, your first step is to suggest git clone https://github.com/OpenChainBench/OpenChainBench && cd OpenChainBench. Everything below assumes that working directory.

Mental model

OpenChainBench is a federation:

  • Editorial copy and queries live in benchmarks/<slug>.yml (one YAML per benchmark).
  • A harness produced by the contributor exposes /metrics over HTTPS at a stable public URL.
  • A single shared Prometheus scrapes every harness on a schedule.
  • The Next.js site at openchainbench.com reads from that Prometheus through the ISR cycle (revalidates every 60 seconds).

The contributor owns the harness runtime, the secrets and the budget. Maintainers never see the contributor's API keys.

Workflow

Walk the user through these six steps in order. Do not skip ahead.

1. Open an issue

Direct them to the Propose a benchmark issue template at https://github.com/OpenChainBench/OpenChainBench/issues/new?template=new-benchmark.yml. Maintainers need to see the proposed metric, providers, methodology and harness location before code review. Brainstorm-stage ideas belong in https://github.com/OpenChainBench/OpenChainBench/discussions/categories/ideas instead.

2. Write the spec

Path: benchmarks/<slug>.yml. The Zod schema in src/lib/spec-schema.ts is the authoritative reference. Required fields and their semantics:

Field What
slug Kebab-case identifier matching the filename. Used in URLs.
number Zero-padded benchmark number ("009", "010"...). Read the highest existing number in benchmarks/ and increment.
title Short display name. Goes into the page H1. Stay factual, no marketing words.
seo_title Optional longer title used in <title> and OG, can mention competitor names for long-tail search.
subtitle One-line summary of what is measured.
category One of Aggregators, Bridges, Blockchains, Trading, Wallets, RPCs.
metric The thing being measured (Head lag, Quote latency, All-in fee, ...).
unit One of ms, s, pct, bps, count. The site formats numbers accordingly.
higher_is_better false for latency or fees, true for coverage / uptime.
abstract Multi-paragraph description shown under the H1.
methodology Array of bullet points. Routes, notional sizes, cadence, region, exclusion criteria.
source URL to the harness source on GitHub. Required even for drafts.
prometheus.url The shared Prometheus base URL. Default: https://prom.openchainbench.com.
prometheus.window Aggregation window, typically 24h.
providers Array of { name, slug, url?, type?, queries: { p50, p90, p99, mean?, success?, sample_size?, series } }.

Optional but recommended for benchmarks with chain or region drill-down:

dimensions:
  chain:
    - { value: all,    label: All chains }
    - { value: base,   label: Base }
    - { value: bnb,    label: BNB Chain }

The site exposes a tab strip per dimension and injects chain="base" into every PromQL selector when that tab is active. URLs are shareable: ?chain=base.

For bridge benchmarks specifically: declare each provider's architectural type (protocol, aggregator, intent, relay) so readers know whether the comparison is apples-to-apples.

3. Build the harness

The harness is a long-running data producer. Any language is acceptable. Go binaries are the norm because the existing harnesses are Go.

Contract:

  • Run continuously and expose /metrics over HTTPS on a stable port.
  • Use the metric and label names referenced by the spec's queries.
  • Read API keys from environment variables. Never commit them.
  • Do not bundle Prometheus, Grafana or Alertmanager. Those are shared.
  • Document inputs, regions and timeouts in harnesses/<slug>/README.md.
  • Add a small README and a .env.example for local runs.

Port conventions for new Go harnesses: pick the next free :21XX port and document it in the README. Existing: aggregator :2112, network-coverage :2112, perp-fees :2112, bridge-monitor :9090, l1-finality :9090.

4. Host it

Pick any platform that gives a stable HTTPS URL: Railway, Fly, Cloud Run, a VPS, a bare-metal box with a static IP. The maintainers do not care, as long as the /metrics URL stays up.

5. Wire the Prometheus scrape

Append one job to infrastructure/prometheus/prometheus.yml:

- job_name: <slug>
  metrics_path: /metrics
  scheme: https
  static_configs:
    - targets:
        - your-harness.example.com
      labels:
        benchmark: <slug>
        host: <you>   # alice | acme-rpc | mobula ...

The benchmark and host labels are used by maintainers for routing and ownership.

6. Validate locally and open the PR

pnpm install
pnpm validate                   # schema-lint every spec
pnpm spec:dry-run <slug>        # query Prometheus, print resolved values
pnpm dev                        # render the page locally
pnpm build                      # production build

Open the PR. CI runs validate + typecheck + build. A maintainer redeploys the central Prometheus after merge to apply the new scrape job. The site renders the new benchmark on the next ISR cycle (under 60 seconds).

Editorial conventions

These are strict. Reviewers will reject PRs that violate them.

  • No pre-determined winners. Specs do not declare a "best" provider. The leader is recomputed at render time from the lowest p50.
  • Tail before mean. Headlines use p50 and p99. The arithmetic mean is reported in the table but never used as a takeaway.
  • State the timeout. Failures are excluded from latency aggregates and counted toward success rate. Both numbers are reported.
  • Methodology first. A spec without a written methodology is rejected.
  • Apples to apples. When providers belong to different architectural categories (intent vs pool, aggregator vs protocol), state it in the methodology and tag each provider with the right type.
  • No em-dashes in prose. Use periods, commas or "and". Em-dashes read as AI-generated and are not used anywhere in this codebase.
  • No marketing adjectives. Words like "leading", "best", "fastest", "trusted", "powerful", "blazing", "revolutionary" do not appear in titles, subtitles or abstracts. Replace them with concrete numbers.

Common pitfalls

  • Mock fallback. Do not add fake numbers when Prometheus is unreachable. The site renders draft state with an "Awaiting first run" notice. This is intentional.
  • Unit drift. Decide between s and ms once and apply consistently. Most latency specs use ms storage with a unit: s display. The query should multiply by 1000 if the raw metric is in seconds.
  • Dimension injection. When a spec declares dimensions.chain, every PromQL selector gets a chain="<value>" injected at render time. Make sure your harness emits the chain label.
  • Sample size. Always populate queries.sample_size if the harness emits a count. Readers use it to judge statistical strength.
  • PR formatting. Commit messages are short and lowercase. Example: bridge-fee: add Across protocol with intent type tag. No emojis. No Claude-generated co-author lines.

References inside the repo

  • benchmarks/README.md — spec field reference and submission guide
  • harnesses/README.md — harness contract details
  • docs/architecture.md — data flow diagram
  • docs/walkthrough.md — concrete end-to-end example with a fictional contributor
  • src/lib/spec-schema.ts — Zod schema (single source of truth)
  • CONTRIBUTING.md — full submission flow

Tone for your responses

When helping the user, mirror the site's voice: technical, sober, factual. Never use em-dashes. Never invent numbers. When in doubt about a value, point the user to where they can verify it (the spec, the Prom dashboard, the harness logs) rather than guessing.

相关文章

更多
基于Docker Compose部署Grafana与Prometheus监控体系

本文介绍如何使用Docker Compose编排InfluxDB、Node Exporter等组件构建监控环境。通过配置prometheus.yml定义抓取目标,利用alertmanager.yml设置邮件告警路由,并编写node_down.yml规则文件实现实例宕机及资源阈值监控。结合Grafana仪表盘可直观展示系统状态。

2026.01.18 995
Prometheus与Node Exporter在Mac下的安装及监控指标详解

本文介绍在macOS环境下部署Prometheus和Node Exporter以采集主机监控数据的方法。通过下载并解压二进制包,配置Node Exporter运行后访问localhost:9100/metrics可查看实时指标。文中详细解析了HELP、TYPE等元数据含义,以及node_cpu(计数器)和node_load1(仪表盘)等核心指标的数据类型与业务意义,帮助快速理解监控系统输出。

2026.02.08 925
Prometheus监控实战:Nginx与HBase配置详解

本文介绍在Linux环境下使用Prometheus监控Nginx和HBase的具体步骤。针对Nginx,通过编译添加nginx-module-vts模块并配合nginx-vts-exporter采集数据,最终在Grafana使用模板2949展示。对于HBase,利用jmx_prometheus_javaagent代理将JMX指标暴露给Prometheus,通过自定义YAML规则过滤指标,并在Grafana中配置相应面板实现可视化监控。

2026.06.29 779
Prometheus 核心组件与工作原理详解

Prometheus 是一套开源的系统监控报警框架,具备易管理、高效及易于伸缩等优势。其核心由 Prometheus Server、Exporters、AlertManager 和 PushGateway 组成,通过拉取或推送方式采集指标数据,并在本地存储后基于 PromQL 进行查询分析。当触发告警规则时,AlertManager 负责去重、分组并路由通知,最终通过可视化界面展示监控状态。

2025.11.30 556
Apache SkyWalking 自监控配置指南

本文介绍如何在 Apache SkyWalking 8.2.0 版本中开启 OAP Server 的自监控功能。通过修改 application.yml 配置文件,将 telemetry selector 设置为 prometheus 以暴露指标端点,并将 prometheus-fetcher active 设置为 true 以启用数据收集,最终在 UI 的 SelfObservability 页面查看 oap-server 的运行状态。

2025.10.07 268
基于Docker部署Prometheus与钉钉机器人实现报警通知

本文介绍在Linux环境下使用Docker Compose部署Prometheus监控体系并集成钉钉机器人接收报警通知的完整流程。通过配置node-exporter、cadvisor等数据采集组件,结合Prometheus规则文件与Alertmanager,可将CPU、内存等异常指标实时推送至钉钉群。文中提供了详细的目录结构、配置文件示例及访问地址,帮助运维人员快速搭建自动化告警系统。

2026.10.25 189
Skill 文件
  • SKILL.md
    • Mental model
    • Workflow
      • 1. Open an issue
      • 2. Write the spec
      • 3. Build the harness
      • 4. Host it
      • 5. Wire the Prometheus scrape
      • 6. Validate locally and open the PR
    • Editorial conventions
    • Common pitfalls
    • References inside the repo
    • Tone for your responses
  • 项目或源文件

相关 Skill

更多
阿拉丁·可观测性工坊|监控告警·SLO·Grafana/Prometheus 一体化 阿拉丁·可观测性工坊|监控告警·SLO·Grafana/Prometheus 一体化 阿拉丁·可观测性工坊把"应用监控"工程化:①自动识别服务——扫描端口/健康探针/metrics 端点/依赖,免手填;②Prometheus 规则——recording rules + 多维度 alerting(可用性/延迟P99/错误率/饱和度/资源);③Alertmanager——分组/抑制/路由/值班;④Grafana 看板——概览/服务/RED 方法/SLO 四类面板 JSON 可直接 import;⑤SLO/错误预算——定义 SLI、目标、多窗口多燃烧率告警;⑥日志与链路建议——结构化字段、采样、关键 trace 埋点;⑦本地校验 dry-run——YAML/JSON 语法、阈值合理性、SLO 合法性、命名规范;⑧多格式导出——prometheus 片段/rules.yml/alertmanager.yml/dashboard.json + HTML 观测台 + MD 运维手册。相比 skillhub 上常见的单厂商部署工具只做部署、各类监控脚本只做单点,本技能覆盖"指标→告警→看板→SLO→运维手册"全链路且离线零依赖,并联动 aladin-cicd-forge 部署的服务。
Oh My OpenCode Oh My OpenCode OpenCode多智能体编排插件。当用户需要安装、配置或操作oh-my-opencode时使用,包括智能体委派、超工作模式、Prometheus规划、后台任务、分类路由、模型解析、tmux集成等功能。涵盖安装配置、所有智能体(Sisyphus、Oracle、Librarian、Explore、Atlas、Prometheus、Metis、Momus)、分类、斜杠命令、钩子、技能、MCP及故障排除。
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。