| name | file-operation |
| description | Use when reading, statting, listing, or tailing local files for SysGuard diagnostics without modifying filesystem contents. |
File Operation
Use this skill for safe local file inspection during diagnostics.
Runtime Invocation
The Go implementation is registered by RegisterCoreSkills and invoked as "file-operation":
registry.Execute(ctx, "file-operation", &skills.SkillInput{Params: map[string]interface{}{
"operation": "tail",
"path": "/var/log/syslog",
"lines": 100,
}})
Supported operations are read, stat, list, and tail.
Workflow
- Use
stat to confirm path type and size before reading large files.
- Prefer
tail for logs and potentially large files.
- Use
list for directory inspection.
- Use
log-analysis when keyword filtering is needed.
Safety
This skill is read-only. Do not create, overwrite, rename, chmod, or delete files through this skill.