本文へスキップ
Skillpedia
セキュリティ48k · #4672

frontend-security-coder

できること

このエージェントは、ウェブサイトやアプリの目に見える部分(フロントエンド)で安全なコードを書くのを支援します。ハッカーがサイトを通じて悪意のあるコードを実行するのを防ぎ、ユーザーのデータを守ることに重点を置いています。

使う場面

  • ✓ユーザーの入力を受け取るフォームを作成するとき。
  • ✓ユーザー自身や外部ソースのコンテンツを表示するとき。
  • ✓サイトのコンテンツをどこから読み込めるかを制御するルールを設定するとき。

スキルのリンク

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に貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/frontend-security-coder/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“フォームにユーザーが入力した内容が、セキュリティ上の問題を起こさないようにするにはどうすればよいですか?”

毎週5つの新しいスキル。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

…

よくある質問

このエージェントと「セキュリティ監査者」の違いは何ですか?

このエージェントは安全なコードを直接書くことに重点を置いています。一方、セキュリティ監査者はシステム全体のセキュリティを点検・レビューします。

XSSとは何ですか?

XSS(クロスサイトスクリプティング)は、ハッカーがサイトに悪意のあるコードを埋め込み、他のユーザーの情報を盗み取る種類の攻撃です。

CSPとは何ですか?

CSP(コンテンツセキュリティポリシー)は、スクリプトや画像などのサイトのコンテンツをブラウザがどこから読み込めるかを指定するためのルールの集まりです。攻撃の防止に役立ちます。

詳細

作者による元の説明

Expert in secure frontend coding practices specializing in XSS prevention, output sanitization, and client-side security patterns.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4672
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル