Agent Skillsn0an/VivaDicta › stop-logs

stop-logs

GitHub

停止模拟器日志捕获并汇总最新日志文件,支持按错误、警告或关键词过滤。用于调试阶段快速分析日志内容。

.agents/skills/stop-logs/SKILL.md n0an/VivaDicta

触发场景

用户要求停止日志捕获 需要查看或分析模拟器日志

安装

npx skills add n0an/VivaDicta --skill stop-logs -g -y
更多选项

非标准路径

npx skills add https://github.com/n0an/VivaDicta/tree/main/.agents/skills/stop-logs -g -y

不安装直接使用

npx skills use n0an/VivaDicta@stop-logs

指定 Agent (Claude Code)

npx skills add n0an/VivaDicta --skill stop-logs -a claude-code -g -y

安装 repo 全部 skill

npx skills add n0an/VivaDicta --all -g -y

预览 repo 内 skill

npx skills add n0an/VivaDicta --list

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

  1. Stop the active log stream session. If the capture is running in an interactive shell session, send Ctrl+C to that session or otherwise terminate the active process.
  2. Find the newest simulator log file:
    ls -t logs/sim-*.log 2>/dev/null | head -1
    
  3. Summarize the file:
    • path
    • size
    • modified time
    • line count
    • number of error/fault lines
    • number of warning lines
  4. 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-logs followed by stop-logs.

Related

版本历史

  • c5601d4 当前 2026-07-25 08:16

同 Skill 集合

.agents/skills/analyze-unrecognized-apps/SKILL.md
.agents/skills/app-container-group/SKILL.md
.agents/skills/app-container/SKILL.md
.agents/skills/asc-aso-audit/SKILL.md
.agents/skills/asc-aso-rankings/SKILL.md
.agents/skills/asc-localize-metadata/SKILL.md
.agents/skills/asc-metadata-sync/SKILL.md
.agents/skills/asc-release-flow/SKILL.md
.agents/skills/asc-whats-new-writer/SKILL.md
.agents/skills/axe-simulator-control/SKILL.md
.agents/skills/coverage-report/SKILL.md
.agents/skills/diagram/SKILL.md
.agents/skills/ios-log-capture/SKILL.md
.agents/skills/ios-simulator-skill/SKILL.md
.agents/skills/krankie-audit/SKILL.md
.agents/skills/krankie-rankings/SKILL.md
.agents/skills/loc-report/SKILL.md
.agents/skills/logs-start/SKILL.md
.agents/skills/logs-stop/SKILL.md
.agents/skills/pr/SKILL.md
.agents/skills/prcdx/SKILL.md
.agents/skills/release-prepare/SKILL.md
.agents/skills/screenshot/SKILL.md
.agents/skills/simulator-screenshot-time/SKILL.md
.agents/skills/spm-build-analysis/SKILL.md
.agents/skills/start-logs-device-structured/SKILL.md
.agents/skills/start-logs-device/SKILL.md
.agents/skills/start-logs/SKILL.md
.agents/skills/stop-logs-device-structured/SKILL.md
.agents/skills/stop-logs-device/SKILL.md
.agents/skills/swift-concurrency-pro/SKILL.md
.agents/skills/swift-testing-pro/SKILL.md
.agents/skills/swiftdata-pro/SKILL.md
.agents/skills/swiftui-liquid-glass/SKILL.md
.agents/skills/swiftui-performance-audit/SKILL.md
.agents/skills/swiftui-pro/SKILL.md
.agents/skills/xcode-build-benchmark/SKILL.md
.agents/skills/xcode-build-fixer/SKILL.md
.agents/skills/xcode-build-orchestrator/SKILL.md
.agents/skills/xcode-compilation-analyzer/SKILL.md
.agents/skills/xcode-project-analyzer/SKILL.md
.agents/skills/xcodebuild-testing/SKILL.md
.agents/skills/commit-push/SKILL.md

元信息

文件数
0
版本
888131c
Hash
772efd2f
收录时间
2026-07-25 08:16

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 23:54
浙ICP备14020137号-1