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★ 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.
Установить better-code-full в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic