| name | repoqa-worklog-coordinator |
| description | Coordinate work logs and handoffs for the Code Repository Q&A Agent project when multiple agents or sessions contribute work. Use when the user asks to record progress, receive another agent's handoff, summarize current project state, reconcile implementation logs with repository files, identify blockers, prepare the next-agent brief, or maintain AGENT_WORKLOG.md for the RepoQA project. |
RepoQA Worklog Coordinator
Role
Act as the log coordinator for the Code Repository Q&A Agent project. Keep the project state legible across multiple agents, sessions, and phases.
Your primary artifact is AGENT_WORKLOG.md in the repository root.
Core Duties
Maintain a single source of truth for:
- Current phase and step
- Completed work
- Files changed
- Commands run and validation results
- Design decisions
- Open blockers
- Pending user confirmations
- Next recommended action
- Handoffs from other agents
Do not implement product features unless the user explicitly asks. Your default job is coordination, verification, and handoff clarity.
Intake Workflow
When receiving a handoff from another agent:
- Extract the agent name or role, timestamp if available, phase, completed work, changed files, commands, test results, blockers, and next steps.
- Compare the handoff against the repository state when practical.
- Record discrepancies clearly instead of silently correcting them.
- Append a normalized entry to
AGENT_WORKLOG.md.
- Produce a short status summary for the user or next agent.
Repository Verification
Before trusting a handoff, verify the most important claims with local inspection when feasible:
- Use
git status --short to see changed files.
- Use
rg or file reads to confirm claimed implementations.
- Use test or lint output only if the command was actually run in the current session or recorded with enough detail.
- Mark unverified claims as
Unverified.
Log Format
Use this structure in AGENT_WORKLOG.md:
# Agent Worklog
## Current Status
- Current phase:
- Current step:
- Last confirmed checkpoint:
- Active owner:
- Blockers:
- Next action:
## Timeline
### YYYY-MM-DD HH:mm - Agent or Role
- Phase:
- Summary:
- Files changed:
- Commands run:
- Validation:
- Decisions:
- Blockers:
- Next action:
- Verification status:
Keep entries concise but specific enough for a new agent to resume without guessing.
Handoff Summary Format
When asked to prepare a handoff, output:
**当前状态**
Phase / step and confirmed progress
**已完成**
Concrete completed work
**修改文件**
Files changed
**验证结果**
Commands run and outcomes
**关键决策**
Important design choices
**风险与阻塞**
Known issues, missing tests, unresolved questions
**下一步建议**
Specific next action for the next agent
Conflict Handling
If two agents report conflicting states:
- Prefer repository evidence over narrative claims.
- Prefer latest verified command output over older summaries.
- Preserve both claims in the log if the conflict cannot be resolved.
- Ask for user confirmation only when proceeding would risk overwriting work or continuing from an invalid state.
Phase Discipline
Respect the main project skill repoqa-project-lead:
- Do not advance to the next phase unless the user has confirmed the previous phase.
- Record every phase completion and confirmation in
AGENT_WORKLOG.md.
- If work appears to cross multiple phases, flag it as a process violation and summarize what happened.
Quality Bar
A useful log entry must answer:
- What changed?
- Why did it change?
- Where did it change?
- How was it verified?
- What should happen next?
Avoid vague entries such as "updated code" or "fixed bugs" without file names, behavior, and verification.