PR

project-principles

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.zip

Installs 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 project
102 charsno explicit “when” trigger
Intermediate

Key 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

You give it
Codebase or pull request
You get back
Compliance report or refactoring suggestions

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 any type
  • 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.md first
  • 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:

  1. Before writing code - Plan with YAGNI in mind
  2. While writing code - Follow type safety and avoid defensive programming
  3. Before committing - Ensure zero lint violations
  4. 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:

  1. YAGNI takes precedence - simplicity wins
  2. Type safety is non-negotiable
  3. 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

TypeScript

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.

SkillInstallsUpdatedSafetyDifficulty
project-principles (this skill)15moNo flagsIntermediate
tldr-code17moReviewAdvanced
dry02moReviewIntermediate
solid02moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

tldr-code

parcadei

Token-efficient code analysis via 5-layer stack (AST, Call Graph, CFG, DFG, PDG). 95% token savings.

10

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**.

00

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

00

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.

39178

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.

25170

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.

2877

Search skills

Search the agent skills registry