本文へ移動
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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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/robonix3712026年10月9日 更新

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/robonix3712026年10月9日 更新

syswonder のスキルをすべて見る

このスキルの問題を報告する