lean-code

Enforces minimal coding by prioritizing standard library and native platform features.

140|23|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/AnastasiyaW/codex-claude-code-config --skill lean-code-anastasiyaw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lean-code
Source: https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/skills/lean-code
Command: npx skills add https://github.com/AnastasiyaW/codex-claude-code-config --skill lean-code-anastasiyaw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the common issue of AI agents over-engineering solutions, adding unnecessary dependencies, and producing bloated code that increases maintenance debt.

Core Features & Use Cases

  • Aggressive YAGNI Enforcement: Applies a structured ladder of minimalism to ensure only essential code is written.
  • Intensity Control: Offers three levels of strictness (lite, full, ultra) to match the specific project needs.
  • Use Case: When starting a new feature or refactoring, invoke this skill to ensure the agent prioritizes standard library features and native platform capabilities over adding new, heavy dependencies.

Quick Start

Apply the lean-code skill with full intensity to the current module to strip out over-engineered abstractions and simplify the implementation.

Frequently Asked Questions about lean-code

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

FAQPage Schema
How do I prevent AI from over-engineering code and adding unnecessary dependencies?

To prevent over-engineering and code bloat, apply minimalist coding patterns that prioritize standard library features over new dependencies. This enforces the YAGNI principle to ensure only essential code is written while maintaining functional completeness.

What is the YAGNI principle and how does it apply to refactoring?

The YAGNI principle mandates writing only the code necessary for current requirements. During refactoring, it acts as an intensifier to strip out over-engineered abstractions and reduce maintenance debt by avoiding speculative functionality.

How do I reduce code bloat without breaking existing functionality?

Reduce code bloat by enforcing minimalist patterns that rely on native platform capabilities instead of heavy dependencies. This approach maintains necessary input validation and functional completeness while stripping unnecessary abstractions.

Can I control the strictness of minimalist coding enforcement for different projects?

Yes, you can control minimalism strictness using three intensity levels: lite, full, and ultra. These levels allow you to match the aggressiveness of YAGNI enforcement and dependency reduction to specific project needs.

When should I use standard library features instead of adding new dependencies?

Use standard library features when starting new features or refactoring to prevent maintenance debt. Prioritizing native platform capabilities over new dependencies reduces code bloat while adhering to the YAGNI principle.

Does lean-code work for all software development tasks?

lean-code operates as an on-demand intensifier for software development tasks, suitable whenever minimalist coding patterns are needed. It requires adherence to the YAGNI principle while maintaining functional completeness and necessary input validation.