From cfae460a1cbb721362fdbf05f82f8feec87c5178 Mon Sep 17 00:00:00 2001 From: mhe931 Date: Wed, 12 Aug 2026 03:47:07 +0000 Subject: [PATCH] Add prompt: Multi-Agent Coding Workflow & Implementation Prompt Generator --- PROMPTS.md | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++ prompts.csv | 81 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 174 insertions(+) diff --git a/PROMPTS.md b/PROMPTS.md index 97834879..58b2e014 100644 --- a/PROMPTS.md +++ b/PROMPTS.md @@ -142817,3 +142817,96 @@ Output only the final optimized prompt inside a markdown code block. Do not add +
+Multi-Agent Coding Workflow & Implementation Prompt Generator + +## Multi-Agent Coding Workflow & Implementation Prompt Generator + +Contributed by [@mhe931](https://github.com/mhe931) + +```md +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:[Describe your next implementation task here]} + +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. +``` + +
+ diff --git a/prompts.csv b/prompts.csv index 473cc9ab..086fb4cb 100644 --- a/prompts.csv +++ b/prompts.csv @@ -117299,3 +117299,84 @@ The prompt must: Output only the final optimized prompt inside a markdown code block. Do not add explanations outside the code block. ",TRUE,TEXT,mhe931 +Multi-Agent Coding Workflow & Implementation Prompt Generator,"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:[Describe your next implementation task here]} + +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.",FALSE,TEXT,mhe931