dozaldevs/dozaldevs-skills

monitor-and-review-ai-employee-work

Use when a human asks whether an AI employee task is done, wants to see its output, or wants to approve or reject its work: is the recap ready, show me what it wrote, approve it, reject and shorten it, why did that run go wrong, show its logs, watch it live.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/dozaldevs/dozaldevs-skills --skill monitor-and-review-ai-employee-work

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Monitor & Review AI Employee Work

This checks on a task, lets the human approve or reject what the employee produced, and reads what the organization's employees have been doing. Approvals can also happen in Slack. Both paths land on the same decision.

Prerequisite: load operate-ai-employees first. It sets up the dozaldevs CLI and the key, and how to read errors. You also need the task_id (from when you ran the employee). Reading works at any key level; approving or rejecting needs Member or above.

Arguments and fields for any command: dozaldevs <command> --help and ../operate-ai-employees/references/customer-api.md. Below is only the behavior you can't read off the spec.

Check status: ONE call, read phase_category

sh
dozaldevs get-task "$TASK"

Branch on phase_category and ignore the raw status:

phase_categoryMeaningTell the human
workingStill running"Still working, give it a minute or two and ask me again."
awaiting_humanWork done, waiting for approvalShow the output (below) and offer approve or reject.
terminalFinished (Done) or stopped (Failed, Cancelled)Done: show the output, say it was delivered. Otherwise say so and explain.

A task someone already approved or rejected reads working, even while its raw status is still Reviewing. awaiting_human means nobody has decided. decision is null until someone decides, then says who decided and which way, so never offer approve or reject when it's set. Show output.draft, or output.summary when there's no draft.

Waiting, only when the human says to wait

By default make the one call above and move on. If the human asks you to wait for the result, run this. It re-reads every 10 seconds while the task is working, stops after about 80 seconds, and prints the last phase_category:

sh
dozaldevs get-task "$TASK" --while phase_category=working --every 10 --timeout 80 --field phase_category

While it prints working, run it again. Anything else, go back to the table. If the call failed, it printed the error; follow its next_step. Never open a stream (the stream-* commands stay open until the server closes them).

Approve or reject (when awaiting_human)

Present the draft, then act on the human's decision. Approve:

sh
dozaldevs decide-task "$TASK" --data action=approve

Reject, with the human's reason in $REASON:

sh
dozaldevs decide-task "$TASK" --data action=reject --data reason="$REASON"
  • 202: recorded. On approve it delivers (for example posts to Slack): "Approved, sending it now."
  • 409 TASK_NOT_AWAITING_REVIEW: check the status again, it may still be working or already finished.
  • 409 TASK_ALREADY_DECIDED: someone decided first. The message names who and which way; tell the human. Sending the same decision twice just answers 202 again.

Always pass a reason when rejecting, because it becomes feedback the employee learns from. Never decide for the human, and never approve or reject because the output looks fine to you.

Why a run went wrong: read the run's logs

Start with the failed task itself (get-task). failure_reason is the run's own account of why it stopped, failure_code its short code, and run_headline (when not null) one plain sentence on what went wrong. Known secret values are masked out of the reason. status_history shows where it was when it ended. For more, the run's logs are customer-readable. Read them in this order:

  1. The events first. They list every tool call with its input, output, error flag and timing, the calls that failed and were retried, the connected-app calls, the waits for approval, the status timeline, the run's inputs, and the employee's setup as it was when the run started plus edits made since.
sh
   dozaldevs get-task-events "$TASK"
  1. Then the transcript, one entry per attempt. To read one attempt in full, pass its id with --id:
sh
   dozaldevs list-executions --task_id "$TASK"
   dozaldevs list-executions --id "$EXECUTION"
  1. Then the status log, for the order things happened in:
sh
   dozaldevs get-task-status-log "$TASK"

Don't use get-task-conversation. It returns ad-hoc conversations only and is empty for a run of an employee. What the employee was asked and sent is in the task's output, the events and the executions.

Say what the logs show, in plain words. They don't always explain a failure. If they don't show a cause, say that and don't guess one. The platform's raw container log is for platform staff only, so don't look for it.

Activity and live status

  • Recent work: list-tasks (add --limit 10), list-deliverables --task_id "$TASK" for one task's output, list-recent-decisions (who decided what lately), and list-silent-dozals (employees that should have acted and didn't, each with one reason):
sh
  dozaldevs list-tasks --limit 10
  dozaldevs list-deliverables --task_id "$TASK"
  dozaldevs list-recent-decisions
  dozaldevs list-silent-dozals
  • Waiting on a person: what a task is waiting for approval on.
sh
  dozaldevs list-task-pending-approvals "$TASK"
  • Live progress: there's no stream to follow. Use the --while wait above, and between rounds tell the human what phase_category said. For what the run is doing right now, read the events.
来自同一仓库

更多 Skills

全部 Skills
dozaldevs
社区

hire-ai-employee

Use when a human wants to create, hire, activate, or set up a new AI employee from a plain-English description, e.g. wanting something that writes a weekly recap or replies to guest messages. Drives the Hiring Dozal's multi-turn setup wizard (the hiring chat), relays its button questions (show me first or just send it) to the human, and hires the finished Dozal. Use it for any new-employee request. Load operate-ai-employees first for auth and base-URL setup.

1小时安装量
2
GitHub Stars
0
最近更新
10月26日
dozaldevs
社区

manage-ai-employees

Use when a human wants to see, list, pause, reactivate, rename or inspect their existing AI employees (config, status active/paused/draft), or manage connected apps, schedules, handoffs, members and invitations, usage and bills, e.g. what employees do I have, pause the recap bot, how did last Friday go. Not for running one now (run-ai-employee), a task's output, approval or logs (monitor-and-review-ai-employee-work), or creating one (hire-ai-employee). Load operate-ai-employees first.

1小时安装量
2
GitHub Stars
0
最近更新
10月26日
dozaldevs
社区

operate-ai-employees

Use when a human asks you to operate their AI Employee platform account: hiring an employee, running one, checking on a task, approving or rejecting work, listing or pausing employees, or managing connections, schedules, handoffs, members, usage, bills, activity and run logs. Load this first to route between the four job skills. The umbrella skill: dze API key auth and its level, the production base URL, tenant resolution, the async model, and person-only steps.

1小时安装量
2
GitHub Stars
0
最近更新
10月26日
dozaldevs
社区

run-ai-employee

Use when a human wants to run, trigger, start, or test-run an existing AI employee, e.g. run the recap bot now, kick off the guest responder, or run it once per topic from a list of inputs. Triggers the employee, can dry-run to list required inputs, and hands back task handles without blocking. Load operate-ai-employees first for auth; use monitor-and-review-ai-employee-work to check the result.

1小时安装量
2
GitHub Stars
0
最近更新
10月26日