Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

better-code-full

БесплатноБез исполняемых скриптовНе проверен

Rethinks the design of existing code, such as data flow, state, and the paths between parts, and rebuilds it in a simpler and more direct way without changing…

NazmusSayadот NazmusSayad★ 137 звёзд на GitHub

Об этом скилле

Working scope

Understand the scope before you do anything else. The scope can be a PR, a commit, a branch, specific files or folders, or the whole repository. If the user did not state the scope, default to the changes made in the current chat. If the scope is unclear, ask the user and wait for the answer. Do not guess. Then work only inside that scope.

Goal

Find a simpler design for the code in scope and change the code to it. Local tidying, such as inlining a helper or removing a variable, is not the goal. Look for changes that remove whole mechanisms: paths, copies of state, events, layers, and special cases.

Keep the behavior exactly the same. This includes what the user sees, what is stored, what is sent, and edge cases such as timing, ordering, errors, and who receives an update. If a simpler design needs any change in behavior, do not make it. Describe the change and its effect, and ask first.

Understand the whole design first

Read all the code in scope before you change anything. For a PR, read the full diff and the code it touches. Map:

  • Where each piece of state lives, who changes it, and how other parts learn about the change.
  • Every path that carries the same data from one part to another.
  • Every place that combines, filters, or merges the same data.
  • Every special case and the reason it exists.

Look for a simpler design

Ask how you would build the same behavior from the start with what you know now. Common signs that the design can be simpler:

  • The same data reaches a part through more than one path, such as an event, a response field, and a separate list. Use one path.
  • The same state is kept in more than one place and kept in sync by hand. Keep one source of truth and compute the rest from it.
  • Several places merge or filter the same data in their own way. Do it in one place.
  • Separate kinds, events, or types exist for cases that one general rule covers.
  • A lookup, query, or subscription exists only to feed another step that could get the value directly.
  • Logic repeated across implementations, such as providers or handlers, does the same work. Share the logic, not code that only looks the same.
  • A layer, wrapper, or indirection only forwards to another.

Before you keep a mechanism, find out why it exists. Code that looks unnecessary often protects behavior, such as an instant open from a cache, an optimistic update, or a provider difference. Keep it when removing it would change behavior.

Prefer one large simplification over many small edits. Fewer lines are good only when the result is easier to follow.

Make the change

Change the design completely. Remove everything the old design needed: types, events, fields, state, resets, subscriptions, helpers, and their imports. Do not leave the old path beside the new one. Avoid incidental changes to names, formatting, and unrelated code.

Check the result

Check that each flow in scope behaves as before, step by step, including edge cases. Check that no reference to a removed part remains. Run typecheck and lint.

Report

  • The design before and after, in a few sentences each.
  • What the change removed.
  • Each part that looks simpler but you kept, and the behavior that it protects.
  • The flows that need a manual check.
Полный SKILL.md на GitHub

Установить better-code-full в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yaml

FAQ

Что делает скилл better-code-full?

Rethinks the design of existing code, such as data flow, state, and the paths between parts, and rebuilds it in a simpler and more direct way without changing its behavior.

Как установить скилл better-code-full?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл better-code-full запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить better-code-full с