sharp

Installation
SKILL.md

Sharp

Skill for image processing with the Sharp library in Node.js. Sharp is a high-performance image pipeline built on libvips.

How Sharp Works

Sharp uses a chainable API: create an instance, chain operations, then output. All operations are lazy — nothing executes until an output method is called.

const sharp = require('sharp');

sharp('input.jpg')       // input: file path, Buffer, Stream, or create options
  .resize(300, 200)      // chain operations
  .jpeg({ quality: 80 }) // set output format
  .toFile('output.jpg'); // trigger execution

Sharp implements stream.Duplex, so it can also be piped:

Installs
2
Repository
clasen/skills
GitHub Stars
40
First Seen
Mar 1, 2026
sharp — clasen/skills