Agent skill
localsetup-safety-and-backup
Security and safety (conservative), backup management, temporary file management, firewall management. Use for destructive ops, system config changes, backups, temp files, or when adding services.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/localsetup-safety-and-backup
Metadata
Additional technical details for this skill
- version
- 1.1
SKILL.md
Safety, backup, temp files, firewall
10. Security and safety (conservative)
- Conservative approach: Prioritize security and data safety over automation convenience.
- Risk categories: CRITICAL (data loss), HIGH (system-wide), MEDIUM (application), LOW (read-only). CRITICAL/HIGH require explicit second confirmation.
- Warning requirements: Simple language, list consequences, explain who/what affected. Provide options: Execute / Show manual steps / Cancel.
- Dangerous operations: Recursive deletes, permission changes, firewall changes, system service changes, package removal, disk operations, user/group deletion, operations on /usr, /etc, /bin (or Windows equivalents).
- Use: Source
lib/safety_checker.shand usesafe_execute_with_confirmationfor system commands.
11. Backup management
- Default: Create backups before modifying sensitive system config files. Naming:
original_filename.YYYYMMDD_HHMMSS.backup. Location: same directory as original; hidden/read-only. - Large files (>100MB): Warn and ask about backup routine; user can skip.
- User control: User can decline backups for session; respect preference.
- Use: Source
lib/backup_manager.shand usecreate_file_backupbefore editing. Restore:restore_from_backup <original_file>.
9. Temporary file management
- Platform: Linux /tmp; macOS /tmp or $TMPDIR; Windows %TEMP% or %TMP%.
- Cleanup: Clean up immediately; use trap (Bash) or try/finally (PowerShell). Repo-local temp: under _localsetup/ or repo temp dir when v2 repo-local.
- Naming: Framework naming + descriptive name + timestamp. Use mktemp or New-TemporaryFile.
5a. Firewall management (for services)
- When adding new services: Configure firewall rules. Use
source lib/firewall_manager.sh && configure_firewall_rule "ServiceName" "PORT" "tcp" "lan". Default scope "lan". Validate withvalidate_firewall_rule. See FIREWALL_MANAGEMENT.md.
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?