[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FBZE0RQBXDFESA1QKBBVQH":3,"skill-same:01M7FBZE0RQBXDFESA1QKBBVQH":53},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7FBZE0RQBXDFESA1QKBBVQH","audit-security",null,"tounsils\u002Fclaude-code-skills","tounsils","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F44228841?v=4","01M7FBZBPTTP3RAHJ0V3NH6AXN","Ilyes Tounsi","01M7FBZBQDYG7RKSEHJ384475F",1,"MIT","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Faudit-security\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: audit-security\ndescription: Security review of a change or working tree against the OWASP Top 10: committed secrets, injection, broken access control, SSRF, insecure deserialization, permissive CORS, vulnerable dependencies, and sensitive data in logs. Reports exploitability, not category names. Use when asked to security review this, audit for vulnerabilities, check this is safe to ship, or before pushing code that touches auth, user input, or data access.\n---\n\n# Security review\n\nThis is a code review with a threat model. It reads code and configuration. It does not run exploits, scanners, or anything against a live system.\n\n## Scope\n\nDefault to the change plus what the change can reach:\n\n```bash\ngit diff $(git merge-base HEAD origin\u002Fmain)\ngit diff --stat $(git merge-base HEAD origin\u002Fmain)\ngit status --short\n```\n\nFor a full-repo audit, say so and work through [references\u002Fchecklist.md](references\u002Fchecklist.md) area by area, because a whole-codebase pass without a checklist silently becomes a sample.\n\nReaching beyond the diff matters: a new function that builds a query string is only a vulnerability if something untrusted reaches it. Trace each new input backward to its source and each new sink backward to its callers.\n\n## Always check these\n\n**Committed secrets.** Highest frequency, lowest effort to find, and the one finding with a remediation step people forget.\n\n```bash\ngit diff $(git merge-base HEAD origin\u002Fmain) | rg -n '(?i)(api[_-]?key|secret|password|passwd|token|private[_-]key|bearer|authorization:)\\s*[=:]'\ngit log --all --oneline -- '**\u002F.env' '**\u002F.env.*' '**\u002F*.pem' '**\u002F*.p12' '**\u002Fid_rsa*'\ngit ls-files | rg '(^|\u002F)\\.env($|\\.)' \n```\n\nA secret that reached a remote is compromised even after the commit is removed, because clones and forks keep it. The finding is \"rotate this credential\", not \"delete this line\". Say that.\n\nCheck that fixtures and examples use values that look synthetic and say they are synthetic. A realistic-looking fake key gets found by a scanner and rotated in a panic.\n\n**Authorization on every new or changed route.** Authentication proves who the caller is. Authorization decides what this caller may touch, and it is the one that gets skipped.\n\nFor each endpoint in the diff, answer both:\n\n1. Which gate requires a logged-in caller? Name it. If the answer is a global middleware, confirm this route is actually mounted inside it rather than assuming.\n2. Does the query filter by the caller's own scope? A handler that takes an id from the path and looks it up without a tenant or owner filter lets any authenticated user read any record. This is the most common serious finding in real code.\n\n```bash\nrg -n '(router|app)\\.(get|post|put|patch|delete)\\(' --glob '!*test*'\nrg -n '@(app|router)\\.(get|post|put|patch|delete)\\(' --glob '*.py'\n```\n\n**Injection.** Untrusted input reaching an interpreter: SQL, shell, path, template, LDAP, or a NoSQL query document.\n\n```bash\nrg -n 'execute\\(|raw\\(|query\\(' -A2 | rg -n '\\+|\\$\\{|%s|f[\"'\"'\"']'\nrg -n 'exec|execSync|spawn|system|popen|eval|Function\\(' --glob '!*test*'\n```\n\nString concatenation into a query or a command is the finding. Parameterized queries and argument arrays are the fix. For paths, the fix is resolving and then confirming the result is still inside the intended directory, not stripping `..` from the input.\n\n**Sensitive data in logs and errors.** Grep the diff for logging calls that take a whole request, user, or payload object. Whole-object logging is how passwords, tokens, and personal data end up in a log aggregator with much weaker access control than the database. Also check that error responses to the client do not carry stack traces, query text, or internal hostnames.\n\n**Dependencies.**\n\n```bash\nnpm audit --omit=dev     # or: pnpm audit, yarn npm audit\npip-audit                 # or: uv pip audit\n```\n\nReport only what the change introduced or what is both reachable and high severity. A list of 300 transitive advisories is noise that buries the two that matter.\n\n## Then work the checklist\n\n[references\u002Fchecklist.md](references\u002Fchecklist.md) covers the rest, organized by OWASP category with detection commands: SSRF, deserialization, CORS and cookie flags, cryptography and password storage, rate limiting on auth endpoints, file upload handling, XSS sinks, redirect validation, mass assignment, and security headers.\n\nRead the whole file for a full audit. For a diff review, read the sections the diff touches.\n\n## Report exploitability\n\nA finding named only by its category is unactionable. For each one give:\n\n- `path\u002Fto\u002Ffile.ts:42` and the category.\n- **Who**: an anonymous caller, any authenticated user, a user in another tenant, or someone who already has local access. The difference between the first two is usually the difference between urgent and scheduled.\n- **With what**: the concrete input. An actual example string, not \"malicious input\".\n- **To get what**: read another tenant's data, execute a command, escalate to admin, deny service.\n- **Fix**: the specific change, with the parameterized or validated form written out.\n\nThen rank by that, not by a scanner's severity field. An SQL injection behind an admin-only route and an IDOR on a public endpoint are not the same risk, whatever the CVSS table says.\n\nTry to refute each finding before reporting it: look for the validation upstream, the ORM that already parameterizes, the middleware that already gates, the type that makes the input unreachable. Say which findings you confirmed by tracing the full path and which remain plausible but unconfirmed.\n\n## Stay inside the lines\n\n- Read code and configuration. Do not run exploits, port scans, or traffic against any host.\n- Do not include a working exploit in the report. The input that demonstrates the path is enough.\n- Do not print a discovered secret. Give its location and its type, and say to rotate it.\n- If a finding needs a live check to confirm, say what check is needed and leave it to someone with authorization to run it.\n","# Security review\n\nThis is a code review with a threat model. It reads code and configuration. It does not run exploits, scanners, or anything against a live system.\n\n## Scope\n\nDefault to the change plus what the change can reach:\n\n```bash\ngit diff $(git merge-base HEAD origin\u002Fmain)\ngit diff --stat $(git merge-base HEAD origin\u002Fmain)\ngit status --short\n```\n\nFor a full-repo audit, say so and work through [references\u002Fchecklist.md](references\u002Fchecklist.md) area by area, because a whole-codebase pass without a checklist silently becomes a sample.\n\nReaching beyond the diff matters: a new function that builds a query string is only a vulnerability if something untrusted reaches it. Trace each new input backward to its source and each new sink backward to its callers.\n\n## Always check these\n\n**Committed secrets.** Highest frequency, lowest effort to find, and the one finding with a remediation step people forget.\n\n```bash\ngit diff $(git merge-base HEAD origin\u002Fmain) | rg -n '(?i)(api[_-]?key|secret|password|passwd|token|private[_-]key|bearer|authorization:)\\s*[=:]'\ngit log --all --oneline -- '**\u002F.env' '**\u002F.env.*' '**\u002F*.pem' '**\u002F*.p12' '**\u002Fid_rsa*'\ngit ls-files | rg '(^|\u002F)\\.env($|\\.)' \n```\n\nA secret that reached a remote is compromised even after the commit is removed, because clones and forks keep it. The finding is \"rotate this credential\", not \"delete this line\". Say that.\n\nCheck that fixtures and examples use values that look synthetic and say they are synthetic. A realistic-looking fake key gets found by a scanner and rotated in a panic.\n\n**Authorization on every new or changed route.** Authentication proves who the caller is. Authorization decides what this caller may touch, and it is the one that gets skipped.\n\nFor each endpoint in the diff, answer both:\n\n1. Which gate requires a logged-in caller? Name it. If the answer is a global middleware, confirm this route is actually mounted inside it rather than assuming.\n2. Does the query filter by the caller's own scope? A handler that takes an id from the path and looks it up without a tenant or owner filter lets any authenticated user read any record. This is the most common serious finding in real code.\n\n```bash\nrg -n '(router|app)\\.(get|post|put|patch|delete)\\(' --glob '!*test*'\nrg -n '@(app|router)\\.(get|post|put|patch|delete)\\(' --glob '*.py'\n```\n\n**Injection.** Untrusted input reaching an interpreter: SQL, shell, path, template, LDAP, or a NoSQL query document.\n\n```bash\nrg -n 'execute\\(|raw\\(|query\\(' -A2 | rg -n '\\+|\\$\\{|%s|f[\"'\"'\"']'\nrg -n 'exec|execSync|spawn|system|popen|eval|Function\\(' --glob '!*test*'\n```\n\nString concatenation into a query or a command is the finding. Parameterized queries and argument arrays are the fix. For paths, the fix is resolving and then confirming the result is still inside the intended directory, not stripping `..` from the input.\n\n**Sensitive data in logs and errors.** Grep the diff for logging calls that take a whole request, user, or payload object. Whole-object logging is how passwords, tokens, and personal data end up in a log aggregator with much weaker access control than the database. Also check that error responses to the client do not carry stack traces, query text, or internal hostnames.\n\n**Dependencies.**\n\n```bash\nnpm audit --omit=dev     # or: pnpm audit, yarn npm audit\npip-audit                 # or: uv pip audit\n```\n\nReport only what the change introduced or what is both reachable and high severity. A list of 300 transitive advisories is noise that buries the two that matter.\n\n## Then work the checklist\n\n[references\u002Fchecklist.md](references\u002Fchecklist.md) covers the rest, organized by OWASP category with detection commands: SSRF, deserialization, CORS and cookie flags, cryptography and password storage, rate limiting on auth endpoints, file upload handling, XSS sinks, redirect validation, mass assignment, and security headers.\n\nRead the whole file for a full audit. For a diff review, read the sections the diff touches.\n\n## Report exploitability\n\nA finding named only by its category is unactionable. For each one give:\n\n- `path\u002Fto\u002Ffile.ts:42` and the category.\n- **Who**: an anonymous caller, any authenticated user, a user in another tenant, or someone who already has local access. The difference between the first two is usually the difference between urgent and scheduled.\n- **With what**: the concrete input. An actual example string, not \"malicious input\".\n- **To get what**: read another tenant's data, execute a command, escalate to admin, deny service.\n- **Fix**: the specific change, with the parameterized or validated form written out.\n\nThen rank by that, not by a scanner's severity field. An SQL injection behind an admin-only route and an IDOR on a public endpoint are not the same risk, whatever the CVSS table says.\n\nTry to refute each finding before reporting it: look for the validation upstream, the ORM that already parameterizes, the middleware that already gates, the type that makes the input unreachable. Say which findings you confirmed by tracing the full path and which remain plausible but unconfirmed.\n\n## Stay inside the lines\n\n- Read code and configuration. Do not run exploits, port scans, or traffic against any host.\n- Do not include a working exploit in the report. The input that demonstrates the path is enough.\n- Do not print a discovered secret. Give its location and its type, and say to rotate it.\n- If a finding needs a live check to confirm, say what check is needed and leave it to someone with authorization to run it.\n",{},"main","807b57c9eb35842569bb3732ff8831ca7e6a3d57","skills\u002Faudit-security",0,"https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills#readme","https:\u002F\u002Fgithub.com\u002Ftounsils","https:\u002F\u002Fwww.tn76.com","I ship products as remote MCP servers, then stay on as fractional CTO. Typed tools, grounded answers, eval-gated releases. 20 years in production.","2026-10-22 03:33:35",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add tounsils\u002Fclaude-code-skills --skill audit-security",{"tool":39,"command":40},"bunx","bunx skills add tounsils\u002Fclaude-code-skills --skill audit-security",{"tool":42,"command":43},"pnpm","pnpm dlx skills add tounsils\u002Fclaude-code-skills --skill audit-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Faudit-security\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fchecklist.md","REFERENCE","参考文档",11037,"https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Faudit-security\u002Freferences\u002Fchecklist.md",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7FC0JHT6K54H9SREG495SQJ","triage-ci","Diagnose a failing CI run by finding the first real failure rather than the last log line, classifying it as defect, flake, infrastructure, or config drift, and fixing the cause without disabling the check. Use when asked to fix the build, fix CI, find out why CI is failing, look at a failing run, or work out what is actually wrong with a red build, and when a pipeline or GitHub Actions run fails, a CI log needs reading, or tests pass locally but fail only in CI.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriage-ci\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7FC0CZ5H5C5KKJJRJ67QEMN","test-gaps","Find the untested branches that matter, write tests that can actually fail, and report pass, fail, and skip counts honestly. Use when asked to add tests, write tests for this, improve coverage, find test gaps, check what is untested, or when a change needs test coverage before it ships.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftest-gaps\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7FC09K4NJXCB6E6QPXG5KWR","ship-pr","Turn a finished change into a commit message and pull request derived from the actual diff, with a pre-submit checklist covering auth gates, secrets, migrations, and breaking changes. Use when asked to commit this, write a commit message, open a PR, raise a pull request, write the PR description, or get this ready to push.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fship-pr\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7FC04XYBN0VP139DKXN8S3Q","root-cause","Debug by reproducing first, isolating the mechanism, then fixing the cause rather than the symptom, and keeping the reproduction as a regression test. Use when asked to debug this, fix this bug, find out why something happens, investigate a failure, or work out what is going wrong, and when a test fails intermittently or flakily, behavior differs between environments, or someone proposes raising a timeout, adding a retry, or skipping a test to make a problem go away.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Froot-cause\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7FC002BQMJ6BHA49NB3J8FM","review-diff","Review uncommitted or branch-local changes for defects, ranked by severity, with a concrete failure scenario behind every finding. Use when asked to review code, review a diff, review my changes, check this before I commit, look over this branch, or do a pre-PR pass. Reviews the change, not the whole repository.","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Freview-diff\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7FBZWP0GPT81VC136VKQ183","restructure","https:\u002F\u002Fgithub.com\u002Ftounsils\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Frestructure\u002FSKILL.md",[],[]]