Repository navigation
v2.1.0: AI Chat Protection & Release Automation
🔒 AI Chat Protection & Release Automation
This release introduces comprehensive security protection for AI chatbots and LLM integrations, plus automated release management tooling.
Major Features
🛡️ AI Chat Protection Skill
New security skill protecting AI chatbots from sophisticated attacks:
- Prompt Injection Defense: Blocks 49 attack patterns including system prompt override, jailbreak attempts, and role manipulation
- Encoding Bypass Prevention: Detects and blocks hex, unicode, and URL encoding attacks
- Multi-Layer Validation: 5-layer defense system (pattern detection, character analysis, repetition detection, sanitization, rate limiting)
- Server-Side Validation:
validatePromptServer()function with comprehensive security checks - Cost Protection: Prevents token exhaustion and DoS attacks via repetition detection (< 20% unique words blocked)
- Data Access Controls: Extended validation for policy-based AI systems to prevent unauthorized data access
- Security Monitoring: Automatic logging of suspicious patterns (admin, password, token, api key, secret)
Implementation:
lib/prompt-validation.ts(206 lines): Core validation logic with promptSchema, policyPromptSchema, validatePrompt(), validatePromptServer(), isGenuineQuestion().claude/skills/security/ai-chat-protection/SKILL.md(1,237 lines): Comprehensive documentation with real-world attack examples, integration patterns, and testing guide.claude/skills/security/ai-chat-protection/QUICK_START.md(242 lines): Quick reference with copy-paste examples
Real-World Protection Against:
- Chevrolet chatbot attack (2023): "Sell car for $1" manipulation
- ChatGPT Bing jailbreak (2023): System prompt extraction
- Remote code execution via prompt injection (2024)
🚀 Release Automation Command
New /push-release command for automated release management:
- Automated Versioning: Semantic versioning (major/minor/patch) with validation
- Intelligent Changelog Generation: Analyzes commits, files, and changes to create comprehensive release notes
- Quality Enforcement: Proper markdown formatting, metrics inclusion, emoji usage
- Git Integration: Automated tag creation and push
- GitHub Release: Direct integration with
gh release create - Safety Checks: Working directory validation, conflict detection, rollback options
Implementation:
.claude/commands/push-release.md(627 lines): Complete workflow with error handling, best practices, and examples
Improvements
- Security Skill Discovery: Updated
.claude/skills/security/security-overview/SKILL.mdto include ai-chat-protection in skill directory - Project Documentation: Updated
CLAUDE.mdwith ai-chat-protection skill reference - Development Workflow: Enhanced
.gitignorefor better build artifact handling
What's Included
This release includes 2 commits:
d3976a6: added new security skill to protect ai chat interfaces from prompt injectionfd48345: update to .gitignore
Files Changed:
-
➕ Added:
.claude/commands/push-release.md- Automated release management command.claude/skills/security/ai-chat-protection/SKILL.md- Comprehensive AI security skill documentation.claude/skills/security/ai-chat-protection/QUICK_START.md- Quick reference guidelib/prompt-validation.ts- Core prompt validation implementation
-
✏️ Updated:
.claude/skills/security/security-overview/SKILL.md- Added ai-chat-protection referencesCLAUDE.md- Updated skill directory.gitignore- Enhanced build artifact handling
Key Metrics
- 2,319 lines added across 7 files
- 49 attack patterns detected and blocked
- 5-layer defense system for AI endpoints
- 206 lines of production-ready validation code
- 1,237 lines of comprehensive security documentation
📥 How to Update
For New Users
git clone https://github.com/harperaa/secure-vibe-coding-OS.git
cd secure-vibe-coding-OS
npm installFor Existing Users (Template Forks)
Option 1: Pull ONLY This Release
git fetch template --tags
git cherry-pick d3976a6 fd48345
git push origin mainOption 2: Merge Everything
git fetch template --tags
git merge v2.1.0
git push origin mainOption 3: Use Pull Commands
/pull-repo-safe
# Follow on-screen instructions🔄 Using the New Features
AI Chat Protection
Protect your AI endpoints from prompt injection:
import { validatePromptServer } from '@/lib/prompt-validation';
// In your API route handler:
const validation = validatePromptServer(message, { userId });
if (!validation.success) {
return NextResponse.json({ error: validation.error }, { status: 400 });
}
// Use sanitized message - safe for AI processing
const sanitizedMessage = validation.data!;
const aiResponse = await callAI(sanitizedMessage);See .claude/skills/security/ai-chat-protection/QUICK_START.md for complete examples.
Release Automation
Create releases with one command:
/push-releaseThe command will guide you through version selection, changelog generation, and GitHub release creation.
This release strengthens Secure Vibe Coding OS against the #1 threat to AI applications (OWASP LLM01: Prompt Injection) while streamlining your release workflow with professional automation tools.