日志
- 作者仓库星标 330
- 许可证 MIT
- 作者仓库 claude-skill-registry
Shella Logs
View daemon and plugin logs from ~/.local/state/shella/dev.log.
Arguments
$ARGUMENTSmay contain:- A plugin name to filter by (e.g., "agent", "terminal")
- A number of lines to show (default: 50)
- "all" to show more lines
- "errors" or "error" to filter to errors/warnings only
Log File Location
~/.local/state/shella/dev.log
Each line is JSON with fields: time, level, prefix, msg, and optional data fields.
Commands
Recent logs (last 50 lines):
tail -50 ~/.local/state/shella/dev.log
Filter by plugin (prefix field contains plugin name):
grep '"prefix":"agent' ~/.local/state/shella/dev.log | tail -50
Errors only:
grep '"level":"error"' ~/.local/state/shella/dev.log | tail -50
Parse and format for readability - extract time, prefix, level, msg:
tail -50 ~/.local/state/shella/dev.log | while read line; do
echo "$line" | python3 -c "import sys,json; d=json.loads(sys.stdin.read()); print(f'{d.get(\"prefix\",\"daemon\"):20} {d.get(\"level\",\"info\"):5} {d.get(\"msg\",\"\")}')" 2>/dev/null || echo "$line"
done
Output
Present logs in a readable format. For JSON lines, extract the key fields (timestamp, prefix, level, message). Highlight errors in your response.
If the log file doesn't exist, tell the user the daemon hasn't been run yet or logs are empty.
- 流狐分类
- 数据
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @majiayu000 · MIT
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 $ARGUMENTS may contain: A plugin name to filter by (e.g., "agent", "terminal") A number of lines to show (default: 50)
Each line is JSON with fields: time, level, prefix, msg, and optional data fields.
Recent logs (last 50 lines): Filter by plugin (prefix field contains plugin name): Errors only:
Present logs in a readable format. For JSON lines, extract the key fields (timestamp, prefix, level, message). Highlight errors in your response. If the log file doesn't exist, tell the user the daemon hasn't been run yet or logs are empty.
# Shella Logs
View daemon and plugin logs from `~/.local/state/shella/dev.log`.
## Arguments
- `$ARGUMENTS` may contain:
- A plugin name to filter by (e.g., "agent", "terminal")
- A number of lines to show (default: 50)
- "all" to show more lines
- "errors" or "error" to filter to errors/warnings only
## Log File Location
```
~/.local/state/shella/dev.log
```
Each line is JSON with fields: `time`, `level`, `prefix`, `msg`, and optional data fields.
## Commands
**Recent logs (last 50 lines)**:
```bash
tail -50 ~/.local/state/shella/dev.log
```
**Filter by plugin** (prefix field contains plugin name):
```bash
grep '"prefix":"agent' ~/.local/state/shella/dev.log | tail -50
```
**Errors only**:
```bash
grep '"level":"error"' ~/.local/state/shella/dev.log | tail -50
```
**Parse and format** for readability - extract time, prefix, level, msg:
```bash
tail -50 ~/.local/state/shella/dev.log | while read line; do
echo "$line" | python3 -c "import sys,json; d=json.loads(sys.stdin.read()); print(f'{d.get(\"prefix\",\"daemon\"):20} {d.get(\"level\",\"info\"):5} {d.get(\"msg\",\"\")}')" 2>/dev/null || echo "$line"
done
```
## Output
Present logs in a readable format. For JSON lines, extract the key fields (timestamp, prefix, level, message). Highlight errors in your response.
If the log file doesn't exist, tell the user the daemon hasn't been run yet or logs are empty. 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Arguments → Log File Location → Commands → Output
要点 -> Recent logs (last 50 lines) · Filter by plugin · Errors only · Parse and format
文件/命令 -> ~/.local/state/shella/dev.log · $ARGUMENTS · time · level · prefix · msg
内容 SHA-256 -> bcce1b986a14
原文结构
适用与边界
原文中的明确线索
~/.local/state/shella/dev.log、$ARGUMENTS、time、level、prefix、msg