atharvan16/forge-terminal/forge
Claude Code and agent skill by atharvan16/forge-terminal
- community
Checking that the SKILL.md file is still in the repository.
Convert, compress and edit local files with the Forge CLI (`forge`) — images (HEIC, camera RAW, JPEG, PNG, WebP, AVIF, GIF, TIFF), PDFs, Word documents, video and sound — and hear or read what an agent cannot. Use when the user wants a file in another format, smaller or under a size limit, or cropped to a shape; a PDF merged, split, trimmed or rotated; what a recording, meeting or YouTube video says; the text in a picture, scan or PDF; or a colour palette, tonal scale or named colours as a card to paste into Figma — and `forge` is installed (`npm i -g forge-terminal`).
Install
npx vskill@latest install atharvan16/forge-terminal/forgeSKILL.md
The same SKILL.md was published earlier as atharvan16/forge-terminal/forge.
Forge
Forge converts files on this computer. Nothing is uploaded.
When to reach for it
- A file must fit a limit (an upload under 5 MB, an email, a form):
--max-size 5mb. A set width: --width 1200.
- A format you cannot open (HEIC, camera RAW, Word): convert it to PNG,
JPEG or PDF and read that.
- What a recording, meeting or YouTube video says:
forge transcribe,
then read the Markdown file it writes.
- The text in a picture, screenshot, scan or PDF:
forge transcribeon
it reads the text instead.
- Colours for Figma:
forge card,forge scaleorforge palettewith
--svg, piped to pbcopy. The user presses ⌘V in Figma.
Always
- Probe first.
forge probe <file…> --json. Each entry inprobeshas
format (read from the file's content, not its name), targets (every format the file can become) and actions (what else applies: compress, split, extract, delete, rotate; convert is always there). merge is never listed by probe: to merge, pass --merge with two or more PDFs. Use these lists; do not guess. compress appears when quality or size can be reduced: lossy images, and PDFs that contain compressible images (a PNG has only convert). Run it as --quality N or --max-size S without --to. A compress run reports op: "convert" in --json results.
- Pass `--json`. stdout is then exactly one JSON document, on one line.
Read ok, results[].outputs (the absolute path of every file written) and failures[] (path, code, title, detail, hint).
- Read the exit code (below).
- Never pass `--force` unless the user asked to replace files. Without it
Forge refuses with output-exists and writes nothing. Tell the user, or choose another -o.
Exit codes
| Code | Meaning | Do | |
|---|---|---|---|
| 0 | every input succeeded | report results[].outputs | |
| 1 | understood, but an input failed or was refused | read failures, act on code and hint | |
| 2 | the command itself was invalid | fix the flags (failures[0].code is invalid-arguments) |
Commands
For a colour, pass the hex without #, or quote it: an unquoted # starts a shell comment, and forge scale then exits 2 with "No colour given". rgb(), hsl(), oklch() and colour names (crimson, cherry red) work too, quoted.
forge update installs a newer Forge globally with npm. Run it only when the user asks for an update.
forge watch <folder> --to <format> converts the folder, then every file added to it, until it is interrupted (SIGINT). It never exits by itself, so start it only when the user asks for a folder to be watched, in the background. With --json it prints one JSON document per line: converted-existing, watching, then converted, failed or left-alone per file, and stopped with the totals.
Outputs go beside the source unless -o names a folder (or, for one file, a filename). Page operations always write beside the source, take no -o, and never edit the original.
Transcribe and read text
It takes one file or link at a time and has no `--json`: on success it prints one line, ✓ <file> 1:15 → 812 words · 4 parts, and exits 0. Read the file it names. A video or sound file gives notes and a transcript; a picture, screenshot or PDF gives its text, with headings, lists and tables kept (--to is refused for those). What it is is read from the content, not the name. --language fr-FR when the speech or text is not in the computer's own language. Notes need Apple Intelligence on a Mac; elsewhere --to all gives the transcript alone. A long recording takes minutes. Without --force an existing file is refused (output-exists).
Failure codes: transcribe-unavailable (the hint names what to install or turn on), read-unavailable (reading text needs macOS 26, or the read-text extension on Windows and Linux), no-text (nothing to read), link-unavailable (a playlist, or a video yt-dlp could not fetch), extension-missing (a link needs yt-dlp: the hint is the install command; ask the user first, it downloads), output-exists.
Colour cards for Figma
Pasted into Figma, the card is one layer per colour, named as written, with its exact fill. forge card reads the file by content. If any line is not a colour it draws nothing, names every bad line and exits 1. Write your colours one a line as name colour and pipe them in with -. If pbcopy fails (a sandbox may block the clipboard), give the user the command to run instead.
Resize and trim edges
Built in, images only, format kept unless --to is given:
One of --resize / --width / --height at a time; not with --max-size, --sharpen, --boost, --remove-bg or page operations (invalid-arguments). Runtime refusals: resize-too-large (over 16,384 px a side or 100 MP), nothing-to-trim, animated-trim. MCP: forge_convert with trim: true and/or resize: { percent | width | height }; to is then optional.
Crop to shape
Built in, images only, format kept unless --to is given. The largest box of the shape, placed to keep the subject:
Any W:H of whole numbers 1-100. A resize flag applies to the cropped image. Not with --trim, --max-size, --sharpen, --boost, --remove-bg or page operations (invalid-arguments). Runtime refusals: nothing-to-crop (already that shape; with a resize it is the warning nothing-cropped instead), animated-crop. MCP: forge_convert with crop: "1:1"; to is then optional.
Optional extensions: boost and remove background
Two image operations are not built in. They are small downloads, installed once, and need macOS 14 or later:
forge probe lists boost / remove-background under actions only when that extension is installed, so trust the probe. --json results carry op: "boost" or op: "remove-background". --to picks another output format; a cutout needs one that carries transparency (png, webp, avif, tiff) and anything else is refused with invalid-arguments. If the extension is missing the failure code is extension-missing, its hint is the install command, and the exit code is 1: ask the user before installing, since it downloads. Other codes: no-subject (no foreground found), boost-too-large (the result would pass 16,384 px a side or 100 MP; the hint names the largest factor that fits) and extension-outdated (--boost 3 needs boost 1.1.0 or later; the hint is the same forge extensions add boost, which updates it). While no released boost makes 3x, --boost 3 is refused with invalid-arguments and a hint naming the factors that work; don't update then.
Encrypted PDFs
Forge never prompts when there is no terminal. Send the password on stdin, one line:
Never put a password in an argument; there is no flag for it. Only rendering to images works on an encrypted PDF; page operations and compression refuse it (encrypted-source), so probe lists only the image targets and the one action convert for it. Without --password-stdin the run fails at once with exit 1 and a hint; a wrong password has its own hint.
Failure codes worth knowing
output-exists: ask before re-running with--force.unsupported-target: pick from the probe'stargets.target-unreachable: the smallest possible is still too big. Try a larger size or another format.unsupported-compress: lossless (PNG) or a PDF with no images. Convert instead.unsupported-operation: that page operation does not fit those files (PDFs only; merge needs two or more).encrypted-source: a password is needed, or the one given was wrong.extension-missing: run the hint'sforge extensions add <id>(with the user's agreement), then retry.extension-outdated: the same command updates it (with the user's agreement, it downloads), then retry.file-not-found: check the path; probe reports it per file without failing the rest.
MCP
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/forge/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/atharvan16/forge-terminal/forge)