Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

docs(env): sync .env lookup order to mention skill directory

hugohe3f8142a1b390e
diff --git a/.env.example b/.env.example
index aafc71ee..68f4a033 100644
--- a/.env.example
+++ b/.env.example
@@ -9,12 +9,14 @@
#
# Resolution order (only the FIRST existing file is read; keys are NOT merged across files):
# 1. ./.env in your current working directory
-# 2. <repo-root>/.env (when running from a clone)
-# 3. ~/.ppt-master/.env (user-level config)
+# 2. <skill-dir>/.env (skill install, e.g. ~/.agents/skills/ppt-master/.env)
+# 3. <repo-root>/.env (when running from a clone)
+# 4. ~/.ppt-master/.env (user-level config)
# 查找顺序(只读第一个存在的文件,多个 .env 之间不合并):
# 1. 当前工作目录下的 ./.env
-# 2. 仓库根目录下的 .env(仅在 clone 模式下)
-# 3. ~/.ppt-master/.env(用户级配置)
+# 2. skill 安装目录下的 .env(如 ~/.agents/skills/ppt-master/.env)
+# 3. 仓库根目录下的 .env(仅在 clone 模式下)
+# 4. ~/.ppt-master/.env(用户级配置)
# Active backend (required) / 当前启用后端(必需)
# Recommended core backends: openai / gemini / qwen / zhipu / volcengine
diff --git a/README.md b/README.md
index 012b11c1..bc4f9daf 100644
--- a/README.md
+++ b/README.md
@@ -260,7 +260,7 @@ mkdir -p ~/.ppt-master
cp /path/to/installed/ppt-master/.env.example ~/.ppt-master/.env
```
-PPT Master reads the current process environment first, then the first `.env` found in this order: current working directory, clone repo root, `~/.ppt-master/.env`.
+PPT Master reads the current process environment first, then the first `.env` found in this order: current working directory, skill directory (e.g. `~/.agents/skills/ppt-master/.env`), clone repo root, `~/.ppt-master/.env`.
**A) AI generation** — `image_gen.py`. Set `IMAGE_BACKEND` plus the provider's `*_API_KEY` (`OPENAI_API_KEY`, `GEMINI_API_KEY`, etc.), and the pipeline calls it automatically. Run `python3 skills/ppt-master/scripts/image_gen.py --list-backends` for the full backend list. `gpt-image-2` is currently the best default.
diff --git a/skills/ppt-master/.env.example b/skills/ppt-master/.env.example
index 23c69672..6bd4b15b 100644
--- a/skills/ppt-master/.env.example
+++ b/skills/ppt-master/.env.example
@@ -9,12 +9,14 @@
#
# Resolution order (only the FIRST existing file is read; keys are NOT merged across files):
# 1. ./.env in your current working directory
-# 2. <repo-root>/.env (when running from a clone)
-# 3. ~/.ppt-master/.env (user-level config)
+# 2. <skill-dir>/.env (skill install, e.g. ~/.agents/skills/ppt-master/.env)
+# 3. <repo-root>/.env (when running from a clone)
+# 4. ~/.ppt-master/.env (user-level config)
# 查找顺序(只读第一个存在的文件,多个 .env 之间不合并):
# 1. 当前工作目录下的 ./.env
-# 2. 仓库根目录下的 .env(仅在 clone 模式下)
-# 3. ~/.ppt-master/.env(用户级配置)
+# 2. skill 安装目录下的 .env(如 ~/.agents/skills/ppt-master/.env)
+# 3. 仓库根目录下的 .env(仅在 clone 模式下)
+# 4. ~/.ppt-master/.env(用户级配置)
# Active backend (required) / 当前启用后端(必需)
# Recommended core backends: openai / gemini / qwen / zhipu / volcengine
diff --git a/skills/ppt-master/references/image-generator.md b/skills/ppt-master/references/image-generator.md
index 257d6197..83559b54 100644
--- a/skills/ppt-master/references/image-generator.md
+++ b/skills/ppt-master/references/image-generator.md
@@ -455,7 +455,7 @@ The CLI iterates `items[]` with adaptive concurrency, writes `status` back per i
**Configuration sources**:
- Current process environment variables
-- First `.env` found in this order: current working directory, clone repo root, `~/.ppt-master/.env`
+- First `.env` found in this order: current working directory, skill directory (e.g. `~/.agents/skills/ppt-master/.env`), clone repo root, `~/.ppt-master/.env`
Precedence:
- Current process environment wins
diff --git a/skills/ppt-master/scripts/docs/image.md b/skills/ppt-master/scripts/docs/image.md
index 6de16dde..7d3e32c3 100644
--- a/skills/ppt-master/scripts/docs/image.md
+++ b/skills/ppt-master/scripts/docs/image.md
@@ -65,6 +65,7 @@ Configuration sources:
1. Current process environment variables
2. First `.env` found in this order:
- Current working directory
+ - Skill directory (e.g. `~/.agents/skills/ppt-master/.env`)
- Clone repo root
- `~/.ppt-master/.env`
diff --git a/skills/ppt-master/scripts/image_gen.py b/skills/ppt-master/scripts/image_gen.py
index 2e9ab3de..0fe263a2 100644
--- a/skills/ppt-master/scripts/image_gen.py
+++ b/skills/ppt-master/scripts/image_gen.py
@@ -24,6 +24,7 @@ Configuration source (process env wins, `.env` is the fallback layer):
1. Current process environment variables
2. The first `.env` found among:
- Current working directory
+ - Skill directory (e.g. `~/.agents/skills/ppt-master/.env`)
- Repo root (when running from a clone)
- `~/.ppt-master/.env` (user-level config)
diff --git a/skills/ppt-master/workflows/generate-audio.md b/skills/ppt-master/workflows/generate-audio.md
index f6a3a064..cba0ffb2 100644
--- a/skills/ppt-master/workflows/generate-audio.md
+++ b/skills/ppt-master/workflows/generate-audio.md
@@ -20,7 +20,7 @@ This workflow is **independent**: it reads `notes/*.md` and queries the selected
- MiniMax: `MINIMAX_API_KEY`
- Qwen: `QWEN_API_KEY` or `DASHSCOPE_API_KEY`
- CosyVoice: `COSYVOICE_API_KEY` or `DASHSCOPE_API_KEY`
- - Keys may live in the current process environment or the first `.env` found in this order: current working directory, clone repo root, `~/.ppt-master/.env`
+ - Keys may live in the current process environment or the first `.env` found in this order: current working directory, skill directory (e.g. `~/.agents/skills/ppt-master/.env`), clone repo root, `~/.ppt-master/.env`
- The deck is in a single dominant language (mixed-language decks: pick the dominant one — the AI uses judgment, not a heuristic).
If `notes/*.md` are missing, run `total_md_split.py <project_path>` first.