跳到正文
cccskills
免费在 GitHub 公开

ls-system-changes-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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Safety, Backup, Temp Files, Firewall

Use this skill as an instruction-only safety gate for destructive operations, system configuration changes, backups, temporary files, and service exposure. It does not ship shell helpers. When automation is added, implement it as Python framework tooling that follows ls/docs/TOOLING_POLICY.md and ls/docs/INPUT_HARDENING_STANDARD.md.

Safety Gate

  • Default posture: Favor data safety, least privilege, and reversible changes over convenience.
  • Classify risk before acting:
    • CRITICAL: Data loss, disk operations, credential exposure, user/group deletion, broad permission changes, recursive deletion, or changes under /usr, /etc, /bin, /sbin, or comparable system paths.
    • HIGH: Firewall changes, system service changes, package removal, privileged installation, or changes that affect every user on the host.
    • MEDIUM: Application-level changes, repo-local generated state, or service restarts with limited blast radius.
    • LOW: Read-only inspection and clearly reversible local edits.
  • Confirm CRITICAL/HIGH work: State the exact command or edit, likely consequences, affected users/services/files, rollback path, and safer manual option. Proceed only after explicit confirmation.
  • Prefer dry runs: Use read-only discovery, --check, --dry-run, --diff, or equivalent modes when a tool supports them.

Backup Workflow

  • Back up first: Before editing sensitive config or persistent state, copy the original to the same directory or a user-approved backup directory using original_filename.YYYYMMDD_HHMMSS.backup.
  • Preserve metadata: Keep ownership, mode, timestamps, and symlink behavior clear. Use platform tools that preserve metadata when that matters.
  • Handle large files deliberately: For files larger than 100 MB, warn about disk impact and ask whether to back up, snapshot, or skip.
  • Verify rollback: Before making the change, confirm the backup exists and describe the restore command or manual restore step.
  • Respect user choice: If the user declines a backup for the current session, state that residual risk before continuing.

Temporary Files

  • Use safe locations: Prefer repo-local ignored temp directories for project work, or the platform temp directory for disposable host work.
  • Use unique names: Include a short task label and timestamp or use the platform's secure temp-file creation API.
  • Clean up promptly: Remove temp files when the operation completes. In Python tooling, use tempfile.TemporaryDirectory() or try/finally for cleanup.
  • Avoid secrets in temp files: If unavoidable, restrict permissions, minimize lifetime, and delete the file before reporting completion.

Firewall And Service Exposure

  • Do not assume a firewall tool: Detect the host policy first. Common controls include UFW, firewalld, nftables, cloud security groups, container network rules, and reverse proxy ACLs.
  • Default scope is narrow: Prefer loopback or LAN-only exposure unless the user explicitly asks for public internet access.
  • Document every rule: Record service name, port, protocol, allowed source range, reason, and rollback command before applying a change.
  • Validate after change: Check the service bind address, active firewall rule, and connectivity from the intended source only.
  • Rollback ready: Keep the exact command or control-plane action needed to remove the rule.

Automation Policy

  • This skill currently provides guidance only; it has no scripts/ directory and no helper library API.
  • Do not invent references to unshipped helpers or missing docs.
  • New helpers must be Python, use explicit argument parsing, reject unsafe command strings, emit actionable stderr on failure, and avoid shell interpolation of untrusted input.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月21日 更新

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月21日 更新

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月21日 更新

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月21日 更新

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月21日 更新

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月21日 更新

查看 CruxExperts 的全部技能

报告此技能的问题