clean-code

Enforce pragmatic coding standards for concise, maintainable code.

132|22|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/xenitV1/Antigravity-Workflows --skill clean-code-xenitv1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/xenitV1/Antigravity-Workflows/tree/main/skills/clean-code
Command: npx skills add https://github.com/xenitV1/Antigravity-Workflows --skill clean-code-xenitv1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces pragmatic coding standards to keep code concise, direct, and maintainable.

Core Features & Use Cases

  • SRP, DRY, KISS, YAGNI guide the creation of readable, reliable code.
  • Naming rules, small functions, and guard clauses promote clarity and maintainability.
  • Use Case: apply these standards when implementing AI modules or refactoring code in Antigravity to reduce defects and speed delivery.

Quick Start

  • Start a new module with clean-code guidelines in mind.
  • Review functions for size, responsibility, and side effects; refactor where needed.
  • When in doubt, favor simplicity over cleverness and remove unnecessary comments.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I refactor code to be more maintainable and readable?

Refactoring for maintainability applies SRP (Single Responsibility Principle), DRY (Don't Repeat Yourself), KISS (Keep It Simple, Stupid), and YAGNI (You Aren't Gonna Need It) to break functions into smaller units, eliminate duplication, and remove unnecessary complexity. Use guard clauses, clear naming conventions, and minimal comments to clarify intent.

What coding standards reduce defects and speed up development?

Pragmatic coding standards—SRP, DRY, KISS, YAGNI, careful naming, small focused functions, and guard clauses—keep code concise and direct. These practices reduce defects by making code easier to understand, test, and modify, accelerating both initial delivery and future maintenance.

How do I know when code needs refactoring?

Review functions for size, responsibility overlap, and side effects. Large functions handling multiple concerns, repeated logic, unclear names, or excessive comments signal refactoring candidates. Favor simplicity over cleverness and extract logic into smaller, single-purpose functions with guard clauses.

What's the best way to name variables and functions for clarity?

Use naming conventions that reflect intent and responsibility: choose clear, descriptive names that reveal purpose without requiring comments. Apply SRP to ensure each variable and function name accurately describes a single, focused action or concept.

Can I apply clean-code standards across different modules and functions?

Yes. Clean-code standards apply consistently across AI modules, functions, and code reviews. Guidelines on SRP, DRY, KISS, YAGNI, naming, guard clauses, and minimal comments work uniformly to maintain readability and maintainability at every scale.

When should I avoid over-commenting code?

Comments should explain why, not what. Clean code with clear names, small functions, and guard clauses makes the what self-evident. Remove unnecessary comments and rely on pragmatic naming and structure to convey intent directly.