apply-patch

Apply structured multi-file patches in unified diff format.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/noname300989/Security-Claw --skill apply-patch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apply-patch
Source: https://github.com/noname300989/Security-Claw/tree/main/skills/apply-patch
Command: npx skills add https://github.com/noname300989/Security-Claw --skill apply-patch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables atomic, multi-file code modifications through structured patches, streamlining complex code updates and automated fixes.

Core Features & Use Cases

  • Atomic Edits: Apply changes across multiple files in a single, transactional operation.
  • Automated Fixes: Integrate automated code corrections that span several files.
  • Use Case: Apply a security patch that modifies three different files in your codebase simultaneously, ensuring consistency and reducing the risk of partial updates.

Quick Start

Use the apply_patch tool to update the timeout in config.ts and add error handling in handler.ts.

Frequently Asked Questions about apply-patch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply multi-file code edits atomically across a workspace?

Atomic multi-file code edits apply structured patches to modify, add, or delete files within a specified workspace. They use the unified diff format to ensure transactional, consistent code updates across your codebase.

Can I use unified diff patches to add and delete files simultaneously?

Yes, unified diff patches can modify existing files, add new files, or delete files simultaneously. This enables automated code corrections and security fixes to span several files in one operation.

What is the best way to apply a security patch across multiple files at once?

The best way to apply a security patch across multiple files is using atomic structured patches. This guarantees consistency and significantly reduces the risk of partial updates failing across your codebase.

Do I need specific AI models to enable automated multi-file patching?

Yes, automated multi-file patching requires explicit enablement and is restricted to OpenAI models. This constraint ensures the apply_patch tool correctly processes structured unified diff formats for code updates.

Does apply-patch work without any external dependencies?

Yes, apply-patch operates without external dependencies. It directly applies structured multi-file patches to your workspace to modify, add, or delete files using the unified diff format.