update workflow - auto assign yourself as assignee/reviewer
This commit is contained in:
@@ -1,53 +0,0 @@
|
||||
---
|
||||
name: do-task
|
||||
description: Use when handling a Gitea issue/task end-to-end, including validation, planning, implementation, PR creation, and review-feedback iteration.
|
||||
---
|
||||
|
||||
# Do Task
|
||||
|
||||
## Overview
|
||||
Process a single Gitea issue from analysis to merge-ready PR with explicit decision gates. Prefer Gitea MCP tools for all issue/PR actions.
|
||||
|
||||
## Workflow
|
||||
|
||||
1. **Load issue**
|
||||
- Read issue by ID from Gitea.
|
||||
- Extract: problem, expected behavior, impact, acceptance checks.
|
||||
|
||||
2. **Validate technical correctness**
|
||||
- Verify against current code/docs/tests.
|
||||
- Decide:
|
||||
- **Valid issue** -> continue to planning.
|
||||
- **Not valid / out of scope** -> comment rationale on issue and stop.
|
||||
|
||||
3. **If valid: plan and comment**
|
||||
- Create implementation plan using Superpowers planning flow.
|
||||
- Post summary plan to the issue before coding.
|
||||
|
||||
4. **Implement**
|
||||
- Use Superpowers execution flow (TDD + verification before completion).
|
||||
- Keep changes scoped strictly to issue requirements.
|
||||
|
||||
5. **Create PR**
|
||||
- Open PR from feature branch.
|
||||
- PR description must include:
|
||||
- Summary of changes
|
||||
- Test evidence (exact commands)
|
||||
- `Fixes #<issue-id>` (or `Closes #<issue-id>`)
|
||||
- Add reviewer: `codex`.
|
||||
|
||||
6. **Review feedback loop**
|
||||
- Read all feedback.
|
||||
- For each item:
|
||||
- If technically valid -> implement + re-test + reply.
|
||||
- If not valid -> reply with concise technical reasoning.
|
||||
- Do not blindly accept external feedback without verification.
|
||||
|
||||
## Required Rules
|
||||
- Use Gitea MCP tools first for issue/PR/review operations.
|
||||
- Do not use `tea` or other CLI Gitea clients unless MCP is unavailable.
|
||||
- Never claim completion without fresh verification output.
|
||||
|
||||
## Quick Command Pattern
|
||||
- Invoke as: `/do-task <issue-id>`
|
||||
- Example: `/do-task 12`
|
||||
@@ -23,6 +23,8 @@ description: Phase 2 skill. Use when issue scope is locked by Product Owner (Pha
|
||||
- Read issue: `mcp__gitea__.issue_read` (`method: "get"`).
|
||||
- Read comments, find the **Final Requirements** comment: `mcp__gitea__.issue_read` (`method: "get_comments"`).
|
||||
- If Final Requirements not found → stop, tell user to validate issue first.
|
||||
- Read current Gitea user: `mcp__gitea__.get_me`.
|
||||
- If current user is not already in the issue assignee list, update the issue with `mcp__gitea__.issue_write` (`method: "update"`) and set `assignees` to the existing assignees plus the current username.
|
||||
|
||||
2. **Read codebase**
|
||||
- Use `mcp__gitea__.get_file_contents`, `mcp__gitea__.get_repository_tree` to understand current state.
|
||||
@@ -72,6 +74,7 @@ description: Phase 2 skill. Use when issue scope is locked by Product Owner (Pha
|
||||
|
||||
## Rules
|
||||
- Use Gitea MCP tools for all issue/PR operations.
|
||||
- Preserve existing assignees when adding yourself unless the user explicitly asks to replace them.
|
||||
- Never edit remote files directly — always work on local branch.
|
||||
- Never claim completion without fresh verification output.
|
||||
- Keep changes strictly scoped to the approved plan.
|
||||
|
||||
Reference in New Issue
Block a user