Agent Skills
› n0an/VivaDicta
› stop-logs
stop-logs
GitHub停止模拟器日志捕获并总结最新日志文件,支持按错误、警告或关键词过滤输出。
Trigger Scenarios
需要停止正在运行的模拟器日志捕获会话
请求查看或分析最新的模拟器日志摘要
Install
npx skills add n0an/VivaDicta --skill stop-logs -g -y
SKILL.md
Frontmatter
{
"name": "stop-logs",
"description": "Stop the active simulator log capture session and display a summary of captured logs",
"disable-model-invocation": true
}
stop-logs
You are given the following context: $ARGUMENTS
Task
Stop the active simulator log-capture session and summarize the newest simulator log file. Optionally filter the output based on the provided arguments.
Instructions
- Stop the active
log streamsession. If the capture is running in an interactive shell session, sendCtrl+Cto that session or otherwise terminate the active process. - Find the newest simulator log file:
ls -t logs/sim-*.log 2>/dev/null | head -1 - Summarize the file:
- path
- size
- modified time
- line count
- number of error/fault lines
- number of warning lines
- Analyze the file based on
$ARGUMENTS:- if empty: show the last 20 lines
- if
errors: show matching error or fault lines - if
warnings: show warning lines - if
all: show the whole file - otherwise: treat the argument as a search term and show matching lines
Helpful Commands
LOGFILE=$(ls -t logs/sim-*.log 2>/dev/null | head -1)
du -h "$LOGFILE"
wc -l "$LOGFILE"
grep -i "error\\|fault" "$LOGFILE"
grep -i "warning" "$LOGFILE"
tail -20 "$LOGFILE"
Notes
- If no simulator log file exists, report that clearly instead of guessing.
- Preserve the log file; this skill summarizes it, it does not delete it.
- The expected companion workflow is
start-logsfollowed bystop-logs.
Related
Version History
- c5601d4 Current 2026-07-25 08:16


