Skip to content

refactor(zenmux-image-generation): save prompts under project .context dir - #6

Merged
thinkthinking merged 1 commit into
mainfrom
refactor/image-gen-prompts-to-project-context
Jun 20, 2026
Merged

refactor(zenmux-image-generation): save prompts under project .context dir#6
thinkthinking merged 1 commit into
mainfrom
refactor/image-gen-prompts-to-project-context

Conversation

@thinkthinking

Copy link
Copy Markdown
Contributor

背景

zenmux-image-generation skill 之前把优化后的 prompt 文件保存在 skill 自身的 prompts/ 目录下。本次改动将其改为保存到当前项目.context/prompts/zenmux-image-generation/ 目录,使 prompt 历史与发起图片请求的项目放在一起。

改动内容

  • SKILL.md:更新简介说明、Step 5 的保存路径、以及 Step 6 中三处 --prompt-file 示例,全部指向 <project-dir>/.context/prompts/zenmux-image-generation/
  • 删除已废弃的 skill 本地 prompts/ 目录及其 .gitkeep
  • .gitignore:移除针对该目录的两条忽略规则
  • README.md:从目录树中移除 prompts/,并注明新的按项目存放位置

说明

无需改动 Python 脚本:生成脚本通过 --prompt-file <path> 接收任意路径,从未假设 skill 本地目录;--output-dir(生成图片)默认仍指向 skill 的 output/,本次不变。

🤖 Generated with Claude Code

…t dir

Relocate optimized prompt files from the skill-local prompts/ folder to
<project-dir>/.context/prompts/zenmux-image-generation/ so prompt history
lives alongside the project that requested the images.

- SKILL.md: update intro, Step 5 save path, and Step 6 --prompt-file examples
- Remove obsolete skill-local prompts/ folder and its .gitignore entries
- README.md: drop prompts/ from the tree, note the new per-project location

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 20, 2026 13:36
@thinkthinking
thinkthinking merged commit b69e589 into main Jun 20, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the zenmux-image-generation skill’s workflow documentation so optimized prompt history is stored alongside the invoking project (under .context/) rather than inside the skill directory, and updates repo docs/ignores accordingly.

Changes:

  • Update zenmux-image-generation/SKILL.md to document saving optimized prompts to <project-dir>/.context/prompts/zenmux-image-generation/ and adjust --prompt-file examples.
  • Remove the now-obsolete skill-local prompts/ directory and related .gitignore rules.
  • Update README.md repository tree to reflect the new prompt storage location.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
skills/zenmux-image-generation/SKILL.md Documents the new per-project .context/ prompt save location and updates CLI examples accordingly.
skills/zenmux-image-generation/prompts/.gitkeep Removes the deprecated skill-local prompts directory placeholder.
.gitignore Drops ignores for the removed skills/zenmux-image-generation/prompts/ directory.
README.md Updates the repository structure tree to remove prompts/ and note the new per-project .context/ location.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +24 to +28
**Optimized prompts are saved into the user's project, not into the skill.**
Each run's prompt file goes to
`<project-dir>/.context/prompts/zenmux-image-generation/`, where `<project-dir>`
is the current working directory (the user's project root). This keeps the
prompt history alongside the project that requested the images. The directory is
Comment thread README.md
Comment on lines 136 to +138
output/ # Generated images (git-ignored)
# Optimized prompts are saved per-project under
# <project-dir>/.context/prompts/zenmux-image-generation/, not in the skill.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants