一键导入
safety
Prevents destructive operations by requiring confirmation and verification before executing risky commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Prevents destructive operations by requiring confirmation and verification before executing risky commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
fraudctl-specific patterns including KNN vector search optimization, 14D vectorization, zero-allocation patterns, and performance best practices for high-throughput fraud detection APIs.
Go performance profiling patterns using pprof, benchmarks, and optimization strategies for identifying and fixing performance bottlenecks.
Configure automated git hooks using lefthook with Go project best practices including linting, testing, and coverage requirements.
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.
| name | safety |
| description | Prevents destructive operations by requiring confirmation and verification before executing risky commands. |
| origin | fraudctl-project |
This skill prevents data loss by requiring verification before destructive operations.
rm -rf commandgit reset --hard)# BAD - This deletes without warning
rm -rf some_directory
# GOOD - This asks for confirmation first
# Analyze what will be deleted first, then ask user
ls -la some_directory # Verify contents
# Then ask: "Are you sure you want to delete some_directory?"
# Step 1: List what will be deleted
ls -la path/to/directory
# Step 2: Verify contents
# - Check for important files (git history, node_modules, etc.)
# - Check for backups
# - Check for configuration files
# Step 3: Ask for confirmation
# If uncertain, ask the user: "This will permanently delete [files]. Continue?"
# SAFE - Use -i flag for interactive deletion
rm -ri directory/
# SAFE - Use find with -ls first to preview
find directory/ -type f -ls
# SAFE - Move to trash instead of delete
mv directory/ ~/.trash/
# SAFE - Use git to check what's tracked
git ls-files directory/
| Command | Risk | Action |
|---|---|---|
rm -rf | Permanent deletion | List + Ask |
git reset --hard | Lose uncommitted changes | Show status first |
git clean -fd | Delete untracked files | List first |
dd if= of= | Overwrite files | Verify twice |
> file | Truncate file | Ask before |
Always check:
.gitignore?# Check git status first
git status directory/
# Check if tracked
git ls-files directory/
# Check size
du -sh directory/
Rule: When in doubt, ASK. Never delete something you can't recover.
Before rm -rf:
ls -la to see what's thereAfter accidental deletion:
git status may show recoverable files