Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

tick-collection-ops蜱收集操作

Agent Skill

tick-collection-ops 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

470

周安装

20

GitHub Stars

37

下载量

165
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tick-collection-ops(蜱收集操作)
来源仓库:https://github.com/terrylica/cc-skills
仓库路径:skills/tick-collection-ops
安装命令:
npx skills add https://github.com/terrylica/cc-skills --skill tick-collection-ops
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/terrylica/cc-skills --skill tick-collection-ops

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适合围绕代码变更、仓库状态进行整理和分析。
  • 可结合项目上下文理解代码修改意图和影响范围。
  • 安装命令:npx skills add https://github.com/terrylica/cc-skills --skill tick-collection-ops
  • 安装前建议确认权限范围和维护状态。

SKILL.md

MT5 Tick Collection Operations

Operate, monitor, and troubleshoot the zero-gap tick collection system running on Linux via Wine.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

Use this skill when:

  • Deploying or restarting tick collection on bigblack
  • Diagnosing tick gaps or missing data
  • Troubleshooting Wine or MT5 issues
  • Understanding systemd service topology
  • Investigating crash recovery files
  • Checking tick collection health

System Architecture

TickCollector EA (MQL5)  -->  tick_writer.dll (Rust)  -->  Parquet files
     OnTick() callback         C-ABI FFI                   ZSTD compressed
     CopyTicksRange()          Buffered writes              One file per day
     Watermark dedup            Row group flush
  • TickCollector EA runs on MT5 via Wine on headless Linux (bigblack)
  • EA captures every tick via OnTick() callback + OnTimer() fallback (1-second interval)
  • Ticks buffered in EA, flushed to Rust DLL (tick_writer.dll) via C-ABI FFI
  • Rust DLL writes Parquet files with ZSTD level 3 compression
  • One EA instance per symbol per chart -- this is a CRITICAL constraint (single symbol per EA)

Production Topology

ResourcePath
Git repo~/eon/mql5/
Wine prefix~/.mt5/
MT5 install~/.mt5/drive_c/Program Files/MetaTrader 5/
EA source{repo}/mql5_ea/TickCollector.mq5
DLL (Windows){mt5}/MQL5/Libraries/tick_writer.dll
Tick data{mt5}/tick_data/ (symlinked to ODB cache)
Systemd unitssystemd user units: xvfb, xfce, x11vnc, mt5

Systemd Service Chain

xvfb (virtual framebuffer)
  --> xfce (desktop environment)
    --> x11vnc (VNC access)
      --> mt5 (MetaTrader 5 via Wine)

All are user-level systemd units. MT5 depends on the display stack. The chain must start in order -- xvfb first, mt5 last.

Daily File Rotation

  • New Parquet file created each trading day
  • Filename pattern: {SYMBOL}_{YYYYMMDD}.parquet
  • EA detects day change and calls tw_close (finalize current file) + tw_init (open new file)
  • Trading day runs Sunday open to Monday open (forex hours)

Crash Recovery

On EA restart:

  1. EA calls tw_get_last_time_msc to read resume watermark from the last Parquet file footer
  2. Watermark is the timestamp of the last tick written -- resume from there
  3. If an existing file is found for today, new file gets _1, _2 suffix (not overwrite)
  4. All recovery segments are valid, complete Parquet files with footers
  5. Resume watermark prevents duplicate ticks after restart
  6. Gap between shutdown and restart is backfilled via CopyTicksRange from the watermark

The Rust DLL renames corrupt/incomplete files to _partial suffix rather than attempting recovery.

Gap Detection

Use DuckDB to check for gaps between consecutive ticks:

WITH ticks AS (
    SELECT time_msc,
           lead(time_msc) OVER (ORDER BY time_msc) - time_msc AS gap_ms
    FROM read_parquet('{base_path}/FXVIEW_{SYMBOL}/{YYYY}/{SYMBOL}_{YYYYMMDD}.parquet')
)
SELECT time_msc, gap_ms,
       make_timestamp(time_msc * 1000) AS ts
FROM ticks
WHERE gap_ms > 60000  -- gaps > 1 minute
ORDER BY gap_ms DESC;

Interpreting results:

  • Weekend gaps are normal (Friday close to Sunday open)
  • Mid-session gaps indicate collection interruption
  • Gaps < 1 minute are normal during low-activity periods
  • Check systemd journal for correlating restart events

Wine Gotchas

These are CRITICAL anti-patterns -- violations cause silent crashes or data loss:

  • NEVER use %I64u or %I64d format specifiers in MQL5 -- crashes Wine silently. Use IntegerToString() instead.
  • Wine cannot follow symlinks for file access -- use physical file copies for EA and DLL deployment
  • Headless Linux requires Xvfb virtual framebuffer -- MT5 GUI needs a display even when no monitor is connected
  • compile.sh uses Wine CLI for compilation -- no MetaEditor GUI needed
  • MetaEditor returns exit code 1 even on success under Wine -- check compile log instead
  • Compile log is UTF-16LE -- use iconv -f UTF-16LE -t UTF-8 to read it
  • DISPLAY=:99 must be set (Xvfb virtual display number)

Deployment Pipeline

Use /mql5:mql5-ship slash command for full deployment:

  • --ea-only for EA source changes
  • --dll-only for Rust DLL changes
  • Full pipeline: commit -> push -> pull on bigblack -> compile -> validate

Detailed deployment steps (SSH commands, file copies, compilation) are in the headless-mt5-remote local skill. Not duplicated here to avoid drift.

Monitoring Commands

Check MT5 service status

systemctl --user status mt5

Check today's tick files

ls -la ~/.cache/opendeviationbar/ticks/FXVIEW_EURUSD/$(date +%Y)/

Count ticks in latest file

duckdb -c "SELECT count(*) FROM read_parquet('path/to/file.parquet')"

Check for recovery segments

ls ~/.cache/opendeviationbar/ticks/FXVIEW_EURUSD/$(date +%Y)/*_[0-9].parquet 2>/dev/null

View systemd service chain

systemctl --user list-units --type=service | grep -E "xvfb|xfce|x11vnc|mt5"

Check MT5 journal for errors

journalctl --user -u mt5 --since "1 hour ago" --no-pager

Scope Boundary

  • This skill: Operations, monitoring, troubleshooting
  • headless-mt5-remote local skill: Deployment steps (SSH, file copy, compilation)
  • fxview-parquet-consumer skill: Data consumption patterns (schema, DuckDB queries)

Troubleshooting

IssueCauseSolution
MT5 service won't startDisplay stack not runningStart xvfb first, then xfce, x11vnc, mt5
EA not collecting ticksSymbol not in Market WatchOpen chart for symbol in MT5, re-attach EA
Wine crash on PrintFormatUsing %I64u/%I64d specifiersReplace with IntegerToString()
DLL load failureMissing tick_writer.dllCopy DLL to MQL5/Libraries/ (physical copy)
Gaps in tick dataEA restart or network issueCheck journalctl, verify recovery segments exist
Recovery file _1_2Normal after restartAll segments are valid, union in DuckDB
Compile log unreadableUTF-16LE encodingUse iconv -f UTF-16LE -t UTF-8
Xvfb not runningService crashed or not enabledsystemctl --user start xvfb

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.89%
按下载量换算61

Claude

30.03%
按下载量换算50

Cursor

21.14%
按下载量换算35

Gemini CLI

9.75%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills