Preface¶
When writing new features, vague naming, overly long functions, and the ripple effect of changing one part affecting others are the most common readability issues in daily development. If a team relies solely on verbal agreements or scattered checklists, AI-assisted coding often still piles up logic, copies and pastes, and starts modifying files before fully grasping the call relationships.
Below is an introduction to clean-code-review-1-0-0 on SkillHub (coordinates @user_15292d5a/yjkj-clean-code-review-1-0-0, version 1.0.0). It organizes “Clean Code” related conventions into an Agent-readable Skill, covering naming, functions, structure, anti-patterns, and pre-edit safety checks. It is intended for writing code, refactoring, reviewing, and establishing standards, rather than replacing manual Code Reviews.
What is this¶
clean-code-review-1-0-0 belongs to the SkillHub category dev-programming, marked as community source, uploaded by publisher user_15292d5a. The positioning given by the SkillHub page is:
Pragmatic coding standards for writing clean, maintainable code — naming, functions, structure, anti-patterns, and pre-edit safety checks. Use when writing new code, refactoring existing code, reviewing code quality, or establishing coding standards.
The tag requires_api_key=false indicates that no extra API Key configuration is needed for installation and use according to the page description. As of SkillHub data scraping: Rating 100000, Downloads 749, Installation Count 0 (subject to platform statistics).
Core Features¶
According to the official description, the capability boundaries checkable on the Skill side are as follows. Details of rules not expanded upon on the page are subject to the main content of the SKILL within the package; this article does not invent specific items.
- Naming: When generating or rewriting code, select names based on maintainability constraints.
- Functions: Constrain function responsibilities and granularity, reducing the accumulation of long functions that are hard to test and reuse.
- Structure: Provide consistent tendencies regarding module, file, and hierarchy division, reducing the probability of “breaking a whole area by changing one part.”
- Anti-patterns: Provide constraints on common code smells, facilitating reference during review and refactoring.
- Pre-edit Safety Checks: Verify context and risks before modifying files, suitable for coordinating with an Agent’s “read then modify” workflow.
Applicable trigger scenarios (original text): Writing new code, refactoring existing code, reviewing code quality, establishing coding standards.
Installation and Enablement¶
Installation methods follow the SkillHub official documentation skillhub.md. Consistent with other Skill pages by the same publisher, you can use the following prompt for the Agent to complete the installation according to the documentation:
Please install `@user_15292d5a/yjkj-clean-code-review-1-0-0` according to https://skillhub.cn/install/skillhub.md.
If the local machine has not installed the skillhub CLI yet, you can check the version first, then execute a full installation or install CLI only as needed:
command -v skillhub && skillhub --version
# Full installation (CLI + default Skills, recommended)
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
# CLI only installation
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
When installing a skill, you must use --dir to point to the current Agent’s skills directory; the documentation states that the default installation to ./skills/ may not be recognized by the current Agent. In a Cursor environment, the skills directory is:
~/.cursor/skills/
Example installation command (replace the directory with the actual Agent skills path you are using):
skillhub install user_15292d5a/yjkj-clean-code-review-1-0-0 --dir ~/.cursor/skills/
The documentation also lists skills directories for other products (such as Claude Code, Codex, etc.); if used in a non-Cursor environment, refer to Section 4 of skillhub.md to replace --dir, and do not assume paths that cannot be verified.
Typical Usage¶
After the above steps, when the Skill is placed in the corresponding skills directory, the Agent will load the SKILL description when matching tasks. Combining with the official description, the following usage patterns can be reproduced.
- Writing New Code: In the requirement description, specify the language and module, and clarify the intention to adhere to clean code constraints; the Agent should reference naming, function, and structure guidelines during generation.
- Refactoring: First explain current pain points (overly long functions, repetitive logic, etc.), then request step-by-step refactoring; anti-pattern and structure-related items are used to constrain the scope of changes.
- Code Review: Paste the diff or specify files, and request a quality review based on the standards in the Skill, outputting actionable modification suggestions rather than vague evaluations.
- Establishing Standards: When the team lacks written standards, you can ask the Agent to organize a one-page “project-level” draft of naming and function conventions based on the Skill, which can then be reviewed by humans before implementation.
The official page does not provide a separate CLI example command; if skillhub search requires searching by name, you can search first and then install:
skillhub search clean-code-review
Applicable Scenarios and Notes¶
Who is this for
- Individuals or small team developers who want AI to inherently carry “Clean Code” tendencies when writing or modifying code.
- Scenarios where one is completing a code review checklist or wants to synchronize review criteria with the Agent.
- Classified as dev-programming, targeting programming and code generation, and review tasks, without binding to a specific language (specific rules are subject to the Skill package).
Limitations and Notes
- The description is in English, while actual provisions are in the SKILL file after installation; there is only an overview before installation, and it is impossible to verify each rule item by item from the page.
- The source is community, and the maintenance rhythm may differ from platform-hosted “official” Skills; upgrades and changes are subject to the new version at that coordinate on SkillHub.
- It can constrain the Agent’s behavioral tendencies but cannot replace testing, type checking, and formal Code Review; pre-edit safety checks still need to coordinate with version management and CI.
- The “0 installations” in statistics only reflects platform counts; whether it is installed on the local machine depends on the local skills directory.
Conclusion¶
clean-code-review-1-0-0 converges naming, functions, structure, anti-patterns, and pre-edit safety checks into a set of pragmatic coding standards that can be loaded by an Agent, suitable for writing code, refactoring, reviewing, and establishing standards. When installation or metadata viewing is needed, you can open the SkillHub page:
- Page: https://www.skillhub.cn/skills/user_15292d5a/yjkj-clean-code-review-1-0-0
- API Metadata: https://api.skillhub.cn/user_15292d5a/yjkj-clean-code-review-1-0-0