1仕組みと動作原理
ノーコードの「オーケストレーション+ナレッジベース」2層ピュアプロンプト実装:SKILL.md がワークフローと美的規律レイヤー(画像観察→手がかり抽出→レシピ選択→生成→品質検査)を担当し、references/afterimage-editorial-prompt.md は SKILL.md によって事前読み込みが義務付けられた「プロンプトコンパイラ」(構造的制約、写真再現性の禁止事項、被写体別処理、署名システム、即座に適用可能な Prompt Template)として機能します。
Read `references/afterimage-editorial-prompt.md` before composing the final image prompt.
ピクセル生成はホストの画像ツールに完全に委ねられ、スキル自体にはスクリプト、APIエンドポイント、ベンダーロックインが含まれていません:SKILL.md は「画像生成/編集ツールを使用し、ユーザーの写真を参考画像とすること」のみを要求し、ベンダーの選定はホスト(Codex の画像ツール)に委ねられます。
This is a creative image-generation skill. When producing the final image, use the image generation/editing tool with the user's photo as the reference image.
中核となる創作の制約は「写真エリアの真実値+下半分 relic エリアの抽象化」という二分法です:いかなる再描画、美化、拡張、スタイル変換も実写真エリアへの適用が厳格に禁止されており、抽象化は下半分の relic エリアに限定され、全体フィルターではなく「本物の写真+記憶の版画」としての仕上がりを保証します。
Use abstraction only in the relic region unless the user explicitly asks for an integrated edit.
美的判断は5軸のレシピ(layout rhythm / relic grammar / mark weight / title mode / motion seed)としてパラメーター化されており、各軸に離散的な選択肢を用意してプロンプト作成前に「メニュー選択」させることで、同一レシピシステムによるシリーズ全体の一貫性を担保しつつ、選択肢の変更によりバリエーションを生み出します。
Pick one option from each axis before writing the image prompt. Vary the recipe when recent outputs look too similar, but keep the series identity stable.
「ディテールを記号へ翻訳する」変換テーブルが出力品質の直接の源泉です:屋根→重なる弧、窓→まばらな切れ込み/ドット、人物→短い垂直の刻み、水面→1〜2本の水平な痕跡とすることで、パネルがイラストや装飾で埋め尽くされるのを防ぎます。
Translate details into marks, not decorations: roof layers become stacked arcs; windows become sparse cuts or tiny dots; people become short vertical ticks; water becomes one or two horizontal residues; dusk becomes one small warm signal.
デュアル Quality Gate(SKILL.md の10項目+references の9項目)が生成前にチェックリスト形式でセルフチェックを行い、主要項目のいずれかが不合格となった場合は「より短く、より厳格に」1回のみの再生成を許可することで、無分別な再試行や基準の妥協を防ぎます。
If one major item fails, regenerate once with a shorter, stricter prompt focused on that failure.
Codex エコシステムの入り口:agents/openai.yaml で display_name / short_description / default_prompt を提供し、README に従いディレクトリ全体を ~/.codex/skills にコピーした上で $photo-relic-editorial により起動します。また、中国語の README では「漢字4文字タイトル」によるシリーズ化の使用例も示されています。
default_prompt: "Use $photo-relic-editorial to turn this photo into a Photo Relic artwork with a truthful photo region and a recognizable abstract memory print."
2コア機能
3外部依存関係
| Kind | Dependency / Endpoint |
|---|---|
| api | 宿主图像生成/编辑工具(参考图输入;SKILL.md 未点名厂商,供应商由 Codex 宿主决定) |
4推奨統制措置と判定根拠
- SKILL.md: 純粋なプロンプト指示およびルールテキストのみで構成され、スクリプト実行や外部への影響は一切ありません
5二重目の独立検証
- [ok] 外部依赖唯一条目:宿主 image tool + 无厂商端点 — SKILL.md 全文本扫描确认只有 'use the image generation/editing tool' 一类泛称,无 openai/gpt/anthropic/replicate 等点名;示例 PNG 的 C2PA 元数据(gpt-image 2.0)属产物证据而非指令,已在条目 note 中如实标注为『实际出图工具』推断。
- [ok] security.grade=green 的反例搜查(隐藏脚本/网络/凭证) — 隐藏文件仅 .gitignore/.DS_Store 类忽略项;文本文件 URL/token/exec 模式零命中;无 package.json/requirements/*.sh;唯一网络痕迹出现在 examples/*.png 的 C2PA 证书链(cv.iptc.org、ocsp-c2pa.ssl.com、trufo.ai),属图片内嵌内容凭证,非可执行代码。
- [ok] 『照片区不可篡改』声明 vs 实际能力 — 该声明是写给宿主图像模型的文本禁令(SKILL.md Creative Rules + references Photo Preservation 双重强调),skill 无代码可强制执行;第一遍已将其表述为『prompt 层约束 + Quality Gate 兜底』,未夸大为硬保证。
- [discrepancy] README 'Paper Beijing' 示例图身份 — 第一遍初读时按 README 语境默认示例是真实照片经 skill 处理的成图——成立;但第二遍在 PNG 内发现 C2PA 软件代理串 'nameigpt-imagegversionc2.0' 与 'c2pa.watermarked.unbound',确认示例成图由 OpenAI gpt-image 2.0 生成并含水印/内容凭证动作。此发现不推翻结论,但 internal_assets 与 verdict 对示例图的描述已按此修正(AI 生成示例,作为审美锚点)。
- [ok] references 文档『Prompt Compiler / Quality Gate』引用准确性 — 逐字重读 156 行全文,第一遍所用 quote(recipe 槽位模板、'If a major gate fails, regenerate once with a shorter corrective prompt…'、'Use abstraction only in the relic region…'、Signature System 色板/比例)均与原文一致。
- [ok] 元数据:commit/license/stars/last_push — GitHub API:spdx mit、stargazers_count 378、pushed_at 2026-08-05T02:37:31Z(= pin commit 时间,仓库 3 个 commit 无更新);本地镜像 HEAD == pin sha 2232da16afddc7940e2e2f280bfb85aa62da1bae。
6結論
38c0459aca3ab84d…