简介
将 Agent 活动与 Token 消耗记录到 Mission Claw 仪表板,支持任务追踪、项目进度可视化与资源审计。
原始描述
Log agent activities to Mission Claw dashboard with token usage tracking. Use when completing significant tasks, subagent work, or any action worth recording in the activity feed. Triggers on task completion, activity logging, or tracking agent work.
通过你的 Agent 添加
把这个链接发给你正在用的 Agent,让它自己下载安装:
https://v110.com/skill/mission-claw.zip
或者手动装到对应目录
技能包里是 SKILL.md 加它附带的文件,解压后目录名就是技能名。
不同 Agent 的 skills 目录位置以各自文档为准;技能申请的权限由作者决定,装前请确认它要读什么、能执行什么。
技能正文
name: mission-claw description: Log agent activities to Mission Claw dashboard with token usage tracking. Use when completing significant tasks, subagent work, or any action worth recording in the activity feed. Triggers on task completion, activity logging, or tracking agent work. binaries: [mclaw] install: npm install -g mission-claw homepage: https://github.com/tsangwailam/mcclaw repository: https://github.com/tsangwailam/mcclaw
Mission Claw Activity Logging
Log significant tasks to the Mission Claw activity feed for tracking agent work, token usage, and project progress.
Prerequisites
- Mission Claw CLI: The
mclawbinary must be installed on the host system. - OpenClaw Built-ins: Relies on the
session_statustool to retrieve current token usage.
CLI Usage
mclaw log "Task description" \
--agent "AgentName" \
--project "ProjectName" \
--status completed \
--duration "Xm Ys" \
--input-tokens N \
--output-tokens N \
--total-tokens N
Required Fields
action- Brief task description (positional argument)--agent- Agent name (e.g., "J", "mission-claw", "type-alchemy")--total-tokens- Total tokens used (always include)
Optional Fields
--details- Longer description of work done--project- Project name--status-completed(default),in_progress, orfailed--duration- Time taken (e.g., "5m", "1h 30m")--input-tokens/--output-tokens- Token breakdown
When to Log
Log after completing:
- Significant development tasks
- Bug fixes or feature implementations
- Research or investigation work
- Configuration changes
- Any task worth tracking
Getting Token Usage
Before logging, check your session's token usage:
- Use the built-in
session_statustool to see current tokens - For subagents, tokens are in the completion announcement
Examples
# Feature implementation
mclaw log "Added date-time filter to dashboard" \
--agent "mission-claw" \
--project "Mission Claw" \
--status completed \
--duration "10m" \
--total-tokens 15000
# Quick fix
mclaw log "Fixed timezone bug" \
--agent "J" \
--project "ContentMorph" \
--duration "2m" \
--total-tokens 3500
# In-progress work
mclaw log "Implementing payment flow" \
--agent "J" \
--project "TypeAlchemy" \
--status in_progress
Other Commands
mclaw list # Recent activities
mclaw list --agent J # Filter by agent
mclaw status # Quick stats and service status
mclaw dashboard start # Start web dashboard (localhost:3101 by default)
API Alternative
The CLI logs to a local daemon (defaulting to http://localhost:3100). You can also POST directly to the API:
POST http://localhost:3100/api/activity
{
"action": "Task name",
"agent": "J",
"project": "Project",
"status": "completed",
"totalTokens": 5000,
"inputTokens": 4000,
"outputTokens": 1000
}
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: