clean-code

Enforce pragmatic coding standards with pre-edit and post-completion verification steps.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/keshavraj936/Pulse-AI --skill clean-code-keshavraj936
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/keshavraj936/Pulse-AI/tree/main/Inceptrix/.agent/skills/clean-code
Command: npx skills add https://github.com/keshavraj936/Pulse-AI --skill clean-code-keshavraj936

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enforces pragmatic coding standards to ensure code is maintainable, readable, and efficient, avoiding over-engineering and unnecessary complexity.

Core Features & Use Cases

  • Enforces SOLID principles: Promotes Single Responsibility, DRY, KISS, YAGNI.
  • Standardizes Naming Conventions: Ensures clear and intent-revealing names for variables, functions, and constants.
  • Optimizes Function Design: Encourages small, focused functions with minimal arguments and no side effects.
  • Promotes Clean Structure: Advocates for guard clauses, flat code, and composition over deep nesting.
  • AI Coding Style Guidance: Directs AI agents on how to respond to user requests for features, bugs, or unclear requirements.
  • Pre-edit Checks: Mandates thinking about dependencies and impact before modifying any file.
  • Post-completion Self-Checks: Ensures all requirements are met, code works, and no errors are left.
  • Mandatory Script Verification: Integrates specific scripts for various specialist roles (frontend, backend, security, etc.) and general checks (linting, typing, i18n).
  • Structured Script Output Handling: Requires agents to read, summarize, and ask for confirmation before fixing script-identified issues.

Quick Start

Use the clean-code skill to refactor the provided UserService.ts file to adhere to the Single Responsibility Principle.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I enforce clean code standards when refactoring with an AI agent?

To enforce clean code standards during AI refactoring, apply pragmatic principles like SRP, DRY, and KISS. Mandate pre-edit checks for dependencies and post-completion self-checks to ensure concise, maintainable code without over-engineering.

What are the best practices for function design to avoid unnecessary complexity?

Best practices for function design involve creating small, focused functions with minimal arguments and no side effects. Promoting a clean structure with guard clauses and flat code prevents unnecessary complexity and improves readability.

How do I standardize naming conventions for variables and functions in my codebase?

Standardize naming conventions by ensuring clear, intent-revealing names for variables, functions, and constants. This approach enforces coding standards and makes the codebase more readable and maintainable for developers.

Does this clean code approach work for both frontend and backend script verification?

Yes, this approach integrates specific script verification for various specialist roles including frontend, backend, and security. It requires agents to read, summarize, and ask for confirmation before fixing script-identified issues.

Why should I use pre-edit checks before modifying an existing file?

Pre-edit checks are necessary to think about dependencies and impact before modifying any file. This process ensures solution-orientation, prevents errors, and maintains clean structure by evaluating the scope of changes beforehand.

What is the best way to handle unclear requirements when coding with AI?

The best way to handle unclear requirements is to follow AI interaction protocols that direct agents to ask for clarification. This ensures the resulting code adheres to YAGNI and avoids building unnecessary features.