senior-dev-principles

Guide senior-level design, refactoring, and implementation decisions for non-trivial code.

46|4|Updated Apr 8, 2023
One-click install
npx skills add https://github.com/CRAG666/dotfiles --skill senior-dev-principles
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: senior-dev-principles
Source: https://github.com/CRAG666/dotfiles/tree/main/skills/senior-dev-principles
Command: npx skills add https://github.com/CRAG666/dotfiles --skill senior-dev-principles

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you make better architecture, refactoring, and algorithm decisions for non-trivial engineering work, improving clarity, correctness, and maintainability without unnecessary complexity.

Core Features & Use Cases

  • Single Responsibility, tuned to the right granularity: Keeps cohesion high while avoiding both over-fragmentation and premature DRY.
  • Algorithmic complexity reasoning: Guides when to analyze time/space complexity and which techniques typically meet the target complexity.
  • Senior engineering mindset and guardrails: Improves naming, boundary validation, testability (when tests exist), and comment discipline.
  • Self-review checklist before presenting code: Verifies purpose, acceptable performance, edge cases, readability, and duplication tradeoffs.

Quick Start

Apply senior-dev-principles to the task “refactor this module and redesign the data flow to be more maintainable,” and produce a scoped plan plus the changes that follow these quality criteria.

Frequently Asked Questions about senior-dev-principles

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor a module for better maintainability without over-fragmenting the code?

Refactoring for maintainability requires balanced single responsibility principles to keep cohesion high while avoiding premature DRY. This approach provides scope-aware guidance to restructure modules, redesign data flow, and prevent unnecessary complexity during non-trivial code work.

What's the best way to analyze algorithmic complexity when optimizing hot paths?

Analyzing algorithmic complexity for hot paths requires knowing when to evaluate time and space limits and which techniques meet target complexity. This guidance directs algorithmic complexity reasoning and annotates complexity decisions during multi-file algorithmic changes.

How do I perform a code review that checks boundary validation and testability?

A thorough code review checks boundary validation, testability, naming, and comment discipline using senior engineering guardrails. It applies a pre-implementation self-review checklist verifying purpose, performance, edge cases, readability, and duplication tradeoffs.

Can I use these senior engineering principles for both Python and TypeScript projects?

Yes, these senior engineering principles apply to both Python and TypeScript projects. The guidance handles multi-file algorithmic changes across these languages, providing scoped implementation plans and boundary validation practices for non-trivial feature work.

When should I not use single responsibility principles during a refactoring task?

You should avoid strict single responsibility application when it causes over-fragmentation or premature DRY abstraction. The approach tunes granularity to keep cohesion high, recognizing when restructuring modules adds unnecessary complexity rather than improving clarity.

How do I implement a new service with clear boundary validation and acceptable performance?

Implementing a new service with boundary validation requires senior-quality naming, complexity analysis, and a self-review checklist verifying acceptable performance. This produces a scoped plan plus code changes that follow maintainability and testability criteria.