| name | start-next-task |
| description | Use when the user says "Làm task tiếp theo", "task tiếp theo", "Start next task", asks Codex to pick the next issue, wants Codex to continue from a GitHub Projects Kanban item, or wants Codex to take a selected issue from intake all the way to branch/commit/PR. Orchestrate the automation workflow in order: fetch or accept the chosen issue, read the full issue and Definition of Done, run a business-auditor pass against docs/backend-business-logic-vi.md to identify every touched BR-* rule and block if any rule is unclear, then hand off to senior-workflow starting at Phase 1, invoke integration-architect whenever the task adds or changes an endpoint, a DTO mirrored from iface.go, or a deps.go interface, and continue through self-QA into the standard branch/commit/PR flow when implementation is done.
|
Start Next Task Automation
Run this workflow whenever the user asks to continue with the next task instead of naming a specific implementation target.
Goal
Turn a vague "next task" request into a disciplined execution flow:
- Pick the right issue.
- Read the full requirement and DoD.
- Audit business-rule impact before coding.
- Start implementation from requirements clarification, not from code.
- Enforce frontend-backend contract checks when integration changes are involved.
- After self-QA passes, finish delivery with branch/commit/PR instead of stopping at "code complete".
Workflow
1. Fetch the highest-priority open issue
Use the product-manager skill to identify the next issue to work on.
If the user already picked a GitHub Projects Kanban card or gave an issue number, skip the fetch step and use that issue directly.
Otherwise run:
gh issue list --repo giangdq202/Vmarble-Warehouse-Management-Service --assignee @me --state open --json number,title,labels | jq 'sort_by(.labels[].name) | .[0]'
2. Analyze the requirement
Read the complete issue body before planning implementation:
gh issue view <number> --repo giangdq202/Vmarble-Warehouse-Management-Service
Extract at least:
- Summary / user problem
- Definition of Done
- Route or module hints
- API or data-contract implications
- Missing details that could block implementation
3. Audit business rules before coding
Invoke business-auditor and cross-reference the issue against docs/backend-business-logic-vi.md.
Required output from this audit:
- List every touched
BR-* rule
- Note which UI states, transitions, validations, and Vietnamese terms are affected
- Explicitly flag any ambiguity
Hard rule: if a relevant business rule is unclear, stop before implementation and surface the ambiguity to the user.
4. Start implementation with the senior workflow
Invoke senior-workflow and begin at Phase 1 — Requirements Clarification.
Do not jump straight to coding, even if the issue looks small.
Do not skip the workflow phases.
Do not skip self-QA.
At minimum, Phase 1 must produce:
- Who uses the feature
- Exact DoD
- Edge cases
- Risks or unknowns discovered from the issue and business audit
5. Run integration architecture checks when contracts move
Invoke integration-architect if the task does any of the following:
- Introduces a new endpoint
- Modifies an existing endpoint contract
- Changes a DTO mirrored from backend
iface.go
- Adds or changes a backend-facing interface referenced from
deps.go
Confirm:
- DTO field names and optionality still match backend JSON
- Query hooks and invalidation still align with the contract
- Any frontend type updates remain synchronized with backend expectations before merge
6. Finish delivery after implementation
Do not stop once the code is written. If the user asked to implement/continue an issue end-to-end, continue into the delivery workflow after Phase 5 self-QA passes:
- Create a feature/chore branch from
dev if work is not already on a non-protected branch
- Commit all intended changes with a clear
[area] commit message tied to the issue
- Open a PR to
dev with summary, technical notes, test evidence, and the issue reference
- If validation fails, approvals are blocked, or required issue details are still unclear, stop and surface the blocker instead of opening the PR
Execution notes
- Prefer the issue number from the board or issue list as the single source of truth.
- Treat issue title alone as insufficient; always read the full issue body.
- If
gh access is unavailable, report the blockage and ask the user for the issue number or issue text.
- When this workflow starts from a concrete issue number/URL/board card, treat that issue as the execution anchor from intake through PR unless the user explicitly changes scope.
- When this workflow finishes analysis, continue naturally into implementation, self-QA, and PR preparation using the triggered skills instead of restating the whole process again.