AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Patch Md

skill-firstp1ck-pi-coding-agent-forge-patch-md · by Firstp1ck

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.

No reviews yet
0 installs
27 views
0.0% view→install

Install

$ agentstack add skill-firstp1ck-pi-coding-agent-forge-patch-md

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-firstp1ck-pi-coding-agent-forge-patch-md)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Patch Md? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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:

PATCH.md
patch.manifest.json
scripts/.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.

Lifecycle Commands

Resolve paths relative to this skill directory:

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 
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 and package dependency graphs.
  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:

npm run check --prefix 

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.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.