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 <input> |
Scan and log a system configuration entry |
dotfiles monitor <input> |
Record a monitoring observation |
dotfiles report <input> |
Log a report entry for review |
dotfiles alert <input> |
Create an alert record |
dotfiles top <input> |
Record top-level metrics or priorities |
dotfiles usage <input> |
Log resource usage data |
dotfiles check <input> |
Run a check and record results |
dotfiles fix <input> |
Log a fix or remediation action |
dotfiles cleanup <input> |
Record a cleanup operation |
dotfiles backup <input> |
Log a backup event |
dotfiles restore <input> |
Log a restore operation |
dotfiles log <input> |
Add a general log entry |
dotfiles benchmark <input> |
Record benchmark results |
dotfiles compare <input> |
Log a comparison between configurations |
dotfiles stats |
Show summary statistics across all logs |
dotfiles export <fmt> |
Export all data (json, csv, or txt) |
dotfiles search <term> |
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, or export.txt (generated on demand)
Data format: each entry is stored as YYYY-MM-DD HH:MM|<value>, 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, and log to 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 | hello@bytesagain.com
1---
2name: dotfiles
3description: "Backup, sync, and version-track dotfiles across multiple machines. Use when syncing configs, backing up settings, restoring on new machines."
4version: "2.0.0"
5author: "BytesAgain"
6homepage: https://bytesagain.com
7source: https://github.com/bytesagain/ai-skills
8tags: ["dotfiles","config","backup","sync","bashrc","vimrc","setup","developer"]
9categories: ["Developer Tools", "System Tools", "Productivity"]
10metadata:
11 source: https://skillmd.com/skills/bytesagain/dotfiles
12---
13
14# Dotfiles
15
16Sysops 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.
17
18## Commands
19
20| Command | Description |
21|---------|-------------|
22| `dotfiles scan <input>` | Scan and log a system configuration entry |
23| `dotfiles monitor <input>` | Record a monitoring observation |
24| `dotfiles report <input>` | Log a report entry for review |
25| `dotfiles alert <input>` | Create an alert record |
26| `dotfiles top <input>` | Record top-level metrics or priorities |
27| `dotfiles usage <input>` | Log resource usage data |
28| `dotfiles check <input>` | Run a check and record results |
29| `dotfiles fix <input>` | Log a fix or remediation action |
30| `dotfiles cleanup <input>` | Record a cleanup operation |
31| `dotfiles backup <input>` | Log a backup event |
32| `dotfiles restore <input>` | Log a restore operation |
33| `dotfiles log <input>` | Add a general log entry |
34| `dotfiles benchmark <input>` | Record benchmark results |
35| `dotfiles compare <input>` | Log a comparison between configurations |
36| `dotfiles stats` | Show summary statistics across all logs |
37| `dotfiles export <fmt>` | Export all data (json, csv, or txt) |
38| `dotfiles search <term>` | Search across all log files for a term |
39| `dotfiles recent` | Show the 20 most recent activity entries |
40| `dotfiles status` | Health check — version, disk usage, last activity |
41| `dotfiles help` | Show all available commands |
42| `dotfiles version` | Show current version |
43
44Each command without arguments displays the most recent 20 entries from its log file.
45
46## Data Storage
47
48All data is stored in `~/.local/share/dotfiles/`:
49
50- **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`
51- **Activity history** — `history.log` (unified timeline of all actions)
52- **Exports** — `export.json`, `export.csv`, or `export.txt` (generated on demand)
53
54Data format: each entry is stored as `YYYY-MM-DD HH:MM|<value>`, pipe-delimited for easy parsing.
55
56## Requirements
57
58- Bash 4+ with `set -euo pipefail`
59- Standard POSIX utilities (`date`, `wc`, `du`, `head`, `tail`, `grep`, `cut`, `basename`)
60- No external dependencies or API keys required
61
62## When to Use
63
641. **System configuration auditing** — scan and record the state of config files across machines, track drift over time
652. **Incident response logging** — use `alert`, `fix`, and `log` to maintain a structured timeline during outages or issues
663. **Backup and restore tracking** — log every backup and restore event to maintain an audit trail for compliance
674. **Performance benchmarking** — record benchmark results over time and compare configurations side by side
685. **Daily ops monitoring** — capture usage metrics, run health checks, and clean up stale resources on a regular schedule
69
70## Examples
71
72```bash
73# Scan a configuration and log the result
74dotfiles scan "nginx.conf updated to v1.25"
75
76# Record a monitoring observation
77dotfiles monitor "CPU at 78% during peak hours"
78
79# Create an alert for high memory usage
80dotfiles alert "Memory usage exceeded 90% threshold"
81
82# Log a fix action after resolving an issue
83dotfiles fix "Rotated /var/log/syslog, freed 2.3GB"
84
85# Export all collected data as JSON for analysis
86dotfiles export json
87
88# Search all logs for entries related to nginx
89dotfiles search nginx
90
91# View recent activity across all commands
92dotfiles recent
93
94# Check overall health and disk usage
95dotfiles status
96
97# Show summary statistics
98dotfiles stats
99```
100
101## Output
102
103All command output goes to stdout. Redirect to a file if needed:
104
105```bash
106dotfiles stats > report.txt
107dotfiles export json
108```
109
110---
111
112*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*