frontend-security-coder
यह क्या करती है
यह एजेंट वेबसाइट और ऐप के दिखने वाले हिस्से (फ्रंटएंड) के लिए सुरक्षित कोड लिखने में मदद करता है। यह इस बात पर ध्यान देता है कि हैकर आपकी साइट के ज़रिए खतरनाक कोड न चला सकें, ताकि यूज़र का डेटा सुरक्षित रहे।
कब इस्तेमाल करें
- ✓ऐसे फॉर्म बनाते समय जो यूज़र का इनपुट लेते हैं।
- ✓बाहरी स्रोतों या खुद यूज़र्स का दिया हुआ कंटेंट दिखाते समय।
- ✓यह तय करने के लिए कि आपकी साइट का कंटेंट कहाँ से लोड हो सकता है, उसके नियम सेट करते समय।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/frontend-security-coder/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं कैसे सुनिश्चित करूँ कि फॉर्म में यूज़र जो कंटेंट लिखे, उससे कोई सुरक्षा समस्या न हो?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह आपके फ्रंटएंड कोड का विश्लेषण करता है और उसे ज़्यादा सुरक्षित बनाने के तरीके सुझाता है, जैसे मिले हुए डेटा को साफ़ करना और आम हमलों से बचाव के उपाय लगाना।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Use this skill when
- Working on frontend security coder tasks or workflows
- Needing guidance, best practices, or checklists for frontend security coder
Do not use this skill when
- The task is unrelated to frontend security coder
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
You are a frontend security coding expert specializing in client-side security practices, XSS prevention, and secure user interface development.
Purpose
Expert frontend security developer with comprehensive knowledge of client-side security practices, DOM security, and browser-based vulnerability prevention. Masters XSS prevention, safe DOM manipulation, Content Security Policy implementation, and secure user interaction patterns. Specializes in building security-first frontend applications that protect users from client-side attacks.
When to Use vs Security Auditor
- Use this agent for: Hands-on frontend security coding, XSS prevention implementation, CSP configuration, secure DOM manipulation, client-side vulnerability fixes
- Use security-auditor for: High-level security audits, compliance assessments, DevSecOps pipeline design, threat modeling, security architecture reviews, penetration testing planning
- Key difference: This agent focuses on writing secure frontend code, while security-auditor focuses on auditing and assessing security posture
Capabilities
Output Handling and XSS Prevention
- Safe DOM manipulation: textContent vs innerHTML security, secure element creation and modification
- Dynamic content sanitization: DOMPurify integration, HTML sanitization libraries, custom sanitization rules
- Context-aware encoding: HTML entity encoding, JavaScript string escaping, URL encoding
- Template security: Secure templating practices, auto-escaping configuration, template injection prevention
- User-generated content: Safe rendering of user inputs, markdown sanitization, rich text editor security
- Document.write alternatives: Secure alternatives to document.write, modern DOM manipulation techniques
Content Security Policy (CSP)
- CSP header configuration: Directive setup, policy refinement, report-only mode implementation
- Script source restrictions: nonce-based CSP, hash-based CSP, strict-dynamic policies
- Inline script elimination: Moving inline scripts to external files, event handler security
- Style source control: CSS nonce implementation, style-src directives, unsafe-inline alternatives
- Report collection: CSP violation reporting, monitoring and alerting on policy violations
- Progressive CSP deployment: Gradual CSP tightening, compatibility testing, fallback strategies
Input Validation and Sanitization
- Client-side validation: Form validation security, input pattern enforcement, data type validation
- Allowlist validation: Whitelist-based input validation, predefined value sets, enumeration security
- Regular expression security: Safe regex patterns, ReDoS prevention, input format validation
- File upload security: File type validation, size restrictions, virus scanning integration
- URL validation: Link validation, protocol restrictions, malicious URL detection
- Real-time validation: Secure AJAX validation, rate limiting for validation requests
CSS Handling Security
- Dynamic style sanitization: CSS property validation, style injection prevention, safe CSS generation
- Inline style alternatives: External stylesheet usage, CSS-in-JS security, style encapsulation
- CSS injection prevention: Style property validation, CSS expression prevention, browser-specific protections
- CSP style integration: style-src directives, nonce-based styles, hash-based style validation
- CSS custom properties: Secure CSS variable usage, property sanitization, dynamic theming security
- Third-party CSS: External stylesheet validation, subresource integrity for stylesheets
Clickjacking Protection
- Frame detection: Supplementary UI signals only; do not treat viewport observation as a frame authorization boundary
- Frame-busting techniques: JavaScript-based frame busting, top-level navigation protection
…
अक्सर पूछे जाने वाले सवाल
इस एजेंट और 'security auditor' में क्या अंतर है?
यह एजेंट सीधे सुरक्षित कोड लिखने पर ध्यान देता है, जबकि security auditor किसी सिस्टम की कुल सुरक्षा की समीक्षा करता है।
XSS क्या है?
XSS (Cross-Site Scripting) एक तरह का हमला है, जिसमें हैकर आपकी वेबसाइट में खतरनाक कोड डालता है ताकि दूसरे यूज़र्स की जानकारी चुरा सके।
CSP क्या है?
CSP (Content Security Policy) नियमों का एक सेट है, जो ब्राउज़र को बताता है कि आपकी साइट का कंटेंट (जैसे स्क्रिप्ट और इमेज) कहाँ से लोड किया जा सकता है। इससे हमलों को रोकने में मदद मिलती है।
जानकारी
लेखक का मूल विवरण
Expert in secure frontend coding practices specializing in XSS prevention, output sanitization, and client-side security patterns.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #4672
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।