一键导入
strategy-frontend
Apply the W6-W8 shared frontend system for strategy routes, UI pages, charts, and export surfaces in this repository.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply the W6-W8 shared frontend system for strategy routes, UI pages, charts, and export surfaces in this repository.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
量化策略项目的周任务规划。当用户想知道本周该做什么、需要拆解周任务、或要分配AI工具时使用。
Work on the core strategy pipeline in this repository: data loading, indicators, signals, FA/ML filters, backtest, baselines, evaluation, and optimization. Use when a task changes strategy logic, signal columns, evaluation outputs, or core pipeline interfaces from `core/data.py` through `core/backtest.py`.
Work on deployment, runtime, routing base paths, sync scripts, and Nginx configuration in this repository. Use when a task touches `.streamlit/config.toml`, `deploy/*.bat`, `deploy/*.sh`, `deploy/nginx_strategy.conf`, service names, upload lists, or public `/strategy` routing behavior.
Find interfaces, call chains, inputs, outputs, and ownership boundaries in this repository. Use when the task asks where an interface lives, which function owns a feature, what data flows between modules, what state key drives a page, or which skill should handle the next step.
Work on the multi-stock analysis page, portfolio simulation, market context, and multi-stock result surfaces in this repository. Use when a task touches `ui/multi_stock.py`, `core/portfolio.py`, `core/market_context.py`, portfolio result dictionaries, or multi-stock export behavior.
Work on the single-stock workflow, artifact lifecycle, stage cache, lineage, and single-stock result board in this repository. Use when a task touches `ui/single_stock_workflow.py`, `current_artifact`, `saved_artifacts`, stage caching, request signatures, or single-stock strategy result wiring.
基于 SOC 职业分类
| name | strategy-frontend |
| description | Apply the W6-W8 shared frontend system for strategy routes, UI pages, charts, and export surfaces in this repository. |
Use this skill when the task touches frontend-facing work in this repository, especially:
app.pyui/core/visualization.pyRead these before planning or editing:
AI_CONTEXT.mddocument/FRONTEND_STYLE_STANDARD.mdIf document/UI_DESIGN_GUIDE.md conflicts with the new standard, prefer document/FRONTEND_STYLE_STANDARD.md for W6-W8 work.
Read document/interfaces/frontend-contracts.md for frontend-facing contracts before tracing code.
Add one adjacent interface doc only when the task crosses that boundary:
document/interfaces/single-stock-workflow.md for artifact, lineage, stage cache, or single-stock result-board wiringdocument/interfaces/multi-stock-portfolio.md for multi-stock result surfaces, market context, or portfolio result wiringdocument/interfaces/strategy-pipeline.md for core signal/backtest outputs that surface directly in UIThe approved visual direction is whatever is currently frozen in document/FRONTEND_STYLE_STANDARD.md.
That means:
render_html() path, with st.html() preferredDo not reintroduce the earlier blue-gray paper-card dashboard language unless the user explicitly asks for it.
ui/theme.py before adding page-local wrappers or CSS.render_html() instead of page-local markdown hacks.zh/en.core/ strategy and workflow contracts stable unless the task explicitly requires backend changes.Every new UI block must define:
暂无数据 / N/A)Do not let a missing upstream field break an entire page section.
document/interfaces/frontend-contracts.md already answers the page contract.strategy-interface-alignment instead of re-scanning the whole repository.st.markdown(..., unsafe_allow_html=True) as the primary pathBefore finishing frontend work, confirm:
document/FRONTEND_STYLE_STANDARD.md