Logo van Patch Md

Patch Md

Community
Firstp1ck
patch-md

Agents should invoke this skill to create, migrate, inspect, apply, verify, or roll back versioned PATCH.md v2 lifecycle packages with machine-readable manifests, deterministic plans, drift detection, and transactional safety.

Overzicht

UitgeverFirstp1ck
Repositorypi-coding-agent-forge
Skillnaampatch-md
Sterren
93
Forks
22
Meegeleverde bestanden
7
LicentieMIT
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • 7 meegeleverde bestanden

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. Bestanden zijn alleen-lezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door Firstp1ck op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Patch Md in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-patch-md/skills/patch-md
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge.git /tmp/pi-coding-agent-forge
mkdir -p .claude/skills
cp -r /tmp/pi-coding-agent-forge/pi-skill-patch-md/skills/patch-md .claude/skills/patch-md
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Patch Md in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Patch Md automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Patch Md niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Patch MD Skill

When to Use

Use this skill to:

  • create or update a patch package;
  • migrate a legacy prose-only PATCH.md to schema v2;
  • inspect patch status after package updates;
  • plan, apply, verify, or roll back a patch;
  • reapply a patch across machines or package layouts.

Required v2 Artifact

A trusted patch package contains:

text
PATCH.md
patch.manifest.json
scripts/<lifecycle-handler>.mjs

Tests and fixtures are required for package-version or layout-dependent patches.

  • PATCH.md explains intent, scope, transformations, verification, rollback, and limitations.
  • patch.manifest.json is the machine-readable source of truth.
  • The lifecycle handler discovers actual runtimes and implements semantic, idempotent transformations.

Use PATCH-TEMPLATE.md, TOOL-CALL-SPEC.md, and patch-manifest-v2.schema.json.

App-specific package location

For an app-specific patch, the app's verified configuration/home directory is the canonical package location, normally <app-config>/patches/<patch-id>/.

  • Resolve the actual config/home from the app's documented runtime settings, launch options, or verified environment overrides before assuming a default. Ask when the location cannot be established safely.
  • Save the complete reconstructable package there: PATCH.md, manifest, lifecycle handlers, transformation profiles/assets, documentation, and required tests/fixtures. Do not deliver only a note that depends on a checkout, temporary capture, or versioned app-install directory.
  • A repository may retain a development mirror, but report the app-config package as the canonical artifact. Keep runtime assets package-relative and verify the copied package independently.
  • For T3 Code, use its resolved T3 home (T3CODE_HOME when configured, otherwise the verified ~/.t3 default), for example ~/.t3/patches/<patch-id>/. Keep patch artifacts outside live userdata; storing a patch never authorizes editing app settings or runtime state.
  • Do not silently move existing patches, receipts, or backups. Preserve their explicit state directory for rollback, and use --state-dir when a separately chosen config-local state directory is intended.
  • Patch storage is not patch application. After an app update, run fresh read-only status/plan and obtain plan-bound approval before any installed mutation; never silently reapply.

Lifecycle Commands

Resolve paths relative to this skill directory:

bash
node ./scripts/patch_md_extract.mjs --patch /path/to/PATCH.md --strict
node ./scripts/patchctl.mjs status --patch /path/to/PATCH.md
node ./scripts/patchctl.mjs plan --patch /path/to/PATCH.md
node ./scripts/patchctl.mjs apply --patch /path/to/PATCH.md --plan-hash <reviewed-hash>
node ./scripts/patchctl.mjs verify --patch /path/to/PATCH.md
node ./scripts/patchctl.mjs rollback --patch /path/to/PATCH.md --confirm

Workflow

Choose the lifecycle mode below from the user's request and current patch state. Always enter through strict extraction, use read-only status/plan before mutation, and finish with verification or an explicit blocker report.

