[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HQS18ZEW8THKME0G17KFVJ":3,"skill-same:01M6HQS18ZEW8THKME0G17KFVJ":74},{"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":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":50,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M6HQS18ZEW8THKME0G17KFVJ","security-hardening",null,"Harden code against vulnerabilities. Use on triggers like \"security audit\", \"harden this\", \"threat model\", \"is this safe\", or when touching untrusted input, auth, sessions, secrets, data storage, or third-party integrations. Fills a security gap not covered by existing project skills. Not a generic review or ship workflow.","BlackBeltTechnology\u002Fpi-agent-dashboard","BlackBeltTechnology","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8101592?v=4","01M6HQDX7QAJA0QP4NYRYBMJ8A","BlackBelt Technology","01M6HQDXCC7719N9YDMQVH9JS6",348,"MIT","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Feng-disciplines\u002F.pi\u002Fskills\u002Fsecurity-hardening\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"security","hardening","security hardening","when","safe","Existing","input","gap","triggers","project","harden","use","model","ship","security audit","threat model","code","auth","sessions","workflow","vulnerabilities","2026-11-10 10:12:30",false,"---\nname: security-hardening\ndescription: Harden code against vulnerabilities. Use on triggers like \"security audit\", \"harden this\", \"threat model\", \"is this safe\", or when touching untrusted input, auth, sessions, secrets, data storage, or third-party integrations. Fills a security gap not covered by existing project skills. Not a generic review or ship workflow.\n---\n\n# Security and Hardening\n\n## Overview\n\nSecurity-first development practices for web applications. Treat every external input as hostile, every secret as sacred, and every authorization check as mandatory. Security isn't a phase — it's a constraint on every line of code that touches user data, authentication, or external systems.\n\n## When to Use\n\n- Building anything that accepts user input\n- Implementing authentication or authorization\n- Storing or transmitting sensitive data\n- Integrating with external APIs or services\n- Adding file uploads, webhooks, or callbacks\n- Handling payment or PII data\n\n## Process: Threat Model First\n\nControls bolted on without a threat model are guesses. Before hardening, spend five minutes thinking like an attacker:\n\n1. **Map the trust boundaries.** Where does untrusted data cross into your system? HTTP requests, form fields, file uploads, webhooks, third-party APIs, message queues, and **LLM output**. Every boundary is attack surface.\n2. **Name the assets.** What's worth stealing or breaking? Credentials, PII, payment data, admin actions, money movement.\n3. **Run STRIDE over each boundary** — a quick lens, not a ceremony:\n\n| Threat | Ask | Typical mitigation |\n|---|---|---|\n| **S**poofing | Can someone impersonate a user\u002Fservice? | Authentication, signature verification |\n| **T**ampering | Can data be altered in transit or at rest? | Integrity checks, parameterized queries, HTTPS |\n| **R**epudiation | Can an action be denied later? | Audit logging of security events |\n| **I**nformation disclosure | Can data leak? | Encryption, field allowlists, generic errors |\n| **D**enial of service | Can it be overwhelmed? | Rate limiting, input size caps, timeouts |\n| **E**levation of privilege | Can a user gain rights they shouldn't? | Authorization checks, least privilege |\n\n4. **Write abuse cases next to use cases.** For each feature, ask \"how would I misuse this?\" — then make that your first test.\n\nIf you can't name the trust boundaries for a feature, you're not ready to secure it. This is OWASP **A04: Insecure Design** — most breaches begin in design, not code.\n\n## The Three-Tier Boundary System\n\n### Always Do (No Exceptions)\n\n- **Validate all external input** at the system boundary (API routes, form handlers)\n- **Parameterize all database queries** — never concatenate user input into SQL\n- **Encode output** to prevent XSS (use framework auto-escaping, don't bypass it)\n- **Use HTTPS** for all external communication\n- **Hash passwords** with bcrypt\u002Fscrypt\u002Fargon2 (never store plaintext)\n- **Set security headers** (CSP, HSTS, X-Frame-Options, X-Content-Type-Options)\n- **Use httpOnly, secure, sameSite cookies** for sessions\n- **Run `npm audit`** (or equivalent) before every release\n\n### Ask First (Requires Human Approval)\n\n- Adding new authentication flows or changing auth logic\n- Storing new categories of sensitive data (PII, payment info)\n- Adding new external service integrations\n- Changing CORS configuration\n- Adding file upload handlers\n- Modifying rate limiting or throttling\n- Granting elevated permissions or roles\n\n### Never Do\n\n- **Never commit secrets** to version control (API keys, passwords, tokens)\n- **Never log sensitive data** (passwords, tokens, full credit card numbers)\n- **Never trust client-side validation** as a security boundary\n- **Never disable security headers** for convenience\n- **Never use `eval()` or `innerHTML`** with user-provided data\n- **Never store sessions in client-accessible storage** (localStorage for auth tokens)\n- **Never expose stack traces** or internal error details to users\n\n## OWASP Top 10 Prevention Patterns\n\nThese are prevention patterns, not a ranking. For the 2021 ordering, see the quick-reference table in `references\u002Fsecurity-checklist.md`.\n\n### Injection (SQL, NoSQL, OS Command)\n\n```typescript\n\u002F\u002F BAD: SQL injection via string concatenation\nconst query = `SELECT * FROM users WHERE id = '${userId}'`;\n\n\u002F\u002F GOOD: Parameterized query\nconst user = await db.query('SELECT * FROM users WHERE id = $1', [userId]);\n\n\u002F\u002F GOOD: ORM with parameterized input\nconst user = await prisma.user.findUnique({ where: { id: userId } });\n```\n\n### Broken Authentication\n\n```typescript\n\u002F\u002F Password hashing\nimport { hash, compare } from 'bcrypt';\n\nconst SALT_ROUNDS = 12;\nconst hashedPassword = await hash(plaintext, SALT_ROUNDS);\nconst isValid = await compare(plaintext, hashedPassword);\n\n\u002F\u002F Session management\napp.use(session({\n  secret: process.env.SESSION_SECRET,  \u002F\u002F From environment, not code\n  resave: false,\n  saveUninitialized: false,\n  cookie: {\n    httpOnly: true,     \u002F\u002F Not accessible via JavaScript\n    secure: true,       \u002F\u002F HTTPS only\n    sameSite: 'lax',    \u002F\u002F CSRF protection\n    maxAge: 24 * 60 * 60 * 1000,  \u002F\u002F 24 hours\n  },\n}));\n```\n\n### Cross-Site Scripting (XSS)\n\n```typescript\n\u002F\u002F BAD: Rendering user input as HTML\nelement.innerHTML = userInput;\n\n\u002F\u002F GOOD: Use framework auto-escaping (React does this by default)\nreturn \u003Cdiv>{userInput}\u003C\u002Fdiv>;\n\n\u002F\u002F If you MUST render HTML, sanitize first\nimport DOMPurify from 'dompurify';\nconst clean = DOMPurify.sanitize(userInput);\n```\n\n### Broken Access Control\n\n```typescript\n\u002F\u002F Always check authorization, not just authentication\napp.patch('\u002Fapi\u002Ftasks\u002F:id', authenticate, async (req, res) => {\n  const task = await taskService.findById(req.params.id);\n\n  \u002F\u002F Check that the authenticated user owns this resource\n  if (task.ownerId !== req.user.id) {\n    return res.status(403).json({\n      error: { code: 'FORBIDDEN', message: 'Not authorized to modify this task' }\n    });\n  }\n\n  \u002F\u002F Proceed with update\n  const updated = await taskService.update(req.params.id, req.body);\n  return res.json(updated);\n});\n```\n\n### Security Misconfiguration\n\n```typescript\n\u002F\u002F Security headers (use helmet for Express)\nimport helmet from 'helmet';\napp.use(helmet());\n\n\u002F\u002F Content Security Policy\napp.use(helmet.contentSecurityPolicy({\n  directives: {\n    defaultSrc: [\"'self'\"],\n    scriptSrc: [\"'self'\"],\n    styleSrc: [\"'self'\", \"'unsafe-inline'\"],  \u002F\u002F Tighten if possible\n    imgSrc: [\"'self'\", 'data:', 'https:'],\n    connectSrc: [\"'self'\"],\n  },\n}));\n\n\u002F\u002F CORS — restrict to known origins\napp.use(cors({\n  origin: process.env.ALLOWED_ORIGINS?.split(',') || 'http:\u002F\u002Flocalhost:3000',\n  credentials: true,\n}));\n```\n\n### Sensitive Data Exposure\n\n```typescript\n\u002F\u002F Never return sensitive fields in API responses\nfunction sanitizeUser(user: UserRecord): PublicUser {\n  const { passwordHash, resetToken, ...publicFields } = user;\n  return publicFields;\n}\n\n\u002F\u002F Use environment variables for secrets\nconst API_KEY = process.env.STRIPE_API_KEY;\nif (!API_KEY) throw new Error('STRIPE_API_KEY not configured');\n```\n\n### Server-Side Request Forgery (SSRF)\n\nAny time the server fetches a URL the user influenced — webhooks, \"import from URL\", image proxies, link previews — an attacker can aim it at internal services (cloud metadata, `localhost`, private IPs).\n\n```typescript\n\u002F\u002F BAD: fetch whatever the user gives you\nawait fetch(req.body.webhookUrl);\n\n\u002F\u002F GOOD: allowlist scheme + host, reject if ANY resolved IP is private, forbid redirects\nimport { lookup } from 'node:dns\u002Fpromises';\nimport ipaddr from 'ipaddr.js';\n\nconst ALLOWED_HOSTS = new Set(['hooks.example.com']);\n\nasync function assertSafeUrl(raw: string): Promise\u003CURL> {\n  const url = new URL(raw);\n  if (url.protocol !== 'https:') throw new Error('https only');\n  if (!ALLOWED_HOSTS.has(url.hostname)) throw new Error('host not allowed');\n  \u002F\u002F Resolve ALL records; a single private\u002Freserved address fails the check.\n  const addrs = await lookup(url.hostname, { all: true });\n  if (addrs.some((a) => ipaddr.parse(a.address).range() !== 'unicast')) {\n    throw new Error('private\u002Freserved IP');\n  }\n  return url;\n}\n\nawait fetch(await assertSafeUrl(req.body.webhookUrl), { redirect: 'error' });\n```\n\nThe `range() !== 'unicast'` check covers loopback, link-local `169.254.169.254` (cloud metadata, the #1 SSRF target), private, and unique-local ranges across IPv4 and IPv6.\n\n**Caveat — this still has a TOCTOU gap.** `fetch` resolves DNS again after the check, so an attacker using a short-TTL record can rebind to an internal IP between validation and connection. For high-risk surfaces, resolve once and connect to the pinned IP, or put a filtering agent in front (`request-filtering-agent` \u002F `ssrf-req-filter`).\n\n## Input Validation Patterns\n\n### Schema Validation at Boundaries\n\n```typescript\nimport { z } from 'zod';\n\nconst CreateTaskSchema = z.object({\n  title: z.string().min(1).max(200).trim(),\n  description: z.string().max(2000).optional(),\n  priority: z.enum(['low', 'medium', 'high']).default('medium'),\n  dueDate: z.string().datetime().optional(),\n});\n\n\u002F\u002F Validate at the route handler\napp.post('\u002Fapi\u002Ftasks', async (req, res) => {\n  const result = CreateTaskSchema.safeParse(req.body);\n  if (!result.success) {\n    return res.status(422).json({\n      error: {\n        code: 'VALIDATION_ERROR',\n        message: 'Invalid input',\n        details: result.error.flatten(),\n      },\n    });\n  }\n  \u002F\u002F result.data is now typed and validated\n  const task = await taskService.create(result.data);\n  return res.status(201).json(task);\n});\n```\n\n### File Upload Safety\n\n```typescript\n\u002F\u002F Restrict file types and sizes\nconst ALLOWED_TYPES = ['image\u002Fjpeg', 'image\u002Fpng', 'image\u002Fwebp'];\nconst MAX_SIZE = 5 * 1024 * 1024; \u002F\u002F 5MB\n\nfunction validateUpload(file: UploadedFile) {\n  if (!ALLOWED_TYPES.includes(file.mimetype)) {\n    throw new ValidationError('File type not allowed');\n  }\n  if (file.size > MAX_SIZE) {\n    throw new ValidationError('File too large (max 5MB)');\n  }\n  \u002F\u002F Don't trust the file extension — check magic bytes if critical\n}\n```\n\n## Triaging npm audit Results\n\nNot all audit findings require immediate action. Use this decision tree:\n\n```\nnpm audit reports a vulnerability\n├── Severity: critical or high\n│   ├── Is the vulnerable code reachable in your app?\n│   │   ├── YES --> Fix immediately (update, patch, or replace the dependency)\n│   │   └── NO (dev-only dep, unused code path) --> Fix soon, but not a blocker\n│   └── Is a fix available?\n│       ├── YES --> Update to the patched version\n│       └── NO --> Check for workarounds, consider replacing the dependency, or add to allowlist with a review date\n├── Severity: moderate\n│   ├── Reachable in production? --> Fix in the next release cycle\n│   └── Dev-only? --> Fix when convenient, track in backlog\n└── Severity: low\n    └── Track and fix during regular dependency updates\n```\n\n**Key questions:**\n- Is the vulnerable function actually called in your code path?\n- Is the dependency a runtime dependency or dev-only?\n- Is the vulnerability exploitable given your deployment context (e.g., a server-side vulnerability in a client-only app)?\n\nWhen you defer a fix, document the reason and set a review date.\n\n### Supply-Chain Hygiene\n\n`npm audit` catches known CVEs; it won't catch a malicious or typosquatted package. Also:\n\n- **Commit the lockfile** and install with `npm ci` (not `npm install`) in CI — reproducible builds, no silent version drift.\n- **Review new dependencies before adding them** — maintenance, download counts, and whether they truly earn their place. Every dependency is attack surface (OWASP **A06: Vulnerable Components**, **LLM03: Supply Chain**).\n- **Be wary of `postinstall` scripts** in unfamiliar packages — they run arbitrary code at install time.\n- **Watch for typosquats** — `cross-env` vs `crossenv`, `react-dom` vs `reactdom`.\n\n## Rate Limiting\n\n```typescript\nimport rateLimit from 'express-rate-limit';\n\n\u002F\u002F General API rate limit\napp.use('\u002Fapi\u002F', rateLimit({\n  windowMs: 15 * 60 * 1000, \u002F\u002F 15 minutes\n  max: 100,                   \u002F\u002F 100 requests per window\n  standardHeaders: true,\n  legacyHeaders: false,\n}));\n\n\u002F\u002F Stricter limit for auth endpoints\napp.use('\u002Fapi\u002Fauth\u002F', rateLimit({\n  windowMs: 15 * 60 * 1000,\n  max: 10,  \u002F\u002F 10 attempts per 15 minutes\n}));\n```\n\n## Secrets Management\n\n```\n.env files:\n  ├── .env.example  → Committed (template with placeholder values)\n  ├── .env          → NOT committed (contains real secrets)\n  └── .env.local    → NOT committed (local overrides)\n\n.gitignore must include:\n  .env\n  .env.local\n  .env.*.local\n  *.pem\n  *.key\n```\n\n**Always check before committing:**\n```bash\n# Check for accidentally staged secrets\ngit diff --cached | grep -i \"password\\|secret\\|api_key\\|token\"\n```\n\n**If a secret is ever committed, rotate it.** Deleting the line or rewriting history is not enough — assume it's compromised the moment it reaches a remote. Revoke and reissue the key first, then purge it from history.\n\n## Securing AI \u002F LLM Features\n\nIf your app calls an LLM — chatbots, summarizers, agents, RAG — it inherits a new attack surface. Map it to the [OWASP Top 10 for LLM Applications (2025)](https:\u002F\u002Fgenai.owasp.org\u002Fllm-top-10\u002F):\n\n- **Treat all model output as untrusted input (LLM05: Improper Output Handling).** Never pass LLM output straight into `eval`, SQL, a shell, `innerHTML`, or a file path. Validate and encode it exactly as you would raw user input.\n- **Assume prompts can be hijacked (LLM01: Prompt Injection).** Untrusted text in the context window — a user message, a fetched web page, a PDF — can carry instructions. The system prompt is not a security boundary; enforce permissions in code, not in the prompt.\n- **Keep secrets and other users' data out of prompts (LLM02 \u002F LLM07).** Anything in the context can be echoed back. Don't put API keys, cross-tenant data, or the full system prompt where the model can repeat it.\n- **Constrain tool and agent permissions (LLM06: Excessive Agency).** Scope tools to the minimum, require confirmation for destructive or irreversible actions, and validate every tool argument.\n- **Bound consumption (LLM10: Unbounded Consumption).** Cap tokens, request rate, and loop\u002Frecursion depth so a crafted input can't run up cost or hang the system.\n- **Isolate retrieval data (LLM08: Vector and Embedding Weaknesses).** In RAG, treat the vector store as a trust boundary: partition embeddings per tenant so one user can't retrieve another's data, and validate documents before indexing so poisoned content can't steer answers.\n\n```typescript\n\u002F\u002F BAD: trusting model output as a command or as markup\nconst sql = await llm.generate(`Write SQL for: ${userQuestion}`);\nawait db.query(sql);                                   \u002F\u002F arbitrary query execution\ncontainer.innerHTML = await llm.reply(userMessage);   \u002F\u002F stored XSS, via the model\n\n\u002F\u002F GOOD: model output is data — parse defensively, then validate, then encode\nlet intent;\ntry {\n  intent = CommandSchema.parse(JSON.parse(await llm.replyJson(userMessage)));\n} catch {\n  throw new ValidationError('unexpected model output'); \u002F\u002F JSON.parse or schema failed\n}\nawait runAllowlistedAction(intent.action, intent.params);\ncontainer.textContent = await llm.reply(userMessage);\n```\n\n## Security Review Checklist\n\n```markdown\n### Authentication\n- [ ] Passwords hashed with bcrypt\u002Fscrypt\u002Fargon2 (salt rounds ≥ 12)\n- [ ] Session tokens are httpOnly, secure, sameSite\n- [ ] Login has rate limiting\n- [ ] Password reset tokens expire\n\n### Authorization\n- [ ] Every endpoint checks user permissions\n- [ ] Users can only access their own resources\n- [ ] Admin actions require admin role verification\n\n### Input\n- [ ] All user input validated at the boundary\n- [ ] SQL queries are parameterized\n- [ ] HTML output is encoded\u002Fescaped\n- [ ] Server-side URL fetches are allowlisted (no SSRF to internal services)\n\n### Data\n- [ ] No secrets in code or version control\n- [ ] Sensitive fields excluded from API responses\n- [ ] PII encrypted at rest (if applicable)\n\n### Infrastructure\n- [ ] Security headers configured (CSP, HSTS, etc.)\n- [ ] CORS restricted to known origins\n- [ ] Dependencies audited for vulnerabilities\n- [ ] Error messages don't expose internals\n\n### Supply Chain\n- [ ] Lockfile committed; CI installs with `npm ci`\n- [ ] New dependencies reviewed (maintenance, downloads, postinstall scripts)\n\n### AI \u002F LLM (if used)\n- [ ] Model output treated as untrusted (no eval\u002FSQL\u002FinnerHTML\u002Fshell)\n- [ ] Secrets and other users' data kept out of prompts\n- [ ] Tool\u002Fagent permissions scoped; destructive actions require confirmation\n```\n## See Also\n\nFor detailed security checklists and pre-commit verification steps, see `references\u002Fsecurity-checklist.md`.\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"This is an internal tool, security doesn't matter\" | Internal tools get compromised. Attackers target the weakest link. |\n| \"We'll add security later\" | Security retrofitting is 10x harder than building it in. Add it now. |\n| \"No one would try to exploit this\" | Automated scanners will find it. Security by obscurity is not security. |\n| \"The framework handles security\" | Frameworks provide tools, not guarantees. You still need to use them correctly. |\n| \"It's just a prototype\" | Prototypes become production. Security habits from day one. |\n| \"Threat modeling is overkill here\" | Five minutes of \"how would I attack this?\" prevents the design flaws no control can patch later. |\n| \"It's just LLM output, it's only text\" | That \"text\" can be a SQL statement, a script tag, or a shell command. Treat it like any untrusted input. |\n\n## Red Flags\n\n- User input passed directly to database queries, shell commands, or HTML rendering\n- Secrets in source code or commit history\n- API endpoints without authentication or authorization checks\n- Missing CORS configuration or wildcard (`*`) origins\n- No rate limiting on authentication endpoints\n- Stack traces or internal errors exposed to users\n- Dependencies with known critical vulnerabilities\n- Server fetches user-supplied URLs without an allowlist (SSRF)\n- LLM\u002Fmodel output passed into a query, the DOM, a shell, or `eval`\n- Secrets, PII, or the full system prompt placed inside an LLM context window\n\n## Verification\n\nAfter implementing security-relevant code:\n\n- [ ] `npm audit` shows no critical or high vulnerabilities\n- [ ] No secrets in source code or git history\n- [ ] All user input validated at system boundaries\n- [ ] Authentication and authorization checked on every protected endpoint\n- [ ] Security headers present in response (check with browser DevTools)\n- [ ] Error responses don't expose internal details\n- [ ] Rate limiting active on auth endpoints\n- [ ] Server-side URL fetches validated against an allowlist (no SSRF)\n- [ ] LLM\u002Fmodel output validated and encoded before use (if AI features present)\n","# Security and Hardening\n\n## Overview\n\nSecurity-first development practices for web applications. Treat every external input as hostile, every secret as sacred, and every authorization check as mandatory. Security isn't a phase — it's a constraint on every line of code that touches user data, authentication, or external systems.\n\n## When to Use\n\n- Building anything that accepts user input\n- Implementing authentication or authorization\n- Storing or transmitting sensitive data\n- Integrating with external APIs or services\n- Adding file uploads, webhooks, or callbacks\n- Handling payment or PII data\n\n## Process: Threat Model First\n\nControls bolted on without a threat model are guesses. Before hardening, spend five minutes thinking like an attacker:\n\n1. **Map the trust boundaries.** Where does untrusted data cross into your system? HTTP requests, form fields, file uploads, webhooks, third-party APIs, message queues, and **LLM output**. Every boundary is attack surface.\n2. **Name the assets.** What's worth stealing or breaking? Credentials, PII, payment data, admin actions, money movement.\n3. **Run STRIDE over each boundary** — a quick lens, not a ceremony:\n\n| Threat | Ask | Typical mitigation |\n|---|---|---|\n| **S**poofing | Can someone impersonate a user\u002Fservice? | Authentication, signature verification |\n| **T**ampering | Can data be altered in transit or at rest? | Integrity checks, parameterized queries, HTTPS |\n| **R**epudiation | Can an action be denied later? | Audit logging of security events |\n| **I**nformation disclosure | Can data leak? | Encryption, field allowlists, generic errors |\n| **D**enial of service | Can it be overwhelmed? | Rate limiting, input size caps, timeouts |\n| **E**levation of privilege | Can a user gain rights they shouldn't? | Authorization checks, least privilege |\n\n4. **Write abuse cases next to use cases.** For each feature, ask \"how would I misuse this?\" — then make that your first test.\n\nIf you can't name the trust boundaries for a feature, you're not ready to secure it. This is OWASP **A04: Insecure Design** — most breaches begin in design, not code.\n\n## The Three-Tier Boundary System\n\n### Always Do (No Exceptions)\n\n- **Validate all external input** at the system boundary (API routes, form handlers)\n- **Parameterize all database queries** — never concatenate user input into SQL\n- **Encode output** to prevent XSS (use framework auto-escaping, don't bypass it)\n- **Use HTTPS** for all external communication\n- **Hash passwords** with bcrypt\u002Fscrypt\u002Fargon2 (never store plaintext)\n- **Set security headers** (CSP, HSTS, X-Frame-Options, X-Content-Type-Options)\n- **Use httpOnly, secure, sameSite cookies** for sessions\n- **Run `npm audit`** (or equivalent) before every release\n\n### Ask First (Requires Human Approval)\n\n- Adding new authentication flows or changing auth logic\n- Storing new categories of sensitive data (PII, payment info)\n- Adding new external service integrations\n- Changing CORS configuration\n- Adding file upload handlers\n- Modifying rate limiting or throttling\n- Granting elevated permissions or roles\n\n### Never Do\n\n- **Never commit secrets** to version control (API keys, passwords, tokens)\n- **Never log sensitive data** (passwords, tokens, full credit card numbers)\n- **Never trust client-side validation** as a security boundary\n- **Never disable security headers** for convenience\n- **Never use `eval()` or `innerHTML`** with user-provided data\n- **Never store sessions in client-accessible storage** (localStorage for auth tokens)\n- **Never expose stack traces** or internal error details to users\n\n## OWASP Top 10 Prevention Patterns\n\nThese are prevention patterns, not a ranking. For the 2021 ordering, see the quick-reference table in `references\u002Fsecurity-checklist.md`.\n\n### Injection (SQL, NoSQL, OS Command)\n\n```typescript\n\u002F\u002F BAD: SQL injection via string concatenation\nconst query = `SELECT * FROM users WHERE id = '${userId}'`;\n\n\u002F\u002F GOOD: Parameterized query\nconst user = await db.query('SELECT * FROM users WHERE id = $1', [userId]);\n\n\u002F\u002F GOOD: ORM with parameterized input\nconst user = await prisma.user.findUnique({ where: { id: userId } });\n```\n\n### Broken Authentication\n\n```typescript\n\u002F\u002F Password hashing\nimport { hash, compare } from 'bcrypt';\n\nconst SALT_ROUNDS = 12;\nconst hashedPassword = await hash(plaintext, SALT_ROUNDS);\nconst isValid = await compare(plaintext, hashedPassword);\n\n\u002F\u002F Session management\napp.use(session({\n  secret: process.env.SESSION_SECRET,  \u002F\u002F From environment, not code\n  resave: false,\n  saveUninitialized: false,\n  cookie: {\n    httpOnly: true,     \u002F\u002F Not accessible via JavaScript\n    secure: true,       \u002F\u002F HTTPS only\n    sameSite: 'lax',    \u002F\u002F CSRF protection\n    maxAge: 24 * 60 * 60 * 1000,  \u002F\u002F 24 hours\n  },\n}));\n```\n\n### Cross-Site Scripting (XSS)\n\n```typescript\n\u002F\u002F BAD: Rendering user input as HTML\nelement.innerHTML = userInput;\n\n\u002F\u002F GOOD: Use framework auto-escaping (React does this by default)\nreturn \u003Cdiv>{userInput}\u003C\u002Fdiv>;\n\n\u002F\u002F If you MUST render HTML, sanitize first\nimport DOMPurify from 'dompurify';\nconst clean = DOMPurify.sanitize(userInput);\n```\n\n### Broken Access Control\n\n```typescript\n\u002F\u002F Always check authorization, not just authentication\napp.patch('\u002Fapi\u002Ftasks\u002F:id', authenticate, async (req, res) => {\n  const task = await taskService.findById(req.params.id);\n\n  \u002F\u002F Check that the authenticated user owns this resource\n  if (task.ownerId !== req.user.id) {\n    return res.status(403).json({\n      error: { code: 'FORBIDDEN', message: 'Not authorized to modify this task' }\n    });\n  }\n\n  \u002F\u002F Proceed with update\n  const updated = await taskService.update(req.params.id, req.body);\n  return res.json(updated);\n});\n```\n\n### Security Misconfiguration\n\n```typescript\n\u002F\u002F Security headers (use helmet for Express)\nimport helmet from 'helmet';\napp.use(helmet());\n\n\u002F\u002F Content Security Policy\napp.use(helmet.contentSecurityPolicy({\n  directives: {\n    defaultSrc: [\"'self'\"],\n    scriptSrc: [\"'self'\"],\n    styleSrc: [\"'self'\", \"'unsafe-inline'\"],  \u002F\u002F Tighten if possible\n    imgSrc: [\"'self'\", 'data:', 'https:'],\n    connectSrc: [\"'self'\"],\n  },\n}));\n\n\u002F\u002F CORS — restrict to known origins\napp.use(cors({\n  origin: process.env.ALLOWED_ORIGINS?.split(',') || 'http:\u002F\u002Flocalhost:3000',\n  credentials: true,\n}));\n```\n\n### Sensitive Data Exposure\n\n```typescript\n\u002F\u002F Never return sensitive fields in API responses\nfunction sanitizeUser(user: UserRecord): PublicUser {\n  const { passwordHash, resetToken, ...publicFields } = user;\n  return publicFields;\n}\n\n\u002F\u002F Use environment variables for secrets\nconst API_KEY = process.env.STRIPE_API_KEY;\nif (!API_KEY) throw new Error('STRIPE_API_KEY not configured');\n```\n\n### Server-Side Request Forgery (SSRF)\n\nAny time the server fetches a URL the user influenced — webhooks, \"import from URL\", image proxies, link previews — an attacker can aim it at internal services (cloud metadata, `localhost`, private IPs).\n\n```typescript\n\u002F\u002F BAD: fetch whatever the user gives you\nawait fetch(req.body.webhookUrl);\n\n\u002F\u002F GOOD: allowlist scheme + host, reject if ANY resolved IP is private, forbid redirects\nimport { lookup } from 'node:dns\u002Fpromises';\nimport ipaddr from 'ipaddr.js';\n\nconst ALLOWED_HOSTS = new Set(['hooks.example.com']);\n\nasync function assertSafeUrl(raw: string): Promise\u003CURL> {\n  const url = new URL(raw);\n  if (url.protocol !== 'https:') throw new Error('https only');\n  if (!ALLOWED_HOSTS.has(url.hostname)) throw new Error('host not allowed');\n  \u002F\u002F Resolve ALL records; a single private\u002Freserved address fails the check.\n  const addrs = await lookup(url.hostname, { all: true });\n  if (addrs.some((a) => ipaddr.parse(a.address).range() !== 'unicast')) {\n    throw new Error('private\u002Freserved IP');\n  }\n  return url;\n}\n\nawait fetch(await assertSafeUrl(req.body.webhookUrl), { redirect: 'error' });\n```\n\nThe `range() !== 'unicast'` check covers loopback, link-local `169.254.169.254` (cloud metadata, the #1 SSRF target), private, and unique-local ranges across IPv4 and IPv6.\n\n**Caveat — this still has a TOCTOU gap.** `fetch` resolves DNS again after the check, so an attacker using a short-TTL record can rebind to an internal IP between validation and connection. For high-risk surfaces, resolve once and connect to the pinned IP, or put a filtering agent in front (`request-filtering-agent` \u002F `ssrf-req-filter`).\n\n## Input Validation Patterns\n\n### Schema Validation at Boundaries\n\n```typescript\nimport { z } from 'zod';\n\nconst CreateTaskSchema = z.object({\n  title: z.string().min(1).max(200).trim(),\n  description: z.string().max(2000).optional(),\n  priority: z.enum(['low', 'medium', 'high']).default('medium'),\n  dueDate: z.string().datetime().optional(),\n});\n\n\u002F\u002F Validate at the route handler\napp.post('\u002Fapi\u002Ftasks', async (req, res) => {\n  const result = CreateTaskSchema.safeParse(req.body);\n  if (!result.success) {\n    return res.status(422).json({\n      error: {\n        code: 'VALIDATION_ERROR',\n        message: 'Invalid input',\n        details: result.error.flatten(),\n      },\n    });\n  }\n  \u002F\u002F result.data is now typed and validated\n  const task = await taskService.create(result.data);\n  return res.status(201).json(task);\n});\n```\n\n### File Upload Safety\n\n```typescript\n\u002F\u002F Restrict file types and sizes\nconst ALLOWED_TYPES = ['image\u002Fjpeg', 'image\u002Fpng', 'image\u002Fwebp'];\nconst MAX_SIZE = 5 * 1024 * 1024; \u002F\u002F 5MB\n\nfunction validateUpload(file: UploadedFile) {\n  if (!ALLOWED_TYPES.includes(file.mimetype)) {\n    throw new ValidationError('File type not allowed');\n  }\n  if (file.size > MAX_SIZE) {\n    throw new ValidationError('File too large (max 5MB)');\n  }\n  \u002F\u002F Don't trust the file extension — check magic bytes if critical\n}\n```\n\n## Triaging npm audit Results\n\nNot all audit findings require immediate action. Use this decision tree:\n\n```\nnpm audit reports a vulnerability\n├── Severity: critical or high\n│   ├── Is the vulnerable code reachable in your app?\n│   │   ├── YES --> Fix immediately (update, patch, or replace the dependency)\n│   │   └── NO (dev-only dep, unused code path) --> Fix soon, but not a blocker\n│   └── Is a fix available?\n│       ├── YES --> Update to the patched version\n│       └── NO --> Check for workarounds, consider replacing the dependency, or add to allowlist with a review date\n├── Severity: moderate\n│   ├── Reachable in production? --> Fix in the next release cycle\n│   └── Dev-only? --> Fix when convenient, track in backlog\n└── Severity: low\n    └── Track and fix during regular dependency updates\n```\n\n**Key questions:**\n- Is the vulnerable function actually called in your code path?\n- Is the dependency a runtime dependency or dev-only?\n- Is the vulnerability exploitable given your deployment context (e.g., a server-side vulnerability in a client-only app)?\n\nWhen you defer a fix, document the reason and set a review date.\n\n### Supply-Chain Hygiene\n\n`npm audit` catches known CVEs; it won't catch a malicious or typosquatted package. Also:\n\n- **Commit the lockfile** and install with `npm ci` (not `npm install`) in CI — reproducible builds, no silent version drift.\n- **Review new dependencies before adding them** — maintenance, download counts, and whether they truly earn their place. Every dependency is attack surface (OWASP **A06: Vulnerable Components**, **LLM03: Supply Chain**).\n- **Be wary of `postinstall` scripts** in unfamiliar packages — they run arbitrary code at install time.\n- **Watch for typosquats** — `cross-env` vs `crossenv`, `react-dom` vs `reactdom`.\n\n## Rate Limiting\n\n```typescript\nimport rateLimit from 'express-rate-limit';\n\n\u002F\u002F General API rate limit\napp.use('\u002Fapi\u002F', rateLimit({\n  windowMs: 15 * 60 * 1000, \u002F\u002F 15 minutes\n  max: 100,                   \u002F\u002F 100 requests per window\n  standardHeaders: true,\n  legacyHeaders: false,\n}));\n\n\u002F\u002F Stricter limit for auth endpoints\napp.use('\u002Fapi\u002Fauth\u002F', rateLimit({\n  windowMs: 15 * 60 * 1000,\n  max: 10,  \u002F\u002F 10 attempts per 15 minutes\n}));\n```\n\n## Secrets Management\n\n```\n.env files:\n  ├── .env.example  → Committed (template with placeholder values)\n  ├── .env          → NOT committed (contains real secrets)\n  └── .env.local    → NOT committed (local overrides)\n\n.gitignore must include:\n  .env\n  .env.local\n  .env.*.local\n  *.pem\n  *.key\n```\n\n**Always check before committing:**\n```bash\n# Check for accidentally staged secrets\ngit diff --cached | grep -i \"password\\|secret\\|api_key\\|token\"\n```\n\n**If a secret is ever committed, rotate it.** Deleting the line or rewriting history is not enough — assume it's compromised the moment it reaches a remote. Revoke and reissue the key first, then purge it from history.\n\n## Securing AI \u002F LLM Features\n\nIf your app calls an LLM — chatbots, summarizers, agents, RAG — it inherits a new attack surface. Map it to the [OWASP Top 10 for LLM Applications (2025)](https:\u002F\u002Fgenai.owasp.org\u002Fllm-top-10\u002F):\n\n- **Treat all model output as untrusted input (LLM05: Improper Output Handling).** Never pass LLM output straight into `eval`, SQL, a shell, `innerHTML`, or a file path. Validate and encode it exactly as you would raw user input.\n- **Assume prompts can be hijacked (LLM01: Prompt Injection).** Untrusted text in the context window — a user message, a fetched web page, a PDF — can carry instructions. The system prompt is not a security boundary; enforce permissions in code, not in the prompt.\n- **Keep secrets and other users' data out of prompts (LLM02 \u002F LLM07).** Anything in the context can be echoed back. Don't put API keys, cross-tenant data, or the full system prompt where the model can repeat it.\n- **Constrain tool and agent permissions (LLM06: Excessive Agency).** Scope tools to the minimum, require confirmation for destructive or irreversible actions, and validate every tool argument.\n- **Bound consumption (LLM10: Unbounded Consumption).** Cap tokens, request rate, and loop\u002Frecursion depth so a crafted input can't run up cost or hang the system.\n- **Isolate retrieval data (LLM08: Vector and Embedding Weaknesses).** In RAG, treat the vector store as a trust boundary: partition embeddings per tenant so one user can't retrieve another's data, and validate documents before indexing so poisoned content can't steer answers.\n\n```typescript\n\u002F\u002F BAD: trusting model output as a command or as markup\nconst sql = await llm.generate(`Write SQL for: ${userQuestion}`);\nawait db.query(sql);                                   \u002F\u002F arbitrary query execution\ncontainer.innerHTML = await llm.reply(userMessage);   \u002F\u002F stored XSS, via the model\n\n\u002F\u002F GOOD: model output is data — parse defensively, then validate, then encode\nlet intent;\ntry {\n  intent = CommandSchema.parse(JSON.parse(await llm.replyJson(userMessage)));\n} catch {\n  throw new ValidationError('unexpected model output'); \u002F\u002F JSON.parse or schema failed\n}\nawait runAllowlistedAction(intent.action, intent.params);\ncontainer.textContent = await llm.reply(userMessage);\n```\n\n## Security Review Checklist\n\n```markdown\n### Authentication\n- [ ] Passwords hashed with bcrypt\u002Fscrypt\u002Fargon2 (salt rounds ≥ 12)\n- [ ] Session tokens are httpOnly, secure, sameSite\n- [ ] Login has rate limiting\n- [ ] Password reset tokens expire\n\n### Authorization\n- [ ] Every endpoint checks user permissions\n- [ ] Users can only access their own resources\n- [ ] Admin actions require admin role verification\n\n### Input\n- [ ] All user input validated at the boundary\n- [ ] SQL queries are parameterized\n- [ ] HTML output is encoded\u002Fescaped\n- [ ] Server-side URL fetches are allowlisted (no SSRF to internal services)\n\n### Data\n- [ ] No secrets in code or version control\n- [ ] Sensitive fields excluded from API responses\n- [ ] PII encrypted at rest (if applicable)\n\n### Infrastructure\n- [ ] Security headers configured (CSP, HSTS, etc.)\n- [ ] CORS restricted to known origins\n- [ ] Dependencies audited for vulnerabilities\n- [ ] Error messages don't expose internals\n\n### Supply Chain\n- [ ] Lockfile committed; CI installs with `npm ci`\n- [ ] New dependencies reviewed (maintenance, downloads, postinstall scripts)\n\n### AI \u002F LLM (if used)\n- [ ] Model output treated as untrusted (no eval\u002FSQL\u002FinnerHTML\u002Fshell)\n- [ ] Secrets and other users' data kept out of prompts\n- [ ] Tool\u002Fagent permissions scoped; destructive actions require confirmation\n```\n## See Also\n\nFor detailed security checklists and pre-commit verification steps, see `references\u002Fsecurity-checklist.md`.\n\n## Common Rationalizations\n\n| Rationalization | Reality |\n|---|---|\n| \"This is an internal tool, security doesn't matter\" | Internal tools get compromised. Attackers target the weakest link. |\n| \"We'll add security later\" | Security retrofitting is 10x harder than building it in. Add it now. |\n| \"No one would try to exploit this\" | Automated scanners will find it. Security by obscurity is not security. |\n| \"The framework handles security\" | Frameworks provide tools, not guarantees. You still need to use them correctly. |\n| \"It's just a prototype\" | Prototypes become production. Security habits from day one. |\n| \"Threat modeling is overkill here\" | Five minutes of \"how would I attack this?\" prevents the design flaws no control can patch later. |\n| \"It's just LLM output, it's only text\" | That \"text\" can be a SQL statement, a script tag, or a shell command. Treat it like any untrusted input. |\n\n## Red Flags\n\n- User input passed directly to database queries, shell commands, or HTML rendering\n- Secrets in source code or commit history\n- API endpoints without authentication or authorization checks\n- Missing CORS configuration or wildcard (`*`) origins\n- No rate limiting on authentication endpoints\n- Stack traces or internal errors exposed to users\n- Dependencies with known critical vulnerabilities\n- Server fetches user-supplied URLs without an allowlist (SSRF)\n- LLM\u002Fmodel output passed into a query, the DOM, a shell, or `eval`\n- Secrets, PII, or the full system prompt placed inside an LLM context window\n\n## Verification\n\nAfter implementing security-relevant code:\n\n- [ ] `npm audit` shows no critical or high vulnerabilities\n- [ ] No secrets in source code or git history\n- [ ] All user input validated at system boundaries\n- [ ] Authentication and authorization checked on every protected endpoint\n- [ ] Security headers present in response (check with browser DevTools)\n- [ ] Error responses don't expose internal details\n- [ ] Rate limiting active on auth endpoints\n- [ ] Server-side URL fetches validated against an allowlist (no SSRF)\n- [ ] LLM\u002Fmodel output validated and encoded before use (if AI features present)\n",{"name":5,"description":7},"develop","fb9a5af356f540de4839ef851ebbe14bcce64c0f","packages\u002Feng-disciplines\u002F.pi\u002Fskills\u002Fsecurity-hardening",56,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard","https:\u002F\u002Fpi-dashboard.dev\u002F","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology","https:\u002F\u002Fwww.blackbelt.hu","2026-11-12 23:37:37",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill security-hardening",{"tool":60,"command":61},"bunx","bunx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill security-hardening",{"tool":63,"command":64},"pnpm","pnpm dlx skills add BlackBeltTechnology\u002Fpi-agent-dashboard --skill security-hardening","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Feng-disciplines\u002F.pi\u002Fskills\u002Fsecurity-hardening\u002FSKILL.md",true,[68],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"SKILL.agent.md","REFERENCE","参考文档",5164,"https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Feng-disciplines\u002F.pi\u002Fskills\u002Fsecurity-hardening\u002FSKILL.agent.md",[75,102,127,150,171,192],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":40},"01M6HQYQ5B82AM5T9Y299S9CFY","youtube-srt","Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on \"download the srt of this video\", \"transcripts of channel X for the last N months\", \"catalog the models AI Search talked about\", \"update docs\u002Fmodels\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fyoutube-srt\u002FSKILL.md",[],[82,83,84,85,86,87,88,89,90,91,92,30,93,94,95,96,97,98,99,100,101],"youtube","srt","youtube srt","update","search","subtitles","dlp","Video","Media","open","catalog","update docs","yt-dlp","local","mine","via","ai models","last","for","media download",{"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":40},"01M6HQYJBKSXR55T5RSYNJQG4D","video-transcription","Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on \"\u002Ftranscribe\", \"transcribe my meetings\", \"transcribe videos in ~\u002FMovies\", or any request to convert audio\u002Fvideo to text.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fvideo-transcription\u002FSKILL.md",[],[89,109,110,111,87,112,113,114,115,116,117,30,118,119,120,27,121,122,123,83,124,125,126,22],"transcription","video transcription","transcribe","api","Audio","convert","mp4","text","meetings","files","default","mp3","with","videos","assemblyai","my","srt subtitles","request",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":40},"01M6HQYECMVDC5TDHHW22VC5RX","speaker-id","Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers \"who is speaker 2\", \"put names on the transcript\", \"label the meeting SRT\", \"the diarization split one person into three\", \"enroll my voice\". Backed by the pi-voiceid CLI.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-transcription\u002F.pi\u002Fskills\u002Fspeaker-id\u002FSKILL.md",[],[134,135,136,137,112,138,139,140,141,142,143,95,27,144,145,146,147,83,148,149],"id","speaker id","cli","transcript","voice","pi","only","three","drift","repair","name","CPU","meeting","anonymous","split","person",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":40},"01M6HQYAZWDXE9QJEG592E5PXK","veo-showreel-production-kit","Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-showreel-production-kit\u002FSKILL.md",[],[157,158,159,160,161,162,163,89,164,165,166,167,121,168,169,170],"Production","veo","kit","veo showreel production kit","package","Reproducible","timeline","prompt","voiceover","storyboard","anchor","consistency","veo 3","2026",{"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":40},"01M6HQY6TJ0X1ADDKYPMVJY6NV","veo-generator","Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots\u002F*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on \"render the Veo video for \u003Cproject>\", \"generate the videos from the shot scripts\", \"make the clips with Veo\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fveo-generator\u002FSKILL.md",[],[158,178,179,180,181,161,112,89,115,164,30,182,140,183,184,185,186,28,167,187,188,189,190,121,191,100,169],"generator","veo generator","google","generate","clip","sketch","camera","world","seed","cut","scripts","make","render","google veo",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":40},"01M6HQY1K2NZJ3B2YHSJJPPVAF","hyperframes-showreel","Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on \"make a showreel from these recordings\", \"build the HyperFrames video\", \"assemble the footage edit\", \"render and QA the showreel\".","https:\u002F\u002Fgithub.com\u002FBlackBeltTechnology\u002Fpi-agent-dashboard\u002Fblob\u002Fdevelop\u002Fpackages\u002Fvideo-production\u002F.pi\u002Fskills\u002Fhyperframes-showreel\u002FSKILL.md",[],[199,200,201,89,202,203,204,30,205,206,207,140,208,209,210,211,212,190,121,213],"hyperframes","hyperframes showreel","qa","Composition","edit","generated","assemble","export","sampling","build","delivery","as","fx","screen","script"]