zf-refactor-plan-synth
Use for ZaoFu RefactorFlow plan synthesis. Requires a lane-pipeline-compatible task_map with assembly/root ownership so implementation, review, verify, and…
от uisee-ai★ 36 звёзд на GitHub
Установить zf-refactor-plan-synth в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
ZaoFu Refactor Plan Synthesis
Goal
Convert scan/review artifacts into a refactor plan that can pass deterministic lane-pipeline admission. The output is not only a markdown plan; it is the source of truth for lane dispatch.
Required Inputs
review_artifact_reffrom the scan/review fanout.- Coverage matrix, findings, uncovered areas, and scan evidence. 覆盖矩阵/发现
的合约语义以
yoke/verify-review为准:其requirement_coverage_matrix有non_empty档位内核校验(event_schema.py的non_empty+ FIX-14),并与verify.child.completed报告合约机械配对,教育骨架含gap_findings(orchestrator_fanout.py的_SCHEMA_EDU_PLACEHOLDERS)。本技能只消费这些 字段,不另立矩阵语义,避免两处漂移。 plan_intentif provided by the triggering event.refactor_contractfrom the briefing. This is the runtime contract for lane count and assembly policy; read it before synthesizingtask_map.json.
Required Outputs
Write and emit:
refactor-plan.mdviaplan_artifact_ref.task_map.jsonviatask_map_ref.source_index.jsonor scan evidence refs viasource_index_ref.scan_quality_audit_refwhen scan quality was checked.risk-register.jsonand backlog candidates when useful.
All refs needed by the next stage must be top-level payload fields and included
in artifact_refs or evidence_refs.
List only planner-produced ports with explicit refs/descriptors in the Task
Map's required_plan_ports, such as source inventory/index and matrices that
Impl/Verify actually consume. requirement_spec, goal_claim_set, task_map,
and planning_result are Kernel/profile-required ports: runtime derives or
binds them from canonical intake and the admitted Task Map. Do not redeclare a
Kernel-derived port unless this Plan result also emits its real top-level
descriptor. Do not choose the current Plan Artifact Package or copy plan bodies
into a package object; runtime validates explicit refs and performs admission.
Source Index Rules
The implementation fanout consumes per-task provenance before dispatch. For
every task in task_map.json, include either:
- direct task anchors:
source_key,source_keys,source_ref,source_refs, orsource_excerpt; or - a
source_index.jsonentry undertasks[]ortask_sources[]with the sametask_idand non-empty source anchors.
Good refactor anchors point to scan findings, audit findings, PRD sections, or
plan sections, for example scan/findings.json#F-023 or
docs/plans/refactor-plan.md#lane-runtime. A global sources[] list is not
enough for multi-task refactors.
Lane Task Map Rules
拆 task_map 的形状方法委托 yoke/vertical-slicing(每个 task 纵切全部集成层、
独立可验收);本节只管每条 task 的可派发字段。
每个纵切 task 应关闭一条可观察 parity/user journey,而不是只迁移一个技术层。 多条 slice 汇入同一真实入口时,保留唯一 final assembly owner;该 owner 负责入口 wiring 和 assembled smoke,不重新拥有上游 slice 的测试或证据文件。
Every task must be dispatchable:
task_idis stable and unique.affinity_tagmaps to a lane or ownership class.wave与depends_ondefine order(字段名以 admission 为准,writer_fanout_admission.py读wave/depends_on,不是dependencies)。allowed_pathslists every path the worker may touch.exclusive_fileslists only files uniquely owned by this task. A file may appear in one task only; dependency ordering or serialization never permits duplicate exclusive ownership. Combine shared edits under one owner task.verificationnames concrete commands or evidence checks.
The workflow contract is authoritative:
- If
refactor_contract.assembly_policy == "declared_task", the task map must either includerefactor_contract.assembly_task_idexactly or include one task withroot_owner_class: "assembly". - If
refactor_contract.assembly_policy == "none", a one-bundle serial plan may omit assembly, but every task still needs explicit owned paths and source anchors.none现在还会同时跳过根 owner 启发式(不止跳 assembly 声明, 见下方「根 owner」段)。 - Do not infer that assembly is optional from task count when the workflow contract declares an assembly task.
根 owner(workspace-root-owner)启发式
这是计划产物显式选择的机械检查,不是 lane pipeline 的默认推断。只有当本次
delivery 要修改或验证根级脚手架/entrypoint 时,task_map 才应声明
workspace_root_owner_required: true;此时任一 task 必须把对应根级路径列进
allowed_paths,否则 admission 报「no task owns workspace-root paths」——R21
失败形状:根 build config 无主,根 tsc -b / pytest 从未被任何 lane 执行。
被识别的脚手架 basename 含 package.json / pnpm-lock.yaml /
pnpm-workspace.yaml / tsconfig.json / vitest.config.ts / eslint.config.js,
以及 Python 侧 pyproject.toml / setup.py / setup.cfg / requirements.txt /
uv.lock / poetry.lock / Pipfile(lane_pipeline.py
validate_lane_pipeline_admission 的 _SCAFFOLD_BASENAMES)。
局部 patch / 存量项目:默认不声明该字段(等同 false),不得为了通过门而
虚构 assembly 或根级文件所有权。顶层
workspace_root_owner_required 或
refactor_contract.workspace_root_owner_required 的布尔值优先;只有 true
才启用根 owner 检查。
关掉 root owner 只跳过这一条启发式,task schema / path / evidence 校验一律
不放宽——每条 task 照旧要唯一 task_id、显式 allowed_paths、verification
和 source anchors。
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл zf-refactor-plan-synth?
Use for ZaoFu RefactorFlow plan synthesis. Requires a lane-pipeline-compatible task_map with assembly/root ownership so implementation, review, verify, and judge stages can dispatch deterministically.
Как установить скилл zf-refactor-plan-synth?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zf-refactor-plan-synth запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…