Command Palette

Search for a command to run...

Назад к скиллам
скилл № 66869

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от 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_ref from 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_intent if provided by the triggering event.
  • refactor_contract from the briefing. This is the runtime contract for lane count and assembly policy; read it before synthesizing task_map.json.

Required Outputs

Write and emit:

  • refactor-plan.md via plan_artifact_ref.
  • task_map.json via task_map_ref.
  • source_index.json or scan evidence refs via source_index_ref.
  • scan_quality_audit_ref when scan quality was checked.
  • risk-register.json and 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, or source_excerpt; or
  • a source_index.json entry under tasks[] or task_sources[] with the same task_id and 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_id is stable and unique.
  • affinity_tag maps to a lane or ownership class.
  • wave 与 depends_on define order(字段名以 admission 为准, writer_fanout_admission.py 读 wave / depends_on,不是 dependencies)。
  • allowed_paths lists every path the worker may touch.
  • exclusive_files lists 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.
  • verification names concrete commands or evidence checks.

The workflow contract is authoritative:

  • If refactor_contract.assembly_policy == "declared_task", the task map must either include refactor_contract.assembly_task_id exactly or include one task with root_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。

Полный SKILL.md на GitHub

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

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

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

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), без исполняемых скриптов.

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

Сравнить zf-refactor-plan-synth с