Agent Skillsn0an/VivaDicta › stop-logs-device-structured

stop-logs-device-structured

GitHub

完成结构化设备日志收集工作流,引导用户运行脚本并分析最新导出的文本日志。

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

Trigger Scenarios

需要收集和分析设备日志时 执行完 start-logs-device-structured 后

Install

npx skills add n0an/VivaDicta --skill stop-logs-device-structured -g -y
More Options

Non-standard path

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

Use without installing

npx skills use n0an/VivaDicta@stop-logs-device-structured

指定 Agent (Claude Code)

npx skills add n0an/VivaDicta --skill stop-logs-device-structured -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-device-structured",
    "description": "Collect structured device logs since the timestamp recorded by start-logs-device-structured using sudo log collect",
    "disable-model-invocation": true
}

stop-logs-device-structured

You are given the following context: $ARGUMENTS

Task

Finish the structured device log workflow after start-logs-device-structured, guide the user through running the collection script, then summarize or filter the newest exported text log.

Instructions

  1. Verify the prerequisites exist:
    • llmtemp/.device-log-start-time
    • llmtemp/.device-log-udid
    • ./scripts/collect_device_logs.sh
  2. Ensure the collection script is executable:
    chmod +x ./scripts/collect_device_logs.sh
    
  3. Tell the user to run the script in their terminal because it requires interactive sudo access:
    ./scripts/collect_device_logs.sh
    
  4. Wait for the user to confirm the script finished.
  5. After it finishes, find the newest exported text log:
    ls -t logs/device_*.txt 2>/dev/null | head -1
    
  6. Analyze the file based on $ARGUMENTS:
    • if empty: show errors, warnings, and a short tail
    • if all: show the full file
    • otherwise: treat the argument as a search term and show matching lines

Notes

  • The script also creates logs/vivadicta_device_*.logarchive for later use in Console.app.
  • If the prerequisite timestamp or UDID files are missing, tell the user to run start-logs-device-structured first.
  • If the script has not been run yet, do not pretend the logs are available.

Helpful Commands

LOGFILE=$(ls -t logs/device_*.txt 2>/dev/null | head -1)

grep -i "error\\|warning" "$LOGFILE"
tail -20 "$LOGFILE"
log show logs/vivadicta_device_*.logarchive \
  --predicate 'subsystem == "com.antonnovoselov.VivaDicta"'

Related

Version History

  • c5601d4 Current 2026-07-25 08:16

Same Skill Collection

.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/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/SKILL.md
.agents/skills/stop-logs/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

Metadata

Files
0
Version
fbf9c91
Hash
2c146cf1
Indexed
2026-07-25 08:16

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 11:19
浙ICP备14020137号-1 $Гость$