coding-guidelines

Provide behavioral guidelines for LLMs to minimize coding errors.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/P4rzi/PROT-RISK --skill coding-guidelines-p4rzi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-guidelines
Source: https://github.com/P4rzi/PROT-RISK/tree/main/.github/skills/coding-guidelines
Command: npx skills add https://github.com/P4rzi/PROT-RISK --skill coding-guidelines-p4rzi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a set of behavioral guidelines to help reduce common coding mistakes made by LLMs, promoting more robust and efficient code development.

Core Features & Use Cases

  • Pre-coding thought process: Encourages explicit assumption stating and clarification of ambiguities.
  • Simplicity focus: Guides towards writing minimal, necessary code without over-engineering.
  • Surgical code changes: Emphasizes modifying only the required parts of the codebase and cleaning up only introduced mess.
  • Goal-driven execution: Promotes defining clear success criteria and verification steps for tasks.
  • Use Case: When tasked with refactoring a function, use these guidelines to ensure you only modify the necessary lines and match the existing code style.

Quick Start

Follow these guidelines when writing, modifying, or reviewing code for implementation tasks.

Frequently Asked Questions about coding-guidelines

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

FAQPage Schema
How do I prevent LLM coding mistakes during code review and refactoring?

To prevent LLM coding mistakes during code review and refactoring, apply behavioral guidelines that enforce explicit assumption stating, simplicity, and surgical changes to minimize errors. This approach ensures LLMs modify only required code lines and match existing styles.

What are the best practices for LLM-assisted code modification?

Best practices for LLM-assisted code modification include enforcing goal-driven execution, defining clear success criteria, and cleaning up only the introduced mess. This keeps modifications minimal, necessary, and focused on the required parts of the codebase.

How do I enforce surgical code changes when using an LLM for bug fixing?

To enforce surgical code changes during LLM bug fixing, apply guidelines that promote modifying only the required parts of the codebase and cleaning up solely the introduced mess. This prevents over-engineering and unintended modifications to unrelated code.

Why should I state explicit assumptions before generating code with an LLM?

You should state explicit assumptions before generating code to clarify ambiguities and establish a pre-coding thought process. This minimizes coding errors by ensuring the LLM understands the exact requirements and executes the implementation task with clear success criteria.

Does this approach work for general code writing or only specific refactoring tasks?

This approach works for general code writing, modification, and review tasks, not just specific refactoring. The guidelines apply universally to implementation and bug fixing tasks by promoting simplicity, goal-driven execution, and minimal necessary code without over-engineering.