Skip to content

Commit be5c808

Browse files
authored
docs: update transloadit intent output guidance (#6)
1 parent 2708065 commit be5c808

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

  • skills
    • transform-convert-markdown-to-pdf-with-transloadit
    • transform-describe-image-with-transloadit
    • transform-generate-image-with-transloadit

skills/transform-convert-markdown-to-pdf-with-transloadit/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ description: Convert a local Markdown file to a sibling PDF via the official `@t
2929
4. Run the conversion with the official CLI:
3030

3131
```bash
32-
npx -y @transloadit/node markdown pdf --input /ABS/PATH/file.md --out /ABS/PATH/file.pdf
32+
npx -y @transloadit/node markdown pdf --input /ABS/PATH/file.md --output /ABS/PATH/file.pdf
3333
```
3434

3535
## Notes
3636

3737
- Prefer `@transloadit/node`; it is the official CLI route and exposes `markdown pdf`.
38+
- When no `--output` is provided, the CLI writes the PDF next to the Markdown file by default.
3839
- Prefer `~/.transloadit/credentials` as the default fallback when you want a reusable user-level setup.
3940
- A current-directory `.env` still takes precedence, so avoid it when deterministic account selection matters.
4041
- If credentials only exist in a repo-root `.env`, run the command from that directory or export the variables first.

skills/transform-describe-image-with-transloadit/SKILL.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: One-off image description using the official `@transloadit/node` CL
66
# Inputs
77

88
- Absolute path to a local input image
9-
- Explicit `.json` output path
9+
- Optional `.json` output path; default is the same path with `.json`
1010

1111
# Prepare
1212

@@ -27,7 +27,7 @@ Labels / object-style description:
2727
npx -y @transloadit/node image describe \
2828
--input ./input.jpg \
2929
--fields labels \
30-
--out ./labels.json
30+
--output ./labels.json
3131
```
3232

3333
WordPress-ready fields:
@@ -36,7 +36,7 @@ WordPress-ready fields:
3636
npx -y @transloadit/node image describe \
3737
--input ./input.jpg \
3838
--for wordpress \
39-
--out ./fields.json
39+
--output ./fields.json
4040
```
4141

4242
Custom field selection:
@@ -45,10 +45,11 @@ Custom field selection:
4545
npx -y @transloadit/node image describe \
4646
--input ./input.jpg \
4747
--fields altText,title,caption,description \
48-
--out ./fields.json
48+
--output ./fields.json
4949
```
5050

51-
After the command finishes, confirm the JSON file exists at the expected output path.
51+
If you omit `--output`, the CLI writes the JSON file next to the input image using the same base
52+
name. After the command finishes, confirm the JSON file exists at the expected output path.
5253

5354
# Output Shapes
5455

skills/transform-generate-image-with-transloadit/SKILL.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: transform-generate-image-with-transloadit
3-
description: One-off image generation (prompt -> image file) using Transloadit via the `transloadit` CLI. Prefer `image generate` for text-only and input-guided generation, and download outputs locally via `-o`.
3+
description: One-off image generation (prompt -> image file) using Transloadit via the `transloadit` CLI. Prefer `image generate` for text-only and input-guided generation, and use `--output` when you need a deterministic path.
44
---
55

66
# Run
@@ -10,7 +10,7 @@ Use the `image generate` intent for quick image generation from a prompt.
1010
```bash
1111
npx -y @transloadit/node image generate \
1212
--prompt 'A minimal product photo of a chameleon on white background' \
13-
-o ./out.png
13+
--output ./out.png
1414
```
1515

1616
# Run With Input Images
@@ -24,13 +24,14 @@ npx -y @transloadit/node image generate \
2424
--input ./person2.jpg \
2525
--input ./background.jpg \
2626
--prompt 'Place person1.jpg feeding person2.jpg in front of background.jpg' \
27-
-o ./out.png
27+
--output ./out.png
2828
```
2929

3030
Notes:
3131
- The CLI defaults to `google/nano-banana-2`.
3232
- Repeated `--input` values are bundled into a single `/image/generate` assembly.
3333
- Prompt-only generation still works without any `--input`.
34+
- Without `--output`, prompt-only and multi-input runs default to the current working directory.
3435

3536
# Debug If It Fails
3637

0 commit comments

Comments
 (0)