fix(agent): include framework category in skill rendering + Docker strategies missing (#406)

* fix(agent): include framework category in skill instructions rendering

`get_skill_instructions()` only iterated over ["trend", "pattern",
"reversal"] categories, silently dropping all strategies with
`category: framework` (box_oscillation, chan_theory, wave_theory,
emotion_cycle). Add "framework" to the category map and use a
dynamic fallback so future custom categories are never lost.

Also:
- Document `AGENT_SKILLS=all` shorthand in .env.example
- Add `AGENT_SKILLS` config to README
- Add CHANGELOG entry
- Update strategies/README.md and Skill docstring with framework category

Fixes #403

* fix(docker): include strategies directory in Docker image and compose

Dockerfile was missing `COPY strategies/ ./strategies/`, and
docker-compose.yml did not mount the strategies directory, causing
all 11 built-in strategies to fail loading in containerized deployments.

---------

Co-authored-by: ma_k <ma_k@ctrip.com>
This commit is contained in:
Mark
2026-02-26 20:44:24 +08:00
committed by GitHub
parent 026630adb4
commit 75896f6d05
7 changed files with 16 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ name: my_strategy
display_name: 我的策略
description: 简短描述策略适用的市场场景
# 策略分类trend趋势、pattern形态、reversal反转
# 策略分类trend趋势、pattern形态、reversal反转、framework框架
category: trend
# 关联的核心交易理念编号1-7可选