1

    llm-coding-principles

    by Roy Yuen

    Enforce senior-level coding standards (Surgical, Simple, Goal-Driven) on every AI-generated code change.

    Updated Jun 2026
    0 installs

    Free

    Included in download

    • Downloadable skill package
    • Works with Claude Code, Cursor
    • Instant install

    Sample input

    Add a 'status' field to the User model, but don't touch any other parts of the database schema or the existing API endpoints.

    Sample output

    Approaches: 1. Add nullable column (safest). 2. Add with default 'active'. Choosing #2 for immediate utility.

    Success Criteria:

    1. migration adds status to users.
    2. User model includes status.

    Diff:

    • status = Column(String, default="active") Verification: Migration tested; field persists.

    About This Skill

    Expert Coding Governance for AI Agents

    Does your AI agent sometimes over-engineer simple tasks or make sweeping, unnecessary changes to your codebase? llm-coding-principles is a high-performance directive standard that installs a "Senior Engineer" persona into your agent's workflow. It replaces guesswork with a rigorous four-pillar framework: Think Before Coding, Simplicity First, Surgical Changes, and Goal-Driven Execution.

    What it does

    • Think Before Coding: Forces the agent to surface assumptions and evaluate technical trade-offs before a single line is written.
    • Simplicity First: Eliminates speculative abstractions and "future-proofing" to keep your codebase lean and maintainable.
    • Surgical Changes: Ensures diffs are precise, touching only what is necessary to satisfy the requirements while avoiding unrelated "noise" or style drift.
    • Goal-Driven Execution: Mandates a Red-Green-Refactor cycle where success criteria are defined and verified before the task is marked complete.

    Why use this skill

    Standard LLM prompting often leads to "hallucinated improvements"—refactoring code you didn't ask to change or adding dependencies you don't need. This skill acts as a non-negotiable quality gate. It’s ideal for developers using Cursor, Claude Code, or custom CLI agents who want consistent, production-grade output that mirrors the discipline of a human senior developer. It integrates seamlessly with TDD workflows and systematic debugging.

    Use Cases

    • Prevent over-engineering and speculative abstractions in new features.
    • Ensure minimal, surgical diffs during bug fixes and refactors.
    • Automatically apply a Red-Green-Refactor workflow to agent tasks.
    • Enforce consistent technical decision-making across sub-agents.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    No special permissions declared or detected

    Claude Code, Cursor, Aider, Windsurf, and Cline.

    Creator

    Frequently Asked Questions

    More Premium Skills

    Free