본문으로 건너뛰기
cccskills
무료GitHub에 공개

robonix-simplify

Shrink a Robonix change before review without changing behaviour. Use when a feature works and tests pass, before opening or updating a PR, and when a review asks for a smaller change.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md1.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

robonix-simplify

A working change is usually larger than it needs to be. This pass makes it smaller and plainer before anyone reviews it. The rules are the maintainability page of .agents/guidelines/.

Steps

  1. Measure. git diff --stat <base>...HEAD, excluding generated files. Note the size.
  2. Find the fat, in this order, because the first items are the cheapest and safest:
    • comments and docstrings that restate the code, tell the history of a bug, or quote measurements (comments-explain-why, no-history-in-code);
    • code nothing calls, reads or configures (delete-dead-code) — search the whole repository, including testing/ and examples/, before deleting;
    • options, parameters and environment variables nobody sets (minimal-change);
    • the same logic in two places (dry), and new helpers that duplicate existing ones (reuse-first);
    • wrappers, layers and classes with one caller (no-single-use-abstraction);
    • long functions and deep nesting (small-functions, flat-control-flow).
  3. Understand before deleting. For each candidate, find why it exists (callers, tests, git log -S). If the reason still holds, keep it.
  4. Change in small steps, running the relevant tests after each. Behaviour, public names, contracts and stored formats stay the same; renames follow deprecate-dont-break.
  5. Measure again and report before/after line counts with the categories removed.

Stop when the remaining code is what a careful engineer would write by hand. Fewer lines is not the goal on its own: don't merge unrelated logic or inline a helper whose name explains a step.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Review a Robonix change against the repository's coding guidelines and write a Markdown review. Use when asked to review a branch, a PR, or files, and before asking a human to review your own change.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

syswonder/robonix4022026년 10월 21일 업데이트

Write or edit commit messages, PR and issue descriptions, READMEs and code comments for Robonix so they read like a person wrote them. Use whenever producing prose that goes into the repository or onto GitHub.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

syswonder/robonix4022026년 10월 21일 업데이트

syswonder의 스킬 모두 보기

이 스킬의 문제 신고