← Back to Skills Marketplace
wu-xiaolin

A Share Short Decision.Bak

by Wu-XiaoLin · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
217
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install a-share-short-decision-bak
Description
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...
README (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/.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install a-share-short-decision-bak
  3. After installation, invoke the skill by name or use /a-share-short-decision-bak
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug a-share-short-decision-bak
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 217 downloads so far.

How do I install A Share Short Decision.Bak?

Run "/install a-share-short-decision-bak" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is A Share Short Decision.Bak free?

Yes, A Share Short Decision.Bak is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does A Share Short Decision.Bak support?

A Share Short Decision.Bak is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created A Share Short Decision.Bak?

It is built and maintained by Wu-XiaoLin (@wu-xiaolin); the current version is v1.0.0.

💬 Comments