← 返回 Skills 市场
wu-xiaolin

A Share Short Decision.Bak

作者 Wu-XiaoLin · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
217
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install a-share-short-decision-bak
功能描述
A-share short-term trading decision skill for 1-5 day horizon. Use when you need real-data market sentiment, sector rotation, strong stock scanning, capital...
使用说明 (SKILL.md)

A-Share Short-Term Decision Skill

Implement in sequence:

  1. Run short_term_signal_engine(analysis_date) for target date.
  2. If needed, persist prediction with run_prediction_for_date(analysis_date).
  3. Compare prediction vs actual market with compare_prediction_with_market(prediction_date, actual_date).
  4. Output report with generate_daily_report(analysis_date).

Tool Contracts

short_term_signal_engine(analysis_date=None)

  • analysis_date: YYYY-MM-DD or YYYYMMDD
  • Returns weighted short-term score and recommendation status.
  • Always returns friendly no_recommendation_message when no tradable candidate exists.

run_prediction_for_date(analysis_date)

  • Runs signal engine for the specified date.
  • Appends decision snapshot into data/decision_log.jsonl.

compare_prediction_with_market(prediction_date, actual_date=None)

  • Loads prediction from log (or auto-generates if missing).
  • Compares predicted candidates against real market closes on actual_date.
  • Returns per-stock return and summary statistics.

No-Recommendation Behavior

Required behavior:

  • Never return empty output.
  • If candidates is empty or signal is NO_TRADE, explicitly say: 当前暂无可执行短线买入标的.
  • Include reason and next action.

Runtime

python3 main.py short_term_signal_engine --date 2026-02-12
python3 main.py run_prediction_for_date --date 2026-02-12
python3 main.py compare_prediction_with_market --prediction-date 2026-02-12 --actual-date 2026-02-13
python3 main.py generate_daily_report --date 2026-02-12

Subskills Workflow

For recurring optimize-then-recommend flow, run:

python3 subskills/config-optimization/optimize_from_aggressive.py --analysis-period "2026-02-01 to 2026-02-12"
python3 subskills/daily-recommendation/generate_daily_recommendation.py --date 2026-02-14

All generated artifacts are stored under data/.

安全使用建议
What to check before installing/running: - Dependencies: install and vet akshare and pandas in a controlled virtual environment before running; missing packages trigger fallback or errors. README indicates pip install akshare pandas. - Network access: the skill relies on akshare to fetch live/historical market data. Expect outbound network calls to public market-data sources; run it where that is acceptable. - Local files: the skill writes/reads data/decision_log.jsonl and reads config.json. Ensure you are comfortable with local persistence and its location, and run in an isolated workspace if you want to avoid mixing with other data. - Undeclared env vars: the code reads SHORT_DECISION_DEBUG and SHORT_DECISION_FALLBACK_ENABLED even though the skill metadata lists none — if you rely on fallback behavior or enable debug mode, set those explicitly and be aware of their effect. - Missing subskill scripts: SKILL.md references subskills under subskills/ but those files are not present in the manifest; verify whether those are required for your workflows. - Safety: this is an analysis/research tool, not investment advice. Test thoroughly on historical data and in a sandbox before using outputs to drive any live trading. If you want, I can list the precise akshare APIs this skill calls (useful to audit expected outbound endpoints) or point out the specific files/lines where the undeclared env vars and local writes occur.
功能分析
Type: OpenClaw Skill Name: a-share-short-decision-bak Version: 1.0.0 The skill bundle is a legitimate financial analysis tool designed for A-share short-term trading decisions. It utilizes the well-known 'akshare' library to fetch public market data, sentiment, and capital flow information. The code logic in 'tools/fusion_engine.py' and 'tools/market_data.py' is transparently focused on calculating trading signals and scores based on the parameters defined in 'config.json'. There is no evidence of data exfiltration, malicious execution, or prompt injection intended to subvert the agent's behavior; all file operations are restricted to a local 'data/' directory for logging predictions.
能力评估
Purpose & Capability
The name/description match the implementation: code implements market sentiment, sector rotation, stock scanning, capital flow analysis, risk control, prediction logging, and report generation. However the registry metadata declared no dependencies while the code clearly expects akshare and pandas (and README/requirements.md mention pip install akshare pandas). The skill writes/reads data/decision_log.jsonl (local persistence) which is coherent for a prediction logger.
Instruction Scope
SKILL.md instructions (run signal engine, persist prediction, compare with market, generate report) align with the code and with CLI examples in main.py. The runtime will read live market data via the akshare library and will read/write local files under data/. The SKILL.md and README mention subskills under subskills/ (optimize_from_aggressive.py, generate_daily_recommendation.py) but those subskill files are not present in the provided manifest — this is an inconsistency to verify. The runtime does not attempt to read unrelated system files or secrets, but it does read environment variables (SHORT_DECISION_DEBUG, SHORT_DECISION_FALLBACK_ENABLED) not declared in the skill metadata.
Install Mechanism
There is no formal install spec (instruction-only in registry), which is low risk, but the shipped code has external Python dependencies (akshare, pandas). The README/requirements.md advise pip install akshare pandas; missing these will cause the code to fall back to 'unavailable' behavior or error. No downloads from unknown URLs or installer scripts are present.
Credentials
The skill declares no required env vars/credentials but the code reads SHORT_DECISION_DEBUG and SHORT_DECISION_FALLBACK_ENABLED (to control debug output and data fallbacks). This is a mismatch between declared metadata and actual runtime behavior. No cloud credentials or secrets are requested, which is good. The skill will perform network requests via akshare to public market data providers (normal for this purpose) and will write logs to data/decision_log.jsonl.
Persistence & Privilege
The skill does local persistence (data/decision_log.jsonl) and includes a scheduler.yaml for recurring tasks, but it does not request permanent platform privileges (always:false) nor does it modify other skills. Autonomous invocation (disable-model-invocation:false) is the default; combined with moderate external access (akshare network calls) this increases runtime reach but is normal for a market-data skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install a-share-short-decision-bak
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /a-share-short-decision-bak 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the A股短线交易决策 (A-Share Short-Term Decision) skill: - Provides short-term (1–5 day) A-share trading signals using real market sentiment, sector rotation, and capital flow analysis. - Includes functions for generating, logging, and comparing daily trading predictions against market outcomes. - Robustly handles no-signal days with explicit no-trade messages and reasoning. - Offers a command-line interface for daily operation and workflow automation. - Supports recurring optimization and recommendation subskills for continuous enhancement.
元数据
Slug a-share-short-decision-bak
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 0
历史版本数 1
常见问题

A Share Short Decision.Bak 是什么?

A-share short-term trading decision skill for 1-5 day horizon. Use when you need real-data market sentiment, sector rotation, strong stock scanning, capital... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 217 次。

如何安装 A Share Short Decision.Bak?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install a-share-short-decision-bak」即可一键安装,无需额外配置。

A Share Short Decision.Bak 是免费的吗?

是的,A Share Short Decision.Bak 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

A Share Short Decision.Bak 支持哪些平台?

A Share Short Decision.Bak 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 A Share Short Decision.Bak?

由 Wu-XiaoLin(@wu-xiaolin)开发并维护,当前版本 v1.0.0。

💬 留言讨论