Contributing to CodeFlow / 贡献指南
April 21, 2026 · View on GitHub
English
Thank you for your interest in contributing to CodeFlow!
Ways to Contribute
- Bug Reports — Open an Issue with reproduction steps
- Feature Requests — Describe the use case and expected behavior
- Code — Fix bugs or implement features via Pull Requests
- Documentation — Improve docs, fix typos, add translations
- Testing — Report compatibility issues on different OS / Cursor versions
Getting Started
- Fork this repository
- Clone your fork:
git clone https://github.com/<your-username>/codeflow-pwa.git cd codeflow-pwa - Create a feature branch:
git checkout -b feat/your-feature
Development Setup
Desktop (Python 3.12)
cd codeflow-desktop
pip install pyautogui pyperclip pywin32 websockets winocr Pillow watchdog psutil
python main.py
PWA (Static HTML)
# No build step — open web/pwa/index.html in browser
# Or use a local server:
python -m http.server 8080 -d web/pwa
MCP Plugin
cd codeflow-plugin
pip install -r requirements.txt
Project Structure
BridgeFlow/
├── codeflow-desktop/ # Desktop app (Python, PyInstaller)
├── codeflow-plugin/ # Cursor MCP plugin
├── web/pwa/ # PWA source (HTML/JS)
├── docs/ # Documentation (bilingual)
├── server/relay/ # WebSocket relay server
└── .cursor/rules/ # AI agent role definitions
Pull Request Guidelines
- One PR per feature/fix — keep changes focused
- Test your changes — run the desktop app and verify core flows
- Follow existing style — Python 3.10+ type hints, no unused imports
- Bilingual docs — if you modify a
.mdindocs/, update the.en.mdcounterpart too - No secrets — never commit tokens, passwords, or API keys
Commit Message Format
type: short description
# Types: feat, fix, docs, refactor, ci, release, chore
# Examples:
# feat: add CDP retry logic for flaky connections
# fix: patrol trace missing timestamp in English locale
# docs: add Japanese translation for README
Code of Conduct
Please read our Code of Conduct before participating.
中文
感谢你对 CodeFlow 的关注!
贡献方式
- Bug 报告 — 提交 Issue,附上复现步骤
- 功能建议 — 描述使用场景和预期行为
- 代码贡献 — 通过 Pull Request 修复 Bug 或实现新功能
- 文档改善 — 改进文档、修正错别字、补充翻译
- 测试反馈 — 反馈不同操作系统 / Cursor 版本的兼容性问题
快速开始
- Fork 本仓库
- 克隆你的 fork:
git clone https://github.com/<你的用户名>/codeflow-pwa.git cd codeflow-pwa - 创建功能分支:
git checkout -b feat/your-feature
开发环境
桌面端(Python 3.12)
cd codeflow-desktop
pip install pyautogui pyperclip pywin32 websockets winocr Pillow watchdog psutil
python main.py
PWA(纯静态 HTML)
# 无需构建,直接在浏览器打开 web/pwa/index.html
# 或使用本地服务器:
python -m http.server 8080 -d web/pwa
PR 规范
- 一个 PR 只做一件事
- 自测通过 — 启动桌面端验证核心流程
- 遵循现有风格 — Python 3.10+ 类型注解,无多余 import
- 双语文档 — 修改
docs/下的.md时,同步更新.en.md - 禁止提交敏感信息 — token、密码、API key 等
行为准则
参与贡献前请阅读行为准则。