Global Best Practices

Enforce SOLID, KISS, DRY, and YAGNI principles across programming languages.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/ntluong95/agent-skills-statistics --skill global-best-practices-ntluong95
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Global Best Practices
Source: https://github.com/ntluong95/agent-skills-statistics/tree/main/.github/skills/common/best-practices
Command: npx skills add https://github.com/ntluong95/agent-skills-statistics --skill global-best-practices-ntluong95

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides universal principles for writing clean, maintainable, and efficient code, helping developers avoid common pitfalls and improve code quality across any programming language or environment.

Core Features & Use Cases

  • SOLID & Architectural Principles: Enforces robust design patterns for modularity and maintainability.
  • Clean Code Standards: Promotes readability and simplicity through KISS, DRY, and YAGNI principles.
  • Security & Performance Foundations: Integrates essential security checks and performance optimizations.
  • Use Case: When starting a new project or refactoring existing code, consult this Skill to ensure adherence to best practices for naming, structure, and error handling.

Quick Start

Apply SOLID principles to the UserProfile class to ensure single responsibility.

Frequently Asked Questions about Global Best Practices

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

FAQPage Schema
How do I apply SOLID principles to refactor a class for single responsibility?

To apply SOLID principles for refactoring, enforce modular design by ensuring each class handles a single responsibility. This clean-code approach improves maintainability and predictability by separating concerns and addressing code structure.

What are universal clean code standards for naming conventions and function sizes?

Universal clean code standards enforce strict naming conventions, function size limits, and file size limits. Adhering to these coding standards ensures readability, simplicity, and predictable failure handling through guard clauses.

How do KISS, DRY, and YAGNI principles improve code maintainability?

KISS, DRY, and YAGNI principles improve code maintainability by promoting simplicity and reducing duplication. These clean-code standards prevent over-engineering, ensuring the codebase remains efficient and easy to read across any programming language.

Can I use these architectural best practices across multiple programming languages?

Yes, these architectural best practices apply universally across multiple programming languages. The principles address language-agnostic issues of code maintainability, readability, and efficiency through SOLID adherence and strict coding standards.

When should I use guard clauses for predictable failure handling?

Use guard clauses for predictable failure handling when you need to enforce strict coding standards and validate conditions early. This approach prevents deeply nested code and ensures maintainable, efficient error handling.