1仕組みと動作原理
純粋なプロンプトオーケストレーション:全メカニズムが「4層の強化プロセス」で構成されています。曖昧な要件をEARS構文へと変換し、ドメイン理論を適用し、実践的なサンプルを抽出し、固定された骨格を持つ拡張プロンプトとしてパッケージ化します。
**Four-layer enhancement process:** 1. **EARS syntax transformation** - Convert descriptive language to normative specifications 2. **Domain theory grounding** - Apply relevant industry frameworks (GTD, BJ Fogg, Gestalt, etc.) 3. **Example extraction** - Surface concrete use cases with real data 4. **Structured prompt generation** - Format using Role/Skills/Workflows/Examples/Formats framework
EARS 5大パターンの適用:Ubiquitous、Event-driven、State-driven、Conditional、Unwanted behaviorのそれぞれに固定文型を定義し、before/afterの対比と改修チェックリスト(条件の明示化、トリガーの補完、基準の定量化、原子文への分割、曖昧語の排除)を備えています。
**Five core patterns:** 1. **Ubiquitous**: `The system shall <action>` 2. **Event-driven**: `When <trigger>, the system shall <action>` 3. **State-driven**: `While <state>, the system shall <action>` 4. **Conditional**: `If <condition>, the system shall <action>` 5. **Unwanted behavior**: `If <condition>, the system shall prevent <unwanted action>`
ドメイン理論の適用方式:要件のキーワードからドメインを特定し、10領域のカタログから2〜4件の相互補完的な理論を選択して原則を具象機能にマッピングし、プロンプト内で理論名を明示的に引用します。
**Selection process:** 1. Identify primary domain from requirement keywords 2. Match to 2-4 complementary theories 3. Apply theory principles to specific features 4. Cite theories in enhanced prompt for credibility
理論カタログ自体が主要なアセット:10領域(生産性、行動変容、UX、ゲーミフィケーション、学習、データ可視化、Eコマース、情報アーキテクチャ、セキュリティ、アクセシビリティ)にわたる計38項目のナンバリングされた理論を収録し、「2〜4件選定 → 機能とワークフローに適用 → 引用して信頼性向上」という選定プロセスと完全な選定事例を提供しています。
## How to Select Theories 1. **Identify the domain** from user requirements 2. **Match to primary objective** (engagement, learning, conversion, etc.) 3. **Select 2-4 relevant theories** that complement each other 4. **Apply principles** to specific features and workflows 5. **Cite theories** in enhanced prompts to add credibility
出力骨格は固定の5セクション構成:Role / Skills / Workflows / Examples / Formatsで構成され、サンプルにはリアルなデータの使用を義務付け(「Real data, not "Example 1", "Example 2"」)、そのままコピー&ペースト可能なMarkdown仕様書として納品されます。
- **Concrete examples**: Real data, not "Example 1", "Example 2"
診断を伴う順序立てられた6ステップのワークフロー:まず元要件の弱点(広すぎる、トリガーの欠落、動作の曖昧さ、制約の欠如)を分析し、順を追ってEARS化、理論選定、サンプル抽出、プロンプト生成を行い、固定の6部構成で結果を提示します。
### Step 1: Analyze Original Requirement Identify weaknesses: - **Overly broad** - "Add user authentication" → Missing password requirements, session management - **Missing triggers** - "Send notifications" → Missing when/why notifications trigger - **Ambiguous actions** - "Make it user-friendly" → No measurable usability criteria - **No constraints** - "Process payments" → Missing security, compliance requirements
複雑な要件に対応する高度なマニュアル:マルチステークホルダー(ロールごとのEARS作成、ロール条件と入れ子型権限の明示)、非機能要件(性能、セキュリティ、スケーラビリティ、信頼性の4カテゴリーの定量しきい値)、複雑な条件ロジック(入れ子のAND/OR、優先順位、フォールバック分岐)を網羅しています。
1. Quantify constraints explicitly (no vague terms like "fast" or "secure") 2. Specify measurement methods (how to verify the requirement) 3. Include threshold values (acceptable ranges) 4. Define degradation behavior (what happens when thresholds are exceeded)
参照ファイルのオンデマンド読み込みと簡潔なメイン骨格:SKILL.mdには各リファレンスの適用タイミングを説明したResourcesセクションがあり、モデルが全量を一度に読み込む必要がありません(メインファイル195行+リファレンス1,014行)。
- **`references/domain_theories.md`** - 40+ theories mapped to 10 domains (productivity, UX, gamification, learning, e-commerce, security, etc.)
2コア機能
3外部依存関係
| Kind | Dependency / Endpoint |
|---|---|
| network | 出处引用链接(方法论来源展示,运行时脚本并不访问) |
4推奨統制措置と判定根拠
- SKILL.md: 純粋なプロンプト指示およびルールテキストのみで構成され、スクリプト実行や外部への副作用は一切ありません。
5二重目の独立検証
- [ok] 资产面:是否存在脚本、hooks 或隐藏文件 — find prompt-optimizer -type f(含隐藏)只有 5 个文件:SKILL.md、references/{advanced_techniques,domain_theories,ears_syntax,examples}.md。无 scripts/、无 tests/、无 frontmatter 里的 allowed-tools 之外的配置键(frontmatter 仅 name/description 两键)。第一遍『纯 prompt』结论成立。
- [ok] 外部依赖反例:是否有漏掉的网络/凭证/执行面 — 全目录 token 扫描:无 curl/wget/urllib/requests/子进程调用/环境变量读取/写文件指令;https?:// 仅 3 处且都是出处引用(mp.weixin.qq.com 在 SKILL.md 与 examples.md),其余命中(token、api、secret 等)均出现在 EARS 示例文本里(如 password_reset_tokens 表、POST /api/auth/reset-password),是指被改写的示例需求而非 skill 的依赖。external_deps 因此只列出处引用一条,并注明运行时并不访问。
- [discrepancy] 宣传口径核对:domain_theories.md 是否真有 40+ 理论与 10 个域 — SKILL.md 的 Resources 段写 `40+ theories mapped to 10 domains`。第二遍用脚本统计:域数 10 属实(Productivity 5、Behavior Change 4、UX 6、Gamification 4、Learning 5、DataViz 3、E-commerce 3、IA 3、Security 3、Accessibility 2),但编号理论条目合计 38 条,未达 40+;若把跨域重复的 Self-Determination Theory、Gestalt Principles 去重,唯一理论数更少。属宣传性口径略偏大,不影响目录可用性,但『40+』不应被当作已核实的数字引用。
- [ok] EARS 五范式与 checklist 是否在两处一致 — SKILL.md 的 Step 2 列出五范式与 6 项 checklist;ears_syntax.md 对同一五范式给出 Format/English/Use when/Example 完整四段(含中文句式 `当 <trigger> 时,系统应 <action>`)与同一份扩展 checklist(多出『Define the actor』『Specify measurable outcomes』两项)、再加多条件事件与分支动作两种复杂形态。两处无冲突,reference 是超集。
- [ok] 输出格式声明 vs 实际骨架(夸大检查) — SKILL.md Step 5 的骨架(Role/Skills/Workflows/Examples/Formats)、Step 6 的六段式结果格式、examples.md 的 Transformation Pattern Template 三处骨架一致;description 宣称的『precise, well-structured specifications』由 Formats 段的『File types, structure requirements / Technical constraints / Deliverable checklist』承载。无未兑现承诺,也没有声称会验证产出。
- [ok] 非功能需求与复杂条件的具体落地方式是否真实存在 — advanced_techniques.md 实读:非功能四类各给 3-8 条量化范式(200ms/95%、1.5s FCP/90%、TLS 1.3、tokenize 卡号、retry 3×2s、1,000/s 排队、fraud score>70);复杂条件给出嵌套层级、显式布尔、优先级、括号与兜底五步与多段示例。第一遍『量化阈值』结论逐条可定位。
- [ok] 案例数量与出处标注 — examples.md 标题清单:Example 1 拖延症消除器、Example 2 电商商品页、Example 3 学习仪表盘、Example 4 密码重置安全,加一个 Transformation Pattern Template;SKILL.md Resources 段自述『Four complete transformation examples (procrastination app, e-commerce product page, learning dashboard, password reset security)』与实读标题逐一对应。出处标注在 SKILL.md 与 examples.md 出现两次且互为一致。
- [ok] 对『改写是否会被当作事实核验』的找反例 — 通读 5 个文件,未发现任何『验证需求真实性/可达性』的步骤或声明,也没有针对输出自检的机制(checklist 只约束句式与粒度)。故 verdict.risks 中『只保证写法规范不保证内容正确』成立,且不构成夸大——SKILL.md 也未做此承诺。
6結論
a62c59842d84fe47…