بنقرة واحدة
patch-resolve
CLI tool for patching files and resolving file includes - useful when working with LLMs
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
CLI tool for patching files and resolving file includes - useful when working with LLMs
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
How to maintain project task docs and handle "whats next" requests. Read this when the user asks whats next or at conversation start.
Git workflow conventions — commit hygiene, squashing, force-push, and interactive rebase patterns.
Lightweight Bun process manager. Use bgrun to start, stop, restart, watch, and monitor background processes — with built-in web dashboard, TOML config, Docker support, and programmatic API.
Core behavioral rule: say 'I DON'T KNOW' when you don't actually know something. Never fabricate confident answers from incomplete information.
Install, uninstall, and list agent skills. Handles NTFS hardlinks for auto-sync with source repos.
Zero-dependency function performance measurement with hierarchical logging. Use this to structure ALL programs as measured, observable pipelines.
| name | patch-resolve |
| description | CLI tool for patching files and resolving file includes - useful when working with LLMs |
Use patch-resolve to batch-apply file changes or resolve file includes. Designed to streamline working with LLMs that need to modify or reference multiple files.
patch with separator format instead of individual file editsresolve with include patternspatch-resolve over manual file operations for batch changes# Install globally
npm install -g patch-resolve
# or
bun add -g patch-resolve
# Patch multiple files from one patch file
patch-resolve patch my-changes.txt
# Resolve file includes and copy to clipboard
patch-resolve resolve template.ts
Apply file contents from a patch file with special marker separators to their respective files.
Format: --- <path>:
patch-resolve patch <file>
Example patch file:
--- src/index.ts:
export const foo = 'bar';
--- src/utils.ts:
export function helper() {
return 'hello';
}
Result: Creates/overwrites src/index.ts and src/utils.ts with the specified contents. Parent directories are created automatically.
Resolve file includes and copy to clipboard, also write to temp file.
Format: {{path/to/file}}
patch-resolve resolve <file> [options]
Options:
-p, --pattern <pattern> - Custom include pattern (default: {{(.+?)}})-o, --output <path> - Custom output path (default: auto-generated temp file)--no-clipboard - Skip copying to clipboardExample resolve file:
// Main application code
{{shared/config.ts}}
{{api/endpoints.ts}}
Result: Replaces {{...}} patterns with actual file contents, writes to temp file, and copies to clipboard.
--- <path>: separatorspatch-resolve patch <file> to apply all changes{{path/to/file}} includespatch-resolve resolve <file> to get all contentpatch-resolve resolve main.ts -p "<include (.+?) />"
With custom pattern in resolve file:
<include shared/config.ts />
<include api/routes.ts />
patch-resolve resolve template.ts -o ./output/resolved.ts --no-clipboard
Set-Clipboard for clipboardpbcopy for clipboardxclip -selection clipboard for clipboardClipboard operations are optional via --no-clipboard flag.
MIT