[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76VYMCX8YNABH175ACC16MB":3,"skill-same:01M76VYMCX8YNABH175ACC16MB":62},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M76VYMCX8YNABH175ACC16MB","ag-security",null,"STRIDE + OWASP-based security audit with optional auto-fix. Scans code for vulnerabilities, categorizes by severity, and can iteratively fix findings using ag-autoresearch pattern.","ngxccc\u002Fagent-skills-kit","ngxccc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163379246?v=4","01M758XVG64QK26AGK0WKB26TB","Ngoc Tran","01M758XVHB8J6MHV0YTBVDBXCA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-security\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: ag-security\ndescription: \"STRIDE + OWASP-based security audit with optional auto-fix. Scans code for vulnerabilities, categorizes by severity, and can iteratively fix findings using ag-autoresearch pattern.\"\ntrigger_keywords: security, vulnerability, auth, XSS, SQL injection\nlayer: helper\n---\n\n# ag-security — Security Audit\n\n> **Output style:** Follow `process\u002Fdevelopment-protocols\u002Fcommunication-standards.md` — answer-first, plain language, no unexplained jargon, TL;DR on long responses.\n\nRuns a structured STRIDE + OWASP security audit on a given scope. Produces a severity-ranked findings report. With `--fix`, applies fixes iteratively using the ag-autoresearch guard pattern.\n\n## When to Apply\n\n- Before a release or major deployment\n- After adding auth, payment, or data-handling features\n\n## How to Use\n\nRefer to the workflow instructions and command references detailed below.\n\n- Periodic security review (monthly\u002Fquarterly)\n- Compliance check (SOC 2, GDPR, PCI-DSS prep)\n\n## When NOT to Use\n\n- Purely cosmetic changes (CSS, copy edits)\n- No user-facing code or data handling involved\n\n---\n\n## Modes\n\n| Mode        | Invocation                                  | Behavior                            |\n| ----------- | ------------------------------------------- | ----------------------------------- |\n| Audit only  | `\u002Fag-security \u003Cscope>`                      | Scan → categorize → report          |\n| Audit + Fix | `\u002Fag-security \u003Cscope> --fix`                | Scan → categorize → fix iteratively |\n| Bounded fix | `\u002Fag-security \u003Cscope> --fix --iterations N` | Limit fix iterations to N           |\n\n---\n\n## Audit Methodology\n\n### 1. Scope Resolution\n\nExpand the provided glob or `full` keyword into a file list. Read all in-scope files before analysis.\n\n### 2. STRIDE Analysis\n\nEvaluate each threat category systematically:\n\n- **S**poofing — identity\u002Fauthentication weaknesses\n- **T**ampering — input validation, integrity controls\n- **R**epudiation — audit logging gaps\n- **I**nformation Disclosure — data leakage, secret exposure\n- **D**enial of Service — rate limits, resource exhaustion\n- **E**levation of Privilege — broken access control, RBAC gaps\n\n### 3. OWASP Top 10 Check\n\nMap findings to OWASP categories (A01–A10). See `references\u002Fstride-owasp-checklist.md` for per-category checks.\n\n### 4. Dependency Audit\n\nRun the appropriate package audit tool for the detected stack:\n\n- Node.js: `pnpm audit`\n- Python: `pip-audit`\n- Go: `govulncheck`\n- Ruby: `bundle audit`\n\n### 5. Secret Detection\n\nScan for hardcoded API keys, passwords, tokens, and private keys using regex patterns. See `references\u002Fstride-owasp-checklist.md` → Secret Patterns.\n\n### 6. Finding Categorization\n\nAssign each finding a severity level (see Severity Definitions below).\n\n---\n\n## Output Format\n\n```\n## Security Audit Report\n\n### Summary\n- Files scanned: N\n- Findings: X critical, Y high, Z medium, W low, V info\n\n### Findings\n\n| # | Severity | Category | File:Line | Description | Fix Recommendation |\n|---|----------|----------|-----------|-------------|-------------------|\n| 1 | Critical  | Injection | api\u002Fusers.ts:45 | SQL string concatenation | Use parameterized queries |\n| 2 | High      | Auth      | auth\u002Flogin.ts:12 | No rate limiting | Add express-rate-limit |\n```\n\n---\n\n## Fix Mode (--fix)\n\nWhen `--fix` is provided, apply fixes iteratively after the audit:\n\n1. Sort all findings by severity (Critical → High → Medium → Low)\n2. For each finding:\n   a. Apply one targeted fix\n   b. Run guard (tests or lint) to verify no regression\n   c. Commit: `security(fix-N): \u003Cshort description>`\n   d. Advance to next finding\n3. Stop early if guard fails — report the failure instead of proceeding\n4. Uses `ag-autoresearch` guard pattern for regression prevention\n\n> Tip: Use `--iterations N` to cap total fix iterations when scope is large.\n\n---\n\n## Severity Definitions\n\n| Severity | Description                                          | Fix Priority              |\n| -------- | ---------------------------------------------------- | ------------------------- |\n| Critical | Exploitable now, data breach or RCE risk             | Immediate — block release |\n| High     | Exploitable with moderate effort, significant impact | This sprint               |\n| Medium   | Limited exploitability or impact                     | Next sprint               |\n| Low      | Theoretical risk, defense-in-depth improvement       | Backlog                   |\n| Info     | Best practice suggestion, no direct risk             | Optional                  |\n\n---\n\n## Integration with Other Skills\n\n- Run after `ag-predict` when the security persona flags concerns\n- Feed Critical\u002FHigh findings into `ag-autoresearch --fix` for automated remediation\n- Use `ag-scenario` with `--focus authorization` for deeper auth flow testing\n- Pair with `generate-plan` \u002F `plan-agent` to schedule Medium\u002FLow findings as sprint tasks\n\n---\n\n## Example Invocations\n\n```bash\n# Audit API layer only\n\u002Fag-security src\u002Fapi\u002F**\u002F*.ts\n\n# Audit entire src\u002F and auto-fix, max 15 iterations\n\u002Fag-security src\u002F --fix --iterations 15\n\n# Full codebase audit (no fix)\n\u002Fag-security full\n```\n\n---\n\nSee `references\u002Fstride-owasp-checklist.md` for the detailed per-category checklist and secret detection regex patterns.\n\n## References\n\n- [process\u002Fcontext\u002Fall-context.md](process\u002Fcontext\u002Fall-context.md)\n","# ag-security — Security Audit\n\n> **Output style:** Follow `process\u002Fdevelopment-protocols\u002Fcommunication-standards.md` — answer-first, plain language, no unexplained jargon, TL;DR on long responses.\n\nRuns a structured STRIDE + OWASP security audit on a given scope. Produces a severity-ranked findings report. With `--fix`, applies fixes iteratively using the ag-autoresearch guard pattern.\n\n## When to Apply\n\n- Before a release or major deployment\n- After adding auth, payment, or data-handling features\n\n## How to Use\n\nRefer to the workflow instructions and command references detailed below.\n\n- Periodic security review (monthly\u002Fquarterly)\n- Compliance check (SOC 2, GDPR, PCI-DSS prep)\n\n## When NOT to Use\n\n- Purely cosmetic changes (CSS, copy edits)\n- No user-facing code or data handling involved\n\n---\n\n## Modes\n\n| Mode        | Invocation                                  | Behavior                            |\n| ----------- | ------------------------------------------- | ----------------------------------- |\n| Audit only  | `\u002Fag-security \u003Cscope>`                      | Scan → categorize → report          |\n| Audit + Fix | `\u002Fag-security \u003Cscope> --fix`                | Scan → categorize → fix iteratively |\n| Bounded fix | `\u002Fag-security \u003Cscope> --fix --iterations N` | Limit fix iterations to N           |\n\n---\n\n## Audit Methodology\n\n### 1. Scope Resolution\n\nExpand the provided glob or `full` keyword into a file list. Read all in-scope files before analysis.\n\n### 2. STRIDE Analysis\n\nEvaluate each threat category systematically:\n\n- **S**poofing — identity\u002Fauthentication weaknesses\n- **T**ampering — input validation, integrity controls\n- **R**epudiation — audit logging gaps\n- **I**nformation Disclosure — data leakage, secret exposure\n- **D**enial of Service — rate limits, resource exhaustion\n- **E**levation of Privilege — broken access control, RBAC gaps\n\n### 3. OWASP Top 10 Check\n\nMap findings to OWASP categories (A01–A10). See `references\u002Fstride-owasp-checklist.md` for per-category checks.\n\n### 4. Dependency Audit\n\nRun the appropriate package audit tool for the detected stack:\n\n- Node.js: `pnpm audit`\n- Python: `pip-audit`\n- Go: `govulncheck`\n- Ruby: `bundle audit`\n\n### 5. Secret Detection\n\nScan for hardcoded API keys, passwords, tokens, and private keys using regex patterns. See `references\u002Fstride-owasp-checklist.md` → Secret Patterns.\n\n### 6. Finding Categorization\n\nAssign each finding a severity level (see Severity Definitions below).\n\n---\n\n## Output Format\n\n```\n## Security Audit Report\n\n### Summary\n- Files scanned: N\n- Findings: X critical, Y high, Z medium, W low, V info\n\n### Findings\n\n| # | Severity | Category | File:Line | Description | Fix Recommendation |\n|---|----------|----------|-----------|-------------|-------------------|\n| 1 | Critical  | Injection | api\u002Fusers.ts:45 | SQL string concatenation | Use parameterized queries |\n| 2 | High      | Auth      | auth\u002Flogin.ts:12 | No rate limiting | Add express-rate-limit |\n```\n\n---\n\n## Fix Mode (--fix)\n\nWhen `--fix` is provided, apply fixes iteratively after the audit:\n\n1. Sort all findings by severity (Critical → High → Medium → Low)\n2. For each finding:\n   a. Apply one targeted fix\n   b. Run guard (tests or lint) to verify no regression\n   c. Commit: `security(fix-N): \u003Cshort description>`\n   d. Advance to next finding\n3. Stop early if guard fails — report the failure instead of proceeding\n4. Uses `ag-autoresearch` guard pattern for regression prevention\n\n> Tip: Use `--iterations N` to cap total fix iterations when scope is large.\n\n---\n\n## Severity Definitions\n\n| Severity | Description                                          | Fix Priority              |\n| -------- | ---------------------------------------------------- | ------------------------- |\n| Critical | Exploitable now, data breach or RCE risk             | Immediate — block release |\n| High     | Exploitable with moderate effort, significant impact | This sprint               |\n| Medium   | Limited exploitability or impact                     | Next sprint               |\n| Low      | Theoretical risk, defense-in-depth improvement       | Backlog                   |\n| Info     | Best practice suggestion, no direct risk             | Optional                  |\n\n---\n\n## Integration with Other Skills\n\n- Run after `ag-predict` when the security persona flags concerns\n- Feed Critical\u002FHigh findings into `ag-autoresearch --fix` for automated remediation\n- Use `ag-scenario` with `--focus authorization` for deeper auth flow testing\n- Pair with `generate-plan` \u002F `plan-agent` to schedule Medium\u002FLow findings as sprint tasks\n\n---\n\n## Example Invocations\n\n```bash\n# Audit API layer only\n\u002Fag-security src\u002Fapi\u002F**\u002F*.ts\n\n# Audit entire src\u002F and auto-fix, max 15 iterations\n\u002Fag-security src\u002F --fix --iterations 15\n\n# Full codebase audit (no fix)\n\u002Fag-security full\n```\n\n---\n\nSee `references\u002Fstride-owasp-checklist.md` for the detailed per-category checklist and secret detection regex patterns.\n\n## References\n\n- [process\u002Fcontext\u002Fall-context.md](process\u002Fcontext\u002Fall-context.md)\n",{"name":5,"layer":24,"description":7,"trigger_keywords":25},"helper","security, vulnerability, auth, XSS, SQL injection","main","1ef0dcd00fe806a8dc4e0b7173b9db967c3ab274",".claude\u002Fskills\u002Fag-security","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit","https:\u002F\u002Fgithub.com\u002Fngxccc","https:\u002F\u002Fngxccc.github.io","Make it work, make it right, make it fast.","2026-08-02 20:59:07",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ngxccc\u002Fagent-skills-kit --skill ag-security",{"tool":40,"command":41},"bunx","bunx skills add ngxccc\u002Fagent-skills-kit --skill ag-security",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ngxccc\u002Fagent-skills-kit --skill ag-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-security\u002FSKILL.md",true,[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fsecret-patterns.md","REFERENCE","参考文档",1524,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-security\u002Freferences\u002Fsecret-patterns.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fstride-owasp-checklist.md",6232,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-security\u002Freferences\u002Fstride-owasp-checklist.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fvulnerability-patterns.md",2226,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fag-security\u002Freferences\u002Fvulnerability-patterns.md",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M76W3C8X6Q5DS0364KQT7W7A","zustand","Rules and standards for state management using Zustand in React and Next.js. Use when implementing client-side stores, persistence with localStorage, or preventing SSR hydration mismatch.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fzustand\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M76W39FJGES309VAH7SFWA9Y","zod","Zod v4 schema validation best practices. Use when defining schemas, utilizing safeParse, or customizing error messages.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fzod\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M76W36HTYA4BR5FKCWMX1RFR","upstash-ratelimit","Rules, standards, and references for rate limiting in serverless environments using Upstash Ratelimit. Use when implementing rate limiting, configuring Upstash Redis, or handling request blocking.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fupstash-ratelimit\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M76W32H4PS01WFRS7FNPK2G1","ui-design","UI\u002FUX and frontend design best practices guidelines (formerly frontend-design). This skill should be used when writing, reviewing, or designing frontend code to ensure accessibility, performance, and usability. Triggers on tasks involving HTML structure, CSS styling, responsive layouts, form design, animations, or accessibility improvements.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fui-design\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M76W2YAP6RK8N0EVWFG54VD7","typescript","TypeScript performance, tsconfig, type errors, async patterns — triggered when the user asks to \"optimize TypeScript performance\", \"speed up tsc compilation\", \"configure tsconfig.json\", \"fix type errors\", \"improve async patterns\", or encounters TS errors (TS2322, TS2339, \"is not assignable to\"). Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management. Does NOT cover TypeScript basics, framework-specific patterns, or testing.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M76W2RMAZNNJQ2HECH3X6ZSH","typescript-refactor","TypeScript and TSX refactoring and modernization guidelines from a principal specialist perspective, current to TypeScript 6.0 and React 19. This skill should be used when refactoring, reviewing, or modernizing TypeScript or React\u002FTSX code for type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving type architecture, narrowing, generics, discriminated unions, error handling, React component and hook typing, or migration to modern TypeScript features (satisfies, using, const type parameters, inferred type predicates, isolatedDeclarations, erasable syntax, import attributes).","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-refactor\u002FSKILL.md",[],[]]