zf-find-simplifications
Use on demand to find evidence-backed simplifications in ZaoFu itself, in applications developed with ZaoFu, or in an Autoresearch simplify audit. Proves…
от uisee-ai★ 36 звёзд на GitHub
Установить zf-find-simplifications в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ZaoFu Find Simplifications
Use this skill to reduce real maintenance surface, not to reward a smaller diff or a lower line count. A valid candidate has call-site evidence, states what behavior is surrendered, respects the repository's protected seams, and deletes or coalesces more complexity than it relocates.
Operating Modes
Choose exactly one mode before working:
- Audit mode: use for broad repository surveys, architecture reduction,
release/refactor checkpoints, and every Autoresearch
simplifyrequest. It is read-only and produces a proposal; it never authorizes implementation, runtime-state mutation, task completion, or direct mainline application. - Recent-diff refinement mode: use only when the current assignment already authorizes code edits. Limit edits to the current session's owned diff, keep observable behavior exact, and rerun the same focused verification. This is the daily ZaoFu/application-development counterpart to a code-simplifier pass, not permission to refactor untouched modules.
If scope or edit authorization is ambiguous, use audit mode.
When To Use
Use it on demand in any of these contexts:
- ZaoFu daily iteration: repeated fallback branches, compatibility layers, duplicate facts, oversized ownership surfaces, or code repeatedly repaired in the same area. After an implementation, recent-diff refinement may improve clarity without changing behavior.
- Applications developed with ZaoFu: hand-written infrastructure, abandoned options, duplicated domain representations, or test-only public APIs in the target application. The application's owner contract and product behavior take precedence over generic ZaoFu preferences.
- Autoresearch: an explicit
autoresearch.loop.requested(mode=simplify)or a separately approved simplification checkpoint. The output remains asimplification_audit.v1proposal; Autoresearch must not apply it directly. - Release/refactor checkpoint: after the behavior is proven and before more variants are added, when consolidation can be evaluated against a stable target.
Do not auto-load this skill for every Impl, Verify, reflection, or ordinary code review. Do not use it to turn an unrelated delivery task into a refactor.
Recent-Diff Refinement
This narrow mode adopts the useful behavior-preserving discipline of Anthropic's
code-simplifier agent while keeping ZaoFu's evidence and ownership rules:
- Pin the owned scope with
git diff -- <explicit paths>and the current task contract. Do not edit another driver's staged, dirty, or untracked files. - Read the repository's current
AGENTS.md/CLAUDE.mdand existing nearby patterns. Project rules replace hard-coded language/framework preferences. - Preserve public APIs, outputs, errors, side effects, ordering, persistence, events, config defaults, security boundaries, timing/concurrency semantics, and accepted compatibility behavior.
- Reduce unnecessary nesting, duplicate branches, redundant abstractions, vague names, and comments that only narrate syntax. Consolidate only logic with one owner and one invariant.
- Prefer readable, explicit control flow over dense expressions, clever one-liners, nested ternaries, or line-count reduction. Fewer lines are not a success metric.
- Apply the smallest refinement, inspect the resulting diff, and rerun the pre-refinement focused tests plus any direct caller/contract checks crossed.
- If a candidate changes supported behavior, requires migration, crosses the task's allowed paths, or cannot be proved equivalent, do not apply it. Move it to an audit proposal or reject it.
No edit is a valid outcome when the current diff is already the clearest safe implementation.
Scope First
State the repository, target commit, bounded directories or subsystem, and the
reason simplification is being considered. Read the applicable AGENTS.md,
current owner/design documents, dependency manifest, and recent incident or
change evidence before searching for candidates.
For ZaoFu itself, load zf-cr and
zf-harness-design-impl-game-review when the audit needs architecture-wide
adjudication, verify claims against current code/tests, and preserve these
boundaries unless the owner explicitly approves an architecture change:
zf.yamlremains the single control-plane configuration.- EventLog ordering/causation, canonical Stores, artifact bodies/refs/digests, and SQLite projections have different owners; do not collapse truth into a read model or duplicate semantic bodies into events.
- The deterministic Kernel and a configured
orchestratorrole agent are not interchangeable. - Product Flow and supported Legacy routes may intentionally differ.
- Provider, transport, worktree, session, and security seams may have dynamic consumers that a static symbol search cannot see.
skills/is canonical; tracked provider copies are synchronized mirrors, not indep
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл zf-find-simplifications?
Use on demand to find evidence-backed simplifications in ZaoFu itself, in applications developed with ZaoFu, or in an Autoresearch simplify audit. Proves consumers and protected seams before proposing deletion, coalescing, demotion, or dependency replacement; output is proposal-only until separately approved.
Как установить скилл zf-find-simplifications?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zf-find-simplifications запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…