Skip to content

JimLiu/baoyu-skills / skills/baoyu-infographic

baoyu-infographic

Verified

Generate professional infographics with 21 layout types and 22 visual styles. Analyzes content, recommends layout×style combinations, and generates publication-ready infographics. Use when user asks to create "infographic", "信息图", "visual summary", "可视化", or "高密度信息大图".

FileKindSize
SKILL.mdskill md15.5 KB
references/analysis-framework.mdmarkdown6.1 KB
references/base-prompt.mdmarkdown1.1 KB
references/codex-imagegen.mdmarkdown3.6 KB
references/config/first-time-setup.mdmarkdown3.4 KB
references/config/preferences-schema.mdmarkdown3.4 KB
references/layouts/bento-grid.mdmarkdown851 B
references/layouts/binary-comparison.mdmarkdown1.2 KB
references/layouts/bridge.mdmarkdown907 B
references/layouts/circular-flow.mdmarkdown759 B
references/layouts/comic-strip.mdmarkdown847 B
references/layouts/comparison-matrix.mdmarkdown893 B
references/layouts/dashboard.mdmarkdown776 B
references/layouts/dense-modules.mdmarkdown3.7 KB
references/layouts/funnel.mdmarkdown821 B
references/layouts/hierarchical-layers.mdmarkdown1.2 KB
references/layouts/hub-spoke.mdmarkdown865 B
references/layouts/iceberg.mdmarkdown884 B
references/layouts/isometric-map.mdmarkdown833 B
references/layouts/jigsaw.mdmarkdown844 B
references/layouts/linear-progression.mdmarkdown1.2 KB
references/layouts/periodic-table.mdmarkdown774 B
references/layouts/story-mountain.mdmarkdown815 B
references/layouts/structural-breakdown.mdmarkdown1.1 KB
references/layouts/tree-branching.mdmarkdown913 B
references/layouts/venn-diagram.mdmarkdown825 B
references/layouts/winding-roadmap.mdmarkdown799 B
references/structured-content-template.mdmarkdown3.9 KB
references/styles/aged-academia.mdmarkdown990 B
references/styles/bold-graphic.mdmarkdown920 B
references/styles/chalkboard.mdmarkdown2.2 KB
references/styles/claymation.mdmarkdown654 B
references/styles/corporate-memphis.mdmarkdown612 B
references/styles/craft-handmade.mdmarkdown1.4 KB
references/styles/cyberpunk-neon.mdmarkdown625 B
references/styles/hand-drawn-edu.mdmarkdown2.6 KB
references/styles/ikea-manual.mdmarkdown572 B
references/styles/kawaii.mdmarkdown653 B
references/styles/knolling.mdmarkdown584 B
references/styles/lego-brick.mdmarkdown574 B
references/styles/morandi-journal.mdmarkdown2.2 KB
references/styles/origami.mdmarkdown607 B
references/styles/pixel-art.mdmarkdown562 B
references/styles/pop-laboratory.mdmarkdown2.1 KB
references/styles/retro-pop-grid.mdmarkdown2.1 KB
references/styles/retro-popup-pop.mdmarkdown2.8 KB
references/styles/storybook-watercolor.mdmarkdown703 B
references/styles/subway-map.mdmarkdown591 B
references/styles/technical-schematic.mdmarkdown983 B
references/styles/ui-wireframe.mdmarkdown596 B

references/codex-imagegen.md

View on GitHub
# `codex-imagegen` Wrapper Invocation

Load this reference only when the [Image Generation Tools](../SKILL.md#image-generation-tools) rule has resolved to `codex-imagegen` — i.e., the current runtime exposes no native `imagegen` skill but `codex` CLI is on `PATH` with an active `codex login`.

## Preferred path: route through `baoyu-image-gen`

If the `baoyu-image-gen` skill is available in this runtime, **always** invoke through it rather than calling the wrapper directly. It handles retry/cache/batch/EXTEND.md preferences uniformly with every other provider.

```bash
${BUN_X} <baoyu-image-gen-base>/scripts/main.ts \
  --provider codex-cli \
  --image <ABSOLUTE_output> \
  --promptfiles <ABSOLUTE_prompts/infographic.md> \
  --ar <ratio> \
  [--ref <ABSOLUTE_file>]...
```

Resolve `<baoyu-image-gen-base>` the same way you resolve any sibling skill — through your runtime's skill registry (`Skill` tool, plugin marketplace, or `$HOME/.baoyu-skills/baoyu-image-gen/`).

## Fallback: spawn the wrapper directly

Only when `baoyu-image-gen` is NOT installed in the current runtime. Discover the wrapper's location at runtime — do NOT hard-code `../../packages/...` from this skill:

1. **Honor explicit override**: if `$BAOYU_CODEX_IMAGEGEN_BIN` is set and points to a real file, use that path. It may be `.ts` (spawn `bun <path>`) or `.sh`/binary (spawn directly).
2. **Search the plugin root**: walk up from this skill's directory looking for `packages/baoyu-codex-imagegen/src/main.ts`. If found, that is the wrapper. Spawn it with `bun`.
3. **Last resort**: tell the user that `codex-imagegen` is not available in this runtime and ask whether to install the `baoyu-skills` plugin (or set `BAOYU_CODEX_IMAGEGEN_BIN`) or pick another backend.

Once located, the invocation shape is:

```bash
bun <WRAPPER>/main.ts \
  --image <ABSOLUTE_output> \
  --prompt-file <ABSOLUTE_prompts/infographic.md> \
  --aspect <ratio> \
  [--ref <ABSOLUTE_file>]... \
  [--timeout <ms>] \
  [--cache-dir ~/.cache/baoyu-codex-imagegen] \
  [--log-file <ABSOLUTE_jsonl_log_path>]
```

If `bun` is missing, `npx -y bun <WRAPPER>/main.ts ...` works as a fallback.

## Parameter notes

- **All filesystem inputs** are auto-resolved against `process.cwd()` when relative, but agents should pass absolute paths to be robust against cwd drift.
- **`--timeout`** defaults to `300000` (5 min) per `codex exec` attempt. Raise (e.g. `--timeout 600000` for 10 min) on slow networks or large prompts.
- **`--cache-dir`** is off by default. Enable for repeatable runs to skip redundant generations of the same prompt+aspect+refs.
- **Authentication**: the wrapper uses the user's Codex subscription — no `OPENAI_API_KEY` is read or sent.

## Stdout contract

Single JSON line:

- Success: `{"status":"ok","path":"...","bytes":N,"elapsed_seconds":N,"thread_id":"...","attempts":N,"cached":bool,...}`
- Failure: `{"status":"error","path":"...","bytes":0,"error":"...","error_kind":"..."}`

`error_kind` values: `codex_not_installed`, `invalid_args`, `prompt_file_missing`, `spawn_failed`, `timeout`, `no_image_gen_tool_use`, `output_missing`, `invalid_png`, `agent_refused`, `lock_busy`.

On retryable errors (timeout, spawn_failed, no_image_gen_tool_use, output_missing, invalid_png, agent_refused), ask the user whether to retry or fall back to another backend.

## Batch semantics

- Codex `image_gen` returns **one image per call** (`n=1` only). Multi-image jobs must dispatch one wrapper call per image.
- The wrapper does NOT accept a `--sessionId` flag. Chain/scene consistency must come from `--ref` reference images.
- `--size` and `--quality` are silently ignored — Codex picks pixel dimensions from `--aspect`.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall