AgentSkillsCN

approvals-inbox

管理供应商的第二层级审批队列,支持批准、编辑与暂存等多种工作流程。

SKILL.md
--- frontmatter
name: approvals-inbox
description: Manages the provider's Tier 2 approval queue with approve/edit/hold workflows.
metadata:
  openclaw:
    requires:
      - binary: "python3"

Approvals Inbox (Provider Console)

Manage all Tier 2 drafts awaiting provider approval. This is the primary workflow for the ProviderConsole agent.

When This Skill Activates

  • Provider opens a conversation (show pending approvals summary)
  • A new Tier 2 case is created by TeacherOps or ParentOps
  • Provider sends "APPROVE", "EDIT", or "HOLD" in response to a draft

Workflow — Presenting Approvals

On conversation start or when asked for status:

bash
# Get all pending approvals, sorted by urgency
daycarectl case pending-approvals

Present as:

code
📬 Pending Approvals ([count])

🔴 URGENT:
  #[id] — [type]: [summary]
  → [draft_target_channel] to [recipient]

🟡 HIGH:
  #[id] — [type]: [summary]
  → [draft_target_channel] to [recipient]

🟢 MEDIUM/LOW:
  #[id] — [type]: [summary]

Reply with a case number to review, or "APPROVE ALL" for non-urgent items.

Workflow — Reviewing a Case

When provider selects a case:

bash
daycarectl case get --id <case_id>

Present:

code
📋 Case #[id] — [type]
Priority: [priority] | Urgency: [urgency]
Boundary: [boundary]
Child: [child_name] | From: [source]
Created: [timestamp]

📝 Draft message:
---
[draft_message]
---
Target: [channel] → [recipient]

Reply:
  APPROVE — Send as written
  EDIT — Provide your changes
  HOLD — Keep pending, don't send yet

Workflow — Processing Decisions

APPROVE

bash
daycarectl case update --id <case_id> --status "approved" --decision "approve" --agent-id "provider-console"

Then trigger the sending agent (ParentOps or TeacherOps) to deliver the message.

EDIT

  1. Ask provider for the edited text
  2. Update the draft:
bash
daycarectl case update --id <case_id> --draft "<new_text>" --agent-id "provider-console"
  1. Show the updated draft and ask for final APPROVE

HOLD

bash
daycarectl case update --id <case_id> --status "pending_approval" --decision "hold" --provider-notes "<reason if given>" --agent-id "provider-console"

Acknowledge and keep in queue.

Bulk Operations

"APPROVE ALL"

  • Only applies to MEDIUM and LOW priority items
  • HIGH and URGENT always require individual review
  • Process each and report: "Approved [X] items. [Y] high-priority items still need review."

Aging Alerts

  • Cases pending > 2 hours during business hours → Gentle reminder
  • Cases pending > 24 hours → Escalate urgency in presentation