clean-code

Enforce coding standards and naming rules for maintainable code.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/roger8b/slideflow --skill clean-code-roger8b
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/roger8b/slideflow/tree/main/.agent/skills/clean-code
Command: npx skills add https://github.com/roger8b/slideflow --skill clean-code-roger8b

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of writing clean, maintainable code by enforcing practical coding standards and principles.

Core Features & Use Cases

  • Practical Coding Standards: Adheres to principles like Single Responsibility, Don't Repeat Yourself, and Keep It Simple.
  • Naming Rules: Provides guidelines for naming variables, functions, and constants for readability.
  • Function Rules: Outlines best practices for function length, argument count, and side effects.
  • Code Structure: Offers patterns like Guard Clauses and Colocation for improving code readability.
  • AI Coding Style: Suggests actions and anti-patterns for AI-generated code.
  • Before Editing: Outlines considerations before modifying files and code.
  • Self-Check: Includes a checklist to ensure code quality before completion.
  • Verification Scripts: Defines a structured approach to testing code using predefined scripts.

Quick Start

Apply the clean-code Skill to ensure your code follows the best practices for maintainability and clarity.

Frequently Asked Questions about clean-code

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

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

Maintainable code follows single responsibility, don't repeat yourself, and keep it simple principles, utilizing guard clauses and clear naming conventions to ensure long-term readability.

How do I enforce coding standards for function length and arguments?

Coding standards for functions are enforced by limiting argument counts, minimizing side effects, and adhering to predefined rules that ensure each function maintains a single responsibility.

How do I prevent bad naming conventions in my codebase?

Prevent bad naming by applying guidelines for variables, functions, and constants, ensuring names clearly express intent and improve overall code readability.

Does this clean code approach work for AI-generated code?

Yes, it includes specific coding style actions and anti-patterns for AI-generated code, ensuring AI outputs adhere to established readability and maintainability standards.

How do I verify code quality before completing a project?

You verify code quality by running predefined verification scripts and completing a self-check checklist to ensure adherence to all structural and functional coding standards.

What should I consider before editing existing code files?

Before editing files, consider the outlined structural precautions to prevent introducing side effects, ensuring modifications align with colocation patterns and guard clauses.