CommunityImagegithub.com

flora-incognita

Invent a plausible fictional plant from a feeling, place, climate, or memory and bind it into one self-contained offline HTML herbarium folio — a scientific botanical plate, a Latin binomial, seed-packet and herbarium-label copy, an identification key, and a short spoken field note with a written transcript. Use when someone asks for a fictional plant, imaginary species, herbarium sheet, seed packet, botanical illustration, or field-note recording made with Pollinations (pollinations.ai) text, image, and TTS models, packaged so it opens from disk with no hosting, no build step, and no API key in the file.

What is flora-incognita?

flora-incognita is a Codex agent skill that invent a plausible fictional plant from a feeling, place, climate, or memory and bind it into one self-contained offline HTML herbarium folio — a scientific botanical plate, a Latin binomial, seed-packet and herbarium-label copy, an identification key, and a short spoken field note with a written transcript. Use when someone asks for a fictional plant, imaginary species, herbarium sheet, seed packet, botanical illustration, or field-note recording made with Pollinations (pollinations.ai) text, image, and TTS models, packaged so it opens from disk with no hosting, no build step, and no API key in the file.

Works with~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/boomiai/flora-incognita/tree/HEAD/flora-incognita

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Flora Incognita

Invent a plant that never existed, then make the object a field naturalist would have left behind: one cream sheet, a mounted scientific plate, a typed herbarium label, a fold-out seed packet, and a short spoken field note. All of it packs into a single HTML file that opens from disk.

This is a finished creative object, not a media studio. One brief in, one folio out.

When to use this skill

Use it when a person gives you any of these and wants something made of them:

  • a feeling and a weather ("homesick + monsoon")
  • a place ("the last fig tree in a courtyard in Yazd")
  • two words ("salt", "patience")
  • a short memory ("my grandmother's balcony after rain")

and the artifact they should receive is a fictional plant with a botanical plate, label copy, and a spoken field note — not a real species, not a poster, not a generic image generator.

If the user instead wants a real plant identified, say plainly that this skill invents species and does not identify them.

What the folio contains

  1. Latin binomial and common name, with a one-line gloss of the epithet.
  2. Scientific botanical plate — whole plant plus a leaf or flower detail, cream paper, ink and watercolor, no UI chrome.
  3. Herbarium label and seed-packet copy — habitat, folklore or field notes, how it would be grown if it existed, and a short identification key.
  4. Spoken field note — 8–20 seconds of TTS, the naturalist reading the note, with a written transcript so the folio works muted.
  5. One self-contained HTML file — plate embedded as base64, audio embedded, escaped text, no external requests, no autoplay.

Before generating: confirm cost

Live generation spends the user's Pollinations balance. Always show this plan and ask before spending:

  • the seed brief as you understood it
  • the exact models and their paid_only status
  • number of calls (default: 1 text, 1 image, 1 TTS)
  • rough cost (image is the expensive part: flux.1-schnell ≈ $0.002 per plate)

Then run with --yes. Without --yes the script prints the plan and exits.

Only models with paid_only: false are allowed. Never use video models (all paid-only), never use paid sound-effect models, never use community models as defaults. If a default has become paid-only, the script refuses it; pick another official free/tier model from the live catalog and tell the user.

Auth (no keys in this skill, ever)

Read the key only from POLLINATIONS_API_KEY in the environment:

export POLLINATIONS_API_KEY="..."   # user's own key, never echoed, never committed

Alternatives worth offering:

  • npx @pollinations/cli auth login (polli auth login) — device flow, uses the user's own balance, and the agent never handles a key.
  • Pollinations Pay top-up at https://enter.pollinations.ai if the balance is low.

Rules the agent must follow:

  • Never print, echo, log, screenshot, or commit the key or a raw Authorization header.
  • Never put the key in a URL, query string, or the folio HTML.
  • Did the user paste a key into chat? Tell them to rotate it and use the environment or device flow instead.

Workflow

1. Take the brief

One to three sentences is enough. Ask at most one clarifying question, and only if the brief is unusable. Keep the user's own words — they become the folio's "inspiration" line.

2. Dry run (free)

From the repository root:

python3 flora-incognita/scripts/create_folio.py \
  --brief "homesick + monsoon" \
  --out flora-incognita/examples/monsoon \
  --dry-run

The dry run resolves each model against the live catalog at https://gen.pollinations.ai/models, confirms paid_only: false, and prints the plate prompt and field-note draft plan. No money is spent.

3. Generate

python3 flora-incognita/scripts/create_folio.py \
  --brief "the last fig tree in a courtyard in Yazd" \
  --out flora-incognita/examples/yazd \
  --yes

This performs, in order:

  1. GET /account/key/usage and GET /account/balance (before)
  2. one text call to openai/gpt-5.4-nano returning a JSON species record
  3. one image call to black-forest-labs/flux.1-schnell for the plate
  4. one TTS call to openai/tts-1 for the field note
  5. usage and balance again (after), and a spend summary
  6. packing into <out>/folio.html with pack_folio.py

Everything lands in one directory:

yazd/
  folio.html          # the deliverable, self-contained
  spec.json           # the species record, editable by hand
  plate.png
  field-note.mp3
  usage.json          # before/after totals, no secrets

Edit spec.json freely and re-pack without spending a cent:

python3 flora-incognita/scripts/pack_folio.py --spec yazd/spec.json --out yazd/folio-v2.html

