stock-planner
Skill0 starsChanged 3 months agoMITView on GitHub
交易计划生成器。基于当前持仓、市场状态和策略规则 生成下一交易日的买卖建议。支持仓位风险评估、 止损止盈检查、仓位控制、买入优先级排序。
In this repository6 other files it gives its agents.
- backtest-analyzerSkill
- fund-flowSkill
- market-sentimentSkill
- market-signalsSkill
- stock-screenerSkill
- trade-trackerSkill
The file
Files
⚠️ 免责声明:本工具为辅助性参考工具,不构成投资建议,不构成法律建议。市场有风险,投资需谨慎;据此操作,风险自担。正式合规意见请咨询具备资质的律师。最终决策与责任由使用者自行承担。 仅供学习研究参考;> 仅供参考,不构成任何操作依据;市场有风险,投资需谨慎,据此操作风险自担。
📋 Stock Planner
Overview
根据当前持仓和市场状态生成下一交易日的操作计划。自动计算每只股票的盈亏,检查止损/止盈条件,给出持有/关注/止损/止盈建议,并根据市场状态控制整体仓位。
Usage
# 标准计划(默认震荡市)
python3 scripts/stock_planner.py --positions positions.csv
# 指定市场状态和可用资金
python3 scripts/stock_planner.py --positions pos.csv --market weak --cash 300000
# 输出JSON
python3 scripts/stock_planner.py --positions pos.csv --output plan.json --json输出示例
📋 交易计划 — 震荡市场
=============================================
生成时间: 2026-07-19 18:30
市场判定: 震荡 (风险:中)
=============================================
持仓总数: 5/5
持仓市值: 785,320.00
总盈亏: +28,450.00 (+3.8%)
仓位比例: 78.5%
可用资金: 215,000.00 (21.5%)
代码 盈亏% 操作 说明
------------------------------------------------
比亚迪 -7.2% 👀 关注 亏损-7.2%,接近止损线
宁德时代 -9.5% 🔴 止损 亏损-9.5%,触发止损
中芯国际 +15.3% 📌 观察 (示例:盈利15.3%,考虑减持)
茅台 +3.1% 持有
药明康德 -2.5% 持有
🔴 止损: 宁德时代 — 亏损-9.5%,触发止损
💡 仓位78.5% > 目标50.0%(示例:建议减仓,仅供参考)市场状态参考
| 参数 | 建议仓位 | 最大持仓 | 风险 |
| strong | 85% | 8只 | 低 |
| moderate | 65% | 6只 | 中低 |
| oscillate(默认) | 50% | 5只 | 中 |
| weak | 35% | 4只 | 中高 |
| bear | 20% | 3只 | 高 |
Security
- ✅ 纯本地运行,无网络请求
- ✅ 只读持仓文件
- ❌ 无任意代码执行
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

