Enforces TypeScript type checking, YAGNI principles, and minimal defensive programming within the vm0 codebase.
Install
mkdir -p .claude/skills/project-principles && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6597" && unzip -o skill.zip -d .claude/skills/project-principles && rm skill.zipInstalls to .claude/skills/project-principles
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Core architectural and code quality principles that guide all development decisions in the vm0 projectKey capabilities
- →Enforce YAGNI principles
- →Restrict defensive programming
- →Enforce strict TypeScript typing
- →Prohibit linting suppressions
How it works
The skill provides a set of mandatory architectural rules and a checklist to evaluate code quality, prioritizing simplicity and type safety.
Inputs & outputs
When to use project-principles
- →Review code for architectural compliance
- →Refactor code to remove 'any' types
- →Simplify code to follow YAGNI principles
About this skill
Project Principles Skill
This skill defines the fundamental design principles and coding standards for the vm0 project. These principles are MANDATORY for all code written in this project and should guide every development decision.
The Four Core Principles
1. YAGNI (You Aren't Gonna Need It) ⭐ CORE PRINCIPLE
Don't add functionality until it's actually needed.
Quick rules:
- Start with the simplest solution that works
- Avoid premature abstractions
- Delete unused code aggressively
- No "just in case" features
When coding: Ask "Do we need this NOW?" If not, don't add it.
→ For detailed guidelines and examples, read yagni.md
2. Avoid Defensive Programming
Let exceptions propagate naturally. Don't wrap everything in try/catch.
Quick rules:
- Only catch exceptions when you can meaningfully handle them
- Let errors bubble up to where they can be properly addressed
- Avoid defensive try/catch blocks that just log and re-throw
- Trust the runtime and framework error handling
When coding: Only use try/catch when you have specific error recovery logic.
→ For detailed guidelines and examples, read no-defensive.md
3. Strict Type Checking
Maintain type safety throughout the codebase. Never compromise on type checking.
Quick rules:
- Absolutely NO use of
anytype - Always provide explicit types where TypeScript can't infer
- Use proper type narrowing instead of type assertions
- Define interfaces and types for all data structures
When coding: If you see any, fix it. If types are missing, add them.
→ For detailed guidelines and examples, read type-safety.md
4. Zero Tolerance for Lint Violations
All code must pass linting without exceptions.
Quick rules:
- Never add eslint-disable comments
- Never add @ts-ignore or @ts-nocheck
- Fix the underlying issue, don't suppress the warning
- All lint rules are there for a reason - respect them
When coding: If lint fails, fix the code, not the linter.
→ For detailed guidelines and examples, read zero-lint.md
Quick Reference: Code Quality Checklist
Before writing any code, verify:
- ✅ Is this feature needed NOW? (YAGNI)
- ✅ Am I avoiding unnecessary try/catch? (No Defensive)
- ✅ Are all types explicit and correct? (Type Safety)
- ✅ Will this pass linting? (Zero Lint)
When to Load Additional Context
- Starting a new feature? → Read
yagni.mdfirst - Handling errors? → Read
no-defensive.md - Working with TypeScript? → Read
type-safety.md - Getting lint errors? → Read
zero-lint.md
Integration with Workflow
These principles should be applied:
- Before writing code - Plan with YAGNI in mind
- While writing code - Follow type safety and avoid defensive programming
- Before committing - Ensure zero lint violations
- During code review - Verify adherence to all principles
Philosophy
These principles exist to:
- Keep the codebase simple and maintainable
- Prevent technical debt accumulation
- Ensure high code quality
- Make the project easy to understand and modify
They may feel restrictive at first, but they lead to cleaner, more maintainable code.
Conflict Resolution
If principles seem to conflict:
- YAGNI takes precedence - simplicity wins
- Type safety is non-negotiable
- When in doubt, choose the simpler solution
When not to use it
- →When rapid prototyping requires temporary technical debt
- →When strict type checking blocks urgent hotfixes
Prerequisites
Limitations
- →Requires manual adherence to principles
- →Does not automatically refactor code
How it compares
Unlike general linting tools, this skill enforces specific project-wide architectural philosophies like YAGNI and error propagation strategies.
Compared to similar skills
project-principles side by side with the closest alternatives in the catalog.
Try saying
Example prompts that trigger this skill in your AI assistant.
More by vm0-ai
View all by vm0-ai →You might also like
tldr-code
parcadei
Token-efficient code analysis via 5-layer stack (AST, Call Graph, CFG, DFG, PDG). 95% token savings.
dry
chrisreddington
DRY — **Don't Repeat Yourself** — is one of the most misquoted principles in software engineering. It is *not* a rule about avoiding repeated lines of code. It is a rule about avoiding repeated **knowledge**.
solid
chrisreddington
SOLID is Robert C. Martin's five object-oriented design principles. In a TypeScript codebase like Flight School — which mixes a Next.js API surface, a Copilot SDK adapter layer, GitHub data fetching, and a streaming UI — SOLID is mostly a tool for keeping modules **swappable, tes
typescript-review
metabase
Review TypeScript and JavaScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull requests or diffs containing TypeScript/JavaScript code.
deepwiki-rs
sopaco
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.
typescript
lobehub
TypeScript code style and optimization guidelines. Use when writing TypeScript code (.ts, .tsx, .mts files), reviewing code quality, or implementing type-safe patterns. Triggers on TypeScript development, type safety questions, or code style discussions.