# Codex Image To Eagle

> Archive Codex-generated images from the current user's Codex generated_images directory into Eagle with the prompt saved as annotation. Use when the user asks to save, archive, import, or sync Codex generated images to Eagle with prompts, tags, and folders.

- **Type:** Skill
- **Install:** `agentstack add skill-nuyoah-ai-works-nuyoah-open-skill-codex-image-to-eagle`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [nuyoah-ai-works](https://agentstack.voostack.com/s/nuyoah-ai-works)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [nuyoah-ai-works](https://github.com/nuyoah-ai-works)
- **Source:** https://github.com/nuyoah-ai-works/nuyoah-open-skill/tree/main/skills/codex-image-to-eagle

## Install

```sh
agentstack add skill-nuyoah-ai-works-nuyoah-open-skill-codex-image-to-eagle
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 南鸢 Codex 图片归档到 Eagle

把 Codex 生成图导入 Eagle，并把最终提示词保存为可检索的注释。

## 默认规则

- 图片目录：优先使用 `CODEX_GENERATED_IMAGES_DIR`，否则使用当前用户的 `~/.codex/generated_images`。
- 连接：读取 `~/.codex/config.toml` 中的 Eagle MCP 配置；HTTP 回退默认使用 `http://127.0.0.1:41596`。
- 标签：`Codex`、`AI生成`、`Prompt`。
- 目录：用户未指定时使用 `Codex 生成图/本地日期`。
- 注释：保存完整 Prompt、来源、原路径和归档时间。
- 不删除、不移动源图片。

## 执行

使用随 Skill 附带的脚本：

```bash
node scripts/archive-codex-image-to-eagle.js --latest --prompt "PROMPT_TEXT"
```

按用户意图选择图片：

- “最新一张”使用 `--latest`。
- “刚才这一批 / 最新会话”使用 `--latest-session`。
- 明确文件使用 `--path "/absolute/path/image.png"`。
- 长提示词使用 `--prompt-file "/absolute/path/prompt.txt"`。

先准确取得实际生图使用的最终 Prompt。图片、提示词或目标目录不明确时，先加 `--dry-run`；明确且用户已要求归档时直接执行。

需要连接模式、文件夹 ID、自动化环境变量或完整参数时，读取 [README.md](README.md) 或运行：

```bash
node scripts/archive-codex-image-to-eagle.js --help
```

## 文件夹安全

1. 先解析用户指定的根目录；无指定时解析顶层 `Codex 生成图`。
2. 日期目录只能在已解析根目录下按“名称 + 父 ID”精确匹配，不能全局按日期名搜索。
3. 缺少日期目录时，创建时必须带根目录 `parentId`。
4. 同一根目录下已有重复日期目录时，复用最早的目录并报告重复，不再新建。
5. 并发自动化优先使用随附脚本，它有目录创建锁。

## 完成反馈

成功后返回：

- 导入的 Eagle item ID；
- 使用的 Eagle 目录；
- 实际归档的图片数量；
- 失败项及原因（如有）。

Eagle 未运行或 MCP 插件未启用时，告诉用户启动 Eagle 并启用 Eagle MCP，再继续执行。

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [nuyoah-ai-works](https://github.com/nuyoah-ai-works)
- **Source:** [nuyoah-ai-works/nuyoah-open-skill](https://github.com/nuyoah-ai-works/nuyoah-open-skill)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-nuyoah-ai-works-nuyoah-open-skill-codex-image-to-eagle
- Seller: https://agentstack.voostack.com/s/nuyoah-ai-works
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
