[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B14SSR0E82710FFETCA0B3":3,"skill-same:01M7B14SSR0E82710FFETCA0B3":44},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7B14SSR0E82710FFETCA0B3","prd-securability-enhancement",null,"Enhance PRDs, feature specs, user stories, or product briefs with explicit OWASP ASVS coverage and FIASSE v1.0.4 SSEM implementation guidance — before code is written. Trigger on \"harden the PRD\u002Fspec\", \"choose ASVS level\", \"map features to ASVS\", \"find missing security requirements\", \"add NFRs for security\", \"make these requirements securable\", \"security-review my product brief\". For code review use securability-engineering-review; for code generation use securability-engineering.","aeroalgo\u002Fdev-hub","aeroalgo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F71006969?v=4","01M7B06910BBQC29R55C0V7XYW","Андрей","01M7B0691R77MY9Q3YXE7W683M",0,"CC-BY-4.0","https:\u002F\u002Fgithub.com\u002Faeroalgo\u002Fdev-hub\u002Fblob\u002Fmaster\u002Fharness\u002Fskills\u002Fprd-securability-enhancement\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: prd-securability-enhancement\ndescription: Enhance PRDs, feature specs, user stories, or product briefs with explicit OWASP ASVS coverage and FIASSE v1.0.4 SSEM implementation guidance — before code is written. Trigger on \"harden the PRD\u002Fspec\", \"choose ASVS level\", \"map features to ASVS\", \"find missing security requirements\", \"add NFRs for security\", \"make these requirements securable\", \"security-review my product brief\". For code review use securability-engineering-review; for code generation use securability-engineering.\nlicense: CC-BY-4.0\n---\n\n# PRD Securability Enhancement (FIASSE\u002FSSEM + ASVS)\n\nEnhance PRD content so each feature has explicit, testable securability requirements aligned to OWASP ASVS and shaped by FIASSE v1.0.4 \u002F SSEM. The goal is to upgrade the requirements artifact *before* implementation, so delivery teams build securable capabilities by design rather than retrofitting controls later.\n\nThis skill is requirements-centric. It does not review or write code. If the user wants code review, redirect to `securability-engineering-review`. If they want code generation, redirect to `securability-engineering`.\n\n## When to Invoke\n\nTrigger this skill when the user asks to:\n\n- Strengthen or harden a PRD, spec, user-story set, or product brief with security requirements\n- Choose an ASVS assurance level (Level 1, 2, or 3) for a product or feature\n- Map features to ASVS controls or check ASVS coverage of a requirements doc\n- Find missing security requirements before development starts\n- Annotate features with SSEM attributes or FIASSE tenets\n- Add testable security acceptance criteria to existing functional requirements\n\nAdjacent phrasings: \"security-review this spec\", \"what's missing security-wise from this feature list\", \"add NFRs for security to my PRD\", \"make these requirements securable\".\n\n## Inputs\n\nAsk the user for whatever is missing before starting:\n\n- The PRD, spec, or feature list (markdown, prose, ticket export, etc.)\n- System context: user types, deployment model, data sensitivity, integration surfaces\n- Compliance or risk context, if any (HIPAA, PCI, SOC 2, regulated industry)\n- Whether they have an ASVS level preference, or want this skill to recommend one\n\nIf the artifact is large, parse the features inline; do not require the user to pre-extract them.\n\n## Procedure\n\n### Step 1 — Parse features\n\nExtract each feature into a normalized record. Capture for each:\n\n- Feature ID and title (assign IDs like `F-01` if absent)\n- Actor (user role, system, external service)\n- Data touched and sensitivity class\n- Trust boundaries crossed (browser↔server, service↔service, server↔storage, internal↔external)\n- Existing acceptance criteria (verbatim, even if weak)\n\nIf the source PRD lumps several capabilities into one bullet, split them so each feature is independently testable.\n\n### Step 2 — Choose the ASVS level *first*\n\nSelecting the level before mapping requirements prevents both under-scoping and over-scoping. Use this rubric:\n\n| Level | Use when |\n|-------|----------|\n| **1** | Internal tooling, prototypes, low-sensitivity data, no regulatory pressure, limited blast radius if compromised |\n| **2** | Typical production web\u002FAPI systems with authenticated users, business-critical behavior, customer data, or moderate regulatory exposure (most products land here) |\n| **3** | High-assurance contexts: payments, health records, government, identity providers, anything where compromise causes severe material impact or where attackers are well-resourced |\n\nDefault to Level 2 unless evidence pushes lower or higher. Document:\n\n- Chosen level\n- Why lower levels are insufficient (when level > 1)\n- Any specific features that should escalate above the baseline (e.g., a payments endpoint inside a Level-2 product gets Level-3 treatment)\n\n### Step 3 — Map each feature to ASVS\n\nFor every feature, use `data\u002Fasvs\u002FREADME.md` (chapter index) and the `when_to_use` frontmatter in `data\u002Fasvs\u002FV*.md` to identify applicable chapters. Common mappings:\n\n- Auth flows → V2 (Authentication), V3 (Session Management)\n- Authorization, ownership, multi-tenant scoping → V4 (Access Control)\n- File upload\u002Fdownload → V5 (File Handling)\n- Crypto, password storage, tokens → V6 (Cryptography)\n- Logging, error handling, observability → V7 (Error\u002FLogging)\n- PII, data at rest\u002Fin transit → V8 (Data Protection), V14 (Secure Communication)\n- Public APIs → V9 (API\u002FWeb Services)\n- Config, secrets, deployment → V10 (Configuration)\n- Workflow rules, anti-automation → V11 (Business Logic)\n- Any user\u002Fexternal input → V12 (Input Validation)\n- Anything rendered or returned to a client → V13 (Output Encoding)\n- Sensitive data lifecycle → V16 (Sensitive Data)\n\nFilter requirements by the chosen ASVS level. For each requirement, classify coverage:\n\n- **Covered** — the PRD already satisfies the intent\n- **Partial** — partly covered; clarify or strengthen acceptance criteria\n- **Missing** — requirement absent and must be added\n- **N\u002FA** — justified with a one-line rationale\n\nUse the **ASVS Coverage Gap Pattern Table** below to spot the gaps that PRDs reliably miss.\n\n### Step 4 — Add Securability Notes per feature\n\nWrite a *short* paragraph per feature surfacing only the SSEM and FIASSE points that materially shape implementation. Do not enumerate all ten SSEM attributes or all FIASSE tenets — that produces noise.\n\nUseful lenses (mention only when relevant):\n\n- Trust-boundary handling and input canonicalization (FIASSE v1.0.4 S4.3, S4.4.1)\n- Derived Integrity — never trust client-supplied values for server-owned state (FIASSE v1.0.4 S4.4.1.2)\n- Request Surface Minimization — process only the named values you expect (FIASSE v1.0.4 S4.4.1.1)\n- Observability: what must be logged or auditable (FIASSE v1.0.4 S3.2.1.4 + Accountability; Transparency S2.5)\n- Least Astonishment — predictable behavior at trust boundaries and error paths (FIASSE v1.0.4 S2.6)\n- Resilience or availability drivers (rate limits, timeouts, graceful and **secure** failure)\n- Testability or modifiability mandates (e.g., centralizing crypto\u002Fauth in a dedicated module)\n- Dependency stewardship — ongoing relationship with third-party code (FIASSE v1.0.4 S4.6)\n\n### Step 5 — Convert into testable acceptance criteria\n\nFor each added or strengthened requirement, write at least one acceptance criterion that is:\n\n- Behaviorally observable (a test or audit can confirm pass\u002Ffail)\n- Specific about boundary conditions (failure modes, unauthorized actors, malformed input)\n- Tied to a verifiable artifact (log line, response code, denied action)\n\nAmbiguous \"secure\" or \"robust\" language is not acceptable here.\n\n### Step 6 — Emit the enhanced PRD artifact\n\nProduce these sections in order, using the exact templates below.\n\n## ASVS Coverage Gap Pattern Table\n\nThese are the gaps PRDs reliably miss. When you see one of the trigger phrasings on the left, add the named requirements on the right — they are almost always missing in the source artifact.\n\n| PRD trigger phrasing (what the feature *says*) | Almost-always-missing requirements | ASVS section | Tag |\n|---|---|---|---|\n| \"User logs in with email and password\" | Account-enumeration parity (same response\u002Ftiming for valid vs invalid email); password-screen against breached-password list; auth-event audit log; per-account brute-force rate limit | V6.3.8, V2.1, V2.4, V16.3 | \"Auth surface gaps\" |\n| \"User resets\u002Fforgets password\" | Account-enumeration parity on the request endpoint; single-use token; short expiry (≤15 min); token-hash-at-rest; rate-limit per email and per IP; audit log of issuance\u002Fredemption | V6.3.8, V6.2, V2.4, V16.3 | \"Reset flow gaps\" |\n| \"User uploads a file\" | Type allow-list (not deny-list); content-sniffing vs declared type; max size; antivirus\u002Fsafe-storage path; filename canonicalization; storage outside web root; URL non-guessability | V5.1, V5.2, V12.1 | \"Upload gaps\" |\n| \"User can edit their profile\" \u002F \"update settings\" | Allow-listed mutable fields (no `email`\u002F`role`\u002F`is_admin` from request body); ownership check on the resource; audit log of changes; old-vs-new value capture | V4.1, V4.2, V16.2, V16.3 | \"Mass-assignment gaps\" |\n| \"Admin can do X\" \u002F \"role-based access\" | Authorization decision logged with grant\u002Fdeny; centralized authz module (not scattered checks); deny-by-default at boundary; ownership scoping on every record fetch | V4.1, V4.2, V16.2, V16.3 | \"Authz gap\" |\n| \"Public API endpoint\" \u002F \"third-party integration\" | Per-key\u002Fper-client rate limits; auth for every call (not first-call only); request-id propagation; response field allow-list (no leaking internal fields); contract validation | V2.4, V9.1, V13.1, V16.2 | \"API gaps\" |\n| \"Send email\u002FSMS to user\" | Templated payload with no user-controlled subject\u002Fbody injection; rate-limit per recipient and per actor; bounce\u002Fabuse-loop handling; opt-out and audit log | V2.4, V12.1, V13.1, V16.3 | \"Outbound-message gaps\" |\n| \"Search \u002F filter \u002F list with user-supplied parameters\" | Parameter allow-list; ordering\u002Fpagination caps; query timeout; result count cap; tenant\u002Fowner scoping enforced server-side | V4.1, V12.1, V13.1 | \"Query-surface gaps\" |\n| \"Webhook receiver\" \u002F \"callback URL\" | Source verification (signature, mTLS, IP allow-list); replay protection (timestamp + nonce); idempotency key; rate-limit; audit log of received events | V2.4, V2.5, V9.1, V16.3 | \"Webhook gaps\" |\n| \"Save user file\u002Fdocument\u002Fnote\" | Owner identifier never client-supplied; size and content caps; rich-text\u002FHTML sanitization on read or write; audit log of writes | V4.1, V5.1, V12.1, V16.3 | \"Server-owned state gaps (Derived Integrity)\" |\n| \"Export data\" \u002F \"download report\" | Authorization re-checked on export (not just on UI route); rate-limit; audit log including row count; PII-scrub policy if applicable | V4.1, V7.1.1, V8.1 | \"Export gaps\" |\n| \"Background job processes user-submitted data\" | Same boundary discipline as the synchronous path (validation, surface minimization, owner scoping); job-level audit log; poison-message handling and DLQ | V11.1, V12.1, V7.1.1 | \"Async-path boundary gaps\" |\n| \"Configuration \u002F feature flag \u002F admin setting\" | Change requires authenticated actor and audit record; cannot be set via product API without admin role; secret values never echoed back; defaults are safe | V7.1.1, V10.1, V14.2 | \"Config-surface gaps\" |\n| \"PII\u002FPHI\u002Ffinancial data\" mentioned anywhere | Field-level classification; encryption at rest and in transit; retention\u002Fdisposal policy; access-log requirement; export\u002Ferasure (right-to-be-forgotten) flows | V8.1, V14.1 | \"Sensitive-data lifecycle gaps\" |\n| \"Real-time\" \u002F \"websocket\" \u002F \"streaming\" feature | Per-connection auth (not just first message); per-connection resource caps; back-pressure \u002F max-queue; idle timeout; audit of connection lifecycle | V3.1, V9.1, V11.1.4 | \"Streaming gaps\" |\n| \"AI\u002FLLM-backed feature\" | Prompt-injection handling at trust boundary; output validation before downstream side effects; per-actor rate limit and cost cap; audit log of prompts and tool calls; PII redaction policy | V11.1, V12.1, V8.1 | \"LLM boundary gaps\" |\n\nWhen a feature triggers one of these patterns, prefill the corresponding requirements as **Missing** in the coverage matrix unless the PRD explicitly addresses them — most of the time it doesn't.\n\n## Output Templates\n\n### A. ASVS Level Decision\n\n```markdown\n## ASVS Level Decision\n\n**Chosen Level**: [1 | 2 | 3]\n\n**Rationale**: [2–4 sentences. Cover data sensitivity, user population, regulatory context, and material-impact reasoning. Note why lower levels are insufficient if Level > 1.]\n\n**Feature-Level Escalations**: [List any features that need a higher level than baseline, with one-line justification, or \"None\".]\n```\n\n### B. Coverage Matrix\n\n```markdown\n## Feature ↔ ASVS Coverage Matrix\n\n| Feature | ASVS Section | Requirement ID | Level | Coverage | PRD Change Needed |\n|---------|--------------|----------------|-------|----------|-------------------|\n| F-01    | V2.2         | 2.2.1          | 2     | Missing  | Add MFA requirement for high-risk actions |\n| F-01    | V7.1         | 7.1.1          | 2     | Partial  | Specify which auth events are logged |\n| F-02    | V12.1        | 12.1.1         | 2     | Covered  | — |\n```\n\nAim for completeness over brevity here — every feature × every applicable requirement gets a row. Where the gap pattern table applies, include the named requirements it surfaces.\n\n### C. Enhanced Feature Specifications\n\nFor each feature, emit exactly this shape:\n\n```markdown\n### Feature F-01: [Title]\n\n**Actor**: [user role \u002F system]\n**Data**: [data classes touched]\n**Trust Boundaries**: [boundaries crossed]\n\n**ASVS Mapping**: V2.2.1, V7.1.1, ...\n\n**Updated Requirements**:\n- [Original requirement, kept or rewritten]\n- [Newly added requirement from ASVS mapping]\n- [Newly added requirement from ASVS mapping]\n\n**Acceptance Criteria**:\n- [Testable criterion tied to a requirement above]\n- [Testable criterion tied to a requirement above]\n\n**Securability Notes**: [Short paragraph — only material SSEM\u002FFIASSE points for this feature. Do not enumerate all attributes.]\n```\n\n### D. Cross-Cutting Securability Requirements\n\nControls that span multiple features (centralized logging, secrets management, dependency policy, baseline TLS, error-handling standards). One bullet each, with the ASVS reference.\n\n### E. Open Gaps and Assumptions\n\nAnything you could not resolve from the input: missing system context, unclear data sensitivity, unstated user populations, deferred decisions. Be explicit so the team can close these before implementation.\n\n## Worked Example (Mini)\n\n**Input feature (from a PRD):**\n\n> F-03: Users can reset their password by clicking \"Forgot Password\" and entering their email. The system emails a reset link.\n\nThis trips the \"Reset flow gaps\" pattern in the gap table — so the missing requirements are predictable.\n\n**Enhanced output:**\n\n```markdown\n### Feature F-03: Password Reset via Email\n\n**Actor**: Unauthenticated user (claiming an account)\n**Data**: Email address (PII), password (credential), reset token\n**Trust Boundaries**: browser → public API; API → email provider; API → credential store\n\n**ASVS Mapping**: V2.2.2, V6.2.1, V6.2.2, V7.1.1, V11.1.4, V12.1.1\n\n**Updated Requirements**:\n- User can request a password reset by entering an account email at `\u002Freset`.\n- The system always returns the same success response whether or not the email matches an account (prevents account enumeration, V2.2.2).\n- Reset tokens are single-use, expire within 15 minutes, and are stored only as a salted hash (V6.2).\n- New passwords are validated against a minimum policy and screened against a known-breached-password list (V6.2.1).\n- All reset requests, token issuances, token redemptions, and password changes are logged with user ID, source IP, user agent, and outcome (V7.1.1).\n- Reset requests are rate-limited per email and per source IP (V11.1.4).\n- The email input is canonicalized and validated against a strict format (V12.1.1).\n\n**Acceptance Criteria**:\n- Submitting a non-existent email returns the same response body, status code, and timing characteristics as a valid email (within tolerance).\n- A reset token cannot be redeemed after 15 minutes or after first successful use; both cases produce a generic failure response and a logged `reset_token_invalid` event.\n- More than 5 reset requests for the same email within 10 minutes are rejected with HTTP 429 and logged.\n- Audit log lines for reset events are queryable by user ID and contain the fields above.\n\n**Securability Notes**: This feature crosses an unauthenticated trust boundary (FIASSE v1.0.4 S4.3), so input handling and rate limiting are the load-bearing concerns. The reset token is server-owned state; never accept client-supplied token attributes beyond the opaque token itself (Derived Integrity, FIASSE v1.0.4 S4.4.1.2). Centralize token generation, hashing, and verification in a single module so the policy can evolve without touching call sites (Modifiability). All reset events must be observable in the audit pipeline so abuse patterns can be detected (Accountability + Observability, FIASSE v1.0.4 S3.2.1.4; Transparency S2.5).\n```\n\nThis is the level of specificity the output should hit — concrete, testable, and traceable back to ASVS.\n\n## Quality Checklist (run before emitting)\n\n**Coverage**\n- [ ] Every feature has an ID, actor, data classification, and trust-boundary list\n- [ ] ASVS level is chosen and justified before per-feature mapping\n- [ ] Every feature mapped against all applicable ASVS chapters at the chosen level\n- [ ] Gap patterns from the table above were applied to every relevant feature\n- [ ] Every Missing\u002FPartial item produced a concrete PRD change\n\n**Output discipline**\n- [ ] Coverage matrix is present and includes change-needed column\n- [ ] Each feature follows the exact output shape (Actor \u002F Data \u002F Trust Boundaries \u002F ASVS Mapping \u002F Updated Requirements \u002F Acceptance Criteria \u002F Securability Notes)\n- [ ] Acceptance criteria are behaviorally testable, not aspirational\n- [ ] Securability Notes are surgical — only material SSEM\u002FFIASSE points, not exhaustive enumeration\n\n**Traceability**\n- [ ] Every added requirement cites its ASVS reference\n- [ ] Cross-cutting requirements section captures shared controls\n- [ ] Open gaps and assumptions are listed explicitly\n\n## When in doubt\n\n- Prefer adding a missing requirement over assuming coverage; mark it explicitly so reviewers see it.\n- Prefer fewer, sharper ASVS references per feature over a long list that nobody will action.\n- Prefer plain language in Securability Notes — these are read by product managers, not just security engineers.\n\n## Reference Material\n\n- Step-by-step runbook: [plays\u002Fprd-fiasse-asvs-enhancement.md](..\u002F..\u002Fplays\u002Fprd-fiasse-asvs-enhancement.md)\n- ASVS chapter index: `data\u002Fasvs\u002FREADME.md`\n- ASVS requirements (per chapter): `data\u002Fasvs\u002FV*.md`\n- FIASSE v1.0.4 foundational principles: `data\u002Ffiasse\u002FS2.1.md`–`S2.6.md` (Transparency S2.5, Least Astonishment S2.6)\n- FIASSE v1.0.4 SSEM attribute umbrellas: `data\u002Ffiasse\u002FS3.2.1.md`–`S3.2.3.md`; leaf files (e.g. `S3.2.1.4.md` Observability) for attribute-specific guidance\n- FIASSE v1.0.4 Boundary Control and Resilient Coding: `data\u002Ffiasse\u002FS4.3.md`, `S4.4.md`, and the canonical-input-handling leaves `S4.4.1.md`, `S4.4.1.1.md`, `S4.4.1.2.md`\n- FIASSE v1.0.4 Dependency Management and Stewardship: `data\u002Ffiasse\u002FS4.5.md`, `S4.6.md`\n","# PRD Securability Enhancement (FIASSE\u002FSSEM + ASVS)\n\nEnhance PRD content so each feature has explicit, testable securability requirements aligned to OWASP ASVS and shaped by FIASSE v1.0.4 \u002F SSEM. The goal is to upgrade the requirements artifact *before* implementation, so delivery teams build securable capabilities by design rather than retrofitting controls later.\n\nThis skill is requirements-centric. It does not review or write code. If the user wants code review, redirect to `securability-engineering-review`. If they want code generation, redirect to `securability-engineering`.\n\n## When to Invoke\n\nTrigger this skill when the user asks to:\n\n- Strengthen or harden a PRD, spec, user-story set, or product brief with security requirements\n- Choose an ASVS assurance level (Level 1, 2, or 3) for a product or feature\n- Map features to ASVS controls or check ASVS coverage of a requirements doc\n- Find missing security requirements before development starts\n- Annotate features with SSEM attributes or FIASSE tenets\n- Add testable security acceptance criteria to existing functional requirements\n\nAdjacent phrasings: \"security-review this spec\", \"what's missing security-wise from this feature list\", \"add NFRs for security to my PRD\", \"make these requirements securable\".\n\n## Inputs\n\nAsk the user for whatever is missing before starting:\n\n- The PRD, spec, or feature list (markdown, prose, ticket export, etc.)\n- System context: user types, deployment model, data sensitivity, integration surfaces\n- Compliance or risk context, if any (HIPAA, PCI, SOC 2, regulated industry)\n- Whether they have an ASVS level preference, or want this skill to recommend one\n\nIf the artifact is large, parse the features inline; do not require the user to pre-extract them.\n\n## Procedure\n\n### Step 1 — Parse features\n\nExtract each feature into a normalized record. Capture for each:\n\n- Feature ID and title (assign IDs like `F-01` if absent)\n- Actor (user role, system, external service)\n- Data touched and sensitivity class\n- Trust boundaries crossed (browser↔server, service↔service, server↔storage, internal↔external)\n- Existing acceptance criteria (verbatim, even if weak)\n\nIf the source PRD lumps several capabilities into one bullet, split them so each feature is independently testable.\n\n### Step 2 — Choose the ASVS level *first*\n\nSelecting the level before mapping requirements prevents both under-scoping and over-scoping. Use this rubric:\n\n| Level | Use when |\n|-------|----------|\n| **1** | Internal tooling, prototypes, low-sensitivity data, no regulatory pressure, limited blast radius if compromised |\n| **2** | Typical production web\u002FAPI systems with authenticated users, business-critical behavior, customer data, or moderate regulatory exposure (most products land here) |\n| **3** | High-assurance contexts: payments, health records, government, identity providers, anything where compromise causes severe material impact or where attackers are well-resourced |\n\nDefault to Level 2 unless evidence pushes lower or higher. Document:\n\n- Chosen level\n- Why lower levels are insufficient (when level > 1)\n- Any specific features that should escalate above the baseline (e.g., a payments endpoint inside a Level-2 product gets Level-3 treatment)\n\n### Step 3 — Map each feature to ASVS\n\nFor every feature, use `data\u002Fasvs\u002FREADME.md` (chapter index) and the `when_to_use` frontmatter in `data\u002Fasvs\u002FV*.md` to identify applicable chapters. Common mappings:\n\n- Auth flows → V2 (Authentication), V3 (Session Management)\n- Authorization, ownership, multi-tenant scoping → V4 (Access Control)\n- File upload\u002Fdownload → V5 (File Handling)\n- Crypto, password storage, tokens → V6 (Cryptography)\n- Logging, error handling, observability → V7 (Error\u002FLogging)\n- PII, data at rest\u002Fin transit → V8 (Data Protection), V14 (Secure Communication)\n- Public APIs → V9 (API\u002FWeb Services)\n- Config, secrets, deployment → V10 (Configuration)\n- Workflow rules, anti-automation → V11 (Business Logic)\n- Any user\u002Fexternal input → V12 (Input Validation)\n- Anything rendered or returned to a client → V13 (Output Encoding)\n- Sensitive data lifecycle → V16 (Sensitive Data)\n\nFilter requirements by the chosen ASVS level. For each requirement, classify coverage:\n\n- **Covered** — the PRD already satisfies the intent\n- **Partial** — partly covered; clarify or strengthen acceptance criteria\n- **Missing** — requirement absent and must be added\n- **N\u002FA** — justified with a one-line rationale\n\nUse the **ASVS Coverage Gap Pattern Table** below to spot the gaps that PRDs reliably miss.\n\n### Step 4 — Add Securability Notes per feature\n\nWrite a *short* paragraph per feature surfacing only the SSEM and FIASSE points that materially shape implementation. Do not enumerate all ten SSEM attributes or all FIASSE tenets — that produces noise.\n\nUseful lenses (mention only when relevant):\n\n- Trust-boundary handling and input canonicalization (FIASSE v1.0.4 S4.3, S4.4.1)\n- Derived Integrity — never trust client-supplied values for server-owned state (FIASSE v1.0.4 S4.4.1.2)\n- Request Surface Minimization — process only the named values you expect (FIASSE v1.0.4 S4.4.1.1)\n- Observability: what must be logged or auditable (FIASSE v1.0.4 S3.2.1.4 + Accountability; Transparency S2.5)\n- Least Astonishment — predictable behavior at trust boundaries and error paths (FIASSE v1.0.4 S2.6)\n- Resilience or availability drivers (rate limits, timeouts, graceful and **secure** failure)\n- Testability or modifiability mandates (e.g., centralizing crypto\u002Fauth in a dedicated module)\n- Dependency stewardship — ongoing relationship with third-party code (FIASSE v1.0.4 S4.6)\n\n### Step 5 — Convert into testable acceptance criteria\n\nFor each added or strengthened requirement, write at least one acceptance criterion that is:\n\n- Behaviorally observable (a test or audit can confirm pass\u002Ffail)\n- Specific about boundary conditions (failure modes, unauthorized actors, malformed input)\n- Tied to a verifiable artifact (log line, response code, denied action)\n\nAmbiguous \"secure\" or \"robust\" language is not acceptable here.\n\n### Step 6 — Emit the enhanced PRD artifact\n\nProduce these sections in order, using the exact templates below.\n\n## ASVS Coverage Gap Pattern Table\n\nThese are the gaps PRDs reliably miss. When you see one of the trigger phrasings on the left, add the named requirements on the right — they are almost always missing in the source artifact.\n\n| PRD trigger phrasing (what the feature *says*) | Almost-always-missing requirements | ASVS section | Tag |\n|---|---|---|---|\n| \"User logs in with email and password\" | Account-enumeration parity (same response\u002Ftiming for valid vs invalid email); password-screen against breached-password list; auth-event audit log; per-account brute-force rate limit | V6.3.8, V2.1, V2.4, V16.3 | \"Auth surface gaps\" |\n| \"User resets\u002Fforgets password\" | Account-enumeration parity on the request endpoint; single-use token; short expiry (≤15 min); token-hash-at-rest; rate-limit per email and per IP; audit log of issuance\u002Fredemption | V6.3.8, V6.2, V2.4, V16.3 | \"Reset flow gaps\" |\n| \"User uploads a file\" | Type allow-list (not deny-list); content-sniffing vs declared type; max size; antivirus\u002Fsafe-storage path; filename canonicalization; storage outside web root; URL non-guessability | V5.1, V5.2, V12.1 | \"Upload gaps\" |\n| \"User can edit their profile\" \u002F \"update settings\" | Allow-listed mutable fields (no `email`\u002F`role`\u002F`is_admin` from request body); ownership check on the resource; audit log of changes; old-vs-new value capture | V4.1, V4.2, V16.2, V16.3 | \"Mass-assignment gaps\" |\n| \"Admin can do X\" \u002F \"role-based access\" | Authorization decision logged with grant\u002Fdeny; centralized authz module (not scattered checks); deny-by-default at boundary; ownership scoping on every record fetch | V4.1, V4.2, V16.2, V16.3 | \"Authz gap\" |\n| \"Public API endpoint\" \u002F \"third-party integration\" | Per-key\u002Fper-client rate limits; auth for every call (not first-call only); request-id propagation; response field allow-list (no leaking internal fields); contract validation | V2.4, V9.1, V13.1, V16.2 | \"API gaps\" |\n| \"Send email\u002FSMS to user\" | Templated payload with no user-controlled subject\u002Fbody injection; rate-limit per recipient and per actor; bounce\u002Fabuse-loop handling; opt-out and audit log | V2.4, V12.1, V13.1, V16.3 | \"Outbound-message gaps\" |\n| \"Search \u002F filter \u002F list with user-supplied parameters\" | Parameter allow-list; ordering\u002Fpagination caps; query timeout; result count cap; tenant\u002Fowner scoping enforced server-side | V4.1, V12.1, V13.1 | \"Query-surface gaps\" |\n| \"Webhook receiver\" \u002F \"callback URL\" | Source verification (signature, mTLS, IP allow-list); replay protection (timestamp + nonce); idempotency key; rate-limit; audit log of received events | V2.4, V2.5, V9.1, V16.3 | \"Webhook gaps\" |\n| \"Save user file\u002Fdocument\u002Fnote\" | Owner identifier never client-supplied; size and content caps; rich-text\u002FHTML sanitization on read or write; audit log of writes | V4.1, V5.1, V12.1, V16.3 | \"Server-owned state gaps (Derived Integrity)\" |\n| \"Export data\" \u002F \"download report\" | Authorization re-checked on export (not just on UI route); rate-limit; audit log including row count; PII-scrub policy if applicable | V4.1, V7.1.1, V8.1 | \"Export gaps\" |\n| \"Background job processes user-submitted data\" | Same boundary discipline as the synchronous path (validation, surface minimization, owner scoping); job-level audit log; poison-message handling and DLQ | V11.1, V12.1, V7.1.1 | \"Async-path boundary gaps\" |\n| \"Configuration \u002F feature flag \u002F admin setting\" | Change requires authenticated actor and audit record; cannot be set via product API without admin role; secret values never echoed back; defaults are safe | V7.1.1, V10.1, V14.2 | \"Config-surface gaps\" |\n| \"PII\u002FPHI\u002Ffinancial data\" mentioned anywhere | Field-level classification; encryption at rest and in transit; retention\u002Fdisposal policy; access-log requirement; export\u002Ferasure (right-to-be-forgotten) flows | V8.1, V14.1 | \"Sensitive-data lifecycle gaps\" |\n| \"Real-time\" \u002F \"websocket\" \u002F \"streaming\" feature | Per-connection auth (not just first message); per-connection resource caps; back-pressure \u002F max-queue; idle timeout; audit of connection lifecycle | V3.1, V9.1, V11.1.4 | \"Streaming gaps\" |\n| \"AI\u002FLLM-backed feature\" | Prompt-injection handling at trust boundary; output validation before downstream side effects; per-actor rate limit and cost cap; audit log of prompts and tool calls; PII redaction policy | V11.1, V12.1, V8.1 | \"LLM boundary gaps\" |\n\nWhen a feature triggers one of these patterns, prefill the corresponding requirements as **Missing** in the coverage matrix unless the PRD explicitly addresses them — most of the time it doesn't.\n\n## Output Templates\n\n### A. ASVS Level Decision\n\n```markdown\n## ASVS Level Decision\n\n**Chosen Level**: [1 | 2 | 3]\n\n**Rationale**: [2–4 sentences. Cover data sensitivity, user population, regulatory context, and material-impact reasoning. Note why lower levels are insufficient if Level > 1.]\n\n**Feature-Level Escalations**: [List any features that need a higher level than baseline, with one-line justification, or \"None\".]\n```\n\n### B. Coverage Matrix\n\n```markdown\n## Feature ↔ ASVS Coverage Matrix\n\n| Feature | ASVS Section | Requirement ID | Level | Coverage | PRD Change Needed |\n|---------|--------------|----------------|-------|----------|-------------------|\n| F-01    | V2.2         | 2.2.1          | 2     | Missing  | Add MFA requirement for high-risk actions |\n| F-01    | V7.1         | 7.1.1          | 2     | Partial  | Specify which auth events are logged |\n| F-02    | V12.1        | 12.1.1         | 2     | Covered  | — |\n```\n\nAim for completeness over brevity here — every feature × every applicable requirement gets a row. Where the gap pattern table applies, include the named requirements it surfaces.\n\n### C. Enhanced Feature Specifications\n\nFor each feature, emit exactly this shape:\n\n```markdown\n### Feature F-01: [Title]\n\n**Actor**: [user role \u002F system]\n**Data**: [data classes touched]\n**Trust Boundaries**: [boundaries crossed]\n\n**ASVS Mapping**: V2.2.1, V7.1.1, ...\n\n**Updated Requirements**:\n- [Original requirement, kept or rewritten]\n- [Newly added requirement from ASVS mapping]\n- [Newly added requirement from ASVS mapping]\n\n**Acceptance Criteria**:\n- [Testable criterion tied to a requirement above]\n- [Testable criterion tied to a requirement above]\n\n**Securability Notes**: [Short paragraph — only material SSEM\u002FFIASSE points for this feature. Do not enumerate all attributes.]\n```\n\n### D. Cross-Cutting Securability Requirements\n\nControls that span multiple features (centralized logging, secrets management, dependency policy, baseline TLS, error-handling standards). One bullet each, with the ASVS reference.\n\n### E. Open Gaps and Assumptions\n\nAnything you could not resolve from the input: missing system context, unclear data sensitivity, unstated user populations, deferred decisions. Be explicit so the team can close these before implementation.\n\n## Worked Example (Mini)\n\n**Input feature (from a PRD):**\n\n> F-03: Users can reset their password by clicking \"Forgot Password\" and entering their email. The system emails a reset link.\n\nThis trips the \"Reset flow gaps\" pattern in the gap table — so the missing requirements are predictable.\n\n**Enhanced output:**\n\n```markdown\n### Feature F-03: Password Reset via Email\n\n**Actor**: Unauthenticated user (claiming an account)\n**Data**: Email address (PII), password (credential), reset token\n**Trust Boundaries**: browser → public API; API → email provider; API → credential store\n\n**ASVS Mapping**: V2.2.2, V6.2.1, V6.2.2, V7.1.1, V11.1.4, V12.1.1\n\n**Updated Requirements**:\n- User can request a password reset by entering an account email at `\u002Freset`.\n- The system always returns the same success response whether or not the email matches an account (prevents account enumeration, V2.2.2).\n- Reset tokens are single-use, expire within 15 minutes, and are stored only as a salted hash (V6.2).\n- New passwords are validated against a minimum policy and screened against a known-breached-password list (V6.2.1).\n- All reset requests, token issuances, token redemptions, and password changes are logged with user ID, source IP, user agent, and outcome (V7.1.1).\n- Reset requests are rate-limited per email and per source IP (V11.1.4).\n- The email input is canonicalized and validated against a strict format (V12.1.1).\n\n**Acceptance Criteria**:\n- Submitting a non-existent email returns the same response body, status code, and timing characteristics as a valid email (within tolerance).\n- A reset token cannot be redeemed after 15 minutes or after first successful use; both cases produce a generic failure response and a logged `reset_token_invalid` event.\n- More than 5 reset requests for the same email within 10 minutes are rejected with HTTP 429 and logged.\n- Audit log lines for reset events are queryable by user ID and contain the fields above.\n\n**Securability Notes**: This feature crosses an unauthenticated trust boundary (FIASSE v1.0.4 S4.3), so input handling and rate limiting are the load-bearing concerns. The reset token is server-owned state; never accept client-supplied token attributes beyond the opaque token itself (Derived Integrity, FIASSE v1.0.4 S4.4.1.2). Centralize token generation, hashing, and verification in a single module so the policy can evolve without touching call sites (Modifiability). All reset events must be observable in the audit pipeline so abuse patterns can be detected (Accountability + Observability, FIASSE v1.0.4 S3.2.1.4; Transparency S2.5).\n```\n\nThis is the level of specificity the output should hit — concrete, testable, and traceable back to ASVS.\n\n## Quality Checklist (run before emitting)\n\n**Coverage**\n- [ ] Every feature has an ID, actor, data classification, and trust-boundary list\n- [ ] ASVS level is chosen and justified before per-feature mapping\n- [ ] Every feature mapped against all applicable ASVS chapters at the chosen level\n- [ ] Gap patterns from the table above were applied to every relevant feature\n- [ ] Every Missing\u002FPartial item produced a concrete PRD change\n\n**Output discipline**\n- [ ] Coverage matrix is present and includes change-needed column\n- [ ] Each feature follows the exact output shape (Actor \u002F Data \u002F Trust Boundaries \u002F ASVS Mapping \u002F Updated Requirements \u002F Acceptance Criteria \u002F Securability Notes)\n- [ ] Acceptance criteria are behaviorally testable, not aspirational\n- [ ] Securability Notes are surgical — only material SSEM\u002FFIASSE points, not exhaustive enumeration\n\n**Traceability**\n- [ ] Every added requirement cites its ASVS reference\n- [ ] Cross-cutting requirements section captures shared controls\n- [ ] Open gaps and assumptions are listed explicitly\n\n## When in doubt\n\n- Prefer adding a missing requirement over assuming coverage; mark it explicitly so reviewers see it.\n- Prefer fewer, sharper ASVS references per feature over a long list that nobody will action.\n- Prefer plain language in Securability Notes — these are read by product managers, not just security engineers.\n\n## Reference Material\n\n- Step-by-step runbook: [plays\u002Fprd-fiasse-asvs-enhancement.md](..\u002F..\u002Fplays\u002Fprd-fiasse-asvs-enhancement.md)\n- ASVS chapter index: `data\u002Fasvs\u002FREADME.md`\n- ASVS requirements (per chapter): `data\u002Fasvs\u002FV*.md`\n- FIASSE v1.0.4 foundational principles: `data\u002Ffiasse\u002FS2.1.md`–`S2.6.md` (Transparency S2.5, Least Astonishment S2.6)\n- FIASSE v1.0.4 SSEM attribute umbrellas: `data\u002Ffiasse\u002FS3.2.1.md`–`S3.2.3.md`; leaf files (e.g. `S3.2.1.4.md` Observability) for attribute-specific guidance\n- FIASSE v1.0.4 Boundary Control and Resilient Coding: `data\u002Ffiasse\u002FS4.3.md`, `S4.4.md`, and the canonical-input-handling leaves `S4.4.1.md`, `S4.4.1.1.md`, `S4.4.1.2.md`\n- FIASSE v1.0.4 Dependency Management and Stewardship: `data\u002Ffiasse\u002FS4.5.md`, `S4.6.md`\n",{"name":5,"license":15,"description":7},"master","6afd82404843540f5a44d929a8738661d4ee1a46","harness\u002Fskills\u002Fprd-securability-enhancement","https:\u002F\u002Fgithub.com\u002Faeroalgo\u002Fdev-hub","https:\u002F\u002Fgithub.com\u002Faeroalgo","2026-10-30 21:15:25",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add aeroalgo\u002Fdev-hub --skill prd-securability-enhancement",{"tool":36,"command":37},"bunx","bunx skills add aeroalgo\u002Fdev-hub --skill prd-securability-enhancement",{"tool":39,"command":40},"pnpm","pnpm dlx skills add aeroalgo\u002Fdev-hub --skill prd-securability-enhancement","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faeroalgo\u002Fdev-hub\u002Fblob\u002Fmaster\u002Fharness\u002Fskills\u002Fprd-securability-enhancement\u002FSKILL.md",true,[],[45,52,60,67,74,81],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7B1WAEEY273S87Y9A8WT0EN","your-skill-name","Replace with a clear description of what this skill does. Use when \u003Cthe situations that should trigger it>.","https:\u002F\u002Fgithub.com\u002Faeroalgo\u002Fdev-hub\u002Fblob\u002Fmaster\u002Fharness\u002Fskills\u002Fyour-skill-name\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7B1W0HKXX2J9R6NSFBFPB12","websocket-engineer","Use when building real-time communication systems with WebSockets or Socket.IO. Invoke for bidirectional messaging, horizontal scaling with Redis, presence tracking, room management.","MIT","https:\u002F\u002Fgithub.com\u002Faeroalgo\u002Fdev-hub\u002Fblob\u002Fmaster\u002Fharness\u002Fskills\u002Fwebsocket-engineer\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7B1VXEW7V2QJWBYWTYGDZ4Z","web-security-review","Review web applications against the OWASP Top 10 for Web Applications (2021). Use when auditing web apps, reviewing server-side code, or assessing web frameworks for the classic OWASP Top 10 risks including injection, broken auth, and XSS.","https:\u002F\u002Fgithub.com\u002Faeroalgo\u002Fdev-hub\u002Fblob\u002Fmaster\u002Fharness\u002Fskills\u002Fweb-security-review\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7B1V47JB0TAGPE3FJPG0F0V","vercel-react-view-transitions","Guide for implementing smooth, native-feeling animations using React's View Transition API (`\u003CViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter\u002Fexit of components, animate list reorder, implement directional (forward\u002Fback) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.","https:\u002F\u002Fgithub.com\u002Faeroalgo\u002Fdev-hub\u002Fblob\u002Fmaster\u002Fharness\u002Fskills\u002Fvercel-react-view-transitions\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7B1TZS9MNJKTKTFNPRCEB0C","vercel-react-native-skills","React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.","https:\u002F\u002Fgithub.com\u002Faeroalgo\u002Fdev-hub\u002Fblob\u002Fmaster\u002Fharness\u002Fskills\u002Fvercel-react-native-skills\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7B1TT4SA56VD9Z32HKBHGZK","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002Faeroalgo\u002Fdev-hub\u002Fblob\u002Fmaster\u002Fharness\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[]]