一键导入
code-review
Review code changes in Copex for bugs, style issues, and best practices. Use this when reviewing PRs or code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review code changes in Copex for bugs, style issues, and best practices. Use this when reviewing PRs or code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Debug issues in Copex, especially streaming, content display, and event handling bugs. Use this when investigating bugs, unexpected behavior, or errors.
Add new features to Copex. Use this when asked to implement new functionality, add CLI commands, or extend the client.
Release and publish Copex to PyPI. Use this when asked to release, publish, bump version, or create a new version.
Write and run tests for Copex. Use this when asked to write tests, fix tests, improve coverage, or debug test failures.
| name | code-review |
| description | Review code changes in Copex for bugs, style issues, and best practices. Use this when reviewing PRs or code changes. |
from __future__ import annotations for forward refsasync/await for all I/Oclient.py)on_event()received_content flag set when content arriveserror_holdercli.py)FakeSession to mock SDKon_chunkWhen streaming, NEVER use history fallback:
# BAD
if not received_content:
messages = await session.get_messages() # Stale!
# GOOD
if not received_content and on_chunk is None:
messages = await session.get_messages()
When streaming, prefer accumulated UI state:
# BAD
ui.set_final_content(response.content, response.reasoning)
# GOOD
final_message = ui.state.message if ui.state.message else response.content
ui.set_final_content(final_message, final_reasoning)
Both files must have same version:
pyproject.toml → version = "X.Y.Z"src/copex/cli.py → __version__ = "X.Y.Z"## Summary
Brief description of changes
## Status
- [ ] Approved
- [ ] Changes Requested
## Critical Issues
- Must-fix problems
## Suggestions
- Nice-to-have improvements
## Positive
- Good patterns used