Skip to content

Universal coding foundation enforcing file, function, and module size limits, TDD workflow, and atomic todo tracking.

CCM score
51 of 100
skills.sh installs
241
GitHub stars
712
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers simplicity rules at function, file, and module levels, with enforcement steps applied before completing any file
  • Includes architectural patterns (functional core, composition over inheritance), testing philosophy, and an anti-patterns list
  • Enforces a 20-line function limit, a 200-line file limit, and a 10-function-per-file limit, with splitting required when exceeded
  • Designed as an always-loaded foundation for all projects, with a required red-green-validate TDD cycle for every todo

Install

$ npx -y skills add alinaqi/maggy --skill base -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Base Skill - Universal Patterns

Core Principle

Complexity is the enemy. Every line of code is a liability. The goal is software simple enough that any engineer (or AI) can understand the entire system in one session.


Simplicity Rules

These limits apply to every file created or modified.

Function Level

  • Maximum 20 lines per function - if longer, decompose IMMEDIATELY
  • Maximum 3 parameters per function - if more, use an options object or decompose
  • Maximum 2 levels of nesting - flatten with early returns or extract functions
  • Single responsibility - each function does exactly one thing
  • Descriptive names over comments - if you need a comment to explain what, rename it

File Level

  • Maximum 200 lines per file - if longer, split by responsibility BEFORE continuing
  • Maximum 10 functions per file - keeps cognitive load manageable
  • One export focus per file - a file should have one primary purpose

Module Level

  • Maximum 3 levels of directory nesting - flat is better than nested
  • Clear boundaries - each module has a single public interface
  • No circular dependencies - ever

Enforcement Protocol

Details

Repository
github.com/alinaqi/maggy
Categories
Code Review & Quality, Testing & QA
First seen
Jun 3, 2026

Questions

What does the base skill in claude-bootstrap do?

The base skill is a universal foundation of coding patterns, simplicity rules, a TDD workflow and atomic todo tracking for Claude Code. Its SKILL.md says it is always loaded as the base for all projects, enforcing limits such as 20 lines per function and 200 lines per file.

How do I install the base skill?

Run npx -y skills add alinaqi/maggy --skill base -y inside your project. After that, the agent follows the base skill's TDD workflow and simplicity rules when it writes code there.

Where does the base skill stand in the Code Review & Quality category?

The base skill sits in the Code Review & Quality category on Claude Marketplaces, alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Those are the other skills it is listed beside in that category. It differs from them by focusing on universal project foundations: TDD, file size limits and atomic todos.

More from alinaqi/maggy

All 54