clean-code

Enforce clean code patterns in Nix and TypeScript projects with Biome.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/aitchwhy/dotfiles --skill clean-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/aitchwhy/dotfiles/tree/main/config/agents/skills/clean-code
Command: npx skills add https://github.com/aitchwhy/dotfiles --skill clean-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers write high-quality, maintainable code by enforcing best practices and detecting common code smells. It reduces technical debt, improves collaboration, and ensures consistent code style across projects.

Core Features & Use Cases

  • Nix & TypeScript Patterns: Enforces explicit imports, function size limits, early returns, and descriptive naming conventions for both Nix and TypeScript projects.
  • Biome Enforcement: Integrates Biome for mandatory formatting and linting, automatically fixing style issues and ensuring consistent code presentation.
  • Code Quality Detection: Provides commands to quickly identify common code smells such as magic numbers, flag arguments, and Law of Demeter violations, guiding targeted refactoring.
  • Use Case: A developer needs to ensure a new feature adheres to strict clean code standards. They can apply this skill to review their pull request, automatically fixing formatting and highlighting areas for improvement, saving manual review time.

Quick Start

Apply clean code patterns to the 'src/utils/data.ts' file, focusing on function size and naming conventions.