# Install Mini Deckflow for Codex

Trigger sentence: `Install Mini Deckflow from https://mini-deckflow-codex-txt-install.pages.dev/install/`

Follow this order. Do not skip failed checks. Do not install a local PPT platform, doctor, Chrome, or an always-on server.

1. Run one permission preflight before starting commands. If the current Codex sandbox or approval policy is likely to interrupt this installation many times, stop once and recommend Full Access for this trusted demo. If the user keeps the current policy, continue honestly. Never claim that installation can bypass Codex approval policy.
2. Confirm `python3` is available.
3. Confirm the Codex CLI is installed. If it is not authenticated, guide the user through `codex login` first.
4. Confirm `curl` or `wget` and a writable Codex Skill root (`$CODEX_HOME/skills` or `~/.codex/skills`).
5. Run:

   ```bash
   curl -fsSL https://mini-deckflow-codex-txt-install.pages.dev/install.sh | bash -s -- https://mini-deckflow-codex-txt-install.pages.dev
   ```

   For a local dist directory instead of Pages, run the same `install.sh` with that directory as the argument.
6. The bootstrap only copies a self-contained Skill (`SKILL.md`, `agents/openai.yaml`, `scripts/`) into `~/.codex/skills/mini-deckflow-translate` (or `$CODEX_HOME/skills/mini-deckflow-translate`). It does not embed Translation Instruction.
7. After the bootstrap prints that Mini Deckflow is installed and ready, make the user-facing reply business-first:
   - First say that Mini Deckflow is installed and ready.
   - Tell the user to start a **fresh** Codex task, then send a TXT or paste text.
   - Give this short example exactly:
     `$mini-deckflow-translate Please translate the attached TXT.`
   - If the current task cannot discover the Skill yet, say to open a fresh Codex task. Do not claim that an already-open task has reloaded the new Skill.

Do not lead the success reply with install paths, loopback URLs, or diagnostics.

Never request, copy, print, upload, or embed API keys, Codex auth files, cookies, tokens, or existing user artifacts during installation.
