python-workspace — скилл для Claude Code: что делает и как установить
Скилл python-workspace экспортирует котировки из MetaTrader 5 и переносит индикаторы MQL5 на Python с проверкой корреляции от 0.999.
MIT 131 установок ★ 3 обновлён 2026-10-25
npx skills add terrylica/cc-skills --skill python-workspace -a claude-codeЧто делает python-workspace
Скилл настраивает рабочее окружение для переноса индикаторов MetaTrader 5 в код на Python. Он запускает выгрузку баров OHLCV и базовых индикаторов вроде RSI или SMA через связку Wine и Python в бутылке CrossOver без вызова графического интерфейса.
Для проверки точности расчётов действует жёсткий порог: корреляция между результатами MQL5 и Python должна быть не ниже 0.999. При расхождениях скилл помогает выровнять формулы и периоды прогрева истории.
Буферы пользовательских индикаторов недоступны через API MetaTrader 5 напрямую, поэтому для них придётся делать экспорт в CSV. На машине обязательно должен стоять CrossOver с настроенным каталогом терминала, иначе скрипты выгрузки не запустятся.
Какие задачи решает
- выгрузить историю баров OHLCV и штатных индикаторов без интерфейса MT5
- перенести логику индикатора MQL5 на чистый Python
- сверить результаты Python-индикатора с эталоном MetaTrader 5 по корреляции
- настроить запуск Python-скрипта внутри бутылки CrossOver на macOS
Примеры запросов агенту
- Экспортируй 5000 баров EURUSD M1 с индикатором RSI через headless-скрипт MT5
- Переведи этот индикатор с MQL5 на Python и проверь точность расчётов
- Помоги исправить ошибку подключения MT5 API при запуске через Wine
Как установить python-workspace
1Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill python-workspace -a claude-code2Вручную: положить файлы
~/.claude/skills/python-workspace/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/python-workspace/
1Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill python-workspace -a codex2Вручную: положить файлы
.agents/skills/python-workspace/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill python-workspace -a cursor2Вручную: положить файлы
.cursor/skills/python-workspace/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install terrylica/cc-skills plugins/mql5/skills/python-workspace2Вручную: положить файлы
.github/skills/python-workspace/SKILL.md1Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill python-workspace -a gemini-cli2Командой платформы
gemini skills install https://github.com/terrylica/cc-skills --path plugins/mql5/skills/python-workspaceВручную: положить файлы
.devin/skills/python-workspace/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add terrylica/cc-skills --skill python-workspace -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о python-workspace
Как установить python-workspace в Claude Code?
Выполните в терминале команду npx skills add terrylica/cc-skills --skill python-workspace -a claude-code. Файл конфигурации сохранится по пути ~/.claude/skills/python-workspace/SKILL.md.
Что делает скилл python-workspace?
Он автоматизирует перенос торговых индикаторов с языка MQL5 на Python, организует фоновый экспорт данных из терминала MetaTrader 5 и проверяет совпадение значений с эталоном.
Можно ли экспортировать через API пользовательские индикаторы?
Нет, из-за ограничений API терминала MetaTrader 5 получить доступ к буферам сторонних индикаторов нельзя. Для них нужно формировать выгрузку в CSV вручную.
Исходный текст
SKILL.md · MIT
--- name: python-workspace description: Python workspace for MQL5 integration. TRIGGERS - MetaTrader 5 Python, mt5 package, MQL5-Python setup. allowed-tools: Bash, Read, Write --- # MQL5-Python Translation Workspace Skill Seamless MQL5 indicator translation to Python with autonomous validation and self-correction. --- > **Self-Evolving Skill**: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues. ## When to Use This Skill Use this skill when the user wants to: - Export market data or indicator values from MetaTrader 5 - Translate MQL5 indicators to Python implementations - Validate Python indicator accuracy against MQL5 reference - Understand MQL5-Python workflow capabilities and limitations - Troubleshoot common translation issues **Activation Phrases**: "MQL5", "MetaTrader", "indicator translation", "Python validation", "export data", "mql5-crossover workspace" --- ## Core Mission **Main Theme**: Make MQL5-Python translation **as seamless as possible** through: 1. **Autonomous workflows** (headless export, CLI compilation, automated validation) 1. **Validation-driven iteration** (>=0.999 correlation gates all work) 1. **Self-correction** (documented failures prevent future mistakes) 1. **Clear boundaries** (what works vs what doesn't, with alternatives) **Project Root**: `~/Library/Application Support/CrossOver/Bottles/MetaTrader 5/drive_c` --- ## Workspace Capabilities Matrix ### WHAT THIS WORKSPACE CAN DO #### 1. Automated Headless Market Data Export (v3.0.0) **Status**: PRODUCTION (0.999920 correlation validated) **What It Does**: - Fetches OHLCV data + built-in indicators (RSI, SMA) from any symbol/timeframe - True headless via Wine Python + MetaTrader5 API - No GUI initialization required (cold start supported) - Execution time: 6-8 seconds for 5000 bars **Command Example**: ```bash CX_BOTTLE="MetaTrader 5" \ WINEPREFIX="$HOME/Library/Application Support/CrossOver/Bottles/MetaTrader 5" \ wine "C:\\Program Files\\Python312\\python.exe" \ "C:\\users\\crossover\\export_aligned.py" \ --symbol EURUSD --period M1 --bars 5000 ``` **Use When**: User needs automated market data exports without GUI interaction **Limitations**: Cannot access custom indicator buffers (API restriction) **Reference**: `/docs/guides/WINE_PYTHON_EXECUTION.md` --- ## Reference Documentation For detailed information, see: - [Capabilities Detailed](./references/capabilities-detailed.md) - In-depth capability documentation - [Complete Workflows](./references/workflows-complete.md) - End-to-end user workflows - [Troubleshooting & Errors](./references/troubleshooting-errors.md) - Requirements, assumptions, error patterns - [Validation Metrics](./references/validation-metrics.md) - Success metrics and version history --- ## Troubleshooting | Issue | Cause | Solution | | ---------------------------- | ---------------------------- | ---------------------------------------------------- | | Wine Python not found | CrossOver/Wine not installed | Install CrossOver, verify bottle path | | MT5 API connection failed | MetaTrader not running | Launch MetaTrader 5 before running export | | Correlation below 0.999 | Indicator mismatch | Verify warmup periods, check calculation alignment | | Custom indicator not working | API restriction | Use CSV export from MT5, not Python API | | UnicodeDecodeError | Windows path encoding | Use raw strings for Windows paths in Wine | | Symbol not found | Wrong symbol format | Use exact MT5 symbol name (e.g., EURUSD not EUR/USD) | | Timeout on export | Too many bars requested | Reduce bar count, default 5000 is safe | | Permission denied | Wine prefix incorrect | Set WINEPREFIX to correct CrossOver bottle path | ## Post-Execution Reflection After this skill completes, check before closing: 1. **Did the command succeed?** — If not, fix the instruction or error table that caused the failure. 2. **Did parameters or output change?** — If the underlying tool's interface drifted, update Usage examples and Parameters table to match. 3. **Was a workaround needed?** — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround. Only update if the issue is real and reproducible — not speculative.
© terrylica · MIT · terrylica/cc-skills