code-standards

Enforce coding standards and review-driven workflows for Python, PyTorch, shell scripts, and configs.

890|61|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/Tencent-Hunyuan/UniRL --skill code-standards-tencent-hunyuan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-standards
Source: https://github.com/Tencent-Hunyuan/UniRL/tree/main/unirl-reward-service/.claude/skills/code-standards
Command: npx skills add https://github.com/Tencent-Hunyuan/UniRL --skill code-standards-tencent-hunyuan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps maintainers and developers keep Python, PyTorch, shell scripts, and configuration files consistent, readable, and safe to change. It also enforces a full development workflow so new work starts with project exploration, proceeds through an approved plan, and ends with tests, simplification, review, and documentation updates.

Core Features & Use Cases

  • Code Quality Rules: Applies naming, typing, docstring, import, and error-handling standards across code changes.
  • Workflow Enforcement: Requires project-wide reconnaissance before editing existing repositories and insists on an approved implementation plan for non-trivial work.
  • Post-Change Validation: Ensures changes are backed by unit tests, then checked through simplify and review passes before completion.
  • Use Case: Ideal when you need to add a new Python module, refactor PyTorch training logic, create a shell script, or update configuration files in a mature codebase without duplicating existing utilities.

Quick Start

Ask the code-standards skill to inspect the repository, propose a plan, implement the requested change, and validate it with tests and review.

Frequently Asked Questions about code-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce code standards when refactoring PyTorch training logic?

To enforce code standards when refactoring PyTorch training logic, the skill requires project reconnaissance, an approved implementation plan, and post-change tests with documentation updates. This ensures existing Python and PyTorch modules remain readable and safe.

What is the best way to maintain consistent Python and shell scripts in a mature codebase?

The best way to maintain consistent Python and shell scripts is applying naming, typing, docstring, and import standards across code changes. It enforces a review-driven workflow requiring project reconnaissance before editing existing repositories.

Does this workflow require an implementation plan before adding new Python modules?

Yes, the workflow requires an approved implementation plan for non-trivial work before adding new Python modules. It insists on project-wide reconnaissance first to avoid duplicating existing utilities in mature codebases.

How do I validate configuration file changes after updating a repository?

To validate configuration file changes after updating a repository, the skill mandates post-change validation. It ensures changes are backed by unit tests, then checked through simplify and review passes before completion.

When do I need to perform project reconnaissance before editing shell scripts?

You need to perform project reconnaissance before editing shell scripts whenever working within an existing repository. This prevents duplicating existing utilities and maintains consistent code standards across the codebase.