Mode A — Create or Migrate

  1. Discover actual runtime entrypoints, package dependency graphs, and the verified app-config package destination when the target is an app.
  2. Define stable logical targets instead of user-specific absolute paths.
  3. Add package support ranges and semantic fingerprints.
  4. Implement three-way status: applicable, already-applied/upstreamed, or unsupported.
  5. Add idempotent transformation and postconditions.
  6. Add offline verification, receipt-based rollback, fixtures, and tests.
  7. Parse with strict mode and run the package test suite.

Legacy --no-strict parsing is allowed only to extract facts for migration. Never apply from legacy parser output.

Mode B — Status and Plan

  1. Run strict extraction; stop if ok=false.
  2. Run patchctl status.
  3. Run patchctl plan and review every required target, package version, path, before-hash, transformation, and risk.
  4. Do not proceed when a required target is unsupported or the plan reports drift.

Status and plan must be read-only.

Mode C — Apply

  1. Obtain explicit user approval for installed/global package mutation when not already requested.
  2. Apply only with the exact fresh plan hash.
  3. The handler must prepare and verify all target outputs before committing.
  4. Use sibling temporary files, restrictive backups, atomic rename, and automatic rollback on commit failure.
  5. Write a non-secret receipt with package versions and before/after hashes.
  6. Run offline verification against the exact runtime entrypoints.

Never silently reapply after an update.

Mode D — Verify

Verification must include, where applicable:

  • syntax/type checks;
  • semantic postconditions;
  • actual runtime/package resolution checks;
  • no-secret local protocol capture;
  • native TUI and RPC/WebUI variants;
  • a second apply producing zero writes.

Network, billing, credential, or live-provider checks must be separately identified and approved.

Mode E — Rollback

  1. Require --confirm.
  2. Load the apply receipt.
  3. Refuse rollback if a target no longer matches the recorded after-hash.
  4. Restore backups atomically.
  5. Verify restored before-hashes and archive the receipt.

Verification

After changing this skill or its runner, execute:

bash
npm run check --prefix <pi-skill-patch-md-package-root>

Before depending on a created or migrated patch, also run strict extraction, its fixture/unit tests, patchctl status, and offline patchctl verify. Run the Pi skill evaluator when available. Record any intentionally deferred network, billing, platform, or live-provider checks.

Parser and Manifest Requirements

Strict v2 validation requires:

  • every fixed heading exactly once and in canonical order;
  • contiguous unique Change indexes;
  • complete scope-to-change mapping;
  • recursive variable resolution with cycle detection;
  • complete shell fences preserved as blocks;
  • contained manifest and lifecycle handler paths;
  • valid v2 manifest fields, risk metadata, verification, and rollback.

Guardrails

  • Prefer upstream fixes or public extension/provider APIs over installed dist/ edits.
  • If dist/ mutation is unavoidable, resolve from actual executable/runtime entrypoints and fail closed on unknown layouts.
  • Never patch every matching package directory blindly.
  • Never log credentials, authorization headers, request bodies containing user content, or secret environment values.
  • Never execute verification prose as shell commands; use manifest argv steps or reviewed handler code.
  • Never claim implementation or verification without file and command evidence.
  • Never modify paths outside the reviewed plan.

Output Contract

Report:

  • patch ID/version and manifest path;
  • status or reviewed plan hash;
  • modified targets and before/after hashes;
  • verification results;
  • receipt or rollback archive path;
  • unsupported targets, deferred live checks, and restart requirements;
  • the canonical app-config package path and confirmation that all reconstruction files were saved and the copied package was verified (or the exact storage blocker).

Meegeleverde bestanden

Het model leest deze bestanden wanneer nodig terwijl de skill geladen is. Ze worden beschikbaar gesteld als leesbare bestanden en worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Patch Md?

Agents should invoke this skill to create, migrate, inspect, apply, verify, or roll back versioned PATCH.md v2 lifecycle packages with machine-readable manifests, deterministic plans, drift detection, and transactional safety.

Waarom Patch Md gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Patch Md bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Patch Md in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-patch-md/skills/patch-md. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Patch Md gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Patch Md gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Patch Md ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Patch Md gratis?

Ja. Deze skill is door Firstp1ck op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