@smartsoft001/claude-plugins 2.113.0 → 2.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugins/smart/.claude-plugin/README.md +65 -47
- package/plugins/smart/.claude-plugin/merge-permissions.js +33 -12
- package/plugins/smart/.claude-plugin/plugin.json +1 -1
- package/plugins/smart/.claude-plugin/settings.template.json +2 -2
- package/plugins/smart/agents/angular-components/AGENT.md +55 -0
- package/plugins/smart/hooks/CONFIG.md +44 -74
- package/plugins/smart/hooks/README.md +45 -45
- package/plugins/smart/hooks/auto_format.sh +11 -0
- package/plugins/smart/hooks/hooks.json +79 -0
- package/plugins/smart/hooks/sensitive_file_blocker.py +58 -0
- package/plugins/smart/skills/angular-components-button/SKILL.md +109 -0
- package/plugins/smart/skills/audit-log/SKILL.md +82 -0
- package/plugins/smart/skills/format-code/SKILL.md +46 -0
- package/plugins/smart/skills/project-conventions/SKILL.md +90 -0
- package/plugins/smart/skills/safety-check/SKILL.md +76 -0
- package/plugins/smart/audit_logs/20260308_audit.jsonl +0 -190
- package/plugins/smart/audit_logs/20260309_audit.jsonl +0 -476
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: safety-check
|
|
3
|
+
description: Safety validation rules for blocking destructive operations
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Safety Check
|
|
8
|
+
|
|
9
|
+
Background skill that provides safety validation knowledge. Claude uses these rules automatically when evaluating tool calls.
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
Prevent destructive operations from executing by defining blocked patterns for bash commands, file operations, and sensitive file access.
|
|
14
|
+
|
|
15
|
+
## Blocked Bash Patterns
|
|
16
|
+
|
|
17
|
+
The following command patterns are blocked when detected in Bash tool calls:
|
|
18
|
+
|
|
19
|
+
### Recursive Deletion
|
|
20
|
+
|
|
21
|
+
- `rm -rf /` — recursive delete root filesystem
|
|
22
|
+
- `rm -rf /*` — recursive delete root contents
|
|
23
|
+
- `rm -rf ~` — recursive delete home directory
|
|
24
|
+
- `rm -rf $HOME` — recursive delete home directory
|
|
25
|
+
- `rm -rf *` — recursive delete all files
|
|
26
|
+
- Covers variations: `-rf`, `-r -f`, `--recursive --force`, `-fr`, etc.
|
|
27
|
+
|
|
28
|
+
### Disk Operations
|
|
29
|
+
|
|
30
|
+
- `dd if=/dev/zero of=/dev/...` — disk wiping
|
|
31
|
+
- `dd of=/dev/...` — writing to raw devices
|
|
32
|
+
- `> /dev/sda` — overwrite disk via redirect
|
|
33
|
+
- `mkfs.*` — formatting filesystems
|
|
34
|
+
|
|
35
|
+
### System Attacks
|
|
36
|
+
|
|
37
|
+
- `:(){ :|:& };:` — fork bomb
|
|
38
|
+
|
|
39
|
+
### Sensitive File Access via Bash
|
|
40
|
+
|
|
41
|
+
Commands like `cat`, `head`, `tail`, `cp` targeting:
|
|
42
|
+
|
|
43
|
+
- `.env` files
|
|
44
|
+
- `.secret` files
|
|
45
|
+
- `id_rsa`, `id_ed25519` SSH keys
|
|
46
|
+
- `.pem` certificate files
|
|
47
|
+
- `credentials` files
|
|
48
|
+
|
|
49
|
+
## Sensitive File Patterns
|
|
50
|
+
|
|
51
|
+
Direct file access (Read/Write/Edit tools) is blocked for paths containing:
|
|
52
|
+
|
|
53
|
+
| Pattern | Description |
|
|
54
|
+
| ------------- | -------------------------- |
|
|
55
|
+
| `.env` | Environment variable files |
|
|
56
|
+
| `.secret` | Secret configuration files |
|
|
57
|
+
| `id_rsa` | RSA SSH private keys |
|
|
58
|
+
| `id_ed25519` | Ed25519 SSH private keys |
|
|
59
|
+
| `id_ecdsa` | ECDSA SSH private keys |
|
|
60
|
+
| `.pem` | Certificate/key files |
|
|
61
|
+
| `credentials` | Credential files |
|
|
62
|
+
|
|
63
|
+
## Exception: `.example` Files
|
|
64
|
+
|
|
65
|
+
Files ending with `.example` are **always allowed**. These are safe template files without actual secrets:
|
|
66
|
+
|
|
67
|
+
- `.env.example` — safe to read for structure reference
|
|
68
|
+
- `.secret.example` — safe to read for structure reference
|
|
69
|
+
|
|
70
|
+
## When to Use
|
|
71
|
+
|
|
72
|
+
This skill is applied automatically. Claude should be aware of these safety rules when:
|
|
73
|
+
|
|
74
|
+
- Executing bash commands
|
|
75
|
+
- Reading, writing, or editing files
|
|
76
|
+
- Suggesting commands to users
|