cmp
Files
SKILL.mdagentsreferencesscripts
Install
Install only this skill with npx skills
npx skills add alisonaquinas/llm-shared-skills --skill 'cmp' -g -y
Install the containing skill bundle
/plugin install shared-skills@llm-skills
This skill is bundled inside shared-skills. Use
npx skills when you only want this skill, or install the bundle once to make every included skill available through the plugin marketplace flow. Browse the full skill bundle repository at github.com/alisonaquinas/llm-shared-skills.Invoke
Invoke this skill after installation
/shared-skills:cmp
SKILL.md
name: cmp description: Byte-level file comparison with position reporting. Use when the agent needs to inspect, analyze, or extract information from binary files or data structures.
Cmp
Byte-level file comparison with position reporting
Quick Start
- Verify
cmpis available:cmp --versionorman cmp - Establish the command surface:
man cmporcmp --help - Start with a read-only probe:
cmp file
Intent Router
Load only the reference file needed for the active request.
references/install-and-setup.md— Installing cmp on macOS, Linux, Windowsreferences/cheatsheet.md— Common options, output formats, usage patternsreferences/advanced-usage.md— Advanced patterns, performance optimizationreferences/troubleshooting.md— Common errors, exit codes, platform differences
Core Workflow
- Verify cmp is available:
cmp --version - Start with safe, read-only operation:
cmp [options] file - Validate output on test data before processing at scale
- Document exact command and flags for reproducibility
Quick Command Reference
cmp --version # Check version
cmp --help # Show help
cmp file # Basic usage
cmp file | head # Limit output
man cmp # Full manual
Safety Notes
| Area | Guardrail |
|---|---|
| Untrusted input | Validate files from untrusted sources before processing. |
| Large files | May consume memory on large files. Test with smaller samples first. |
| Output handling | Pipe output safely. Binary output may corrupt terminal. |
| Symlinks | Tool may follow or skip symlinks. Check man page for behavior. |
Source Policy
- Treat the installed
cmpbehavior andman cmpas runtime truth. - Use upstream documentation for semantics.
Resource Index
scripts/install.sh— Install cmp on macOS or Linux.scripts/install.ps1— Install cmp on Windows or any platform via PowerShell.