# Vibe Coding

> LLM-readable code standards. Functions ≤50 lines, files ≤200 lines, nesting ≤3 levels. SRP, DRY, KISS, Early Return. Use when this capability is needed.

- Skill: `tomevault-io/vibe-coding` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/vibe-coding`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/vibe-coding/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/vibe-coding

---


# SKILL: Vibe Coding (Code Quality Standards)

> **Purpose**: Enforce LLM-readable code standards for maintainable code
> **Target**: Coder Agent during Green/Refactor phases

## Quick Reference

| Target | Limit | Action |
|--------|-------|--------|
| **Function** | ≤50 lines | Split functions |
| **File** | ≤200 lines | Extract modules |
| **Nesting** | ≤3 levels | Early return |

## Principles

- **SRP**: One function = one responsibility
- **DRY**: No duplicate code blocks, extract common logic
- **KISS**: Simplest solution that works, avoid over-engineering
- **Early Return**: Return early to reduce nesting, keep happy path at top
- **Self-Documenting Code**: Names reveal intent, no unnecessary comments (see REFERENCE.md)
- **Single Abstraction Level**: Functions operate at one conceptual level (see REFERENCE.md)
- **Principle of Least Surprise**: Predictable behavior, no hidden side effects (see REFERENCE.md)

## AI Rules

**Enforce during ALL code generation**:
- Functions ≤50 lines, Files ≤200 lines, Nesting ≤3 levels
- SRP, DRY, KISS, Early Return pattern

## Further Reading

**Internal**: @.claude/skills/vibe-coding/REFERENCE.md - SOLID principles, refactoring patterns | @.claude/skills/tdd/SKILL.md - Red-Green-Refactor

**External**: [Clean Code](https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882) | [Refactoring](https://www.amazon.com/Refactoring-Improving-Existing-Addison-Wesney-Signature/dp/0201485672)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/changoo89) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

