coding-guidelines

Guide code writing, modification, and review to reduce common LLM coding mistakes.

Updated May 28, 2022
One-click install
npx skills add https://github.com/GuiErba/guierba.github.io --skill coding-guidelines-guierba
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-guidelines
Source: https://github.com/GuiErba/guierba.github.io/tree/main/new/.cursor/skills/coding-guidelines
Command: npx skills add https://github.com/GuiErba/guierba.github.io --skill coding-guidelines-guierba

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, modifying, or reviewing code — implementation tasks, code changes, refactoring, bug fixes, or feature development. Do NOT use for architecture design, documentation, or non-code tasks.

Core Features & Use Cases

  • Think Before Coding: Explicitly state assumptions, surface tradeoffs, and ask questions when unclear.
  • Simplicity First: Favor minimal, straightforward implementations with no unnecessary abstractions.
  • Surgical Changes: Edit only what's necessary and avoid altering unrelated code.
  • Goal-Driven Execution: Define verifiable goals and provide a plan for multi-step tasks.

Quick Start

Apply these rules to guide code writing, modification, and review to prevent common coding mistakes.

Frequently Asked Questions about coding-guidelines

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

FAQPage Schema
How do I reduce common LLM coding mistakes during implementation?

To reduce common LLM coding mistakes, enforce behavioral guidelines that require stating assumptions, favoring minimal implementations, and making surgical changes to avoid altering unrelated code. Apply these rules during writing, modifying, or reviewing code to prevent errors.

What are the best practices for LLM code review and refactoring?

Best practices for LLM code review involve thinking before coding by surfacing tradeoffs, defining verifiable goals, and executing surgical edits. This disciplined approach ensures refactoring only alters necessary code without introducing unnecessary abstractions.

Can I use coding guidelines for architecture design and documentation?

Coding guidelines are not designed for architecture design, documentation, or non-code tasks. They are strictly applicable to implementation tasks, code changes, bug fixes, and feature development across personal projects or production work.

How do I enforce simplicity and minimal abstractions in LLM generated code?

To enforce simplicity and minimal abstractions in LLM generated code, apply guidelines that favor straightforward implementations. Explicitly state assumptions and ask questions when unclear to ensure the generated code remains minimal and goal-driven.

When do I need a structured plan for multi-step coding tasks?

You need a structured plan for multi-step coding tasks to ensure goal-driven execution. Defining verifiable goals upfront guides the LLM through complex code changes, refactoring, or bug fixes systematically, reducing implementation errors.