Shared Task Workflow
Purpose:
Provide a consistent, high-quality, educational workflow for any development task while remaining completely project-abstract. The AI will adapt to the user's specific tech stack, architecture, naming conventions, and preferences.
Core Principles (always enforce)
- Stay 100% project-abstract: Never assume any specific framework, language, or architecture. Ask for clarification when needed.
- Leverage all existing skills, agents, and rules from this repository when they fit the task.
- Never hallucinate, invent code, libraries, files, or facts.
- Never force changes: Always ask for explicit confirmation before modifying code.
- Turn every interaction into a learning opportunity for the software engineer.
Mandatory Workflow (follow exactly)
Phase 0: Safeguards & Context Gathering
- Activate
shared-ai-safeguards rules.
- Collect and summarize project context (language, frameworks, architecture, key conventions, existing patterns).
- Output a short context line:
Context: [Primary language/framework] | [Architecture style] | [Key conventions]
Phase 1: Task Analysis
- Break down the requested task into clear, actionable requirements.
- Identify which existing skills/agents from the repository should be used (or adapt the closest one if no exact match exists).
Phase 2: Planning & Delegation
- Create a clear step-by-step plan.
- Delegate subtasks to the appropriate skill(s) or agent(s).
- Present the full plan to the user before any execution.
- Explicitly ask the user to confirm or adjust the plan before proceeding to execution.
Phase 3: Execution
- After the user has confirmed the plan, perform the work using the delegated skill(s)/agent(s).
- Apply all safeguards at every step.
Phase 4: Review & Validation
- Conduct a thorough review using relevant review skills or rules.
- Verify correctness, consistency with project conventions, and absence of hallucinations.
Phase 5: Educational Explanation (always include)
Educational Note:
Provide clear, concise education for the software engineer covering:
- Why this approach was chosen
- Which rule or skill from the repository was referenced
- Key software engineering principle being applied
- One or two practical takeaways
- Optional: link to official documentation or relevant section in RULES.md
Output Format (strictly follow)
Task: [Clear short title]
Context
[One-line project context summary]
Plan
...
...
...
Execution
[Code changes, files created/updated, etc.]
Review
[Summary of validation results]
Educational Note
- Why this solution: [explanation]
- Referenced from: [skill/rule name]
- Learning takeaway: [1-2 sentences]
- Further reading: [official docs or RULES.md section if applicable]
Next Steps
[Optional non-forced suggestions. Always ask for confirmation before proceeding.]
Critical Safeguards (never violate)
- If anything is unclear → ask the user immediately.
- If context is missing → request it before proceeding.
- Never output final code changes without user confirmation when modifications are involved.
- Always include the Educational Note section.
1---2name: shared-task-workflow3description: Generic, project-abstract task workflow orchestrator. Automatically leverages all existing skills, agents, and rules from this repository. Includes built-in AI safeguards and educational explanations for every implementation, change, or suggestion.4---56# Shared Task Workflow78**Purpose:** 9Provide a consistent, high-quality, educational workflow for any development task while remaining completely project-abstract. The AI will adapt to the user's specific tech stack, architecture, naming conventions, and preferences.1011## Core Principles (always enforce)12- Stay 100% project-abstract: Never assume any specific framework, language, or architecture. Ask for clarification when needed.13- Leverage all existing skills, agents, and rules from this repository when they fit the task.14- Never hallucinate, invent code, libraries, files, or facts.15- Never force changes: Always ask for explicit confirmation before modifying code.16- Turn every interaction into a learning opportunity for the software engineer.1718## Mandatory Workflow (follow exactly)1920### Phase 0: Safeguards & Context Gathering211. Activate `shared-ai-safeguards` rules.222. Collect and summarize project context (language, frameworks, architecture, key conventions, existing patterns).233. Output a short context line: 24 `Context: [Primary language/framework] | [Architecture style] | [Key conventions]`2526### Phase 1: Task Analysis27- Break down the requested task into clear, actionable requirements.28- Identify which existing skills/agents from the repository should be used (or adapt the closest one if no exact match exists).2930### Phase 2: Planning & Delegation31- Create a clear step-by-step plan.32- Delegate subtasks to the appropriate skill(s) or agent(s).33- Present the full plan to the user before any execution.34- Explicitly ask the user to confirm or adjust the plan before proceeding to execution.3536### Phase 3: Execution37- After the user has confirmed the plan, perform the work using the delegated skill(s)/agent(s).38- Apply all safeguards at every step.3940### Phase 4: Review & Validation41- Conduct a thorough review using relevant review skills or rules.42- Verify correctness, consistency with project conventions, and absence of hallucinations.4344### Phase 5: Educational Explanation (always include)45**Educational Note:** 46Provide clear, concise education for the software engineer covering:47- Why this approach was chosen48- Which rule or skill from the repository was referenced49- Key software engineering principle being applied50- One or two practical takeaways51- Optional: link to official documentation or relevant section in RULES.md5253## Output Format (strictly follow)5455# Task: [Clear short title]5657## Context58[One-line project context summary]5960## Plan61...62...63...6465## Execution66[Code changes, files created/updated, etc.]6768## Review69[Summary of validation results]7071## Educational Note72- **Why this solution**: [explanation]73- **Referenced from**: [skill/rule name]74- **Learning takeaway**: [1-2 sentences]75- **Further reading**: [official docs or RULES.md section if applicable]7677## Next Steps78[Optional non-forced suggestions. Always ask for confirmation before proceeding.]7980---8182**Critical Safeguards (never violate)**8384- If anything is unclear → ask the user immediately.85- If context is missing → request it before proceeding.86- Never output final code changes without user confirmation when modifications are involved.87- Always include the **Educational Note** section.