Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Respetar princiios

Open alemarino opened this issue 1 year ago • 4 comments

Feature Description

Suelo tener que decirle muchas veces que respecte pricniios solid y archviso pequeños porque se le olvida. Y no sabe cuantas lienas tiene el archivo en el que trabaja. Seria bueno que cada vez que abre el archvio tuviera ese datos para saber si puede seguir sumando lineas o no.

Use Case

Suelo tener que decirle muchas veces que respecte pricniios solid y archviso pequeños porque se le olvida. Y no sabe cuantas lienas tiene el archivo en el que trabaja. Seria bueno que cada vez que abre el archvio tuviera ese datos para saber si puede seguir sumando lineas o no.

Additional Context

Suelo tener que decirle muchas veces que respecte pricniios solid y archviso pequeños porque se le olvida. Y no sabe cuantas lienas tiene el archivo en el que trabaja. Seria bueno que cada vez que abre el archvio tuviera ese datos para saber si puede seguir sumando lineas o no.

alemarino avatar Aug 11 '25 13:08 alemarino

Hi @alemarino, thanks for raising this request. Can you try to create a custom steering doc with these code standards? You can add SOLID principles, file size management and refactoring guidelines in your steering doc.

suruchi-aws avatar Aug 11 '25 20:08 suruchi-aws

I did it, I generated an md file with a schedule of what I wanted it to do and at each step I made it clear to him to respect solid principles and small files with few lines. When he starts working, he respects it. The problem is that when he has to edit a file, he doesn't know how many lines it has, he doesn't control how many lines it has before starting to edit it, then he opens a file in which he has to work, starts writing code without controlling the number of lines and starts adding lines and keeps adding and adding and adding. And if you don't stop him and ask him to refactor, he can make a file of 3000 lines without a problem.

alemarino avatar Aug 11 '25 22:08 alemarino

Hi @alemarino can you try including File Size Management rules in the steering doc? You can include guidelines like- before modifying any file- always check its current line count, you can specify maximum file sizes, specify when a file approaches the limit- use file splitting strategies. Steering docs can help ensure Kiro consistently follows your established patterns, libraries, and standards.

suruchi-aws avatar Aug 12 '25 18:08 suruchi-aws

Thank you for your feedback. As this issue does not contain a specific actionable request, we are closing it as stale. If you have a specific suggestion or issue, please open a new issue with details.

AnilMaktala avatar Apr 15 '26 16:04 AnilMaktala