Knowledge Patch Setup
Use this skill when the user wants to set up, activate, deactivate, or verify knowledge patches for a project, server, VPS, or working session.
Workflow
- Load
knowledge-patch:using-knowledge-patch if it is not already loaded.
- Read
../../catalog/patches.json, ../../catalog/aliases.json, and ../../catalog/detection.json.
- Inspect the current project and, when relevant, the server environment. A plain detection file signal checks path existence;
glob::marker requires the matching file to contain that literal marker. Use curated terms only as supporting evidence, not as a substitute for stronger file or manifest evidence.
- Recommend the relevant patch set. Use each catalog
short_label in user-facing activation messages. For server-looking evidence, ask whether admin guidance is desired before treating service patches as active.
- If the user approves activation, write priority state only. Do not copy skill files, install separate plugins, or fetch anything from the network.
- If the user asks to deactivate or remove patches, remove the resolved patch names and their activation reasons. If the user says
none or asks to clear all activation, write an empty active_patches list and empty activation_reasons object.
Preferred project state path:
.knowledge-patch/activation.json
User-level fallback:
$XDG_STATE_HOME/knowledge-patch/activation.json
Use this JSON shape:
{
"schema_version": 1,
"active_patches": [
"traefik-knowledge-patch"
],
"activation_reasons": {
"traefik-knowledge-patch": "manual: user is editing Traefik routing"
},
"updated_at": "2026-07-06T00:00:00Z"
}
Preserve unrelated fields if a state file already exists. Manual activation reasons should not be overwritten by weaker automatic detections.
Constraints
- Everything works offline.
- Bundled tech patches already live under the runtime-selected non-discovered
patch root (
patches-claude/ or patches-codex/).
- Activation changes priority and routing, not installation.
- Deactivation removes priority state, not bundled skills.
- Hooks are optional. Manual use through this skill and
using-knowledge-patch is the reliable path.
1---2name: knowledge-patch-setup3description: Detect, activate, or deactivate bundled knowledge patches.4---56# Knowledge Patch Setup78Use this skill when the user wants to set up, activate, deactivate, or verify knowledge patches for a project, server, VPS, or working session.910## Workflow11121. Load `knowledge-patch:using-knowledge-patch` if it is not already loaded.132. Read `../../catalog/patches.json`, `../../catalog/aliases.json`, and `../../catalog/detection.json`.143. Inspect the current project and, when relevant, the server environment. A plain detection file signal checks path existence; `glob::marker` requires the matching file to contain that literal marker. Use curated terms only as supporting evidence, not as a substitute for stronger file or manifest evidence.154. Recommend the relevant patch set. Use each catalog `short_label` in user-facing activation messages. For server-looking evidence, ask whether admin guidance is desired before treating service patches as active.165. If the user approves activation, write priority state only. Do not copy skill files, install separate plugins, or fetch anything from the network.176. If the user asks to deactivate or remove patches, remove the resolved patch names and their activation reasons. If the user says `none` or asks to clear all activation, write an empty `active_patches` list and empty `activation_reasons` object.1819Preferred project state path:2021```text22.knowledge-patch/activation.json23```2425User-level fallback:2627```text28$XDG_STATE_HOME/knowledge-patch/activation.json29```3031Use this JSON shape:3233```json34{35 "schema_version": 1,36 "active_patches": [37 "traefik-knowledge-patch"38 ],39 "activation_reasons": {40 "traefik-knowledge-patch": "manual: user is editing Traefik routing"41 },42 "updated_at": "2026-07-06T00:00:00Z"43}44```4546Preserve unrelated fields if a state file already exists. Manual activation reasons should not be overwritten by weaker automatic detections.4748## Constraints4950- Everything works offline.51- Bundled tech patches already live under the runtime-selected non-discovered52 patch root (`patches-claude/` or `patches-codex/`).53- Activation changes priority and routing, not installation.54- Deactivation removes priority state, not bundled skills.55- Hooks are optional. Manual use through this skill and `using-knowledge-patch` is the reliable path.