用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/stevehuang0115/crewly --skill read-session-logs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Read Session Logs |
| description | Read persistent terminal log file for a session (ANSI-stripped, includes pre-restart output). |
| version | 1.0.0 |
| category | monitoring |
| skillType | claude-skill |
| assignableRoles | ["orchestrator"] |
| triggers | ["session logs","agent logs file","terminal history"] |
| tags | ["logs","monitoring","session","terminal","history"] |
| execution | {"type":"script","script":{"file":"execute.sh","interpreter":"bash","timeoutMs":15000}} |
Read the persistent log file for a PTY session. Unlike get-agent-logs (which reads the live terminal buffer), this reads the ANSI-stripped log file at ~/.crewly/logs/sessions/{sessionName}.log.
Key difference: This log file survives session restarts and includes output from before the last restart, separated by --- SESSION RESTARTED at ... --- markers.
| Parameter | Type | Default | Description |
|---|---|---|---|
sessionName | string | (required) | PTY session name (e.g., crewly-orc) |
lines | number | 100 | Number of recent lines to return |
# Read last 200 lines of orchestrator session log
bash config/skills/orchestrator/read-session-logs/execute.sh '{"sessionName":"crewly-orc","lines":200}'
# Read agent session log
bash config/skills/orchestrator/read-session-logs/execute.sh '{"sessionName":"crewly_team1_dev1","lines":100}'
Returns a JSON object with lines (array of strings), sessionName, count, and totalLines.