clean-code

Enforce pragmatic coding standards for clarity, maintainability, and correctness.

3|1|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/Harmitx7/tribunal-kit --skill clean-code-harmitx7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/Harmitx7/tribunal-kit/tree/main/.agent/skills/clean-code
Command: npx skills add https://github.com/Harmitx7/tribunal-kit --skill clean-code-harmitx7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenges of writing code that is difficult to understand, maintain, and debug, by enforcing pragmatic coding standards.

Core Features & Use Cases

  • Improved Readability: Enforces clear naming conventions for variables, functions, and classes.
  • Reduced Complexity: Promotes writing small, single-purpose functions and avoiding unnecessary nesting.
  • Effective Commenting: Guides developers to comment why code exists, not what it does.
  • Robust Error Handling: Ensures errors are not silently ignored and are logged with sufficient context.
  • AI-Specific Guidance: Highlights and prohibits common AI-generated code anti-patterns.

Quick Start

Apply clean code standards to the provided code snippet.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I fix AI-generated code anti-patterns and improve readability?

To fix AI-generated code anti-patterns and improve readability, enforce pragmatic coding standards that specifically target and prohibit issues like JSDoc spam, premature abstraction, and variable diarrhea while promoting clear naming and single-purpose functions.

What are common AI code generation anti-patterns I should look out for?

Common AI code generation anti-patterns include JSDoc spam, defensive overkill, premature abstraction, variable diarrhea, and apologetic comments. These patterns reduce code maintainability and should be actively prohibited through pragmatic coding standards.

How do I enforce coding standards for maintainability and functional correctness?

You enforce coding standards for maintainability and functional correctness by applying pragmatic rules that address naming, function scope, commenting, error handling, testing, performance, and security to ensure software remains robust and easy to debug.

What is the best way to handle error logging and prevent silently ignored errors?

The best way to handle error logging and prevent silently ignored errors is to enforce robust error handling standards that ensure errors are logged with sufficient context, preventing silent failures and improving code debugging.

Does applying clean code standards work for refactoring existing codebases?

Yes, applying clean code standards works for refactoring existing codebases by enforcing pragmatic coding standards that address readability, complexity, and functional correctness, making existing code easier to understand and maintain.

When should I not use automated coding standards for refactoring?

You should be cautious using automated coding standards when specific logic requires exceptions, as enforcing rigid rules might conflict with necessary defensive overkill or complex nested logic that cannot be simplified into single-purpose functions.