authoring-patch-sets
БесплатноБез исполняемых скриптовНе проверенDeclare a new firmware patch in a vphone patch set, add a patch set, or write a patch preset. Use when adding or changing a patch in FirmwarePatcher, when a…
от Hectr203★ 21 звезда на GitHubОб этом скилле
Authoring Patch Sets
Every patch this project applies is declared in a patch set, selected by a preset, and written only if the gate says so. A patch that exists in code but in no manifest still applies — it just cannot be turned off, and it prints a warning on every run. Declaring it is what makes it real.
The Three Layers
| Layer | Type | Where |
|---|---|---|
| A patch | VPhonePatchDeclaration |
a set's patches array |
| A set | VPhonePatchSetManifest |
FirmwarePatcher/PatchSets/*.swift, or a .vphonepatchset's Contents/Resources/Manifest.plist |
| A preset | VPhonePatchPreset |
VPhoneExecutable/VPhoneVirtualization/Resources/patches_presets/*.plist |
The types live in VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/. The
nine in-tree sets and the two shipped presets live in
VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/, listed by
FirmwarePatchSetCatalog.
Adding a Patch to an Existing Set
Write the patch as usual. Nothing about patch code changes: same
ARM64Disassemblermatching, sameARM64Encoder/ARM64constants for replacement bytes, sameemit(...). Follow the kernel patcher guardrails inAGENTS.md.Note the record identifier your patch emits — the
patchID:you pass toemit. That is what ties the patch to its declaration.Declare it in the right set, with the identifier being the record identifier, or the part before
.<site>when the patch writes several sites. Name it by the scheme in Naming:VPhonePatchDeclaration( identifier: "kernel-boot-my_patch", title: "What it is, in three or four words", summary: "What it does and why the guest needs it. One or two sentences.", target: .firmware(.kernelcache), applicability: VPhonePatchApplicability(iOSBase: .major(27)), bootEssential: true, )Build and run the golden corpus. A record no declaration covers prints
[!] <component>: <id> is declared by no patch set; applying it anyway. Grep the logs fordeclared by no patch set— it must be absent.
Naming
A patch identifier is {component}-{effect}-{name}, hyphen-separated:
- component — where the bytes land:
avpbooter,ibss,ibec,llb,txm,kernel,devicetree,dyld(the shared cache),preboot, orsystem-<binary>for a guest system binary or file (system-seputil-boot-gigalocker_uuid,system-vphoned-boot-install). - effect — derived, never chosen:
bootifbootEssential, elseexpifstandardleaves it off, elsecfw. A patch that changes either property is renamed with it. - name — snake_case,
[a-z0-9_], no dots or hyphens.
Every patch identifier names its component, effect and patch in
FirmwarePatchSetCatalogTests checks the shape, the effect and uniqueness for
every bundled declaration.
Identifiers Are the Contract
A declaration covers its own record and any record <identifier>.<site> —
only a dot starts a site:
kernel-boot-kcall10coverskernel-boot-kcall10.sy_call,kernel-boot-kcall10.sy_munge, …kernel-boot-sandbox_extcoverskernel-boot-sandbox_ext.3and every other indexkernel-boot-post_validationdoes not coverkernel-boot-post_validation_unsignedkernel-cfw-debuggerdoes not coverkernel-cfw-debuggerless
An underscore continues a snake_case name, so it never separates a site: emit
.1, not _1.
Pick the granularity a user would want to tick. One declaration per patch method
is usually right — a patch writing four sites that only work together is one
checkbox, because half of it would not boot. Where sites are genuinely
independent, declare them separately: kernel-*-sandbox_* is five declarations,
one per MACF hook, because turning one hook off is a sensible thing to want.
Never let one declaration read as a site of another.
No patch identifier is a record-site prefix of another fails if you do.
Version Gates
applicability is the only correct way to say "this patch is for release X". It
is a structured enum, never a string:
VPhonePatchApplicability(iOSBase: .major(27)) // every 27.x
VPhonePatchApplicability(iOSBase: .release(major: 26, minor: 0)) // exactly 26.0
VPhonePatchApplicability(cloudOS: .atLeast(major: 26, minor: 4)) // 26.4 and later
VPhonePatchApplicability(iOSBase: .oneOf([.release(major: 26, minor: 0), .major(18)]))
iOSBase is the iPhone base whose userland is restored into the guest; cloudOS
is the release supplying the kernel and boot chain. Only major and minor are
compared, so 18.6.2 satisfies .major(18).
An unreadable version satisfies only .any. That is deliberate: a patch pinned
to a release must not apply when nothing knows which release this is.
Two rules follow, and they are the ones people get wrong:
- A version gate is not a preference. Use it when applying the patch
Установить authoring-patch-sets в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл authoring-patch-sets?
Declare a new firmware patch in a vphone patch set, add a patch set, or write a patch preset. Use when adding or changing a patch in FirmwarePatcher, when a patch needs a version gate, when a patch should be selectable or off by default, or when building an out-of-tree .vphonepatchset.
Как установить скилл authoring-patch-sets?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл authoring-patch-sets запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic