agentleFS
soden46soden46/syarif-laravel-ai-skills/skills/least-code/SKILL.md

least-code

Skill4 starsChanged 5 months agoMITView on GitHub

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

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify proportionally to risk.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.