Dotfiles
/install dotfiles
Dotfiles
Sysops toolkit for scanning, monitoring, reporting, and maintaining system configurations. Track changes, create backups, run benchmarks, and keep your environment healthy — all from the command line.
Commands
| Command | Description |
|---|---|
dotfiles scan \x3Cinput> |
Scan and log a system configuration entry |
dotfiles monitor \x3Cinput> |
Record a monitoring observation |
dotfiles report \x3Cinput> |
Log a report entry for review |
dotfiles alert \x3Cinput> |
Create an alert record |
dotfiles top \x3Cinput> |
Record top-level metrics or priorities |
dotfiles usage \x3Cinput> |
Log resource usage data |
dotfiles check \x3Cinput> |
Run a check and record results |
dotfiles fix \x3Cinput> |
Log a fix or remediation action |
dotfiles cleanup \x3Cinput> |
Record a cleanup operation |
dotfiles backup \x3Cinput> |
Log a backup event |
dotfiles restore \x3Cinput> |
Log a restore operation |
dotfiles log \x3Cinput> |
Add a general log entry |
dotfiles benchmark \x3Cinput> |
Record benchmark results |
dotfiles compare \x3Cinput> |
Log a comparison between configurations |
dotfiles stats |
Show summary statistics across all logs |
dotfiles export \x3Cfmt> |
Export all data (json, csv, or txt) |
dotfiles search \x3Cterm> |
Search across all log files for a term |
dotfiles recent |
Show the 20 most recent activity entries |
dotfiles status |
Health check — version, disk usage, last activity |
dotfiles help |
Show all available commands |
dotfiles version |
Show current version |
Each command without arguments displays the most recent 20 entries from its log file.
Data Storage
All data is stored in ~/.local/share/dotfiles/:
- Per-command logs —
scan.log,monitor.log,report.log,alert.log,top.log,usage.log,check.log,fix.log,cleanup.log,backup.log,restore.log,log.log,benchmark.log,compare.log - Activity history —
history.log(unified timeline of all actions) - Exports —
export.json,export.csv, orexport.txt(generated on demand)
Data format: each entry is stored as YYYY-MM-DD HH:MM|\x3Cvalue>, pipe-delimited for easy parsing.
Requirements
- Bash 4+ with
set -euo pipefail - Standard POSIX utilities (
date,wc,du,head,tail,grep,cut,basename) - No external dependencies or API keys required
When to Use
- System configuration auditing — scan and record the state of config files across machines, track drift over time
- Incident response logging — use
alert,fix, andlogto maintain a structured timeline during outages or issues - Backup and restore tracking — log every backup and restore event to maintain an audit trail for compliance
- Performance benchmarking — record benchmark results over time and compare configurations side by side
- Daily ops monitoring — capture usage metrics, run health checks, and clean up stale resources on a regular schedule
Examples
# Scan a configuration and log the result
dotfiles scan "nginx.conf updated to v1.25"
# Record a monitoring observation
dotfiles monitor "CPU at 78% during peak hours"
# Create an alert for high memory usage
dotfiles alert "Memory usage exceeded 90% threshold"
# Log a fix action after resolving an issue
dotfiles fix "Rotated /var/log/syslog, freed 2.3GB"
# Export all collected data as JSON for analysis
dotfiles export json
# Search all logs for entries related to nginx
dotfiles search nginx
# View recent activity across all commands
dotfiles recent
# Check overall health and disk usage
dotfiles status
# Show summary statistics
dotfiles stats
Output
All command output goes to stdout. Redirect to a file if needed:
dotfiles stats > report.txt
dotfiles export json
Powered by BytesAgain | bytesagain.com | [email protected]
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dotfiles - 安装完成后,直接呼叫该 Skill 的名称或使用
/dotfiles触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Dotfiles 是什么?
Backup, sync, and version-track dotfiles across multiple machines. Use when syncing configs, backing up settings, restoring on new machines. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 273 次。
如何安装 Dotfiles?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dotfiles」即可一键安装,无需额外配置。
Dotfiles 是免费的吗?
是的,Dotfiles 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Dotfiles 支持哪些平台?
Dotfiles 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Dotfiles?
由 bytesagain1(@bytesagain1)开发并维护,当前版本 v2.0.1。