[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E2YCMYSEF19B5CKMZYN58T":3,"skill-same:01M6E2YCMYSEF19B5CKMZYN58T":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6E2YCMYSEF19B5CKMZYN58T","appsec-expert",null,"Expert-level application security. Use when identifying security vulnerabilities, implementing input validation, preventing XSS\u002FCSRF\u002FSQLi\u002FSSRF, securing APIs, implementing secure coding practices, or performing threat modeling. Also use when the user mentions 'OWASP', 'XSS', 'CSRF', 'SQL injection', 'security vulnerability', 'threat model', 'penetration testing', 'CVE', or 'security audit'.","luokai0\u002Fai-agent-skills-by-luo-kai","luokai0","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266954973?v=4","01M6E16VNT42JB8B3X3254QWJ7","luo kai","01M6E16VTFVP6S5XJF1V1MPV90",14,"MIT","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F06-security-and-auth (by Luo Kai)\u002F02-application-security\u002Fappsec-expert\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"appsec expert","expert","AppSec","xss","input","modeling","model","vulnerability","security audit","csrf","testing","sqli","injection","owasp","audit","threat model","secure","sql","security","application security","2026-11-10 10:12:30",false,"---\nauthor: luo-kai\nname: appsec-expert\ndescription: Expert-level application security. Use when identifying security vulnerabilities, implementing input validation, preventing XSS\u002FCSRF\u002FSQLi\u002FSSRF, securing APIs, implementing secure coding practices, or performing threat modeling. Also use when the user mentions 'OWASP', 'XSS', 'CSRF', 'SQL injection', 'security vulnerability', 'threat model', 'penetration testing', 'CVE', or 'security audit'.\nlicense: MIT\nmetadata:\n  author: luokai0\n  version: \"1.0\"\n  category: coding\n---\n\n# Application Security Expert\n\nYou are an expert in application security with deep knowledge of the OWASP Top 10, secure coding practices, threat modeling, and defensive programming patterns.\n\n## Before Starting\n\n1. **Tech stack** — language, framework, database?\n2. **Problem type** — vulnerability fix, security review, threat model, secure feature design?\n3. **Environment** — web app, API, mobile backend, microservices?\n4. **Compliance** — PCI-DSS, HIPAA, SOC2, GDPR requirements?\n5. **Severity** — is this a live vulnerability or proactive hardening?\n\n---\n\n## Core Expertise Areas\n\n- **OWASP Top 10**: injection, broken auth, XSS, IDOR, security misconfig, vulnerable components\n- **Input validation**: allowlists, parameterized queries, output encoding, sanitization\n- **Authentication security**: password hashing, MFA, session management, JWT security\n- **Authorization**: RBAC, ABAC, IDOR prevention, least privilege\n- **API security**: rate limiting, input validation, authentication, CORS, mass assignment\n- **Cryptography**: encryption at rest\u002Ftransit, hashing, key management\n- **Dependency security**: CVE scanning, SCA, supply chain attacks\n- **Threat modeling**: STRIDE, attack surface analysis, data flow diagrams\n\n---\n\n## Key Patterns & Code\n\n### OWASP Top 10 — Quick Reference\n```\nA01 Broken Access Control    → IDOR, privilege escalation, missing auth checks\nA02 Cryptographic Failures   → Weak crypto, unencrypted sensitive data, MD5\u002FSHA1\nA03 Injection                → SQL, NoSQL, LDAP, OS command injection\nA04 Insecure Design          → Missing threat model, insecure design patterns\nA05 Security Misconfiguration → Default creds, verbose errors, open cloud storage\nA06 Vulnerable Components    → Outdated deps with known CVEs\nA07 Auth Failures            → Weak passwords, no MFA, broken session management\nA08 Software Integrity       → Unsigned code, malicious dependencies\nA09 Logging Failures         → No audit logs, logging sensitive data\nA10 SSRF                     → Fetching attacker-controlled URLs\n```\n\n### SQL Injection Prevention\n```javascript\n\u002F\u002F NEVER do this — vulnerable to SQL injection\nconst query = `SELECT * FROM users WHERE email = '${email}'`;\n\n\u002F\u002F ALWAYS use parameterized queries\n\u002F\u002F Node.js with pg\nconst result = await pool.query(\n  'SELECT * FROM users WHERE email = $1 AND active = $2',\n  [email, true]\n);\n\n\u002F\u002F Node.js with mysql2\nconst [rows] = await connection.execute(\n  'SELECT * FROM users WHERE email = ? AND active = ?',\n  [email, true]\n);\n\n\u002F\u002F Python with psycopg2\ncursor.execute(\n  'SELECT * FROM users WHERE email = %s AND active = %s',\n  (email, True)\n)\n\n\u002F\u002F Python with SQLAlchemy ORM (safe by default)\nuser = db.query(User).filter(\n  User.email == email,\n  User.active == True\n).first()\n\n\u002F\u002F If you MUST use dynamic table\u002Fcolumn names (rare)\n\u002F\u002F Use an allowlist — never interpolate user input directly\nconst ALLOWED_COLUMNS = new Set(['name', 'email', 'created_at']);\nconst ALLOWED_ORDERS  = new Set(['ASC', 'DESC']);\n\nfunction buildQuery(sortColumn, sortOrder) {\n  if (!ALLOWED_COLUMNS.has(sortColumn)) throw new Error('Invalid column');\n  if (!ALLOWED_ORDERS.has(sortOrder.toUpperCase())) throw new Error('Invalid order');\n  return `SELECT * FROM users ORDER BY ${sortColumn} ${sortOrder}`;\n}\n```\n\n### XSS Prevention\n```javascript\n\u002F\u002F ── Stored\u002FReflected XSS ──────────────────────────────────────────────────\n\n\u002F\u002F NEVER insert user data directly into HTML\nelement.innerHTML = userInput;                   \u002F\u002F vulnerable\ndocument.write(userInput);                       \u002F\u002F vulnerable\n\n\u002F\u002F ALWAYS use safe DOM methods\nelement.textContent = userInput;                 \u002F\u002F safe — escapes HTML\nelement.setAttribute('data-value', userInput);  \u002F\u002F safe for attributes\n\n\u002F\u002F In React — safe by default, but watch out for dangerouslySetInnerHTML\n\u002F\u002F Safe:\n\u003Cdiv>{userInput}\u003C\u002Fdiv>\n\n\u002F\u002F Dangerous — only use with sanitized content:\n\u003Cdiv dangerouslySetInnerHTML={{ __html: sanitizedHtml }} \u002F>\n\n\u002F\u002F If you must render HTML, use DOMPurify to sanitize first\nimport DOMPurify from 'dompurify';\nconst clean = DOMPurify.sanitize(userInput, {\n  ALLOWED_TAGS: ['b', 'i', 'em', 'strong', 'a'],\n  ALLOWED_ATTR: ['href'],\n});\nelement.innerHTML = clean;\n\n\u002F\u002F ── DOM XSS ───────────────────────────────────────────────────────────────\n\u002F\u002F Never use location.hash or URL params directly in innerHTML\nconst params = new URLSearchParams(window.location.search);\nconst name = params.get('name');\n\u002F\u002F Safe:\ndocument.getElementById('greeting').textContent = `Hello, ${name}`;\n\u002F\u002F Dangerous:\ndocument.getElementById('greeting').innerHTML = `Hello, ${name}`;\n\n\u002F\u002F ── Content Security Policy (defense in depth) ────────────────────────────\n\u002F\u002F Add to every response:\n\u002F\u002F Content-Security-Policy: default-src 'self'; script-src 'self' 'nonce-{random}';\n```\n\n### CSRF Prevention\n```javascript\n\u002F\u002F ── CSRF Token (traditional forms) ───────────────────────────────────────\nimport crypto from 'crypto';\n\n\u002F\u002F Generate and store token in session\nfunction generateCSRFToken(session) {\n  const token = crypto.randomBytes(32).toString('hex');\n  session.csrfToken = token;\n  return token;\n}\n\n\u002F\u002F Validate on every state-changing request\nfunction validateCSRFToken(req, res, next) {\n  if (['GET', 'HEAD', 'OPTIONS'].includes(req.method)) {\n    return next(); \u002F\u002F safe methods don't need CSRF protection\n  }\n\n  const token = req.headers['x-csrf-token'] ?? req.body._csrf;\n  const sessionToken = req.session?.csrfToken;\n\n  if (!token || !sessionToken || !crypto.timingSafeEqual(\n    Buffer.from(token),\n    Buffer.from(sessionToken)\n  )) {\n    return res.status(403).json({ error: 'Invalid CSRF token' });\n  }\n  next();\n}\n\n\u002F\u002F ── SameSite Cookie (modern defense) ─────────────────────────────────────\n\u002F\u002F Set cookies with SameSite=Strict or SameSite=Lax\nres.cookie('session', sessionId, {\n  httpOnly: true,     \u002F\u002F not accessible via JavaScript\n  secure: true,       \u002F\u002F HTTPS only\n  sameSite: 'strict', \u002F\u002F never sent in cross-site requests\n  maxAge: 24 * 60 * 60 * 1000,\n});\n\n\u002F\u002F ── CORS Configuration ────────────────────────────────────────────────────\n\u002F\u002F Be explicit — never use wildcard with credentials\napp.use(cors({\n  origin: ['https:\u002F\u002Fapp.example.com', 'https:\u002F\u002Fadmin.example.com'],\n  methods: ['GET', 'POST', 'PUT', 'DELETE'],\n  allowedHeaders: ['Content-Type', 'Authorization'],\n  credentials: true,  \u002F\u002F allow cookies\n  maxAge: 86400,      \u002F\u002F preflight cache for 24h\n}));\n```\n\n### IDOR Prevention (Broken Access Control)\n```javascript\n\u002F\u002F ── Insecure Direct Object Reference ──────────────────────────────────────\n\n\u002F\u002F VULNERABLE — no ownership check\napp.get('\u002Fapi\u002Fdocuments\u002F:id', async (req, res) => {\n  const doc = await db.document.findById(req.params.id);\n  return res.json(doc); \u002F\u002F any user can read any document!\n});\n\n\u002F\u002F SECURE — always verify ownership\napp.get('\u002Fapi\u002Fdocuments\u002F:id', authenticate, async (req, res) => {\n  const doc = await db.document.findOne({\n    where: {\n      id: req.params.id,\n      ownerId: req.user.id,  \u002F\u002F ensure user owns this document\n    }\n  });\n\n  if (!doc) {\n    \u002F\u002F Return 404 not 403 — don't leak existence of resources\n    return res.status(404).json({ error: 'Document not found' });\n  }\n\n  return res.json(doc);\n});\n\n\u002F\u002F ── Authorization middleware ──────────────────────────────────────────────\nfunction requireOwnership(Model) {\n  return async (req, res, next) => {\n    const resource = await Model.findOne({\n      where: { id: req.params.id, userId: req.user.id }\n    });\n\n    if (!resource) return res.status(404).json({ error: 'Not found' });\n\n    req.resource = resource;\n    next();\n  };\n}\n\napp.put('\u002Fapi\u002Fposts\u002F:id',\n  authenticate,\n  requireOwnership(Post),\n  async (req, res) => {\n    await req.resource.update(req.body);\n    res.json(req.resource);\n  }\n);\n\n\u002F\u002F ── RBAC ─────────────────────────────────────────────────────────────────\nfunction requireRole(...roles) {\n  return (req, res, next) => {\n    if (!roles.includes(req.user.role)) {\n      return res.status(403).json({ error: 'Insufficient permissions' });\n    }\n    next();\n  };\n}\n\napp.delete('\u002Fapi\u002Fusers\u002F:id',\n  authenticate,\n  requireRole('admin', 'superadmin'),\n  deleteUserHandler\n);\n```\n\n### Input Validation with Zod\n```typescript\nimport { z } from 'zod';\n\n\u002F\u002F Define strict schemas for all inputs\nconst CreateUserSchema = z.object({\n  name: z.string()\n    .min(1, 'Name is required')\n    .max(100, 'Name too long')\n    .regex(\u002F^[a-zA-Z\\s'-]+$\u002F, 'Name contains invalid characters'),\n\n  email: z.string()\n    .email('Invalid email format')\n    .max(255)\n    .toLowerCase(),\n\n  age: z.number()\n    .int()\n    .min(13, 'Must be at least 13')\n    .max(120),\n\n  website: z.string()\n    .url()\n    .startsWith('https:\u002F\u002F', 'Must use HTTPS')\n    .optional(),\n\n  role: z.enum(['user', 'moderator']),  \u002F\u002F allowlist for role\n\n  \u002F\u002F Never accept HTML in plain text fields\n  bio: z.string()\n    .max(500)\n    .transform(val => val.trim()),\n});\n\n\u002F\u002F Validate middleware\nfunction validate(schema) {\n  return (req, res, next) => {\n    const result = schema.safeParse(req.body);\n    if (!result.success) {\n      return res.status(422).json({\n        error: 'Validation failed',\n        details: result.error.flatten().fieldErrors,\n      });\n    }\n    req.validatedBody = result.data;\n    next();\n  };\n}\n\napp.post('\u002Fapi\u002Fusers',\n  validate(CreateUserSchema),\n  createUserHandler\n);\n```\n\n### SSRF Prevention\n```javascript\nimport dns from 'dns\u002Fpromises';\nimport net from 'net';\n\n\u002F\u002F Block list of private\u002Finternal IP ranges\nfunction isPrivateIP(ip) {\n  const privateRanges = [\n    \u002F^127\\.\u002F,           \u002F\u002F loopback\n    \u002F^10\\.\u002F,            \u002F\u002F RFC1918\n    \u002F^172\\.(1[6-9]|2[0-9]|3[01])\\.\u002F,  \u002F\u002F RFC1918\n    \u002F^192\\.168\\.\u002F,      \u002F\u002F RFC1918\n    \u002F^169\\.254\\.\u002F,      \u002F\u002F link-local\n    \u002F^::1$\u002F,            \u002F\u002F IPv6 loopback\n    \u002F^fc00:\u002F,           \u002F\u002F IPv6 private\n    \u002F^fe80:\u002F,           \u002F\u002F IPv6 link-local\n  ];\n  return privateRanges.some(range => range.test(ip));\n}\n\nasync function safeURL(urlString) {\n  let url;\n  try {\n    url = new URL(urlString);\n  } catch {\n    throw new Error('Invalid URL format');\n  }\n\n  \u002F\u002F Allowlist protocols\n  if (!['http:', 'https:'].includes(url.protocol)) {\n    throw new Error('Only HTTP\u002FHTTPS allowed');\n  }\n\n  \u002F\u002F Allowlist domains (preferred approach)\n  const ALLOWED_DOMAINS = new Set(['api.github.com', 'api.example.com']);\n  if (!ALLOWED_DOMAINS.has(url.hostname)) {\n    throw new Error('Domain not allowed');\n  }\n\n  \u002F\u002F Resolve DNS and check if it resolves to private IP\n  const addresses = await dns.resolve(url.hostname);\n  for (const addr of addresses) {\n    if (isPrivateIP(addr)) {\n      throw new Error('Request to private network not allowed');\n    }\n  }\n\n  return url;\n}\n\n\u002F\u002F Usage\napp.post('\u002Fapi\u002Fwebhook-test', async (req, res) => {\n  const url = await safeURL(req.body.webhookUrl);\n  const response = await fetch(url.toString());\n  res.json({ status: response.status });\n});\n```\n\n### Password Security\n```javascript\nimport argon2 from 'argon2';\nimport crypto from 'crypto';\n\n\u002F\u002F Hash password with argon2id (best current choice)\nasync function hashPassword(password) {\n  return argon2.hash(password, {\n    type: argon2.argon2id,\n    memoryCost: 65536,  \u002F\u002F 64MB\n    timeCost: 3,        \u002F\u002F 3 iterations\n    parallelism: 4,     \u002F\u002F 4 threads\n  });\n}\n\n\u002F\u002F Verify password\nasync function verifyPassword(hash, password) {\n  return argon2.verify(hash, password);\n}\n\n\u002F\u002F Password policy validation\nfunction validatePassword(password) {\n  const errors = [];\n  if (password.length \u003C 12) errors.push('At least 12 characters required');\n  if (!\u002F[A-Z]\u002F.test(password)) errors.push('At least one uppercase letter required');\n  if (!\u002F[a-z]\u002F.test(password)) errors.push('At least one lowercase letter required');\n  if (!\u002F[0-9]\u002F.test(password)) errors.push('At least one number required');\n  if (!\u002F[^A-Za-z0-9]\u002F.test(password)) errors.push('At least one special character required');\n\n  \u002F\u002F Check against common password list\n  if (COMMON_PASSWORDS.has(password.toLowerCase())) {\n    errors.push('Password is too common');\n  }\n\n  return errors;\n}\n\n\u002F\u002F Secure token generation (for password reset, email verification)\nfunction generateSecureToken(bytes = 32) {\n  return crypto.randomBytes(bytes).toString('hex');\n}\n\n\u002F\u002F Rate limit password attempts\nconst loginAttempts = new Map();\n\nfunction checkRateLimit(identifier) {\n  const now = Date.now();\n  const attempts = loginAttempts.get(identifier) ?? [];\n  const recentAttempts = attempts.filter(t => now - t \u003C 15 * 60 * 1000);\n\n  if (recentAttempts.length >= 5) {\n    throw new Error('Too many login attempts. Try again in 15 minutes.');\n  }\n\n  loginAttempts.set(identifier, [...recentAttempts, now]);\n}\n```\n\n### Security Headers Middleware\n```javascript\n\u002F\u002F Apply to every response\napp.use((req, res, next) => {\n  \u002F\u002F Prevent clickjacking\n  res.setHeader('X-Frame-Options', 'DENY');\n\n  \u002F\u002F Prevent MIME sniffing\n  res.setHeader('X-Content-Type-Options', 'nosniff');\n\n  \u002F\u002F Enable XSS filter in older browsers\n  res.setHeader('X-XSS-Protection', '1; mode=block');\n\n  \u002F\u002F HSTS — force HTTPS for 1 year\n  res.setHeader(\n    'Strict-Transport-Security',\n    'max-age=31536000; includeSubDomains; preload'\n  );\n\n  \u002F\u002F Control referrer information\n  res.setHeader('Referrer-Policy', 'strict-origin-when-cross-origin');\n\n  \u002F\u002F Restrict browser features\n  res.setHeader(\n    'Permissions-Policy',\n    'camera=(), microphone=(), geolocation=(), payment=()'\n  );\n\n  \u002F\u002F Content Security Policy\n  const nonce = crypto.randomBytes(16).toString('base64');\n  res.locals.nonce = nonce;\n  res.setHeader(\n    'Content-Security-Policy',\n    [\n      \"default-src 'self'\",\n      `script-src 'self' 'nonce-${nonce}'`,\n      \"style-src 'self' 'unsafe-inline'\",\n      \"img-src 'self' data: https:\",\n      \"font-src 'self'\",\n      \"connect-src 'self' https:\u002F\u002Fapi.example.com\",\n      \"frame-ancestors 'none'\",\n      \"base-uri 'self'\",\n      \"form-action 'self'\",\n    ].join('; ')\n  );\n\n  next();\n});\n```\n\n### Threat Modeling — STRIDE\n```\nS — Spoofing         → Can attacker impersonate another user?\nT — Tampering        → Can attacker modify data in transit or at rest?\nR — Repudiation      → Can user deny performing an action?\nI — Information Disclosure → Can attacker access data they should not?\nD — Denial of Service → Can attacker make service unavailable?\nE — Elevation of Privilege → Can attacker gain more permissions than allowed?\n\nThreat Modeling Steps:\n1. Define scope — what are we protecting?\n2. Draw data flow diagram — where does data go?\n3. Identify trust boundaries — where does data cross security boundaries?\n4. Apply STRIDE to each component and data flow\n5. Rate risk — likelihood × impact\n6. Define mitigations\n7. Verify mitigations are implemented\n\nQuestions to ask:\n  - What happens if user X can access resource Y?\n  - What happens if this request is replayed?\n  - What happens if this field is empty\u002Fnull\u002Fmax length?\n  - What happens if this network call fails?\n  - What sensitive data is logged?\n  - What happens if the database is read by an attacker?\n```\n\n---\n\n## Best Practices\n\n- Validate ALL input on the server side — client-side validation is UX only\n- Use parameterized queries for ALL database queries — no exceptions\n- Hash passwords with argon2id, bcrypt, or scrypt — never MD5 or SHA1\n- Apply principle of least privilege — minimize access at every layer\n- Return 404 not 403 for IDOR — do not leak existence of resources\n- Never log sensitive data — passwords, tokens, PII, credit cards\n- Keep dependencies updated — run Snyk or Dependabot on every PR\n- Use HTTPS everywhere — no exceptions in production\n- Apply security headers on every response\n\n---\n\n## Common Pitfalls\n\n| Pitfall | Problem | Fix |\n|---|---|---|\n| String interpolation in SQL | SQL injection | Always use parameterized queries |\n| innerHTML with user data | XSS vulnerability | Use textContent or DOMPurify |\n| No ownership check on resources | IDOR — users access each others data | Always filter by authenticated user ID |\n| Returning 403 for IDOR | Leaks existence of resource | Return 404 for unauthorized resource access |\n| Logging sensitive data | PII\u002Fsecrets in log files | Audit what is logged, mask sensitive fields |\n| Weak password hashing (MD5\u002FSHA1) | Passwords cracked in seconds | Use argon2id with proper parameters |\n| Wildcard CORS with credentials | Cross-origin attacks | Use explicit origin allowlist |\n| No rate limiting on auth | Brute force attacks | Rate limit login, password reset, OTP endpoints |\n\n---\n\n## Related Skills\n\n- **auth-expert**: For OAuth2, JWT, and session security\n- **cryptography-expert**: For encryption and hashing implementation\n- **devsecops-expert**: For integrating security into CI\u002FCD\n- **api-design-expert**: For secure API design patterns\n- **nginx-expert**: For security headers and rate limiting\n- **secrets-management**: For secure handling of credentials\n","# Application Security Expert\n\nYou are an expert in application security with deep knowledge of the OWASP Top 10, secure coding practices, threat modeling, and defensive programming patterns.\n\n## Before Starting\n\n1. **Tech stack** — language, framework, database?\n2. **Problem type** — vulnerability fix, security review, threat model, secure feature design?\n3. **Environment** — web app, API, mobile backend, microservices?\n4. **Compliance** — PCI-DSS, HIPAA, SOC2, GDPR requirements?\n5. **Severity** — is this a live vulnerability or proactive hardening?\n\n---\n\n## Core Expertise Areas\n\n- **OWASP Top 10**: injection, broken auth, XSS, IDOR, security misconfig, vulnerable components\n- **Input validation**: allowlists, parameterized queries, output encoding, sanitization\n- **Authentication security**: password hashing, MFA, session management, JWT security\n- **Authorization**: RBAC, ABAC, IDOR prevention, least privilege\n- **API security**: rate limiting, input validation, authentication, CORS, mass assignment\n- **Cryptography**: encryption at rest\u002Ftransit, hashing, key management\n- **Dependency security**: CVE scanning, SCA, supply chain attacks\n- **Threat modeling**: STRIDE, attack surface analysis, data flow diagrams\n\n---\n\n## Key Patterns & Code\n\n### OWASP Top 10 — Quick Reference\n```\nA01 Broken Access Control    → IDOR, privilege escalation, missing auth checks\nA02 Cryptographic Failures   → Weak crypto, unencrypted sensitive data, MD5\u002FSHA1\nA03 Injection                → SQL, NoSQL, LDAP, OS command injection\nA04 Insecure Design          → Missing threat model, insecure design patterns\nA05 Security Misconfiguration → Default creds, verbose errors, open cloud storage\nA06 Vulnerable Components    → Outdated deps with known CVEs\nA07 Auth Failures            → Weak passwords, no MFA, broken session management\nA08 Software Integrity       → Unsigned code, malicious dependencies\nA09 Logging Failures         → No audit logs, logging sensitive data\nA10 SSRF                     → Fetching attacker-controlled URLs\n```\n\n### SQL Injection Prevention\n```javascript\n\u002F\u002F NEVER do this — vulnerable to SQL injection\nconst query = `SELECT * FROM users WHERE email = '${email}'`;\n\n\u002F\u002F ALWAYS use parameterized queries\n\u002F\u002F Node.js with pg\nconst result = await pool.query(\n  'SELECT * FROM users WHERE email = $1 AND active = $2',\n  [email, true]\n);\n\n\u002F\u002F Node.js with mysql2\nconst [rows] = await connection.execute(\n  'SELECT * FROM users WHERE email = ? AND active = ?',\n  [email, true]\n);\n\n\u002F\u002F Python with psycopg2\ncursor.execute(\n  'SELECT * FROM users WHERE email = %s AND active = %s',\n  (email, True)\n)\n\n\u002F\u002F Python with SQLAlchemy ORM (safe by default)\nuser = db.query(User).filter(\n  User.email == email,\n  User.active == True\n).first()\n\n\u002F\u002F If you MUST use dynamic table\u002Fcolumn names (rare)\n\u002F\u002F Use an allowlist — never interpolate user input directly\nconst ALLOWED_COLUMNS = new Set(['name', 'email', 'created_at']);\nconst ALLOWED_ORDERS  = new Set(['ASC', 'DESC']);\n\nfunction buildQuery(sortColumn, sortOrder) {\n  if (!ALLOWED_COLUMNS.has(sortColumn)) throw new Error('Invalid column');\n  if (!ALLOWED_ORDERS.has(sortOrder.toUpperCase())) throw new Error('Invalid order');\n  return `SELECT * FROM users ORDER BY ${sortColumn} ${sortOrder}`;\n}\n```\n\n### XSS Prevention\n```javascript\n\u002F\u002F ── Stored\u002FReflected XSS ──────────────────────────────────────────────────\n\n\u002F\u002F NEVER insert user data directly into HTML\nelement.innerHTML = userInput;                   \u002F\u002F vulnerable\ndocument.write(userInput);                       \u002F\u002F vulnerable\n\n\u002F\u002F ALWAYS use safe DOM methods\nelement.textContent = userInput;                 \u002F\u002F safe — escapes HTML\nelement.setAttribute('data-value', userInput);  \u002F\u002F safe for attributes\n\n\u002F\u002F In React — safe by default, but watch out for dangerouslySetInnerHTML\n\u002F\u002F Safe:\n\u003Cdiv>{userInput}\u003C\u002Fdiv>\n\n\u002F\u002F Dangerous — only use with sanitized content:\n\u003Cdiv dangerouslySetInnerHTML={{ __html: sanitizedHtml }} \u002F>\n\n\u002F\u002F If you must render HTML, use DOMPurify to sanitize first\nimport DOMPurify from 'dompurify';\nconst clean = DOMPurify.sanitize(userInput, {\n  ALLOWED_TAGS: ['b', 'i', 'em', 'strong', 'a'],\n  ALLOWED_ATTR: ['href'],\n});\nelement.innerHTML = clean;\n\n\u002F\u002F ── DOM XSS ───────────────────────────────────────────────────────────────\n\u002F\u002F Never use location.hash or URL params directly in innerHTML\nconst params = new URLSearchParams(window.location.search);\nconst name = params.get('name');\n\u002F\u002F Safe:\ndocument.getElementById('greeting').textContent = `Hello, ${name}`;\n\u002F\u002F Dangerous:\ndocument.getElementById('greeting').innerHTML = `Hello, ${name}`;\n\n\u002F\u002F ── Content Security Policy (defense in depth) ────────────────────────────\n\u002F\u002F Add to every response:\n\u002F\u002F Content-Security-Policy: default-src 'self'; script-src 'self' 'nonce-{random}';\n```\n\n### CSRF Prevention\n```javascript\n\u002F\u002F ── CSRF Token (traditional forms) ───────────────────────────────────────\nimport crypto from 'crypto';\n\n\u002F\u002F Generate and store token in session\nfunction generateCSRFToken(session) {\n  const token = crypto.randomBytes(32).toString('hex');\n  session.csrfToken = token;\n  return token;\n}\n\n\u002F\u002F Validate on every state-changing request\nfunction validateCSRFToken(req, res, next) {\n  if (['GET', 'HEAD', 'OPTIONS'].includes(req.method)) {\n    return next(); \u002F\u002F safe methods don't need CSRF protection\n  }\n\n  const token = req.headers['x-csrf-token'] ?? req.body._csrf;\n  const sessionToken = req.session?.csrfToken;\n\n  if (!token || !sessionToken || !crypto.timingSafeEqual(\n    Buffer.from(token),\n    Buffer.from(sessionToken)\n  )) {\n    return res.status(403).json({ error: 'Invalid CSRF token' });\n  }\n  next();\n}\n\n\u002F\u002F ── SameSite Cookie (modern defense) ─────────────────────────────────────\n\u002F\u002F Set cookies with SameSite=Strict or SameSite=Lax\nres.cookie('session', sessionId, {\n  httpOnly: true,     \u002F\u002F not accessible via JavaScript\n  secure: true,       \u002F\u002F HTTPS only\n  sameSite: 'strict', \u002F\u002F never sent in cross-site requests\n  maxAge: 24 * 60 * 60 * 1000,\n});\n\n\u002F\u002F ── CORS Configuration ────────────────────────────────────────────────────\n\u002F\u002F Be explicit — never use wildcard with credentials\napp.use(cors({\n  origin: ['https:\u002F\u002Fapp.example.com', 'https:\u002F\u002Fadmin.example.com'],\n  methods: ['GET', 'POST', 'PUT', 'DELETE'],\n  allowedHeaders: ['Content-Type', 'Authorization'],\n  credentials: true,  \u002F\u002F allow cookies\n  maxAge: 86400,      \u002F\u002F preflight cache for 24h\n}));\n```\n\n### IDOR Prevention (Broken Access Control)\n```javascript\n\u002F\u002F ── Insecure Direct Object Reference ──────────────────────────────────────\n\n\u002F\u002F VULNERABLE — no ownership check\napp.get('\u002Fapi\u002Fdocuments\u002F:id', async (req, res) => {\n  const doc = await db.document.findById(req.params.id);\n  return res.json(doc); \u002F\u002F any user can read any document!\n});\n\n\u002F\u002F SECURE — always verify ownership\napp.get('\u002Fapi\u002Fdocuments\u002F:id', authenticate, async (req, res) => {\n  const doc = await db.document.findOne({\n    where: {\n      id: req.params.id,\n      ownerId: req.user.id,  \u002F\u002F ensure user owns this document\n    }\n  });\n\n  if (!doc) {\n    \u002F\u002F Return 404 not 403 — don't leak existence of resources\n    return res.status(404).json({ error: 'Document not found' });\n  }\n\n  return res.json(doc);\n});\n\n\u002F\u002F ── Authorization middleware ──────────────────────────────────────────────\nfunction requireOwnership(Model) {\n  return async (req, res, next) => {\n    const resource = await Model.findOne({\n      where: { id: req.params.id, userId: req.user.id }\n    });\n\n    if (!resource) return res.status(404).json({ error: 'Not found' });\n\n    req.resource = resource;\n    next();\n  };\n}\n\napp.put('\u002Fapi\u002Fposts\u002F:id',\n  authenticate,\n  requireOwnership(Post),\n  async (req, res) => {\n    await req.resource.update(req.body);\n    res.json(req.resource);\n  }\n);\n\n\u002F\u002F ── RBAC ─────────────────────────────────────────────────────────────────\nfunction requireRole(...roles) {\n  return (req, res, next) => {\n    if (!roles.includes(req.user.role)) {\n      return res.status(403).json({ error: 'Insufficient permissions' });\n    }\n    next();\n  };\n}\n\napp.delete('\u002Fapi\u002Fusers\u002F:id',\n  authenticate,\n  requireRole('admin', 'superadmin'),\n  deleteUserHandler\n);\n```\n\n### Input Validation with Zod\n```typescript\nimport { z } from 'zod';\n\n\u002F\u002F Define strict schemas for all inputs\nconst CreateUserSchema = z.object({\n  name: z.string()\n    .min(1, 'Name is required')\n    .max(100, 'Name too long')\n    .regex(\u002F^[a-zA-Z\\s'-]+$\u002F, 'Name contains invalid characters'),\n\n  email: z.string()\n    .email('Invalid email format')\n    .max(255)\n    .toLowerCase(),\n\n  age: z.number()\n    .int()\n    .min(13, 'Must be at least 13')\n    .max(120),\n\n  website: z.string()\n    .url()\n    .startsWith('https:\u002F\u002F', 'Must use HTTPS')\n    .optional(),\n\n  role: z.enum(['user', 'moderator']),  \u002F\u002F allowlist for role\n\n  \u002F\u002F Never accept HTML in plain text fields\n  bio: z.string()\n    .max(500)\n    .transform(val => val.trim()),\n});\n\n\u002F\u002F Validate middleware\nfunction validate(schema) {\n  return (req, res, next) => {\n    const result = schema.safeParse(req.body);\n    if (!result.success) {\n      return res.status(422).json({\n        error: 'Validation failed',\n        details: result.error.flatten().fieldErrors,\n      });\n    }\n    req.validatedBody = result.data;\n    next();\n  };\n}\n\napp.post('\u002Fapi\u002Fusers',\n  validate(CreateUserSchema),\n  createUserHandler\n);\n```\n\n### SSRF Prevention\n```javascript\nimport dns from 'dns\u002Fpromises';\nimport net from 'net';\n\n\u002F\u002F Block list of private\u002Finternal IP ranges\nfunction isPrivateIP(ip) {\n  const privateRanges = [\n    \u002F^127\\.\u002F,           \u002F\u002F loopback\n    \u002F^10\\.\u002F,            \u002F\u002F RFC1918\n    \u002F^172\\.(1[6-9]|2[0-9]|3[01])\\.\u002F,  \u002F\u002F RFC1918\n    \u002F^192\\.168\\.\u002F,      \u002F\u002F RFC1918\n    \u002F^169\\.254\\.\u002F,      \u002F\u002F link-local\n    \u002F^::1$\u002F,            \u002F\u002F IPv6 loopback\n    \u002F^fc00:\u002F,           \u002F\u002F IPv6 private\n    \u002F^fe80:\u002F,           \u002F\u002F IPv6 link-local\n  ];\n  return privateRanges.some(range => range.test(ip));\n}\n\nasync function safeURL(urlString) {\n  let url;\n  try {\n    url = new URL(urlString);\n  } catch {\n    throw new Error('Invalid URL format');\n  }\n\n  \u002F\u002F Allowlist protocols\n  if (!['http:', 'https:'].includes(url.protocol)) {\n    throw new Error('Only HTTP\u002FHTTPS allowed');\n  }\n\n  \u002F\u002F Allowlist domains (preferred approach)\n  const ALLOWED_DOMAINS = new Set(['api.github.com', 'api.example.com']);\n  if (!ALLOWED_DOMAINS.has(url.hostname)) {\n    throw new Error('Domain not allowed');\n  }\n\n  \u002F\u002F Resolve DNS and check if it resolves to private IP\n  const addresses = await dns.resolve(url.hostname);\n  for (const addr of addresses) {\n    if (isPrivateIP(addr)) {\n      throw new Error('Request to private network not allowed');\n    }\n  }\n\n  return url;\n}\n\n\u002F\u002F Usage\napp.post('\u002Fapi\u002Fwebhook-test', async (req, res) => {\n  const url = await safeURL(req.body.webhookUrl);\n  const response = await fetch(url.toString());\n  res.json({ status: response.status });\n});\n```\n\n### Password Security\n```javascript\nimport argon2 from 'argon2';\nimport crypto from 'crypto';\n\n\u002F\u002F Hash password with argon2id (best current choice)\nasync function hashPassword(password) {\n  return argon2.hash(password, {\n    type: argon2.argon2id,\n    memoryCost: 65536,  \u002F\u002F 64MB\n    timeCost: 3,        \u002F\u002F 3 iterations\n    parallelism: 4,     \u002F\u002F 4 threads\n  });\n}\n\n\u002F\u002F Verify password\nasync function verifyPassword(hash, password) {\n  return argon2.verify(hash, password);\n}\n\n\u002F\u002F Password policy validation\nfunction validatePassword(password) {\n  const errors = [];\n  if (password.length \u003C 12) errors.push('At least 12 characters required');\n  if (!\u002F[A-Z]\u002F.test(password)) errors.push('At least one uppercase letter required');\n  if (!\u002F[a-z]\u002F.test(password)) errors.push('At least one lowercase letter required');\n  if (!\u002F[0-9]\u002F.test(password)) errors.push('At least one number required');\n  if (!\u002F[^A-Za-z0-9]\u002F.test(password)) errors.push('At least one special character required');\n\n  \u002F\u002F Check against common password list\n  if (COMMON_PASSWORDS.has(password.toLowerCase())) {\n    errors.push('Password is too common');\n  }\n\n  return errors;\n}\n\n\u002F\u002F Secure token generation (for password reset, email verification)\nfunction generateSecureToken(bytes = 32) {\n  return crypto.randomBytes(bytes).toString('hex');\n}\n\n\u002F\u002F Rate limit password attempts\nconst loginAttempts = new Map();\n\nfunction checkRateLimit(identifier) {\n  const now = Date.now();\n  const attempts = loginAttempts.get(identifier) ?? [];\n  const recentAttempts = attempts.filter(t => now - t \u003C 15 * 60 * 1000);\n\n  if (recentAttempts.length >= 5) {\n    throw new Error('Too many login attempts. Try again in 15 minutes.');\n  }\n\n  loginAttempts.set(identifier, [...recentAttempts, now]);\n}\n```\n\n### Security Headers Middleware\n```javascript\n\u002F\u002F Apply to every response\napp.use((req, res, next) => {\n  \u002F\u002F Prevent clickjacking\n  res.setHeader('X-Frame-Options', 'DENY');\n\n  \u002F\u002F Prevent MIME sniffing\n  res.setHeader('X-Content-Type-Options', 'nosniff');\n\n  \u002F\u002F Enable XSS filter in older browsers\n  res.setHeader('X-XSS-Protection', '1; mode=block');\n\n  \u002F\u002F HSTS — force HTTPS for 1 year\n  res.setHeader(\n    'Strict-Transport-Security',\n    'max-age=31536000; includeSubDomains; preload'\n  );\n\n  \u002F\u002F Control referrer information\n  res.setHeader('Referrer-Policy', 'strict-origin-when-cross-origin');\n\n  \u002F\u002F Restrict browser features\n  res.setHeader(\n    'Permissions-Policy',\n    'camera=(), microphone=(), geolocation=(), payment=()'\n  );\n\n  \u002F\u002F Content Security Policy\n  const nonce = crypto.randomBytes(16).toString('base64');\n  res.locals.nonce = nonce;\n  res.setHeader(\n    'Content-Security-Policy',\n    [\n      \"default-src 'self'\",\n      `script-src 'self' 'nonce-${nonce}'`,\n      \"style-src 'self' 'unsafe-inline'\",\n      \"img-src 'self' data: https:\",\n      \"font-src 'self'\",\n      \"connect-src 'self' https:\u002F\u002Fapi.example.com\",\n      \"frame-ancestors 'none'\",\n      \"base-uri 'self'\",\n      \"form-action 'self'\",\n    ].join('; ')\n  );\n\n  next();\n});\n```\n\n### Threat Modeling — STRIDE\n```\nS — Spoofing         → Can attacker impersonate another user?\nT — Tampering        → Can attacker modify data in transit or at rest?\nR — Repudiation      → Can user deny performing an action?\nI — Information Disclosure → Can attacker access data they should not?\nD — Denial of Service → Can attacker make service unavailable?\nE — Elevation of Privilege → Can attacker gain more permissions than allowed?\n\nThreat Modeling Steps:\n1. Define scope — what are we protecting?\n2. Draw data flow diagram — where does data go?\n3. Identify trust boundaries — where does data cross security boundaries?\n4. Apply STRIDE to each component and data flow\n5. Rate risk — likelihood × impact\n6. Define mitigations\n7. Verify mitigations are implemented\n\nQuestions to ask:\n  - What happens if user X can access resource Y?\n  - What happens if this request is replayed?\n  - What happens if this field is empty\u002Fnull\u002Fmax length?\n  - What happens if this network call fails?\n  - What sensitive data is logged?\n  - What happens if the database is read by an attacker?\n```\n\n---\n\n## Best Practices\n\n- Validate ALL input on the server side — client-side validation is UX only\n- Use parameterized queries for ALL database queries — no exceptions\n- Hash passwords with argon2id, bcrypt, or scrypt — never MD5 or SHA1\n- Apply principle of least privilege — minimize access at every layer\n- Return 404 not 403 for IDOR — do not leak existence of resources\n- Never log sensitive data — passwords, tokens, PII, credit cards\n- Keep dependencies updated — run Snyk or Dependabot on every PR\n- Use HTTPS everywhere — no exceptions in production\n- Apply security headers on every response\n\n---\n\n## Common Pitfalls\n\n| Pitfall | Problem | Fix |\n|---|---|---|\n| String interpolation in SQL | SQL injection | Always use parameterized queries |\n| innerHTML with user data | XSS vulnerability | Use textContent or DOMPurify |\n| No ownership check on resources | IDOR — users access each others data | Always filter by authenticated user ID |\n| Returning 403 for IDOR | Leaks existence of resource | Return 404 for unauthorized resource access |\n| Logging sensitive data | PII\u002Fsecrets in log files | Audit what is logged, mask sensitive fields |\n| Weak password hashing (MD5\u002FSHA1) | Passwords cracked in seconds | Use argon2id with proper parameters |\n| Wildcard CORS with credentials | Cross-origin attacks | Use explicit origin allowlist |\n| No rate limiting on auth | Brute force attacks | Rate limit login, password reset, OTP endpoints |\n\n---\n\n## Related Skills\n\n- **auth-expert**: For OAuth2, JWT, and session security\n- **cryptography-expert**: For encryption and hashing implementation\n- **devsecops-expert**: For integrating security into CI\u002FCD\n- **api-design-expert**: For secure API design patterns\n- **nginx-expert**: For security headers and rate limiting\n- **secrets-management**: For secure handling of credentials\n",{"name":5,"author":44,"license":15,"metadata":45,"description":7},"luo-kai",{"author":9,"version":46,"category":47},"1.0","coding","main","4d2fb89cdfb75f3f6fd3c6c5ec9ad90ea129eb3c","ai-agent-skills\u002F06-security-and-auth (by Luo Kai)\u002F02-application-security\u002Fappsec-expert",2,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai","https:\u002F\u002Fgithub.com\u002Fluokai0","a solo builder.","2026-05-06 04:29:04",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill appsec-expert",{"tool":62,"command":63},"bunx","bunx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill appsec-expert",{"tool":65,"command":66},"pnpm","pnpm dlx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill appsec-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F06-security-and-auth (by Luo Kai)\u002F02-application-security\u002Fappsec-expert\u002FSKILL.md",true,[70],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"_AIWF_IMPORT.json","REFERENCE","参考文档",360,"https:\u002F\u002Fgithub.com\u002FiDorgham\u002FWorkspace-Factory\u002Fblob\u002Fmaster\u002Ffactory\u002Flibrary\u002Fskills\u002Fgithub_imports\u002Fdata-storytelling\u002F_AIWF_IMPORT.json",[77,102,119,144,171,195],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":39},"01M6F2SKTE208174C7S7JJCZC7","write-contracts","Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement minting', 'generate Move module', 'create token contract', 'build DAO', 'implement staking'. Ask storage questions when: 'store', 'track', 'registry', 'mapping', 'list', 'collection'.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fwrite-contracts\u002FSKILL.md",[],[84,85,86,87,35,88,89,90,25,91,92,93,94,95,96,97,98,99,100,101],"write","contracts","write contracts","storage","create","generate","collection","decision","ask","smart-contracts","selection","objects","structure","nft","token","aptos","critical","move",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":39},"01M6F2RFXJ6T9MKW0A7N7GM45B","web-search","通用网络搜索技能，支持多引擎搜索（百度、必应、DuckDuckGo），无需API密钥即可获取实时信息","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fweb-search-ex-skill\u002FSKILL.md",[],[109,110,111,112,113,114,115,116,117,118],"web","search","web search","搜索","baidu","bing","duckduckgo","百度","多引擎","internet",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":39},"01M6F2K968G1FZEZFPW2E6B222","solo-build","Execute implementation plan tasks with TDD workflow, auto-commit, and phase gates. Use when user says \"build it\", \"start building\", \"execute plan\", \"implement tasks\", \"ship it\", or references a track ID. Do NOT use for planning (use \u002Fplan) or scaffolding (use \u002Fscaffold).","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fsolo-build\u002FSKILL.md",[],[126,127,128,129,130,131,132,133,110,134,135,136,84,137,138,139,140,141,142,143],"build","solo","solo build","MCP","workflow","commit","tasks","code","Bash","plan","read","auto","references","context7","query","scaffolding","ship it","project",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":39},"01M6F2GKN39SGHSPWYB3662YC8","react-email","Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Freact-email-skills\u002FSKILL.md",[],[151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170],"react","email","react email","github","editor","components","react components","component","welcome","https","notifications","password","node","use","html","resend","visual","emails","rendering","with",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":39},"01M6F2FBVGVDFSG8SSFJGXA40C","APITester Agent-Driven API Testing","Test API endpoints and document responses. Define tests in plain English, run them, get formatted results. Agent-driven Postman alternative.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fopenclaw-api-tester\u002FSKILL.md",[],[29,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194],"api","api testing","driven","APITester Agent Driven API Testing","test","run","postman","results","plain english","tester","endpoints","document","get","define","tests","english","api-tester",{"skillNo":196,"name":197,"nameZh":6,"description":198,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":199,"categories":200,"keywords":201,"publishedAt":39},"01M6F273Y3NGAPVJZ608BC0G9G","hubspot-implementation-plan","Generate a phased implementation plan from a HubSpot audit report. Creates prioritized, sequenced cleanup processes with effort estimates, dependencies, and automation feasibility. Use after running \u002Fhubspot-audit.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fhubspot-implementation-plan\u002FSKILL.md",[],[135,202,203,204,205,206,207,89,208,209,33,210,211,164,212,213,170,214],"implementation","hubspot","hubspot implementation plan","automation","feasibility","cleanup","planning","report","audit report","phased implementation","dependencies","processes","hubspot audit"]