Cup and Handle Pattern Detector
v1.0.0检测股票日线是否符合"杯柄形态(Cup and Handle)"技术分析形态,并生成含轮廓线的识别示意图。触发场景:(1) 询问某只股票是否形成杯柄形态 (2) 查询杯柄形态股票 (3) 技术形态识别需求。触发词:杯柄形态、cup and handle、欧奈尔形态、技术形态识别。
⭐ 1· 36·0 current·0 all-time
by@laigen
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description, SKILL.md and the two Python scripts are coherent: they implement cup-and-handle detection, visualization, and batch scanning. The dependencies listed (pandas, numpy, matplotlib, optional tushare) match the code's needs.
Instruction Scope
Instructions and scripts work with either: (a) live data via Tushare (requires TUSHARE_TOKEN) or (b) local SQLite DB for batch scans. The scripts read local SQLite DBs (path provided by user) and write images/files to user home/tmp directories. This is expected for the stated purpose but you should be aware the batch script will read any DB file you point it at.
Install Mechanism
No install spec (instruction-only) and the code uses standard Python libraries. SKILL.md lists required Python packages; there are no downloads from untrusted URLs or custom install steps in the package manifest.
Credentials
The code requires TUSHARE_TOKEN (environment variable) when fetching live data via tushare. SKILL.md documents tushare as an optional dependency and notes TUSHARE_TOKEN, but the registry metadata lists no required env vars — this mismatch is informational (token is needed only for live fetches). No other credentials are requested.
Persistence & Privilege
Skill does not request persistent or elevated platform privileges (always:false). It writes output to user-writable dirs under the home/temp areas; it does not modify other skills or system-wide agent settings.
Scan Findings in Context
[USES_ENV_TUSHARE_TOKEN] expected: scripts/cup_handle_detector.py reads TUSHARE_TOKEN from environment when using tushare.pro to fetch live market data; this is expected for live-data retrieval but the registry did not declare the env var as required.
[EXTERNAL_NETWORK_TUSHARE_API] expected: The code uses the tushare/pro API (network access) to obtain daily price data. Network access to Tushare is consistent with the skill's purpose.
[SQL_QUERY_WITH_TABLE_NAME_FSTRING] expected: batch_scan_cup_handle.py constructs a SQL SELECT using the provided table name via an f-string. This is functional for local DB scanning but could be unsafe if untrusted table names are supplied — the script assumes local, user-controlled DB inputs.
Assessment
This skill appears to do what it says: detect cup-and-handle patterns and draw annotated charts. Before installing/running, note: (1) If you want live data, you must provide a TUSHARE_TOKEN (set as an environment variable) and install tushare; SKILL.md documents this but the registry metadata does not list the env var — set it only if you trust tushare and your token. (2) The batch scanner reads any SQLite file you point it to and will save chart files under your home/temp directories — verify the database path and output path before running. (3) There are no hidden network endpoints beyond Tushare and no other credential requests. For safety, run the scripts in a dedicated Python virtual environment, audit the code if you will supply sensitive databases, and only supply your TUSHARE_TOKEN to trusted code/run contexts.Like a lobster shell, security has layers — review code before you run it.
algorithmic-tradingvk97bqqhapddyk5ba0yt5fcsrz184tctccandlestickvk97bqqhapddyk5ba0yt5fcsrz184tctcchart-analysisvk97bqqhapddyk5ba0yt5fcsrz184tctccup-handlevk97bqqhapddyk5ba0yt5fcsrz184tctcfinancial-analysisvk97bqqhapddyk5ba0yt5fcsrz184tctclatestvk97bqqhapddyk5ba0yt5fcsrz184tctcpattern-detectorvk97bqqhapddyk5ba0yt5fcsrz184tctcstock-analysisvk97bqqhapddyk5ba0yt5fcsrz184tctcstock-patternvk97bqqhapddyk5ba0yt5fcsrz184tctctechnical-analysisvk97bqqhapddyk5ba0yt5fcsrz184tctctradingvk97bqqhapddyk5ba0yt5fcsrz184tctc
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
