🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

stock-scheme-tracker

by @dcsight

Save and track stock investment strategies with entry/exit conditions in a local Markdown file and check current market data to recommend next steps.

Versionv1.1.0
When to Use
TriggerAction
- The user says "保存策略", "把策略记下来", "跟踪这个票", "save strategy", "track this stock", or any variant.
### Extraction Rules
From the analysis text, extract these fields. If a field is not mentioned, mark it as "未明确" rather than fabricating.
| Field | Description | Example |
|-------|-------------|---------|
| `stock_code` | Stock code | 688111 |
| `stock_name` | Stock name | 金山办公 |
| `analysis_date` | Analysis date | 2026-04-22 |
| `recommendation` | Core recommendation | 建议观察,等待更好入场时机 |
| `entry_conditions` | Entry conditions (price/valuation/events) | PE≤45-50;股价180-200元 |
| `stop_loss` | Stop-loss condition | 跌破前期低点或技术位 |
| `target_price` | Target price / take-profit range | 机构目标价400元 |
| `exit_signals` | Exit signals (assumption invalidation) | 月活环比下滑;市场份额跌破80% |
| `position_size` | Suggested position size | 轻仓试探 |
| `time_horizon` | Holding period | 3年 |
| `key_assumptions` | Key assumptions | AI商业化持续推进 |
| `open_questions` | Open questions | WPS AI付费转化率是多少 |
| `current_price` | Price at analysis | ~250元 |
| `current_pe` | PE at analysis | 62.46 |
| `market_cap` | Market cap at analysis | 1147亿 |
### Output Format
Append a new section to the scheme file (path from `STOCK_SCHEME_PATH` env var) using the exact format defined in `references/scheme_format.md`. Use Markdown table for entry conditions so they can be machine-parsed later.
### Important
- If the stock already exists in the scheme file, update the existing section rather than duplicating it. Preserve historical entries by appending a date-stamped update note.
- After saving, briefly confirm to the user what was saved.
💡 Examples

Install

Copy the skill directory to your agent's skills folder:

# OpenClaw
cp -r stock-scheme-tracker ~/.openclaw/skills/

WorkBuddy

cp -r stock-scheme-tracker ~/.workbuddy/skills/

Claude Code (project-level)

cp -r stock-scheme-tracker .claude/skills/

Configure

Set the environment variable to point to your tracking file:

# Add to your shell profile (~/.zshrc, ~/.bashrc, etc.)
export STOCK_SCHEME_PATH="$HOME/Documents/stock/scheme.md"

Or configure via your agent's config:

// OpenClaw: ~/.openclaw/openclaw.json
{
  "skills": {
    "entries": {
      "stock-scheme-tracker": {
        "env": {
          "STOCK_SCHEME_PATH": "~/Documents/stock/scheme.md"
        }
      }
    }
  }
}

If STOCK_SCHEME_PATH is not set, the skill defaults to ~/Documents/stock/scheme.md.

Verify

echo $STOCK_SCHEME_PATH

Should output your configured path


📋 Tips & Best Practices

| Problem | Cause | Fix | |---------|-------|-----| | "No such file or directory" | STOCK_SCHEME_PATH not set or points to invalid path | Set env var or rely on default ~/Documents/stock/scheme.md | | Strategy not found during check | Scheme file is empty or format is corrupted | Verify the file uses the format in references/scheme_format.md | | Duplicate entries for same stock | Save mode ran twice without updating | The script auto-detects duplicates; if using manual edit, follow the update convention | | Chinese characters garbled in output | Terminal encoding mismatch | Ensure your terminal uses UTF-8 (export LANG=en_US.UTF-8 or zh_CN.UTF-8) |

View on ClawHub
TERMINAL
clawhub install stock-scheme-tracker

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →