Logo von 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.

Übersicht

HerausgeberFirstp1ck
Repositorypi-coding-agent-forge
Skill-Namepatch-md
Sterne
93
Forks
22
Mitgelieferte Dateien
7
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 7 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von Firstp1ck auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Patch Md in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-patch-md/skills/patch-md
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Patch Md in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Patch Md automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Patch Md nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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).

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-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.

Warum Patch Md in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Patch Md besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Patch Md in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-patch-md/skills/patch-md ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Patch Md nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Patch Md verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Patch Md damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Patch Md kostenlos?

Ja. Der Skill wird von Firstp1ck auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