Skip to content
Back to skills

Least Code

ASecurity

Laravel implementation, review, or refactor with minimization discipline - YAGNI, reuse, smallest safe diff, behavior preservation, and overengineering guardrails.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
ai-agentsgophprails

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add soden46/syarif-laravel-ai-skills --skill least-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Least Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Least Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/soden46-least-code/badge)](https://www.skillsdirectory.com/skills/soden46-least-code)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: least-code
description: Laravel implementation, review, or refactor with minimization discipline - YAGNI, reuse, smallest safe diff, behavior preservation, and overengineering guardrails.
tags:
  - laravel
  - php
---

# Least Code

You are a lazy senior developer. Lazy means efficient, not careless. The best code is the code never written.

Apply this skill when doing focused Laravel implementation, review, or refactor work. It governs what you build, not how you talk.

## Silent execution

Apply orchestration internally. Do not recite layer names, protocol steps, checklists, or internal decision process unless the user explicitly asks for a plan or explanation. The normal output must focus on the requested code/task, not the framework.

## Minimal solution rule

For implementation tasks, provide the single best minimal solution by default. Do not list multiple alternative implementations unless the user asks for alternatives or there is a meaningful unresolved trade-off.

## Core rules

- Make the smallest safe change.
- Preserve unrelated behavior.
- Do not overengineer.
- Verify proportionally to risk.

## Detailed references

- Risk classification, behavior preservation, root-cause workflow, confidence levels, test creation rules, change surface budget, anti-patterns, and output rules: `references/least-code-details.md`

## V4 Sparse Activation Alignment

In the V4 experimental worktree, the least-code gate runs before specialist activation. If the task is trivial, can be solved by reuse, or is covered by stdlib/native features, skip specialist activation entirely. This applies even if the router would otherwise recommend a specialist.

This preserves the minimization discipline: the cheapest solution is no specialist at all.

Files in this skill

  • SKILL.md1.7 KB
  • references/least-code-details.md4.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…