← 返回 Skills 市场
mindbomber

AANA File Operation Guardrail Skill

作者 mindbomber · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
72
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install aana-file-operation-guardrail
功能描述
Ensures file operations like delete, move, rename, overwrite, or publish are scoped, reversible, authorized, and limited to intended user files only.
使用说明 (SKILL.md)

AANA File Operation Guardrail Skill

Use this skill when an OpenClaw-style agent may delete, move, rename, overwrite, publish, upload, export, transform, or bulk-edit user files.

This is an instruction-only skill. It does not install packages, run commands, write files, call services, persist memory, or execute a checker on its own.

Core Principle

File operations should be scoped, reversible when possible, explicitly authorized, and limited to the files the user actually intended.

The agent should separate:

  • files explicitly named by the user,
  • files discovered by a reviewed search or listing,
  • files that are candidates but not yet approved,
  • files outside the intended workspace or target folder,
  • files that need backup, preview, dry-run, or human approval,
  • files that must not be touched.

When To Use

Use this skill before:

  • deleting files or folders,
  • moving, renaming, or reorganizing files,
  • overwriting existing content,
  • bulk-editing many files,
  • publishing, uploading, exporting, or sharing files,
  • running cleanup operations,
  • changing generated artifacts that may replace user work,
  • applying scripts or formatters across broad paths,
  • modifying files outside the current project workspace.

File Risk Classes

Treat these as higher risk:

  • user-authored source files, papers, notes, decks, spreadsheets, images, videos, and documents,
  • credentials, config, environment, account, billing, payment, legal, health, or personal files,
  • files outside the current workspace,
  • large directories, globbed paths, recursive operations, and bulk edits,
  • published assets, release artifacts, website files, package outputs, and shared folders,
  • operations that are difficult to undo or verify.

AANA File Safety Loop

  1. Identify the intended operation: delete, move, rename, overwrite, publish, upload, export, or bulk edit.
  2. Identify the target set: list exact paths or describe the approved folder boundary.
  3. Check scope: confirm the target paths are inside the intended workspace or explicitly named destination.
  4. Check necessity: remove unrelated files from the target set.
  5. Check reversibility: prefer dry-run, preview, diff, backup, copy, trash, or staged change before irreversible action.
  6. Check authorization: require explicit user approval for destructive, recursive, cross-folder, publish, upload, or broad operations.
  7. Check evidence: do not infer that a file is safe to delete or overwrite without verifying path, ownership, and purpose.
  8. Choose action: accept, revise, ask, defer, refuse, or route to human review.

Required Pre-Flight Checks

Before a risky file operation, verify:

  • the operation type,
  • the exact target path or bounded target folder,
  • whether recursion, globbing, or bulk edits are involved,
  • whether files are generated or user-authored,
  • whether a backup, diff, or dry-run is available,
  • whether the operation crosses project, account, cloud, or shared-folder boundaries,
  • whether the result will be published, uploaded, or shared.

Approval Rules

Ask for explicit user approval before:

  • deleting files or directories,
  • overwriting non-generated files,
  • moving files out of the current workspace,
  • applying recursive or glob-based changes,
  • publishing or uploading files,
  • modifying personal, legal, health, financial, credential, or account files,
  • changing more files than the user named,
  • acting when path resolution or ownership is unclear.

Approval should name the operation and target scope, for example:

I am about to delete 12 generated files under build/cache/. No user-authored files are included. Proceed?

Safer Alternatives

Prefer:

  • preview or dry-run before action,
  • diff before overwrite,
  • copy before move,
  • trash or archive before permanent delete,
  • narrow path lists before broad globs,
  • generated-output folders before source folders,
  • explicit allowlists before recursive edits,
  • separate commit or checkpoint before large changes.

Do Not

  • Delete or overwrite files because they appear unused without evidence.
  • Expand the target scope beyond the user request.
  • Follow broad paths such as a home directory, drive root, cloud root, or repository root unless clearly intended and approved.
  • Publish, upload, or share private files without explicit approval.
  • Store file contents or paths in memory without permission.
  • Treat hidden files, configs, credentials, or dotfiles as safe by default.
  • Continue after discovering unexpected files in the target set.

