← Back to list

security-validation
by yldgio
Vibe Coding training sample creator: declarative AI-agent driven prompts and instructions for multi-level coding exercises.
⭐ 0🍴 0📅 Jan 8, 2026
SKILL.md
name: security-validation description: Comprehensive security validation for password generator applications. Use when auditing, implementing, or reviewing security measures for password handling and generation. license: MIT
Security Validation for Password Generators
When to Use
Use this skill for comprehensive security audits, implementing security measures, or reviewing code for security vulnerabilities in password generation applications.
Security Audit Process
1. Randomness Audit
Verify cryptographically secure random number generation:
- ✅ Use
crypto.getRandomValues()(Web) orcrypto.randomBytes()(Node.js) - ❌ Never use
Math.random()- it's predictable
2. Memory Security
- Clear passwords from memory after use
- Avoid storing in global/window scope
- Don't persist passwords to localStorage/sessionStorage
3. XSS Prevention
- Escape all user inputs before display
- Use textContent instead of innerHTML for password display
- Implement Content Security Policy
4. Dependency Audit
npm audit
npm audit fix
Security Checklist
See the security checklist for a complete validation list.
Automated Validation
# Check for insecure random usage
grep -rn "Math.random" src/
# Check for console.log with passwords
grep -rn "console.log.*password" src/
# Check for innerHTML usage
grep -rn "innerHTML" src/
# Run security audit
npm audit --audit-level=moderate
Reporting
Document any security findings with:
- Severity (Critical/High/Medium/Low)
- Location (file and line number)
- Description of vulnerability
- Recommended fix
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon