---
title: "sensitive files warning.local"
description: "🔐 **Sensitive file detected**"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/sensitive-files-warning-local
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:46:38.647Z
license: CC-BY-4.0
attribution: "sensitive files warning.local — Claudary (https://claudary.paisolsolutions.com/skills/sensitive-files-warning-local)"
---

# sensitive files warning.local
🔐 **Sensitive file detected**

## Overview

---
name: warn-sensitive-files
enabled: true
event: file
action: warn
conditions:
  - field: file_path
    operator: regex_match
    pattern: \\.env$|\\.env\\.|credentials|secrets
---

🔐 **Sensitive file detected**

You're editing a file that may contain sensitive data:
- Ensure credentials are not hardcoded
- Use environment variables for secrets
- Verify this file is in .gitignore
- Consider using a secrets manager

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/sensitive-files-warning-local) · https://claudary.paisolsolutions.com
