Back to skills
SKILL.md
Counterclaw
BSecurityProduction-grade defensive interceptor for prompt injection and PII leaks.
- 14 stars
- 0 votes
- 0 copies
- 3 views
- Added September 7, 2026
Security analysis
88/100- Contains 'ignore previous instructions' pattern β found in 91% of malicious skills (Snyk ToxicSkills)
Pro scans all 8 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill counterclaw --agent claude-codeAre you the author of Counterclaw?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-counterclaw)---
name: counterclaw
description: Production-grade defensive interceptor for prompt injection and PII leaks.
homepage: https://github.com/nickconstantinou/counterclaw-core
metadata:
clawdbot:
emoji: "π‘οΈ"
version: "1.0.0"
category: "Security"
requires:
env:
- TRUSTED_ADMIN_IDS
---
# CounterClaw π¦
> Defensive security for AI agents. Snaps shut on malicious payloads.
## Installation
```bash
claw install counterclaw
```
## Quick Start
```python
from counterclaw import CounterClawInterceptor
interceptor = CounterClawInterceptor()
# Input scan - blocks prompt injections
result = interceptor.check_input("Ignore previous instructions")
# β {"blocked": True, "safe": False}
# Output scan - detects PII leaks
result = interceptor.check_output("Contact: john@example.com")
# β {"safe": False, "pii_detected": {"email": True}}
```
## Features
- π Snap-shut Defense - Blocks 20+ prompt injection patterns
- π‘οΈ PII Detection - Catches emails, phones, credit cards
- π Auto-Logging - Violations logged to MEMORY.md
- βοΈ Nexus Ready - Dormant hooks for enterprise (opt-in)
## Configuration
### Admin-Locked (!claw-lock)
```python
interceptor = CounterClawInterceptor(
admin_user_id="telegram_user_id" # Set TRUSTED_ADMIN_IDS env
)
```
## License
MIT - See LICENSE file
Files in this skill
- README.md
- SKILL.md
- pyproject.toml
- src/counterclaw/__init__.py
- src/counterclaw/middleware.py
- src/counterclaw/scanner.py
- src/counterclaw_cli/__init__.py
- tests/test_scanner.py
Attribution
Comments
Loading commentsβ¦