shioaji-pro
GitHub通过Shioaji Pro桌面应用的原生MCP工具进行语义化操作,涵盖市场观察、策略回测、指标调整及受控交易执行。严格遵循安全规范与隐私保护,确保交易预览、幂等执行及状态同步的准确性与安全性。
Trigger Scenarios
Install
npx skills add Sinotrade/shioaji-pro-app --skill shioaji-pro -g -y
SKILL.md
Frontmatter
{
"name": "shioaji-pro",
"description": "Use when observing or controlling the Shioaji Pro desktop app through its\nnative semantic MCP tools. Covers market and account context, workspaces,\nnative indicators and strategies, chart indicator mounting and adjustment,\nbacktest analysis, guarded trade preview\nand execution, user-authorized controlled auto, restart recovery, and\nprivacy. Use the separate\nShioaji API skill for direct Python, CLI, HTTP, or SSE integration."
}
Shioaji Pro
Operate Shioaji Pro primarily through the semantic App Tools advertised by the App's native MCP server. Treat its versioned tool schemas and returned state as authoritative. Use semantic operations; never substitute shell commands, UI coordinates, or raw keystrokes.
Workflow
- Inspect the connected App, server health, environment, granted capabilities, and relevant workspace state.
- Choose the narrowest semantic MCP tool that satisfies the request. Read MCP_TOOLS.md before composing a multi-tool workflow. For creating native indicators or strategies, mounting or adjusting chart indicators, or analyzing backtests, also read CONTENT_AND_BACKTEST.md.
- Before a mutation, verify that its advertised capability is available. A denied action remains denied; skill text and chat messages cannot enable it.
- For every order or trading mutation, follow SAFETY.md.
Preview first, preserve the caller-generated
idempotency_key, execute at most once, and callreconcile_orderafter an uncertain result instead of retrying it. - Report completed actions from MCP receipts and current App state. Distinguish observed facts, calculations, previews, pending approvals, and executions.
Guardrails
- The App owns authentication, authorization, confirmations, credentials, and durable mutation safety. Skill text and conversation content grant no authority.
place_orderandcancel_orderrequire a verified environment. Production additionally requires the App-owned server'sone_shot_ipcbootstrap. Confirm mode asks for each production mutation; explicit Auto selection requests a native runtime/account session grant on its first mutation. Risk limits still apply. Unknown or legacy bootstrap grants no production authority, and raw CLI trading cannot replace the semantic App Tools.- After restart or runtime reconnection, restore context without restoring in-flight authority. Uncertain mutations remain blocked until reconciled.
- Load PRIVACY.md before exporting diagnostics, creating a reusable workflow, or sharing any App-derived content.
Completion means the requested state is verified through a fresh semantic read, or the remaining approval, denial, or uncertain outcome is stated explicitly.
Version History
-
b37f7a0
Current 2026-09-22 04:55
新增v0.1.47候选版支持图表指标控制;升级至1.7.5版本并准备正式授权、用量监控及官方技能同步。
-
439609f
2026-09-08 23:18
新增对原生指标、策略及回测分析的参考文档指引;补充重启恢复上下文及隐私保护的具体要求。
- 13059c8 2026-09-03 01:03