4. Verify before handing over

python3 flora-incognita/scripts/pack_folio.py --spec out/spec.json --out out/folio.html --force

The packer refuses to write without --force when the target exists, refuses SVG and unknown media, rejects a spec that contains anything resembling an API key, and checks that every asset is embedded. Also open the file yourself once: image visible, audio has a duration, text matches the transcript.

Report to the user: species name, path to folio.html, models used, and spend delta from usage.json.

The folio spec

spec.json is a flat, human-editable record. Only the fields below are used; unknown fields are ignored, and every string is HTML-escaped at pack time.

{
  "folio_no": "0417",
  "accession": "FI-2026-0417",
  "common_name": "Courtyard Dusk Fig",
  "latin_name": "Ficus vespertina",
  "authority": "FI. spec. nov.",
  "family": "Moraceae",
  "epithet_gloss": "vespertina, of the evening",
  "inspiration": "the last fig tree in a courtyard in Yazd",
  "locality": "Yazd, Iran — walled courtyard, 1,210 m",
  "collector": "N. Farahani, field no. 0417",
  "collection_date": "2026-11-29",
  "habit": "Small gnarled tree, 3–4 m",
  "description": "Two or three sentences of botanical description.",
  "plate_caption": "Plate I. Whole habit and leaf detail.",
  "habitat": "Seed-packet habitat copy.",
  "folklore": "Seed-packet folklore copy.",
  "cultivation": "How it would be grown, if it existed.",
  "identification_key": [
    "Leaves alternate, coriaceous, apex rounded …",
    "Petiole 1.5–2 cm, exuding white latex when cut …"
  ],
  "field_note": {
    "transcript": "8–20 seconds of spoken naturalist notes.",
    "voice": "nova",
    "duration_seconds": 14
  },
  "media": {
    "plate": "plate.png",
    "audio": "field-note.mp3",
    "audio_kind": "tts"          // "tts" or "fixture"
  },
  "models": {
    "text": "openai/gpt-5.4-nano",
    "image": "black-forest-labs/flux.1-schnell",
    "tts": "openai/tts-1"
  },
  "generated_at": "2026-11-29T12:00:00Z"
}

Set media.audio_kind to "fixture" when the audio was not produced by a model; the folio then labels the player as a placeholder. Do not pass off fixture media as generated.

Writing the species

The invention has to be plausible, which is different from real.

  • Build from a real family and a real genus. A fictional species inside a known genus reads as botany; an invented genus reads as fantasy.
  • Let the brief drive the morphology: dry place → coriaceous leaves, sunken stomata, waxy bloom; monsoon → aerial roots, drip tips; cold → prostrate habit, pubescent buds.
  • Keep the binomial grammatical: Ficus vespertina, not Ficus vespertinus. Gloss the epithet in one line.
  • Confine the fiction to the species. Real families, real geography, plausible measurements, no magic.
  • The identification key is 3–5 couplet-style lines that would actually separate this plant from its nearest real relatives.
  • The field note is first person, present tense, specific, and 35–55 words — enough for 8–20 seconds spoken. No stage directions, no emoji, no markdown: it is read aloud.
  • Label the whole thing as a fictional species in the folio footer. Never imply the plant exists.

Packing only (no network)

pack_folio.py is deliberately offline. It takes a spec, a plate image, and an audio file and writes the HTML:

python3 flora-incognita/scripts/pack_folio.py \
  --spec spec.json \
  --out folio.html \
  --force

Safety properties:

  • refuses to overwrite an existing folio.html without --force
  • only embeds PNG, JPEG, WebP, or GIF plates; MP3, WAV, OGG, or M4A audio; SVG is rejected
  • sniffs real magic bytes rather than trusting the extension
  • escapes every model- and user-provided string with html.escape
  • strips/refuses key-like strings (sk_…, Bearer …) in the spec
  • emits no external URLs, scripts, or CDN references — playback works from disk with no network
  • never autoplays audio

Use --allow-missing-audio if a user explicitly wants a folio with text only.

Files

  • scripts/create_folio.py — live pipeline (auth, catalog check, text, plate, TTS, usage, pack)
  • scripts/pack_folio.py — offline packer and validator
  • scripts/pollinations_api.py — small stdlib client (URL building, error redaction, model checks)
  • assets/folio-template.html — the herbarium sheet, seed packet, and player
  • examples/courtyard-dusk-fig.html — a playable folio, media clearly marked as fixture
  • references/pollinations-api.md — endpoints, catalog fields, cost notes

Troubleshooting

  • POLLINATIONS_API_KEY is not set — export it in the shell that runs the script, or use polli auth login.
  • model is paid_only — the free tier moved. Run --dry-run to see the catalog entry, then pass another official model with --image-model / --tts-model / --text-model.
  • 401 / 403 — key invalid, expired, or missing scope. Do not retry in a loop; ask the user for a fresh key or device login.
  • Image bytes are not an image — usually a JSON error body with HTTP 200. The script reports the first 200 characters, redacted.
  • Folio looks empty — you opened it from a directory where the media files sit outside the HTML; the folio embeds everything, so a byte-identical copy anywhere still works. If it is genuinely empty, re-pack and check spec.json paths.

Attribution

Made with Pollinations (https://pollinations.ai). The repository README carries the official "Made with pollinations.ai" badge. Do not remove it, and do not add programmatic advertising or tracking to the folio.

Related Skills