{
  "version": "3.3",
  "workflow-prompts": [
    {
      "id": "refine-idea",
      "action": "refine_idea",
      "icon": "bi-stars",
      "input_source": ["compose_idea"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Refine Idea",
          "command": "refine the idea $output:raw-ideas$ <and uiux reference: $output:uiux-reference$> with ideation skill"
        },
        {
          "language": "zh",
          "label": "完善创意",
          "command": "使用创意技能, 完善创意 $output:raw-ideas$ <并参考UIUX: $output:uiux-reference$>"
        }
      ]
    },
    {
      "id": "design-mockup",
      "action": "design_mockup",
      "icon": "bi-palette",
      "input_source": ["refine_idea", "compose_idea"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Generate Mockup",
          "command": "Base on $output:refined-idea$ to generate mockups <and uiux reference: $output:uiux-reference$>"
        },
        {
          "language": "zh",
          "label": "生成原型",
          "command": "基于 $output:refined-idea$ 生成原型设计 <并参考UIUX: $output:uiux-reference$>"
        }
      ]
    },
    {
      "id": "requirement-gathering",
      "action": "requirement_gathering",
      "icon": "bi-clipboard-data",
      "input_source": ["refine_idea", "design_mockup"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Requirement Gathering",
          "command": "gather requirements from $output:refined-idea$ <mockup reference: $output:mockup-html$> with requirement gathering skill"
        },
        {
          "language": "zh",
          "label": "需求收集",
          "command": "使用需求收集技能, 从 $output:refined-idea$ 收集需求 <原型参考: $output:mockup-html$>"
        }
      ]
    },
    {
      "id": "feature-breakdown",
      "action": "feature_breakdown",
      "icon": "bi-diagram-2",
      "input_source": ["requirement_gathering"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Feature Breakdown",
          "command": "break down features from $output:requirement-doc$ with feature breakdown skill"
        },
        {
          "language": "zh",
          "label": "功能拆分",
          "command": "使用功能拆分技能, 从 $output:requirement-doc$ 拆分功能"
        }
      ]
    },
    {
      "id": "feature-refinement",
      "action": "feature_refinement",
      "icon": "bi-rulers",
      "input_source": ["feature_breakdown"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Feature Refinement",
          "command": "refine feature $feature-id$ from $output:requirement-doc$ with feature refinement skill"
        },
        {
          "language": "zh",
          "label": "功能细化",
          "command": "使用功能细化技能, 从 $output:requirement-doc$ 细化功能 $feature-id$"
        }
      ]
    },
    {
      "id": "technical-design",
      "action": "technical_design",
      "icon": "bi-gear",
      "input_source": ["feature_refinement"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Technical Design",
          "command": "create technical design for $feature-id$ from $output:specification$ with technical design skill"
        },
        {
          "language": "zh",
          "label": "技术设计",
          "command": "使用技术设计技能, 从 $output:specification$ 为 $feature-id$ 创建技术设计"
        }
      ]
    },
    {
      "id": "implementation",
      "action": "implementation",
      "icon": "bi-code-slash",
      "input_source": ["technical_design"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Implementation",
          "command": "implement $feature-id$ from $output:tech-design$ and $output:specification$ with code implementation skill"
        },
        {
          "language": "zh",
          "label": "代码实现",
          "command": "使用代码实现技能, 从 $output:tech-design$ 和 $output:specification$ 实现 $feature-id$"
        }
      ]
    },
    {
      "id": "acceptance-testing",
      "action": "acceptance_testing",
      "icon": "bi-check2-circle",
      "input_source": ["implementation"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Acceptance Testing",
          "command": "run acceptance tests for $feature-id$ from $output:specification$ with feature acceptance test skill"
        },
        {
          "language": "zh",
          "label": "验收测试",
          "command": "使用功能验收测试技能, 从 $output:specification$ 为 $feature-id$ 运行验收测试"
        }
      ]
    },
    {
      "id": "code-refactor",
      "action": "code_refactor",
      "icon": "bi-wrench-adjustable",
      "input_source": ["acceptance_testing"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Code Refactor",
          "command": "refactor code for $feature-id$ based on $output:tech-design$, $output:test-report$ and $output:specification$ with code refactor skill"
        },
        {
          "language": "zh",
          "label": "代码重构",
          "command": "使用代码重构技能, 基于 $output:tech-design$, $output:test-report$ 和 $output:specification$ 为 $feature-id$ 重构代码"
        }
      ]
    },
    {
      "id": "feature-closing",
      "action": "feature_closing",
      "icon": "bi-flag-fill",
      "input_source": ["code_refactor"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Feature Closing",
          "command": "close feature $feature-id$ with $output:specification$ and $output:refactor-report$ using feature closing skill"
        },
        {
          "language": "zh",
          "label": "功能关闭",
          "command": "使用功能关闭技能, 基于 $output:specification$ 和 $output:refactor-report$ 关闭 $feature-id$"
        }
      ]
    },
    {
      "id": "human-playground",
      "action": "human_playground",
      "icon": "bi-controller",
      "input_source": ["implementation"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Human Playground",
          "command": "create interactive playground for $feature-id$ from $output:specification$ and $output:impl-files$ with human playground skill"
        },
        {
          "language": "zh",
          "label": "人工验证",
          "command": "使用人工验证技能, 从 $output:specification$ 和 $output:impl-files$ 为 $feature-id$ 创建交互式验证环境"
        }
      ]
    },
    {
      "id": "change-request",
      "action": "change_request",
      "icon": "bi-arrow-repeat",
      "input_source": ["feature_closing"],
      "prompt-details": [
        {
          "language": "en",
          "label": "Change Request",
          "command": "create change request for $feature-id$ based on $output:closing-report$ and $output:specification$ with change request skill"
        },
        {
          "language": "zh",
          "label": "变更请求",
          "command": "使用变更请求技能, 基于 $output:closing-report$ 和 $output:specification$ 为 $feature-id$ 创建变更请求"
        }
      ]
    }
  ],
  "ideation": {
    "prompts": [
      {
        "id": "refine-idea",
        "_deprecated": "superseded by workflow-prompts[refine_idea]",
        "icon": "bi-stars",
        "input_source": ["compose_idea"],
        "prompt-details": [
          {
            "language": "en",
            "label": "Refine Idea",
            "command": "refine the idea <current-idea-file> with ideation skill"
          },
          {
            "language": "zh",
            "label": "完善创意",
            "command": "使用创意技能, 完善创意 <current-idea-file> "
          }
        ]
      },
      {
        "id": "generate-architecture",
        "icon": "bi-diagram-3",
        "prompt-details": [
          {
            "language": "en",
            "label": "Generate Architecture",
            "command": "Base on <current-idea-file> to generate layered architecture"
          },
          {
            "language": "zh",
            "label": "生成架构图",
            "command": "基于<current-idea-file>生成分层架构图"
          }
        ]
      },
      {
        "id": "idea-reflection",
        "icon": "bi-diagram-3",
        "prompt-details": [
          {
            "language": "en",
            "label": "Idea Reflection",
            "command": "Extra key points in <current-idea-file>, then create a sub-agent that uses these key points to learn from the project and give feedback to the idea file (the feedback should be critical but constructive), then you use the feedback to improve the idea."
          },
          {
            "language": "zh",
            "label": "创意反思",
            "command": "提取<current-idea-file>中的关键点，然后创建一个子代理，使用这些关键点从项目中学习并给出对创意文件的反馈（反馈应当批判性但建设性），然后你使用反馈来改进创意。"
          }
        ]
      },
      {
        "id": "design-mockup",
        "_deprecated": "superseded by workflow-prompts[design_mockup]",
        "icon": "bi-palette",
        "input_source": ["refine_idea", "compose_idea"],
        "prompt-details": [
          {
            "language": "en",
            "label": "Generate Mockup",
            "command": "Base on <current-idea-file> to generate mockups"
          },
          {
            "language": "zh",
            "label": "生成原型",
            "command": "基于<current-idea-file>生成原型设计"
          }
        ]
      },
      {
        "id": "free-question",
        "icon": "bi-chat-dots",
        "prompt-details": [
          {
            "language": "en",
            "label": "Free Collaboration",
            "command": "Let's base on <current-idea-file> to collaborate, wait for my instructions."
          },
          {
            "language": "zh",
            "label": "自由协作",
            "command": "基于<current-idea-file>进行协作，等待我的指示。"
          }
        ]
      },
      {
        "id": "uiux-reference",
        "icon": "bi-palette2",
        "prompt-details": [
          {
            "language": "en",
            "label": "UIUX Reference",
            "command": "using uiux-reference skill to work on uiux reference --url <target-url>"
          },
          {
            "language": "zh",
            "label": "UIUX参考",
            "command": "使用uiux-reference技能处理UIUX引用 --url <target-url>"
          }
        ]
      }
    ]
  },
  "evaluation": {
    "evaluate": {
      "icon": "bi-clipboard-check",
      "id": "evaluate",
      "prompt-details": [
        {
          "language": "en",
          "label": "Evaluate Project Quality",
          "command": "Evaluate project quality and generate report"
        },
        {
          "language": "zh",
          "label": "评估项目质量",
          "command": "评估项目质量并生成报告"
        }
      ]
    },
    "refactoring": [
      {
        "id": "refactor-all",
        "icon": "bi-arrow-repeat",
        "prompt-details": [
          {
            "language": "en",
            "label": "Refactor All",
            "command": "Refactor all with reference to its code and <evaluation-file>"
          },
          {
            "language": "zh",
            "label": "全面重构",
            "command": "参照代码和<evaluation-file>进行全面重构"
          }
        ]
      },
      {
        "id": "refactor-requirements",
        "icon": "bi-file-text",
        "prompt-details": [
          {
            "language": "en",
            "label": "Align Requirements to Features",
            "command": "Update requirement docs to match current feature specification"
          },
          {
            "language": "zh",
            "label": "对齐需求与功能",
            "command": "更新需求文档以匹配当前功能规范"
          }
        ]
      },
      {
        "id": "refactor-features",
        "icon": "bi-list-check",
        "prompt-details": [
          {
            "language": "en",
            "label": "Align Features to Code",
            "command": "Update feature specification docs to match current code implementation"
          },
          {
            "language": "zh",
            "label": "对齐功能与代码",
            "command": "更新功能规范以匹配当前代码实现"
          }
        ]
      },
      {
        "id": "refactor-tests",
        "icon": "bi-bug",
        "prompt-details": [
          {
            "language": "en",
            "label": "Align Tests to Code",
            "command": "Update test cases to match current code implementation and reference <evaluation-file>"
          },
          {
            "language": "zh",
            "label": "对齐测试与代码",
            "command": "更新测试用例以匹配当前代码实现，参照<evaluation-file>"
          }
        ]
      },
      {
        "id": "refactor-tracing-tests",
        "icon": "bi-graph-up",
        "prompt-details": [
          {
            "language": "en",
            "label": "Align Tracing + Tests to Features",
            "command": "Update tracing decorators and tests to match current feature specification"
          },
          {
            "language": "zh",
            "label": "对齐追踪与测试",
            "command": "更新追踪装饰器和测试以匹配当前功能规范"
          }
        ]
      },
      {
        "id": "refactor-code-tests",
        "icon": "bi-code-slash",
        "prompt-details": [
          {
            "language": "en",
            "label": "Refactor Code + Tracing + Tests",
            "command": "Refactor code and tests to match current feature specification and reference <evaluation-file>"
          },
          {
            "language": "zh",
            "label": "重构代码+追踪+测试",
            "command": "重构代码和测试以匹配当前功能规范，参照<evaluation-file>"
          }
        ]
      }
    ]
  },
  "workflow": {
    "prompts": [
      {
        "id": "requirement-gathering",
        "_deprecated": "superseded by workflow-prompts[requirement_gathering]",
        "icon": "bi-clipboard-data",
        "input_source": ["refine_idea", "design_mockup"],
        "prompt-details": [
          {
            "language": "en",
            "label": "Requirement Gathering",
            "command": "gather requirements from <input-file> with requirement gathering skill"
          },
          {
            "language": "zh",
            "label": "需求收集",
            "command": "使用需求收集技能, 从 <input-file> 收集需求"
          }
        ]
      },
      {
        "id": "feature-breakdown",
        "_deprecated": "superseded by workflow-prompts[feature_breakdown]",
        "icon": "bi-diagram-2",
        "input_source": ["requirement_gathering"],
        "prompt-details": [
          {
            "language": "en",
            "label": "Feature Breakdown",
            "command": "break down features from <input-file> with feature breakdown skill"
          },
          {
            "language": "zh",
            "label": "功能拆分",
            "command": "使用功能拆分技能, 从 <input-file> 拆分功能"
          }
        ]
      }
    ]
  },
  "feature": {
    "prompts": [
      {
        "id": "feature-refinement",
        "_deprecated": "superseded by workflow-prompts[feature_refinement]",
        "icon": "bi-rulers",
        "input_source": ["feature_breakdown"],
        "prompt-details": [
          {
            "language": "en",
            "label": "Feature Refinement",
            "command": "refine feature <feature-id> from <input-file> with feature refinement skill"
          }
        ]
      },
      {
        "id": "technical-design",
        "_deprecated": "superseded by workflow-prompts[technical_design]",
        "icon": "bi-gear",
        "input_source": ["feature_refinement"],
        "prompt-details": [
          {
            "language": "en",
            "label": "Technical Design",
            "command": "create technical design for <feature-id> from <input-file> with technical design skill"
          }
        ]
      },
      {
        "id": "implementation",
        "_deprecated": "superseded by workflow-prompts[implementation]",
        "icon": "bi-code-slash",
        "input_source": ["technical_design"],
        "prompt-details": [
          {
            "language": "en",
            "label": "Implementation",
            "command": "implement <feature-id> from <input-file> with code implementation skill"
          }
        ]
      },
      {
        "id": "acceptance-testing",
        "_deprecated": "superseded by workflow-prompts[acceptance_testing]",
        "icon": "bi-check2-circle",
        "input_source": ["implementation"],
        "prompt-details": [
          {
            "language": "en",
            "label": "Acceptance Testing",
            "command": "run acceptance tests for <feature-id> from <input-file> with feature acceptance test skill"
          }
        ]
      },
      {
        "id": "change-request",
        "icon": "bi-arrow-repeat",
        "prompt-details": [
          {
            "language": "en",
            "label": "Change Request",
            "command": "process change request for <feature-id> with change request skill"
          }
        ]
      }
    ]
  },
  "placeholder": {
    "current-idea-file": "Replaced with currently open file path",
    "input-file": "Replaced with selected input file path from source action deliverables",
    "feature-id": "Replaced with the target feature ID (e.g. FEATURE-041-A) for per-feature actions",
    "evaluation-file": "x-ipe-docs/quality-evaluation/project-quality-evaluation.md"
  },
  "ui-labels": {
    "action-execution-modal": [
      {
        "language": "en",
        "actionContext": "Action Context",
        "instructions": "Instructions",
        "extraInstructions": "Extra Instructions",
        "inputFile": "Input File",
        "inProgress": "Execution in progress…",
        "cancel": "Cancel",
        "noInstructions": "No instructions available for this action.",
        "extraPlaceholder": "Optional: add context or constraints…",
        "filePathPlaceholder": "Enter file path...",
        "close": "Close",
        "optional": "(optional)",
        "required": "*"
      },
      {
        "language": "zh",
        "actionContext": "操作上下文",
        "instructions": "指令",
        "extraInstructions": "额外指令",
        "inputFile": "输入文件",
        "inProgress": "执行中…",
        "cancel": "取消",
        "noInstructions": "此操作没有可用的指令。",
        "extraPlaceholder": "可选：添加上下文或约束…",
        "filePathPlaceholder": "输入文件路径…",
        "close": "关闭",
        "optional": "(可选)",
        "required": "*"
      }
    ]
  }
}
