alinaqi/claude-bootstrap/base-2
- community
Checking that the SKILL.md file is still in the repository.
Universal coding patterns, constraints, TDD workflow, atomic todos
Install
npx vskill@latest install alinaqi/claude-bootstrap/base-2Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
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
Before completing ANY file:
- Count total lines - if > 200, STOP and split
- Count functions - if > 10, STOP and split
- Check each function length - if any > 20 lines, STOP and decompose
- Check parameter counts - if any > 3, STOP and refactor
If limits are exceeded during development:
Never defer refactoring. Fix violations immediately, not "later".
Architectural Patterns
Functional Core, Imperative Shell
- Pure functions for business logic - no side effects, deterministic
- Side effects only at boundaries - API calls, database, file system at edges
- Data in, data out - functions transform data, they don't mutate state
Composition Over Inheritance
- No inheritance deeper than 1 level - prefer interfaces/composition
- Small, composable utilities - build complex from simple
- Dependency injection - pass dependencies, don't import them directly
Error Handling
- Fail fast, fail loud - errors surface immediately
- No silent failures - every error is logged or thrown
- Design APIs where misuse is impossible
Testing Philosophy
- 100% coverage on business logic - the functional core
- Integration tests for boundaries - API endpoints, database operations
- No untested code merges - CI blocks without passing tests
- Test behavior, not implementation - tests survive refactoring
- Each test runs in isolation - no interdependence
Anti-Patterns (Never Do This)
- ❌ Global state
- ❌ Magic numbers/strings - use named constants
- ❌ Deep nesting - flatten or extract
- ❌ Long parameter lists - use objects
- ❌ Comments explaining "what" - code should be self-documenting
- ❌ Dead code - delete it, git remembers
- ❌ Copy-paste duplication - extract to shared function
- ❌ God objects/files - split by responsibility
- ❌ Circular dependencies
- ❌ Premature optimization
- ❌ Large PRs - small, focused changes only
- ❌ Mixing refactoring with features - separate commits
Documentation Structure
Every project must have clear separation between code docs and project specs:
What Goes Where
| Location | Content | |
|---|---|---|
docs/ | Technical documentation, API refs, setup guides | |
_project_specs/ | Business logic, features, requirements, todos | |
_project_specs/session/ | Session state, decisions, context for resumability | |
CLAUDE.md | Claude-specific instructions and skill references |
Atomic Todos
All work is tracked as atomic todos with validation and test criteria.
Todo Format (Required)
Todo Rules
- Atomic - Each todo is a single, completable unit of work
- Testable - Every todo has validation criteria and test cases
- Sized - If larger than "M", break it down further
- Independent - Minimize dependencies between todos
- Tracked - Move between active.md → completed.md when done
Todo Execution Workflow (TDD - Mandatory)
Every todo MUST follow this exact workflow. No exceptions.
Done = proven, not claimed. A todo is only complete when the evidence is inyour response: real command output, a screenshot for any UI change, ademo-videowalkthrough for any user-facing web flow, the actual artifact forany generated content. No proof → not done. (See the "Definition of Done —NON-NEGOTIABLE" section in CLAUDE.md.)
Execution Commands by Stack
Node.js/TypeScript:
Python:
React/Next.js:
Blocking Conditions
NEVER mark a todo as complete if:
- ❌ Tests were not written first (skipped RED phase)
- ❌ Tests did not fail initially (invalid tests)
- ❌ Any test is failing
- ❌ Linter has errors (warnings may be acceptable)
- ❌ Type checker has errors
- ❌ Coverage dropped below threshold
If blocked by failures:
Bug Fix Workflow (TDD - Mandatory)
When a user reports a bug, NEVER jump to fixing it directly.
Bug Report Todo Format
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/base/SKILL.md
Popularity
- Repository stars
- 530
- Repository forks
- 41
- Repository npm downloads, 7 days
- 11,772
- 7-day trend score
- 53
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 19 Mar 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alinaqi/claude-bootstrap/base-2)