Skip to main content

code-standards

代码规范与完整开发工作流,涵盖 Python、PyTorch/深度学习、Shell 脚本、配置文件。贯穿始终的四条设计原则:易读直观、拒绝过度抽象、单一职责、命名自解释。强制三段式流程:(1)写代码前——在已有项目上开发时必须先了解项目全貌避免重复实现,然后先出 plan(思路+实现步骤)并获得用户批准才能开工;(2)写代码中——遵循命名/类型/docstring/张量操作/异常处理等规范,同时时刻守住四条设计原则;(3)写代码后——必须先补齐对应单元测试并本地跑通,再主动调用 simplify 简化新代码,最后调用 review 做审查。触发条件:用户要求写/生成/重构 Python 或 PyTorch 代码;用户要求在已有项目/代码库上开发;用户创建新模块、脚本或训练循环;用户说"按代码规范来"或引用 /code-standards。

Jump to install

Source facts

Repository
Tencent-Hunyuan/UniRL
Last source activity
June 9, 2026 at 07:09
Detected SKILL.md language
Chinese
Stars
921
Forks
64

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.