Automates image processing tasks for operations teams. Integrates with Claude Code to streamline workflows. Connects to Node.js environments for efficient execution.
git clone https://github.com/jimliu/baoyu-skills.githttps://github.com/JimLiu/baoyu-skills
["1. **Identify Tasks**: Clearly define the image processing tasks you need to automate, such as resizing, watermarking, or format conversion.","2. **Set Up Node.js Environment**: Ensure you have Node.js installed and set up a project directory for your image processing tasks.","3. **Install Required Libraries**: Install the `sharp` library using npm by running `npm install sharp` in your project directory.","4. **Write Code Snippets**: Use the provided code snippets as a starting point and customize them according to your specific requirements.","5. **Integrate with Claude Code**: Use Claude Code to automate the execution of your image processing tasks. Provide clear instructions and prompts to ensure accurate and efficient automation."]
Generate infographic images from blog articles to enhance social media posts.
Create visually appealing summaries of reports or articles for presentations.
Automate the production of educational content in infographic format for online courses.
Transform raw data into engaging visuals for marketing campaigns.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/jimliu/baoyu-skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Automate the following image processing tasks for our operations team: [DESCRIBE TASKS]. Use Claude Code to streamline the workflow. Ensure compatibility with our Node.js environment. Provide the necessary code snippets and integration steps.
To automate the image processing tasks for your operations team, we'll focus on resizing, watermarking, and format conversion. Here's a step-by-step guide using Claude Code and Node.js:
1. **Resizing Images**: Use the `sharp` library in Node.js to resize images to specified dimensions. Example code snippet:
```javascript
const sharp = require('sharp');
async function resizeImage(inputPath, outputPath, width, height) {
await sharp(inputPath)
.resize(width, height)
.toFile(outputPath);
}
```
2. **Adding Watermarks**: Implement watermarking using the same `sharp` library. Example code snippet:
```javascript
async function addWatermark(inputPath, outputPath, watermarkText) {
await sharp(inputPath)
.composite([{ input: Buffer.from(`<svg><text x='10' y='10' font-size='20' fill='white'>${watermarkText}</text></svg>`), top: 10, left: 10 }])
.toFile(outputPath);
}
```
3. **Format Conversion**: Convert images to the desired format using `sharp`. Example code snippet:
```javascript
async function convertFormat(inputPath, outputPath, format) {
await sharp(inputPath)
.toFormat(format)
.toFile(outputPath);
}
```
4. **Integration with Claude Code**: Use Claude Code to automate the execution of these tasks. Example prompt:
"Automate the following image processing tasks: resize all images in the 'uploads' folder to 800x600, add a watermark with the text 'Confidential', and convert them to WebP format. Provide the necessary code snippets and integration steps."
By following these steps, you can streamline your image processing workflows and ensure efficient execution in your Node.js environment.Safe collectibles marketplace
Your one-stop shop for church and ministry supplies.
Automate your browser workflows effortlessly
IronCalc is a spreadsheet engine and ecosystem
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan