Stock Debate: Advanced A-Share Market Analysis for Openclaw

A sophisticated AI agent skill that conducts adversarial bull-versus-bear debates to provide deep, data-driven insights into the A-share stock market.

jioup777
v2.1.0
Mar 23, 2026
0
932
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install a-stock-debate

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install a-stock-debate using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Stock Debate: Advanced A-Share Market Analysis?

The stock-debate skill is a high-performance tool designed for the Openclaw Skills ecosystem, specifically engineered to provide structural investment briefs for the Chinese A-share market. By simulating a rigorous debate between virtual bull and bear researchers, the skill moves beyond simple data reporting to provide a deep, dialectical analysis of any given stock ticker. It synthesizes real-time market data, historical K-line trends, financial indicators, and capital flow to help traders understand the core conflicts in a stock's valuation.

Built for developers and serious investors, this skill leverages a multi-model approach, utilizing glm-4-flash for rapid data synthesis and glm-5 for complex reasoning and final decision-making. It ensures that every investment recommendation is backed by a transparent logic chain and rigorous cross-examination, making it a premier choice among Openclaw Skills for financial intelligence.

Stock Debate: Advanced A-Share Market Analysis Use Cases

  • Conducting deep-dive research on specific A-share stocks using the debate trigger.
  • Identifying hidden risks through adversarial bear-case simulations.
  • Generating structured investment briefs that include target prices and stop-loss levels.
  • Analyzing 60-day technical trends alongside 10-day capital flow data.
  • Evaluating fundamental health using ROE, net profit margins, and debt-to-asset ratios.

How Stock Debate: Advanced A-Share Market Analysis Works

  1. Trigger & Proxy Initialization: The agent activates upon stock-specific commands and initiates a local proxy (mihomo) to bypass regional data restrictions for specific financial endpoints.
  2. Multi-Source Data Collection: A Python-based engine fetches real-time quotes from Tencent Finance, capital flows from East Money, and historical indicators via AkShare.
  3. Fundamental & Technical Baselining: The glm-4-flash model processes the raw data to create an initial summary of the stock's financial health and technical chart patterns.
  4. Adversarial Debate Phase: The glm-5 model assumes two roles—a bull researcher and a bear researcher—who compete over two rounds of rebuttals to identify the strongest arguments and most critical risks.
  5. Synthesis & Decision: The agent aggregates the debate findings into a final recommendation, including position sizing, timeframes, and a confidence rating.
  6. Cleanup: The skill automatically terminates proxy services to ensure system resources are restored and security is maintained.

Stock Debate: Advanced A-Share Market Analysis Setup

To integrate this into your environment, ensure you have the necessary API keys and proxy tools configured.

# Set your environment variables
export STOCK_PROXY="http://127.0.0.1:7890"
export GLM_API_KEY="your_bigmodel_api_key"

# Install required Python dependencies
pip install requests akshare

# Ensure the mihomo (Clash Meta) binary is available at /tmp/mihomo_bin
# and your configuration is at /tmp/mihomo_config.yaml

Stock Debate: Advanced A-Share Market Analysis Data Schema & Taxonomy

The skill organizes data into a structured hierarchy for LLM consumption:

Data Type Source Purpose
Real-time Quotes Tencent Finance Current price, PE ratio, Market Cap
Historical K-Line Tencent Finance 60-day trend analysis and moving averages
Capital Flow East Money 10-day main force and retail flow tracking
Financial Indicators Tushare/AkShare ROE, Net Profit, Debt ratios, and Revenue growth
Debate Metadata Internal LLM Reasoning logs, rebuttal scores, and confidence levels

Stock Debate: Advanced A-Share Market Analysis Advanced Features

  • Adversarial Reasoning: Uses a dual-agent debate system to eliminate confirmation bias.
  • Dynamic Proxy Management: Automatically toggles high-performance proxies only during sensitive data collection phases.
  • Multi-Model Orchestration: Routes simpler tasks to flash models while reserving advanced reasoning for flagship models to optimize token usage.
  • Structured Brief Generation: Outputs a complete Markdown report with tables, risk warnings, and actionable trading parameters.
  • Token Budgeting: Implements data summarization techniques to keep complex debate workflows within a 30,000-token limit.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*