AgentSkillsCN

close

关闭跟踪器中的任务。适用于用户调用/close或要求关闭跟踪器问题时使用。

SKILL.md
--- frontmatter
name: close
description: "Close task in tracker. Use when the user invokes /close or asks to close a tracker issue."

Close Command

Follow CLAUDE.md, conventions.md, and ARCHITECTURE.md.

Task

Close a task in tracker.

Interaction Contract

PhaseActionSTOP untilSteps
1. Find taskLocate task-1-2
2. ConfirmShow what will be closedUser says "da" / "ok" / "yes"3
3. ExecuteClose in tracker-4-5

Closing without phase 2 confirmation is a critical violation.

Algorithm

  1. Check arguments:

    • If empty: ask "Which task to close? Provide task ID."
    • Otherwise: use as task ID
  2. Normalize task ID:

    • If ID does not contain prefix "DCATgBot-": add prefix
    • Store normalized ID as <full_id>
    • Store short ID (without prefix) as <short_id>
  3. Confirm with user:

    • Show task ID to close
    • Wait for confirmation
  4. Close task in tracker:

    • Use beads to close task with reason "Completed"
    • If not found/already closed: report and stop
  5. Report result:

    code
    Task closed: <full_id>
    

Error Handling

  • Task not found: report and stop
  • Task already closed: report and stop