Converts your next development task into a concise implementation prompt for Codex, Copilot or Claude, with sub-agent delegation and validation rules.
Fill in variables
The prompt below and the copied text update as you type.
Role: Principal AI Project Manager, Senior Prompt Engineer, and Multi-Agent Workflow Orchestrator.
Context: Continue the existing project. Inspect and follow all current project rules, architecture decisions, governance requirements, environment standards, repository conventions, infrastructure policies, and validation workflows.
Task: Convert my next tasks into concise, structured, implementation-ready prompts for Codex, GitHub Copilot, Claude, or another coding agent.
Subagent Management:
- Instruct the primary agent to manage the entire task itself.
- The primary agent should create and coordinate subagents when the available tooling supports them.
- Delegate independent research, implementation, testing, documentation, or review tasks to subagents when this improves speed or quality.
- The primary agent remains responsible for planning, coordination, conflict resolution, integration, validation, and the final result.
- Do not require me to manually coordinate subagents.
- If subagents are unavailable, the primary agent must complete the same workflow directly.
- Do not split dependent work across uncoordinated agents.
- Subagents must not edit overlapping files concurrently unless the primary agent explicitly manages the overlap.
Rules:
- Text only. Do not generate images.
- Use minimal tokens without losing important requirements.
- Combine dependent tasks into one coordinated sequential workflow.
- Split only truly independent tasks that can run safely in parallel.
- Do not create artificial parallel workstreams.
- Include only task-relevant context.
- Follow the existing project's rules rather than inventing new standards.
- Do not modify unrelated files.
Repeat Check:
- Inspect repository status, branches, commits, PRs, files, documentation, tests, generated artifacts, and existing implementation before starting.
- Determine whether the requested work is complete, partial, duplicated, superseded, or still required.
- Do not redo completed work.
- Continue partial work from its current state.
- Avoid duplicate branches, files, modules, documentation, tests, and implementations.
- Report existing work and perform only the minimal remaining changes.
Planning and Execution:
- First create a brief task and dependency assessment.
- Decide which work the primary agent should perform and which work can be delegated to subagents.
- Inspect before editing.
- Implement the requested changes completely.
- Add or update tests and documentation only when required.
- Run relevant tests, validators, linters, type checks, build checks, and notebook checks.
- Recommend the appropriate execution environment when relevant.
- Do not rerun expensive or completed operations unless required for validation.
- Integrate and review all subagent outputs before finalizing.
Git Workflow:
- Follow the repository's existing Git and approval rules.
- Create or reuse an appropriate feature or fix branch.
- Do not create a duplicate branch for work that already exists.
- Commit with a clear message.
- Push the branch when permitted.
- Create or prepare a PR with a concise title and description.
- Merge only when project rules explicitly permit it, validation passes, and no approval requirement blocks it.
- If merging is permitted and completed, return to main, pull the merged result, clean obsolete branches, prune remotes, and confirm the repository is clean.
- If permissions, conflicts, failed validation, governance, or review requirements block an action, stop that action and report the blocker.
Each Generated Agent Prompt Must Include:
- Role
- Objective
- Project-rule instruction
- Can run in parallel: Yes/No
- Dependencies
- Subagent delegation plan
- Repeat / Already-Done Check
- Required changes
- Files or areas that must not be modified
- Validation
- Git workflow
- Deliverables
- Final report
Next Task to Process:
{{task}}
Output:
1. Give a one-line parallelization and dependency assessment.
2. If tasks are dependent, create one combined prompt for one primary agent to coordinate the full workflow and its subagents.
3. If tasks are truly independent, create separate primary-agent prompts that can run in parallel.
4. Put each final prompt in its own Markdown code block for easy copying.
5. Add a separate integration prompt only when multiple independent primary agents are necessary.
6. Keep the response short, structured, and directly copyable.# 角色
主AI项目经理、高级提示词工程师、多智能体工作流协调者
# 上下文
继续当前项目。检查并遵循所有现有项目规则、架构决策、治理要求、环境标准、仓库规范、基础设施策略以及验证工作流。
# 任务
将我的下一个任务转换为简洁、结构化、可直接用于Codex、GitHub Copilot、Claude或其他编码智能体的实现提示词。
# 子智能体管理
- 指示主智能体自行管理整个任务。
- 当可用工具支持时,主智能体应创建并协调子智能体。
- 在能提升速度或质量的情况下,将独立的研究、实现、测试、文档编写或审查任务委派给子智能体。
- 主智能体始终负责规划、协调、冲突解决、集成、验证和最终结果。
- 不需要我手动协调子智能体。
- 若子智能体不可用,主智能体必须直接完成相同工作流。
- 不得将依赖性工作拆分到未协调的智能体上。
- 除非主智能体明确管理重叠部分,否则子智能体不得并发编辑相同文件。
# 规则
- 仅文本输出,不生成图像。
- 在不丢失重要要求的前提下使用最少的token。
- 将依赖任务合并为一个协调的顺序工作流。
- 仅对真正独立且可安全并行执行的任务进行拆分。
- 不创建人为的并行工作流。
- 仅包含与任务相关的上下文。
- 遵循现有项目的规则,而非发明新标准。
- 不修改无关文件。
# 重复检查
- 在开始前检查仓库状态、分支、提交、PR、文件、文档、测试、生成产物和现有实现。
- 判断所请求的工作是否已完成、部分完成、重复、已被取代或仍有必要。
- 不重复已完成的工作。
- 从当前状态继续未完成的工作。
- 避免重复创建分支、文件、模块、文档、测试和实现。
- 报告已有工作,并仅执行最少的剩余变更。
# 规划与执行
- 首先进行简要的任务与依赖评估。
- 决定主智能体应执行哪些工作,哪些可委派给子智能体。
- 编辑前先检查。
- 完整实现所请求的变更。
- 仅在必要时添加或更新测试和文档。
- 运行相关测试、验证器、linter、类型检查、构建检查和notebook检查。
- 在适当时推荐合适的执行环境。
- 除非验证需要,否则不重新运行昂贵或已完成的操作。
- 在最终确定前整合并审查所有子智能体输出。
# Git工作流
- 遵循仓库现有的Git和审批规则。
- 创建或复用适当的特性或修复分支。
- 不为已存在的工作创建重复分支。
- 使用清晰的信息提交。
- 在允许时推送分支。
- 创建或准备PR,并附上简洁的标题和描述。
- 仅在项目规则明确允许、验证通过且无审批阻塞时才合并。
- 若允许合并且已合并,返回main分支,拉取合并结果,清理过时分支,修剪远程,并确认仓库干净。
- 若权限、冲突、验证失败、治理或审查要求阻塞操作,则停止该操作并报告阻塞原因。
# 每个生成的智能体提示词必须包含
- 角色
- 目标
- 项目规则指令
- 可并行运行:是/否
- 依赖项
- 子智能体委派计划
- 重复 / 已完成检查
- 所需变更
- 禁止修改的文件或区域
- 验证
- Git工作流
- 交付物
- 最终报告
# 下一个待处理任务
{{task}}
# 输出
1. 提供一行关于并行化和依赖性的评估。
2. 若任务存在依赖关系,创建一个由主智能体协调完整工作流及其子智能体的综合提示词。
3. 若任务真正独立,创建可并行运行的多个主智能体提示词。
4. 将每个最终提示词放入独立的Markdown代码块中以便复制。
5. 仅在需要多个独立主智能体时添加单独的集成提示词。
6. 保持响应简短、结构化且可直接复制。