coding-principles

Guide LLM code generation with behavioral rules for simplicity and precision.

Updated Jan 11, 2017
One-click install
npx skills add https://github.com/kaustubhhiware/dotfiles --skill coding-principles-kaustubhhiware
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-principles
Source: https://github.com/kaustubhhiware/dotfiles/tree/main/claude/skills/coding-principles
Command: npx skills add https://github.com/kaustubhhiware/dotfiles --skill coding-principles-kaustubhhiware

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses common pitfalls in AI-generated code, such as over-engineering, unnecessary complexity, and unclear logic, by providing a set of behavioral guidelines.

Core Features & Use Cases

  • Promotes thoughtful implementation: Encourages planning and assumption clarification before coding.
  • Enforces simplicity: Guides towards minimal, problem-specific solutions.
  • Ensures surgical code changes: Prevents unintended side effects and scope creep.
  • Drives goal-oriented development: Focuses on verifiable success criteria.
  • Minimizes unnecessary comments: Promotes self-documenting code.
  • Eliminates AI-specific code smells: Helps identify and remove verbose or defensive AI-generated patterns.
  • Use Case: When tasked with refactoring a piece of code, load this Skill to ensure the changes are minimal, well-justified, and do not introduce new issues.

Quick Start

Load the coding-principles skill to ensure all code modifications are simple, surgical, and goal-driven.

Frequently Asked Questions about coding-principles

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

FAQPage Schema
How do I prevent overengineering in AI-generated code?

To prevent overengineering in AI-generated code, apply behavioral guidelines that emphasize strategic thinking, code simplicity, and precise modifications. This approach enforces surgical code changes and goal-oriented execution to avoid extraneous modifications and unnecessary complexity.

What is the best way to refactor code without introducing new issues?

The best way to refactor code safely is to ensure modifications are minimal, well-justified, and surgical. Clarifying assumptions before coding and focusing on verifiable success criteria prevents unintended side effects and scope creep during the modification process.

How do I eliminate AI-specific code smells and verbose patterns?

You can eliminate AI-specific code smells by enforcing simplicity and promoting self-documenting code. This minimizes unnecessary comments and helps identify and remove verbose or defensive patterns commonly generated by Large Language Models during software development.

Does applying coding standards help avoid LLM coding mistakes?

Yes, applying coding standards helps avoid LLM coding mistakes by providing behavioral guidelines that drive goal-oriented development. This ensures AI-generated code remains problem-specific, simple, and free of the unclear logic typical of unguided generation.

When do I need to enforce code simplicity during software development?

You need to enforce code simplicity during software development whenever tasked with code generation or modification. It guides the LLM toward minimal, problem-specific solutions and prevents the scope creep that often accompanies unguided AI code generation.