file-converter-development

Build and integrate file-converter adapters for the @rytass/file-converter package.

6|3|Updated Apr 8, 2022
One-click install
npx skills add https://github.com/Rytass/Utils --skill file-converter-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-converter-development
Source: https://github.com/Rytass/Utils/tree/main/.claude/skills/file-converter-development
Command: npx skills add https://github.com/Rytass/Utils --skill file-converter-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured guide to build and integrate new file-converter adapters for the @rytass/file-converter base package.

Core Features & Use Cases

  • Adapter scaffolding: define and export new converter classes that conform to the FileConverter interface.
  • Pipeline integration: wire multiple adapters with ConverterManager for sequential transformations.
  • Sharp integration patterns: leverage Sharp for image processing inside adapters with clear configuration.
  • Use Case: Create a custom image-resizer or watermark adapter and plug it into an existing pipeline to automate batch image processing.

Quick Start

Create a new adapter by following the base package conventions and export it from your package entry point; instantiate ConverterManager with your adapters and call convert on a sample buffer.

Frequently Asked Questions about file-converter-development

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

FAQPage Schema
How do I build a custom file converter adapter in TypeScript?

To build a custom file converter adapter in TypeScript, define and export a new converter class that conforms to the FileConverter interface, then instantiate ConverterManager with your adapters and call convert on a sample buffer.

What is the best way to chain multiple file transformations in a TypeScript pipeline?

The best way to chain multiple file transformations is wiring your adapters with ConverterManager for sequential transformations, enabling scalable and testable image processing pipelines within your TypeScript project.

How do I integrate Sharp for image processing inside a custom adapter?

You integrate Sharp for image processing inside a custom adapter by leveraging Sharp-based transformations with clear configuration, allowing you to build operations like image resizing or applying watermarks.

Do I need the @rytass/file-converter base package to develop a new adapter?

Yes, you need the @rytass/file-converter base package to develop a new adapter, as this skill provides a structured guide to build and integrate new file-converter adapters specifically targeting this base package architecture.

What TypeScript knowledge is required for file converter adapter development?

File converter adapter development requires knowledge of TypeScript interfaces, export patterns, and using Sharp-based transformations to compose scalable, testable adapters that conform to the base package conventions.