AgentSkillsCN

logging-activities

使用 overclaw CLI 记录并查询 OverClaw 的活动审计轨迹。适用于代理需要记录自身操作、核查近期活动历史,或构建事件时间线时使用。

SKILL.md
--- frontmatter
name: logging-activities
description: Logs and queries the OverClaw activity audit trail using the overclaw CLI. Use when an agent needs to record what it did, check recent activity history, or build a timeline of events.

Logging Activities

Activities are the audit trail. Log significant actions so the dashboard shows what happened, when, and who did it.

Quick reference

bash
overclaw activity list [--project <id>] [--type <type>] [--agent <id>] [--limit <n>]
overclaw activity log --type "..." --message "..." [--project <id>] [--task <id>] [--agent <id>] [--agent-name "..."]

Log an activity

bash
overclaw activity log --type "task_completed" --message "Finished auth fix" --project <project-id> --task <task-id> --agent <agent-id> --agent-name "Donna"
FlagRequiredDescription
--typeYesActivity type (see conventions below)
--messageYesWhat happened (past tense)
--projectNoRelated project ID
--taskNoRelated task ID
--agentNoAgent ID who performed the action
--agent-nameNoAgent display name

Include --project, --task, --agent, and --agent-name whenever possible so activities link to the right context.

Type conventions

TypeWhen
task_createdAfter creating a task
task_startedAfter moving a task to in_progress
task_completedAfter moving a task to done
task_assignedAfter assigning a task
agent_syncedAfter registering/syncing an agent
status_changedAfter changing agent or task status
comment_addedAfter adding a comment
project_createdAfter creating a project
project_archivedAfter archiving a project
errorWhen something goes wrong
noteGeneral-purpose log entry

Any string works as a type. The above are conventions.

List recent activity

bash
overclaw activity list --limit 10
overclaw activity list --project <project-id>
overclaw activity list --type task_completed
overclaw activity list --agent <agent-id>

Results are in reverse chronological order (newest first). Default limit is 50.

When to log

After every significant action: creating projects/tasks, moving statuses, assigning tasks, encountering blockers, completing milestones, making decisions.

Write messages in past tense: "Created task: Fix auth flow", "Completed auth fix, all tests passing", "Blocked: waiting for API credentials".

Response format

json
{ "ok": true, "resource": "activity", "action": "log", "id": "j578eph...", "data": { ... } }