code-styleguide

Enforce universal code style guidelines for writing, reviewing, and refactoring code.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/hsiangjenli/skills --skill code-styleguide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-styleguide
Source: https://github.com/hsiangjenli/skills/tree/main/.agents/skills/code-styleguide
Command: npx skills add https://github.com/hsiangjenli/skills --skill code-styleguide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides universal guidelines for writing clean, maintainable, and readable code across all programming languages, focusing on simplicity, clarity, and proven software engineering best practices.

Core Features & Use Cases

  • KISS Principle: Emphasizes simple, straightforward solutions.
  • SOLID Principles: Guides on single responsibility, open/closed, etc.
  • Code Organization: Best practices for file structure, function design, and naming conventions.
  • Use Case: When writing new code, reviewing existing code, or refactoring, consult these guidelines to ensure code quality and consistency.

Quick Start

Apply the code-styleguide skill to refactor the provided Python function for better readability and adherence to KISS principles.

Frequently Asked Questions about code-styleguide

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

FAQPage Schema
What are the best practices for writing clean and maintainable code?

Best practices for clean code involve applying KISS and SOLID principles to ensure simplicity, single responsibility, and readability. These universal guidelines help structure code organization, naming conventions, and error handling effectively.

How do I refactor an existing function to遵循 KISS principles?

Refactoring for KISS principles involves simplifying complex logic into straightforward solutions, improving naming conventions, and organizing code for better readability. This ensures the code remains maintainable without over-engineering.

Does this coding standards guide apply to any programming language?

Yes, this coding standards guide provides universal guidelines for writing clean code across all programming languages. It focuses on language-agnostic concepts like abstraction, KISS, and SOLID principles.

What is the best way to avoid over-engineering when establishing code style?

The best way to avoid over-engineering is to adhere strictly to the KISS principle, emphasizing simple, straightforward solutions over unnecessary abstractions. This maintains code readability and long-term maintainability.

When should I not use universal code style guidelines?

You should not use universal code style guidelines when a project demands highly specialized, language-specific performance optimizations that conflict with general SOLID principles, though such cases are rare exceptions to standard maintainability practices.