Review Payload

When using a configured AANA checker, send only a minimal review payload:

  • task_summary
  • operation_type
  • target_scope
  • target_count
  • risk_classes
  • authorization_status
  • reversibility_status
  • scope_status
  • recommended_action

Do not include raw file contents, secrets, private records, or full directory dumps when a path summary is enough.

Decision Rule

  • If scope is narrow, authorized, necessary, and reversible, accept.
  • If the operation is useful but target scope is too broad, revise to a narrower allowlist.
  • If authorization, path ownership, or expected impact is unclear, ask.
  • If the operation needs a dry-run, diff, backup, verified tool, or human review, defer.
  • If the request would destroy, expose, or overwrite unrelated user files, refuse and explain briefly.
  • If a checker is unavailable or untrusted, use manual file-safety review.

Output Pattern

For file-sensitive actions, prefer:

File operation review:
- Operation: ...
- Target scope: ...
- Risk: ...
- Safeguard: dry-run / diff / backup / explicit approval / not needed
- Decision: accept / revise / ask / defer / refuse

Do not include this review block unless useful to the user or needed before taking action.

安全使用建议
This skill appears safe to install as a file-operation review checklist. It should make agents more cautious before deleting, overwriting, moving, publishing, or bulk-editing files, but you should still read any approval prompt carefully and confirm the exact target paths before allowing irreversible actions.
功能分析
Type: OpenClaw Skill Name: aana-file-operation-guardrail Version: 1.0.0 This is an instruction-only skill designed to implement safety guardrails for file operations such as deletion, moving, and overwriting. The SKILL.md and manifest.json files focus entirely on risk mitigation, requiring explicit user approval, path verification, and the use of dry-runs or backups. There is no executable code, no network activity, and the instructions explicitly forbid the handling of sensitive data like credentials or private records.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
The stated purpose is to make risky file operations safer, and the instructions consistently require scoping, reversibility, and explicit approval before destructive, broad, or publishing actions.
Instruction Scope
The skill limits agent behavior rather than expanding it: it tells the agent to ask, defer, revise, or refuse when file scope, ownership, authorization, or reversibility is unclear.
Install Mechanism
There is no install spec, no bundled code, no dependencies, and no command execution. The manifest and README both describe it as instruction-only.
Credentials
The artifacts do not request environment variables, credentials, filesystem inspection, network access, or OS-specific authority. Listed capability signals are not supported by executable artifacts.
Persistence & Privilege
The skill explicitly says it does not persist memory and instructs agents not to store file contents or paths without permission.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aana-file-operation-guardrail
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aana-file-operation-guardrail 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of AANA File Operation Guardrail Skill. - Provides comprehensive guidelines for safe deletion, moving, renaming, overwriting, publishing, uploading, exporting, or bulk-editing of user files. - Focuses on explicit user authorization, reversibility, scoping, and minimizing accidental or unwanted file changes. - Defines risk classes, necessary pre-flight safety checks, and clear approval rules for high-risk operations. - Outlines preferred safer alternatives (e.g., dry-run, backup) and strict do-not guidelines to protect user data integrity. - Supplies an output review pattern for transparent and careful file operation handling.
元数据
Slug aana-file-operation-guardrail
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

AANA File Operation Guardrail Skill 是什么?

Ensures file operations like delete, move, rename, overwrite, or publish are scoped, reversible, authorized, and limited to intended user files only. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 72 次。

如何安装 AANA File Operation Guardrail Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aana-file-operation-guardrail」即可一键安装,无需额外配置。

AANA File Operation Guardrail Skill 是免费的吗?

是的,AANA File Operation Guardrail Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

AANA File Operation Guardrail Skill 支持哪些平台?

AANA File Operation Guardrail Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AANA File Operation Guardrail Skill?

由 mindbomber(@mindbomber)开发并维护,当前版本 v1.0.0。

💬 留言讨论