Install LoreHat card authoring support for the coding assistant you are running in. The user pasted this prompt intentionally. Perform the setup for your own host only. Do not use sudo, do not delete or overwrite unrelated configuration, and do not edit, publish, or submit any LoreHat card during setup. 1. Download https://help.lorehat.app/creator-agent/lorehat-skill-bundle.json. The JSON is a `lorehat-skill-bundle/v1` object whose `files[]` entries contain `path`, `sha256`, and `contentBase64`. Stop if the schema or the `lorehat` name does not match. Decode it into a temporary directory and verify every SHA-256 after decoding. If any hash mismatches, stop and report the mismatch. 2. Install the extracted files as the `lorehat` skill for your host, without removing other skills. Resolve host-specific configuration locations from the environment before writing anything: - Codex: place the files in `~/.agents/skills/lorehat/` so that `~/.agents/skills/lorehat/SKILL.md` exists. Use `${CODEX_HOME}/config.toml` instead of `~/.codex/config.toml` when `CODEX_HOME` is set. - Claude Code: place the files under the active Claude configuration directory: use `${CLAUDE_CONFIG_DIR}/skills/lorehat/` when `CLAUDE_CONFIG_DIR` is set, otherwise `~/.claude/skills/lorehat/`, so that `SKILL.md` exists directly in that `lorehat/` directory. - For either host, if the target directory already exists, update only files that are part of the downloaded bundle and leave unrelated files alone. 3. Configure the LoreHat MCP server as `lorehat`, using exactly this URL: https://api.lorehat.app/api/creator/external/mcp - First inspect the existing `lorehat` entry. If it already uses this exact URL, leave it untouched. Never remove and recreate an entry just to change it, because that can discard custom settings. - Codex: inspect the resolved Codex `config.toml` and, when available, `codex mcp get lorehat --json`. If the `[mcp_servers.lorehat]` section is missing, add it with only `url = "https://api.lorehat.app/api/creator/external/mcp"`. If the section exists as a remote HTTP entry with a different URL, first check whether preserving its other keys would keep an explicit token or authorization binding (such as `bearer_token_env_var`, `http_headers_helper`, or authorization headers) or conflicting transport settings; if so, stop and report the conflict instead of changing the URL, and tell the user to provide a token for the new endpoint or explicitly remove that binding to use browser authorization. If the section exists but is not a remote HTTP entry, stop and report the conflict instead of converting it. Otherwise update only its `url` value and preserve every other key. Do not use `codex mcp add` for an existing entry, and do not run it as the first write path because it may replace the entry or start browser authorization. After the saved configuration is verified, run `codex mcp login lorehat` only when the user is ready to authorize in the browser. - Claude Code: inspect `claude mcp get lorehat`. If the entry is missing, run `claude mcp add --scope user --transport http lorehat "https://api.lorehat.app/api/creator/external/mcp"`. If it exists as a user-scoped remote HTTP entry with a different URL, first check whether it carries an explicit token or authorization header binding (such as an authorization header or `headersHelper`); if so, stop and report the conflict instead of changing the URL, and tell the user to provide a token for the new endpoint or explicitly remove that binding to use browser authorization. Otherwise update only the `url` value in the existing JSON entry and preserve every other field; do not remove and re-add it. If the existing entry is not a remote HTTP entry, the effective entry belongs to a project or local scope instead of user scope, or the host offers no non-destructive update path, stop and report that instead of overwriting the entry. After the saved configuration is verified, run `claude mcp login lorehat` only when the user is ready to authorize in the browser. 4. If neither host applies, stop and name the host instead of guessing. 5. Run the smallest available readback: confirm that `SKILL.md` and the `references/` files exist with matching hashes, and confirm that the MCP entry exists with the exact URL. A connection check may require browser authorization; an authentication challenge after the endpoint responds is expected, not a failed installation. Do not call card-writing tools. 6. Report exactly what was installed, whether browser authorization or a restart is still required, and anything not verified.