Agent Skills
› n0an/VivaDicta
› stop-logs-device
stop-logs-device
GitHub终止设备日志捕获会话,定位最新日志文件并生成摘要报告(路径、大小、行数等)。适用于iOS设备调试中的日志管理流程。
Trigger Scenarios
需要停止正在运行的设备日志采集
获取最近一次设备日志文件的统计信息
Install
npx skills add n0an/VivaDicta --skill stop-logs-device -g -y
SKILL.md
Frontmatter
{
"name": "stop-logs-device",
"description": "Stop the active device log capture session and report the log file location",
"disable-model-invocation": true
}
stop-logs-device
Task
Stop the active device print-log capture session and summarize the newest device log file.
Instructions
- Stop the active
devicectlconsole session. If it is running in an interactive shell session, sendCtrl+Cto that session or otherwise terminate the active process. - Find the newest device print log:
ls -t logs/device-*.log 2>/dev/null | head -1 - Summarize the file:
- path
- size
- modified time
- line count
- short tail preview
Helpful Commands
LOGFILE=$(ls -t logs/device-*.log 2>/dev/null | head -1)
du -h "$LOGFILE"
wc -l "$LOGFILE"
tail -10 "$LOGFILE"
grep -i "error" "$LOGFILE"
Notes
- If no matching file exists, report that clearly.
- The expected companion workflow is
start-logs-devicefollowed bystop-logs-device. - This skill does not delete logs; it only stops the live stream and summarizes the latest file.
Related
Version History
- c5601d4 Current 2026-07-25 08:16


