work-item-delivery-loop
Work Item Delivery Loop
Run work execution with strict sequencing and explicit write-back.
Operating Rules
- Always fetch before editing: list -> details -> implement -> write-back.
- Never mark work complete without validation evidence.
- If initiative matching is ambiguous, ask for confirmation.
- A run is incomplete until MCP write-back is done.
- Never modify task descriptions to record progress. Use
add-task-commentinstead. - When editing an initiative description, use
patch-documentwithworkspaceId,taskIdset to the initiative ID, and preciseops; the server resolves or creates the linked content document automatically. - Prefer
replace_text,insert_before,insert_after, anddelete_textover rewriting the entire description. - Use
update-initiativeonly for initiative metadata:title,status,assigneeIds,teamIds,taxonomyLabelIds, andparentInitiativeId. - If both initiative description and metadata change, do
patch-document(taskId=initiativeId, ...)first, thenupdate-initiative(...). If refreshed full details are needed after editing, callget-task-details. - If a patch fails because the target or anchor is stale or missing, call
get-task-details, then retry with corrected ops. - Always pass
"source": "skill"when callingadd-task-commentso comments are tagged with their origin. - Use
Changes/Whycomments only when real delivery happened (bug fix, completed personal task, completed initiative work). - For research/planning/triage-only updates, add an
Updatecomment instead. - For prompts like "implement this bug" or "work on this initiative", use every relevant One Horizon tool and companion skill before writing back.
- Always follow skill/tool rules end-to-end: context fetch, detailed task lookup, implementation, validation, write-back, and initiative linking.
- If implementation work was requested, do not post a status-only write-back; add a comment with what changed and why.
- Stop before marking work complete: every completed bug, personal task, or initiative must have a corresponding MCP write-back update in the same run.
- Continuous write-back: after each completed delivery chunk (not only at the end), update the related bug, personal task, or initiative immediately.
Work Type Heuristic
- Multi-day or roadmap-relevant planned work -> initiative
- Recurring, owner-driven work without a defined end date, such as code reviews -> ongoing work when the workspace uses it
- Unplanned defect fix -> bug
- Small personal or private follow-up -> personal task
- Completed implementation slice tied to an initiative -> completed personal task linked to the initiative is valid write-back
Standard Flow
- Identify target from user prompt.
- Fetch candidate tasks (
list-planned-work,list-initiatives, orlist-bugs). - Resolve exact IDs with
get-task-details. - Implement code changes.
- Run validation/tests.
- Write MCP updates (
update-*orcreate-todo) and add comments viaadd-task-comment. - Apply initiative links when requested.
Plan Mode Rule
If the agent is in plan mode, or the user asks for a plan, include workflow tasks from this skill in the plan explicitly.
Required plan items:
- Discover candidate tasks with list tools.
- Resolve selected IDs and full context with
get-task-details. - Implement the code changes.
- Validate changes with tests/checks.
- Write back to One Horizon (
update-*orcreate-todo) and add a comment with progress notes. - Apply initiative links if requested.
For "Fix all bugs assigned to me", include per-bug execution/write-back steps. For initiative implementation prompts, include initiative matching + confirmation before coding.
Implementation Request Rule
When a user asks to implement a bug, initiative, or personal task, run the full flow and do not treat it as a status-only update.
Required sequence:
- Use discovery/list tools to find targets (
list-bugs,list-initiatives,list-planned-work). - Use
get-task-detailsfor each selected task before implementation. - Use related companion skills where relevant (
bug-triage-prep,initiative-summary, recap/summarizer skills) before coding or writing updates. - Implement and validate code changes.
- Update task status via
update-*orcreate-todo, then add a comment viaadd-task-commentafter each completed chunk. - Apply requested initiative links.
If any required step is skipped, the run is incomplete.
If implementation happened, the write-back must include a **Changes** block with both "What changed" and "Why".
Workflow Rule: "Fix all bugs assigned to me"
Use this exact sequence:
- Call
list-my-teamsto resolve user/team context. - Call
list-bugsfiltered to current user assignee and active statuses. - For each bug:
- Call
get-task-details. - Implement fix.
- Validate fix with relevant tests/checks.
- Call
update-bugwith latest status, thenadd-task-commentwith fix notes.
- Call
- If a bug is not fixed, still call
update-bugwith status andadd-task-commentwith blocker details.
Required add-task-comment content after update-bug:
- root cause
- code changes made
- current status
Workflow Rule: "Implement " (example: "Implement HubSpot lead sync")
Use this exact sequence:
- Call
list-initiativeswith active statuses. - Rank candidates by title match, then taxonomy/team match.
- Present top matches and confirm selected initiative.
- Call
get-task-detailsfor selected initiative, then useGoals,Products, andlabelsByTypeto verify fit. - Implement requested code.
- Create implementation record with
create-todousingstatus: "Completed"andinitiativeIdas soon as implementation is done. - Call
update-initiativeif status/progress should advance.
If the initiative description also needs edits:
- Call
patch-documentwithworkspaceId,taskId, and targetedops. - Call
update-initiativeonly for metadata changes. - If a patch fails because the target or anchor is stale or missing, call
get-task-detailsand retry with corrected ops. - Call
get-task-detailsafter the mutations if you need the refreshed initiative body.
create-todo write-back shape:
create-todo({
"title": "Implemented HubSpot lead sync integration",
"description": "Added OAuth flow, sync job, and mapping logic. Validated with integration tests.",
"status": "Completed",
"initiativeId": "<initiativeId>",
"workspaceId": "<workspaceId>"
})
Workflow Rule: "Connect this to initiative A / B / C"
- Resolve each initiative via
list-initiatives. - Confirm ambiguous matches.
- Apply links using relation-capable tooling.
- If creating a personal task, set primary
initiativeIdand add extra links with relation tooling.
Prompting Pattern for Changes
When reporting progress back to the user, use this structure:
Target: which task is being processedAction: what was changedWrite-back: which MCP tool was called and what was updatedLinks: initiative IDs connected
Use add-task-comment for all progress notes. Never modify task descriptions.
Delivery comment (code shipped / fix completed / task completed):
**Changes**
- What changed: <short summary>
- Why: <root cause or goal>
Research or planning comment (no external implementation delivered):
## Update
- Summary: <what was researched/decided/triaged>
Failure Handling
- Missing work details: call
get-task-detailsbefore proceeding. - Missing label context: use
get-task-detailsoutput (Goals,Products,labelsByType) before deciding initiative linkage. - No bug match for assignee: report none found and stop.
- Multiple initiative matches: require confirmation before coding.
- Validation fails: do not mark complete; write back current status + blocker.
Stop Before Complete Check
Before declaring completion to the user, verify all completed tasks were updated in One Horizon:
- Completed bug ->
update-bugcalled with final status +add-task-commentwith**Changes**. - Completed personal task ->
update-todocalled with final status +add-task-commentwith**Changes**, orcreate-todocreated asCompleted+ comment. - Completed initiative work ->
update-initiativecalled with status +add-task-commentwith progress notes.
If any completed item is missing write-back, stop and perform the update first.
Completion Gate
A run is complete only when all are true:
- Code changes implemented, or explicitly marked blocked.
- MCP updates written back for every completed bug, personal task, or initiative.
- Initiative links applied if requested.
More from onehorizonai/skills
work-summarizer
Turn One Horizon activity into a clean update for a manager, team, or stakeholder. Use when asked to "summarize my work", "write a status report", "create a weekly summary", or "brief my manager". Includes initiatives and blockers when provided. Requires One Horizon MCP.
24bug-triage-prep
Turn open bugs into triage notes a team can actually use. Use when asked "prepare bug triage", "summarize open bugs", or "prioritize defects for review". Requires One Horizon MCP.
23get-task-details
Fetch the full details for one known One Horizon task when the task ID is already available and the user needs exact task context. Prefer task-management when details are only one step in a larger operational request. Requires One Horizon MCP.
23initiative-summary
Turn initiative data into a clear status update. Use when asked "summarize these initiatives", "give me initiative status", or "prepare initiative update notes". Requires One Horizon MCP.
22handoff-notes
Turn current work into handoff notes someone else can pick up without guessing. Use when asked to "write handoff notes", "prepare transition docs", or "document my current ownership". Requires One Horizon MCP.
22list-taxonomy
Look up One Horizon taxonomy labels when the user explicitly asks for label IDs or available goals, products, releases, or components. Prefer task-management when taxonomy lookup is only one step in a larger operational request. Requires One Horizon MCP.
22