Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codex-settings",
"version": "1.5.2",
"version": "1.5.3",
"description": "Reusable Codex skills and workflows from feiskyer/codex-settings.",
"author": {
"name": "feiskyer",
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ litellm --config ~/.codex/litellm_config.yaml

| 名称 | 用途 | 依赖或注意事项 |
| --- | --- | --- |
| [atlas-image-skill](skills/atlas-image-skill/) | 使用 Atlas Cloud API 生成图片 | 需要 Python 3.9+ 和 `ATLASCLOUD_API_KEY`;仅在点名 Atlas Cloud 时触发 |
| [brainstorming](skills/brainstorming/) | 澄清未决需求和关键取舍,形成足以实现的设计 | 保留设计评审要求,不重复审批已授权的明确方案;浏览器伴侣需同意后启动 |
| [claude-skill](skills/claude-skill/) | 把任务交给 Claude Code CLI 执行 | 需要安装并登录 `claude` CLI |
| [code-simplifier](skills/code-simplifier/) | 在保持行为不变的前提下简化代码、提升可读性 | 默认聚焦最近修改的代码,遵循目标项目约定 |
Expand Down Expand Up @@ -335,7 +336,7 @@ export CODEX_HOME="$(pwd)"

修改后按 [CONTRIBUTING.md 的验证说明](CONTRIBUTING.md#验证) 选择与改动对应的检查。

发布新的 Plugin 内容时,更新 `.codex-plugin/plugin.json` 的语义化版本,并创建匹配的 `v<version>` Git 标签;当前 Plugin 版本为 `1.5.2`,发布时应使用 `v1.5.2`。本地反复安装同一版本时使用单一 `+codex.<cachebuster>` 后缀,避免命中旧缓存。
发布新的 Plugin 内容时,更新 `.codex-plugin/plugin.json` 的语义化版本,并创建匹配的 `v<version>` Git 标签;当前 Plugin 版本为 `1.5.3`,发布时应使用 `v1.5.3`。本地反复安装同一版本时使用单一 `+codex.<cachebuster>` 后缀,避免命中旧缓存。

## 安全提醒

Expand Down
39 changes: 39 additions & 0 deletions skills/atlas-image-skill/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: atlas-image-skill
description: 'Generate images with the Atlas Cloud API. Use when the user asks for Atlas Cloud image generation, an Atlas image model, or an image from a text prompt through Atlas Cloud.'
---

# Atlas Image Skill

Generate an image from a text prompt through the bundled Atlas Cloud helper.

## Resolve the skill directory

Resolve the absolute directory containing this `SKILL.md` before running a command and refer to it as `<skill-dir>`. Keep output paths relative to the user's working directory unless the user requests another location.

## Requirements

- Export `ATLASCLOUD_API_KEY` before running the helper. `ATLAS_CLOUD_API_KEY` is also accepted for compatibility.
- Use Python 3.9 or newer. The helper uses only the Python standard library.

## Generate an image

Confirm the prompt and output filename before submitting a generation request. Then run:

```bash
python3 "<skill-dir>/atlas_image.py" \
--prompt "A quiet observatory beneath an aurora" \
--output "observatory.png"
```

The helper defaults to `google/nano-banana-2-lite/text-to-image-developer`. Use `--model` to select another current Atlas text-to-image model. Optional fields include `--aspect-ratio` and `--thinking-level`.

The API is asynchronous. The helper submits exactly one generation request, polls the returned prediction with bounded GET requests, downloads the first HTTPS output, and creates output parent directories automatically.

## Safety and failures

- Never print or persist the API key.
- Validate the prompt, API base, and local output path before calling the API.
- Never retry the generation POST because another request may incur another charge.
- Retry only transient prediction GET failures, with bounded exponential backoff.
- Do not claim success unless the generated image was saved locally.
4 changes: 4 additions & 0 deletions skills/atlas-image-skill/agents/openai.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interface:
display_name: "Atlas Cloud Image"
short_description: "Generate images from text with the Atlas Cloud API"
default_prompt: "Use $atlas-image-skill to generate an image with Atlas Cloud and save it locally."
Loading