clean-code

Enforces pragmatic coding standards for concise, direct, and maintainable code generation.

41|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/DevayoshaUS/Women-scholarship --skill clean-code-devayoshaus
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/DevayoshaUS/Women-scholarship/tree/main/hackathon-main%20%281%29/hackathon-main/.agent/skills/clean-code
Command: npx skills add https://github.com/DevayoshaUS/Women-scholarship --skill clean-code-devayoshaus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI-generated code often suffers from over-engineering, unnecessary comments, deep nesting, and bloated functions. This Skill enforces pragmatic coding standards so the AI writes concise, direct, solution-focused code without tutorials or redundant abstractions. ## Core Features & Use Cases - Coding Standards Enforcement: Applies SRP, DRY, KISS, YAGNI, and Boy Scout principles with concrete naming, function size, and structure rules. - Anti-Pattern Prevention: Blocks common mistakes like god functions, magic numbers, unnecessary helpers, and obvious comments. - Dependency-Aware Editing: Requires checking imports and dependents before modifying any file, preventing broken references. - Use Case: When asking an AI agent to add a feature or fix a bug, this Skill ensures it edits all dependent files together, verifies with lint and type checks, and delivers working code instead of explanations. ## Quick Start Apply the clean-code standards to refactor this function and fix any dependent files that break.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I make AI write cleaner code without over-engineering?▼

Apply explicit coding standards covering naming, function size, and structure rules. This Skill enforces KISS and YAGNI principles, limits functions to 20 lines, caps arguments at 3, and bans unnecessary helpers, factories, and obvious comments.

What coding principles does this Skill enforce?▼

It enforces SRP, DRY, KISS, YAGNI, and the Boy Scout rule. It also mandates guard clauses over deep nesting, verb-noun function naming, question-form booleans, and SCREAMING_SNAKE constants.

How does the Skill prevent broken imports when editing files?▼

Before editing any file, the agent must identify what imports it, what it imports, and which tests cover it. All dependent files must be edited in the same task so no broken imports or missing updates remain.

Does the Skill require verification before completing a task?▼

Yes, a mandatory self-check confirms the goal was met, all files were edited, code works, and lint and TypeScript checks pass. Agents must also run their designated verification scripts and summarize results before fixing anything.

When should I not use strict clean code rules?▼

Avoid rigid enforcement during rapid prototyping or exploratory spikes where speed matters more than structure. The standards target production-bound code where maintainability and readability are priorities.