Agent skill
blackbox
Use when restoring previous file versions, querying file modification history, recovering from accidental edits, or understanding how blackbox flight recorder works for file snapshots and disaster recovery
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/devops/blackbox
SKILL.md
Blackbox Flight Recorder
Zero-dependency telemetry plugin that captures file snapshots before modifications.
What It Captures
- PreToolUse (Write/Edit/MultiEdit) - Snapshots file before modification
- UserPromptSubmit - Logs user prompts
- SessionStart - Logs session boundaries
Scripts
Query Events
python3 scripts/query.py --last 10 # Last 10 events
python3 scripts/query.py --event-type PreToolUse # Filter by type
python3 scripts/query.py --file myfile.py # Filter by file
python3 scripts/query.py --stats # Storage statistics
Restore Files
python3 scripts/restore.py --list # List recent snapshots
python3 scripts/restore.py --search myfile # Find snapshots by pattern
python3 scripts/restore.py --hash <sha1> > restored.py # Restore by hash
Scripts location: skills/blackbox/scripts/
Limitations
- Files >2MB skipped
- Binary files skipped
- No automatic rotation
References
- Data format: See references/schema.md
- Status command: Run
/blackbox:status
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?