Accidental Data Loss Prevention

作者 gemini-cli-extensions2df10e25bbf7Apache-2.0215 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

**STOP AND VERIFY**: Before running any command or tool that results in irreversible data loss, you MUST obtain explicit user consent. When in doubt, ask. It is better to wait for confirmation than to accidentally delete production data or critical project assets. Use this for: - SQL: DROP TABLE/VIEW/SCHEMA/DATABASE, TRUNCATE, or broad DELETE (missing WHERE or using 1=1). - Cloud Storage: gsutil rm or gcloud storage rm targeting production data or critical buckets. - Infrastructure: gcloud projects delete, deleting Spanner/BigQuery/Dataproc resources, deleting secrets, or KMS key destruction.

僅含說明Security
AI 產生的概覽

在執行可能導致不可逆資料遺失的命令前,要求取得使用者明確同意。

功能
此技能為代理程式在執行破壞性操作前定義了一套強制安全程序。它要求代理程式暫停執行,說明刪除操作的影響與理由,並請求使用者明確批准。它涵蓋 SQL 破壞性陳述式、雲端儲存刪除命令以及基礎架構資源刪除。只有在收到明確肯定同意後,代理程式才會繼續。
適用情境
在執行任何可能不可逆地刪除資料或資源的命令或工具之前使用。適用於 SQL DROP、TRUNCATE 或廣泛的 DELETE 陳述式、針對正式環境資料的雲端儲存刪除,以及刪除雲端基礎架構資源(例如專案、資料庫、密鑰或 KMS 金鑰)。
執行需求
不需要指令碼或工具;這是一個僅包含指示的技能。它依賴代理程式能夠暫停執行並與使用者互動以取得同意。

Accidental Data Loss Prevention

[!CAUTION]

STOP AND VERIFY: Before running any command or tool that results in irreversible data loss, you MUST obtain explicit user consent.

Mandatory Procedure

  1. Halt Execution: Do not execute the command.
  2. Request Consent: Explain clearly to the user:
    • The impact of this deletion.
    • Why you believe this is necessary.
    • A request for their explicit approval to proceed.
  3. Wait: Only proceed if the user provides clear, affirmative consent in the conversation.

來源與署名

來源:gemini-cli-extensions/data-agent-kit-starter-pack位於skills/accidental-data-loss-prevention提交2df10e2

授權條款: Apache-2.0

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 gemini-cli-extensions/data-agent-kit-starter-pack 的技能

Schema Mapping

gemini-cli-extensions

為 ETL、ELT 或資料整合任務規劃來源到目標的結構描述對應,產出文件化的對應宣言。

Data & Analytics215今天更新

Resolving Mcp Region Configs

gemini-cli-extensions

修復區域性 Google Cloud MCP 伺服器設定中未取代的區域佔位符,讓缺少的 MCP 工具得以註冊。

DevOps & Cloud215今天更新

Notebook Guidance

gemini-cli-extensions

This skill guides the use of Jupyter notebooks for data analysis, exploration, and visualization, particularly with BigQuery. It outlines best practices for notebook execution and validation (supporting both cell-by-cell execution and full notebook generation depending on tool availability), library installation, and structuring notebooks for clarity. It also covers specific rules for data cleaning, plotting, and integrating with BigQuery SQL and machine learning workflows. Relevant when any of the following conditions are true: 1. The user request involves a data analysis, data exploration, data visualization, or data insights task that requires multiple steps, queries, or visualizations to answer. 2. The user explicitly requests a notebook (.ipynb). 3. You are creating, editing, or executing cells in a Jupyter notebook. 4. You need to query BigQuery from within a notebook. DO NOT use the Python BigQuery client library; instead, you MUST use the `%%bqsql` magics explained in this skill.

待分類215今天更新

Ml Best Practices

gemini-cli-extensions

為機器學習筆記本提供逐步方案,涵蓋分群、預測、分類、迴歸與模型比較。

Data & Analytics215今天更新

Managing Python Dependencies

gemini-cli-extensions

指導代理偵測 Python 專案的相依性管理器並正確安裝套件,而不是使用全域 pip。

Software Development215今天更新

Google Cloud Storage Fuse

gemini-cli-extensions

Mounts Cloud Storage buckets as a POSIX file system with Cloud Storage FUSE (gcsfuse). Use when you need to interact with gcsfuse — decide whether FUSE, native gs:// reads, or Filestore/Managed Lustre fits a workload, deploy tuned mounts on GKE, Compute Engine, or Cloud Run, enable and size the file, stat, and list caches, tune mount flags or config-file settings, apply workload profiles, keep ML checkpointing safe (rename atomicity, hierarchical namespace, close-time finalization, concurrent writers), or diagnose slow training, low throughput, or GCS bill spikes on existing mounts with gcsfuse metrics. Covers mount semantics, the gcsfuse CLI and config file, the GKE gcsfuse CSI driver (Workload Identity principal:// bindings, profile StorageClasses, sidecar sizing), and Cloud Run volume mounts. Don't use for bucket administration or data management without a mount (google-cloud-storage-basics) or for fully POSIX-compliant shared file systems (Filestore, Managed Lustre).

待分類215今天更新