Install
openclaw skills install stock-scheme-trackerSave and track stock investment strategies with entry/exit conditions in a local Markdown file and check current market data to recommend next steps.
openclaw skills install stock-scheme-trackerSave per-stock investment strategies extracted from analysis reports into a persistent tracking file, then periodically check if market conditions have triggered any entry, stop-loss, or take-profit conditions. Provide actionable next-step recommendations.
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/
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.
echo $STOCK_SCHEME_PATH
# Should output your configured path
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亿 |
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.
STOCK_SCHEME_PATH env var).entry_conditions row: compare current value vs target value.✅ 已触发, ❌ 未触发, or ⚠️ 接近触发.exit_signals have occurred.## 策略核对报告 — 2026-04-23
### 金山办公 (688111)
| 条件类型 | 目标 | 当前 | 状态 |
|----------|------|------|------|
| PE建仓 | ≤45-50 | 62.46 | ❌ 未触发 |
| 股价建仓 | 180-200 | 250 | ❌ 未触发 |
**建议**: 继续观察,等待PE回落至50以下或股价跌破200再考虑建仓。
Here are natural-language prompts that trigger this skill:
| Variable | Purpose | Required | Set Via |
|---|---|---|---|
STOCK_SCHEME_PATH | Path to the strategy tracking Markdown file | No (defaults to ~/Documents/stock/scheme.md) | Shell profile or agent config |
STOCK_SCHEME_PATH. No network calls are made by save_scheme.py or check_scheme.py.STOCK_SCHEME_PATH (a file path). It never asks for API keys, tokens, passwords, or any other credentials.STOCK_SCHEME_PATH points to a .md file and will create parent directories if needed.| 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) |