[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72FXC06T4HZ1WYHCY23E5NK":3,"skill-same:01M72FXC06T4HZ1WYHCY23E5NK":64},{"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":43,"commitSha":44,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M72FXC06T4HZ1WYHCY23E5NK","code-security-quality-audit",null,"Strict security and code-quality audit + repair loop on source code. Find real vulnerabilities and quality issues, fix root causes, verify, pattern-search, repeat. Use when auditing code for security (auth, input handling, secrets, payments) or general code-quality issues. For UI\u002FUX quality use `audit`; for runtime perf use `web-perf`; for pre-build security review use `security-review`.","ekasc\u002Fskills","ekasc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81736292?v=4","01M72FS7QP8011YN2YG2FJEX0M","ekas","01M72FS7RS5E79Q423YAJZ6JM0",0,"MIT","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fcode-security-quality-audit\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: code-security-quality-audit\ndescription: Strict security and code-quality audit + repair loop on source code. Find real vulnerabilities and quality issues, fix root causes, verify, pattern-search, repeat. Use when auditing code for security (auth, input handling, secrets, payments) or general code-quality issues. For UI\u002FUX quality use `audit`; for runtime perf use `web-perf`; for pre-build security review use `security-review`.\nversion: 1.0.0\nauthor: ekasc\nlicense: MIT\nplatforms: [linux, macos, windows]\nmetadata:\n  hermes:\n    tags: [security, audit, code-quality, review, repair, static-analysis]\n    related_skills: [codebase-audit, systematic-debugging, requesting-code-review, github-code-review]\n---\n\n# Strict Security and Code Quality Repair Skill\n\n## Purpose\n\nAudit any codebase, find real security, correctness, reliability, and code-quality issues, fix root causes, verify fixes, and repeat until no meaningful issues remain.\n\nThis skill is language-agnostic and agent-agnostic.\n\nThis is not a cosmetic refactor pass.\nThis is not a checklist dump.\nThis is a repair workflow.\n\n## Prime Directive\n\nFind the real issue.\nFix the root cause.\nVerify the fix.\nSearch for the same bug pattern elsewhere.\nRepeat.\n\nNo hacky fixes. No symptom hiding. No \"make the test green\" bullshit.\n\n## Non-Negotiables\n\nYou must not:\n\n- delete or weaken failing tests\n- weaken validation to accept bad input\n- bypass authentication, authorization, ownership, tenant, or permission checks\n- swallow errors without a real recovery path\n- return fake success\n- hardcode users, IDs, secrets, paths, URLs, tokens, or magic values\n- add arbitrary sleeps, retries, or timing hacks\n- silence linters, typecheckers, formatters, or scanners without proof and justification\n- hide internal failures behind vague catch-all patches\n- change public behavior silently\n- rewrite large parts of the codebase unless the structure itself is the root cause\n- claim the system is \"secure\"\n\nA fix is invalid if it only hides the symptom.\n\n## Start Here\n\nBefore editing anything, do this in order.\n\n### 1. Identify the System Type\n\nClassify the codebase into one or more of these buckets:\n\n- Web app \u002F API \u002F CRUD app\n- SaaS \u002F multi-tenant app\n- Auth-heavy app\n- File upload \u002F file processing app\n- URL fetcher \u002F scraper \u002F importer\n- Webhook \u002F callback consumer\n- Background job \u002F queue \u002F worker system\n- CLI \u002F local developer tool\n- Frontend-only app\n- Library \u002F SDK \u002F package\n- Data pipeline \u002F ETL system\n- Realtime \u002F websocket \u002F event-driven app\n\nThis classification decides where to audit first.\n\n### 2. Find the Critical Assets\n\nIdentify what must be protected:\n\n- user accounts\n- sessions\u002Ftokens\n- private user data\n- tenant\u002Fworkspace\u002Fproject boundaries\n- uploaded files\n- database rows\n- payments\u002Fbilling data\n- secrets\u002FAPI keys\n- internal network access\n- background jobs\n- external integrations\n- generated\u002Fexported data\n\nDo not audit blindly. Audit around assets.\n\n### 3. Find the Trust Boundaries\n\nList where untrusted input enters the system:\n\n- HTTP requests\n- forms\n- route params\n- query params\n- JSON bodies\n- file uploads\n- URLs submitted by users\n- webhooks\n- CLI args\n- environment variables\n- background job payloads\n- database records later reused as trusted data\n- third-party API responses\n\nEvery trust boundary needs validation, authorization, safe error handling, and tests.\n\n### 4. Run Baseline Verification\n\nFind and run available checks:\n\n- tests\n- typecheck\n- lint\n- build\n- formatter check\n- migration\u002Fschema check\n- security scan, if present\n\nRecord pre-existing failures separately.\n\nDo not blame your changes for existing failures.\nDo not call a fix verified unless the relevant checks were actually run.\n\n## Triage Decision Tree\n\nUse this to decide where to start.\n\n### Web App \u002F API \u002F CRUD App\n\nStart with:\n\n1. authentication\n2. authorization\n3. ownership checks\n4. input validation\n5. data-layer queries\n6. error handling\n\nMost serious CRUD bugs are IDOR, missing ownership checks, bad validation, and unsafe query scoping.\n\n### SaaS \u002F Multi-Tenant App\n\nStart with:\n\n1. tenant\u002Fworkspace\u002Fproject isolation\n2. every query that accepts an ID\n3. list\u002Fsearch\u002Ffilter endpoints\n4. analytics\u002Faggregation queries\n5. background jobs that process tenant data\n6. file access boundaries\n\nAssume every resource ID is hostile until ownership is proven.\n\n### Auth-Heavy App\n\nStart with:\n\n1. session creation\n2. session expiry\n3. callback\u002Fredirect handling\n4. logout\u002Finvalidation\n5. cookie\u002Ftoken storage\n6. role\u002Fpermission enforcement\n\nClient-side auth state is not security.\n\n### File Upload \u002F File Processing App\n\nStart with:\n\n1. file size limits\n2. file type validation\n3. path traversal\n4. public\u002Fprivate file access\n5. storage permissions\n6. archive extraction\n7. cleanup behavior\n\nNever trust filenames, extensions, MIME types, or paths from users.\n\n### URL Fetcher \u002F Scraper \u002F Importer\n\nStart with:\n\n1. SSRF protection\n2. protocol allowlist\n3. DNS\u002FIP validation\n4. redirect validation\n5. timeout limits\n6. response size limits\n7. content-type restrictions\n\nValidate every redirect. The original URL is not enough.\n\n### Webhook \u002F Callback Consumer\n\nStart with:\n\n1. signature verification\n2. replay protection\n3. idempotency\n4. event ordering\n5. payload validation\n6. safe failure behavior\n\nUnsigned webhooks are attacker-controlled input.\n\n### Background Job \u002F Queue \u002F Worker System\n\nStart with:\n\n1. idempotency\n2. retry behavior\n3. partial failure handling\n4. transaction boundaries\n5. concurrency\u002Frace conditions\n6. poison message handling\n\nAny job that can run twice must be safe to run twice.\n\n### CLI \u002F Developer Tool\n\nStart with:\n\n1. path handling\n2. command execution\n3. config loading\n4. environment variable handling\n5. destructive operations\n6. filesystem permissions\n\nLocal tools can still destroy data or leak secrets.\n\n### Frontend-Only App\n\nStart with:\n\n1. XSS\n2. unsafe HTML\u002Fmarkdown rendering\n3. token storage\n4. stale auth state\n5. API error handling\n6. cache key scoping\n7. optimistic update rollback\n\nFrontend checks improve UX. They do not replace backend enforcement.\n\n### Library \u002F SDK \u002F Package\n\nStart with:\n\n1. unsafe defaults\n2. public API misuse risks\n3. input validation\n4. dependency risk\n5. error semantics\n6. backward compatibility\n\nA library should make the safe path easy and the unsafe path explicit.\n\n### Data Pipeline \u002F ETL\n\nStart with:\n\n1. untrusted input parsing\n2. schema validation\n3. malformed records\n4. partial writes\n5. idempotency\n6. data corruption risks\n7. retry behavior\n\nSilent bad data is still a production bug.\n\n## Severity Rules\n\n### Critical\n\nFix immediately:\n\n- auth bypass\n- authorization bypass\n- cross-user or cross-tenant data leak\n- account takeover risk\n- SQL injection\n- command injection\n- code injection\n- SSRF to internal\u002Fprivate networks\n- arbitrary file read\u002Fwrite\n- secret exposure\n- forged webhook actions\n- privilege escalation\n\n### High\n\nFix next:\n\n- IDOR\n- missing ownership checks\n- stored XSS\n- unsafe file upload\n- unsafe redirects in sensitive flows\n- destructive action without authorization\n- broken session expiry\n- race condition corrupting important state\n- sensitive data in logs or responses\n\n### Medium\n\nFix after critical\u002Fhigh:\n\n- bad validation\n- bad pagination\u002Ffiltering\n- missing request limits\n- incorrect error mapping\n- inconsistent transactions\n- missing idempotency\n- stale derived state\n- unreliable retries\n- missing abuse limits\n\n### Low\n\nFix only when it reduces future risk:\n\n- confusing naming\n- dead code\n- duplicated logic\n- unclear responsibility boundaries\n- weak structure\n- inconsistent patterns\n\nNaming and dead code are not security issues by default. They become valid findings only when they obscure ownership, validation, state transitions, error behavior, or other important logic.\n\n## Issue Ledger\n\nTrack every real issue:\n\n```\nID:\nSeverity:\nCategory:\nAffected area:\nRoot cause:\nFailure\u002Fexploit scenario:\nFix:\nTests:\nVerification:\nPattern search:\nStatus:\n```\n\nDo not fix random things without knowing why they matter.\n\n## Repair Loop\n\nRepeat this loop until the stop conditions are met.\n\n### Pass 1: Map\n\n- classify the system\n- identify assets\n- identify trust boundaries\n- identify verification commands\n- run baseline checks\n\n### Pass 2: Audit Highest-Risk Flows\n\nPick the top 3 highest-risk flows based on the decision tree.\n\nExamples:\n\n- login\u002Fsession flow\n- user-owned resource CRUD flow\n- file upload\u002Fdownload flow\n- URL import flow\n- webhook processing flow\n- background job retry flow\n- payment\u002Fbilling flow\n- admin action flow\n\nFor each flow, inspect:\n\n- who can call it\n- what input it accepts\n- what resource it touches\n- how ownership is verified\n- what happens on failure\n- what gets logged\n- what tests exist\n\n### Pass 3: Fix\n\nFor each issue:\n\n1. write down the root cause\n2. design the smallest clean fix\n3. implement the fix\n4. add or update regression tests\n5. run narrow verification\n6. run broader verification\n\nA fix without verification is not complete.\n\n### Pass 4: Pattern Search\n\nAfter every fix, search for the same bug family.\n\nExamples:\n\n- one missing ownership check means inspect all handlers with resource IDs\n- one unsafe query means inspect all queries for that resource\n- one missing request limit means inspect all request parsing\n- one unsafe redirect means inspect all redirects\n- one bad cache key means inspect related cache keys\n- one non-idempotent job means inspect all retryable jobs\n- one path traversal risk means inspect all file operations\n\nBugs travel in families. Kill the family.\n\n### Pass 5: Re-Audit Touched Areas\n\nAfter fixing, re-read the changed code and ask:\n\n- did this introduce a new edge case?\n- did this weaken behavior?\n- did this create inconsistent patterns?\n- is the fix understandable?\n- is the security boundary explicit?\n- would a future maintainer accidentally undo this?\n\nThen run verification again.\n\n## Valid Fix Standard\n\nA valid fix must:\n\n- address the root cause\n- preserve intended behavior\n- improve or preserve security\n- be narrow but not fragile\n- be readable\n- include regression coverage where practical\n- be verified\n- make the same bug harder to reintroduce\n\nInvalid fixes include:\n\n- broad catch-all error handling\n- hidden fallback behavior\n- fake success responses\n- special-casing one test\n- disabling failing checks\n- weakening validation\n- moving the bug somewhere else\n- adding comments instead of enforcement\n\n## Testing Requirements\n\nFor every fixed bug, add or update tests unless genuinely impractical.\n\nPrefer behavior tests over implementation-detail tests.\n\nUse the project's native tools.\n\nTest intent:\n\n- auth bug means missing\u002Fexpired\u002Finvalid credentials test\n- authorization bug means cross-user\u002Fcross-tenant access test\n- validation bug means malformed\u002Fboundary input test\n- data bug means persistence\u002Fintegration test\n- retry\u002Fjob bug means duplicate execution test\n- frontend state bug means stale state\u002Fcache\u002Frollback test\n- file bug means path\u002Ftype\u002Fsize\u002Faccess test\n- SSRF bug means private IP\u002Fredirect\u002Fprotocol test\n\nIf a test cannot be added, document why and give a manual verification step.\n\n## Stop Conditions\n\nStop only when all are true:\n\n- critical issues are fixed or explicitly blocked\n- high issues are fixed or explicitly blocked\n- known correctness bugs are fixed or explicitly blocked\n- relevant verification passes, or remaining failures are documented as pre-existing\n- touched areas were re-audited\n- repeated bug patterns were searched\n- remaining risks are documented\n\nDo not stop because the first bug is fixed.\n\n## Blocker Rules\n\nIf blocked, report:\n\n- what was attempted\n- what failed\n- why it blocks progress\n- what evidence is missing\n- safest next action\n\nDo not guess.\nDo not fake verification.\nDo not pretend incomplete work is complete.\n\n## Final Report\n\n### Summary\n\n- issues found\n- issues fixed\n- issues verified\n- issues deferred\n- remaining risk level\n\n### Fixed Issues\n\nFor each issue:\n\n- ID\n- severity\n- category\n- root cause\n- fix\n- tests added\u002Fupdated\n- verification commands\n- similar patterns checked\n\n### Files Changed\n\nFor each changed file\u002Fmodule:\n\n- what changed\n- why it changed\n\n### Verification\n\nList commands run and results.\n\n### Remaining Risks\n\nList anything unresolved, blocked, uncertain, or out of scope.\n\nDo not say \"secure.\"\nSay exactly what was checked and what passed.\n","# Strict Security and Code Quality Repair Skill\n\n## Purpose\n\nAudit any codebase, find real security, correctness, reliability, and code-quality issues, fix root causes, verify fixes, and repeat until no meaningful issues remain.\n\nThis skill is language-agnostic and agent-agnostic.\n\nThis is not a cosmetic refactor pass.\nThis is not a checklist dump.\nThis is a repair workflow.\n\n## Prime Directive\n\nFind the real issue.\nFix the root cause.\nVerify the fix.\nSearch for the same bug pattern elsewhere.\nRepeat.\n\nNo hacky fixes. No symptom hiding. No \"make the test green\" bullshit.\n\n## Non-Negotiables\n\nYou must not:\n\n- delete or weaken failing tests\n- weaken validation to accept bad input\n- bypass authentication, authorization, ownership, tenant, or permission checks\n- swallow errors without a real recovery path\n- return fake success\n- hardcode users, IDs, secrets, paths, URLs, tokens, or magic values\n- add arbitrary sleeps, retries, or timing hacks\n- silence linters, typecheckers, formatters, or scanners without proof and justification\n- hide internal failures behind vague catch-all patches\n- change public behavior silently\n- rewrite large parts of the codebase unless the structure itself is the root cause\n- claim the system is \"secure\"\n\nA fix is invalid if it only hides the symptom.\n\n## Start Here\n\nBefore editing anything, do this in order.\n\n### 1. Identify the System Type\n\nClassify the codebase into one or more of these buckets:\n\n- Web app \u002F API \u002F CRUD app\n- SaaS \u002F multi-tenant app\n- Auth-heavy app\n- File upload \u002F file processing app\n- URL fetcher \u002F scraper \u002F importer\n- Webhook \u002F callback consumer\n- Background job \u002F queue \u002F worker system\n- CLI \u002F local developer tool\n- Frontend-only app\n- Library \u002F SDK \u002F package\n- Data pipeline \u002F ETL system\n- Realtime \u002F websocket \u002F event-driven app\n\nThis classification decides where to audit first.\n\n### 2. Find the Critical Assets\n\nIdentify what must be protected:\n\n- user accounts\n- sessions\u002Ftokens\n- private user data\n- tenant\u002Fworkspace\u002Fproject boundaries\n- uploaded files\n- database rows\n- payments\u002Fbilling data\n- secrets\u002FAPI keys\n- internal network access\n- background jobs\n- external integrations\n- generated\u002Fexported data\n\nDo not audit blindly. Audit around assets.\n\n### 3. Find the Trust Boundaries\n\nList where untrusted input enters the system:\n\n- HTTP requests\n- forms\n- route params\n- query params\n- JSON bodies\n- file uploads\n- URLs submitted by users\n- webhooks\n- CLI args\n- environment variables\n- background job payloads\n- database records later reused as trusted data\n- third-party API responses\n\nEvery trust boundary needs validation, authorization, safe error handling, and tests.\n\n### 4. Run Baseline Verification\n\nFind and run available checks:\n\n- tests\n- typecheck\n- lint\n- build\n- formatter check\n- migration\u002Fschema check\n- security scan, if present\n\nRecord pre-existing failures separately.\n\nDo not blame your changes for existing failures.\nDo not call a fix verified unless the relevant checks were actually run.\n\n## Triage Decision Tree\n\nUse this to decide where to start.\n\n### Web App \u002F API \u002F CRUD App\n\nStart with:\n\n1. authentication\n2. authorization\n3. ownership checks\n4. input validation\n5. data-layer queries\n6. error handling\n\nMost serious CRUD bugs are IDOR, missing ownership checks, bad validation, and unsafe query scoping.\n\n### SaaS \u002F Multi-Tenant App\n\nStart with:\n\n1. tenant\u002Fworkspace\u002Fproject isolation\n2. every query that accepts an ID\n3. list\u002Fsearch\u002Ffilter endpoints\n4. analytics\u002Faggregation queries\n5. background jobs that process tenant data\n6. file access boundaries\n\nAssume every resource ID is hostile until ownership is proven.\n\n### Auth-Heavy App\n\nStart with:\n\n1. session creation\n2. session expiry\n3. callback\u002Fredirect handling\n4. logout\u002Finvalidation\n5. cookie\u002Ftoken storage\n6. role\u002Fpermission enforcement\n\nClient-side auth state is not security.\n\n### File Upload \u002F File Processing App\n\nStart with:\n\n1. file size limits\n2. file type validation\n3. path traversal\n4. public\u002Fprivate file access\n5. storage permissions\n6. archive extraction\n7. cleanup behavior\n\nNever trust filenames, extensions, MIME types, or paths from users.\n\n### URL Fetcher \u002F Scraper \u002F Importer\n\nStart with:\n\n1. SSRF protection\n2. protocol allowlist\n3. DNS\u002FIP validation\n4. redirect validation\n5. timeout limits\n6. response size limits\n7. content-type restrictions\n\nValidate every redirect. The original URL is not enough.\n\n### Webhook \u002F Callback Consumer\n\nStart with:\n\n1. signature verification\n2. replay protection\n3. idempotency\n4. event ordering\n5. payload validation\n6. safe failure behavior\n\nUnsigned webhooks are attacker-controlled input.\n\n### Background Job \u002F Queue \u002F Worker System\n\nStart with:\n\n1. idempotency\n2. retry behavior\n3. partial failure handling\n4. transaction boundaries\n5. concurrency\u002Frace conditions\n6. poison message handling\n\nAny job that can run twice must be safe to run twice.\n\n### CLI \u002F Developer Tool\n\nStart with:\n\n1. path handling\n2. command execution\n3. config loading\n4. environment variable handling\n5. destructive operations\n6. filesystem permissions\n\nLocal tools can still destroy data or leak secrets.\n\n### Frontend-Only App\n\nStart with:\n\n1. XSS\n2. unsafe HTML\u002Fmarkdown rendering\n3. token storage\n4. stale auth state\n5. API error handling\n6. cache key scoping\n7. optimistic update rollback\n\nFrontend checks improve UX. They do not replace backend enforcement.\n\n### Library \u002F SDK \u002F Package\n\nStart with:\n\n1. unsafe defaults\n2. public API misuse risks\n3. input validation\n4. dependency risk\n5. error semantics\n6. backward compatibility\n\nA library should make the safe path easy and the unsafe path explicit.\n\n### Data Pipeline \u002F ETL\n\nStart with:\n\n1. untrusted input parsing\n2. schema validation\n3. malformed records\n4. partial writes\n5. idempotency\n6. data corruption risks\n7. retry behavior\n\nSilent bad data is still a production bug.\n\n## Severity Rules\n\n### Critical\n\nFix immediately:\n\n- auth bypass\n- authorization bypass\n- cross-user or cross-tenant data leak\n- account takeover risk\n- SQL injection\n- command injection\n- code injection\n- SSRF to internal\u002Fprivate networks\n- arbitrary file read\u002Fwrite\n- secret exposure\n- forged webhook actions\n- privilege escalation\n\n### High\n\nFix next:\n\n- IDOR\n- missing ownership checks\n- stored XSS\n- unsafe file upload\n- unsafe redirects in sensitive flows\n- destructive action without authorization\n- broken session expiry\n- race condition corrupting important state\n- sensitive data in logs or responses\n\n### Medium\n\nFix after critical\u002Fhigh:\n\n- bad validation\n- bad pagination\u002Ffiltering\n- missing request limits\n- incorrect error mapping\n- inconsistent transactions\n- missing idempotency\n- stale derived state\n- unreliable retries\n- missing abuse limits\n\n### Low\n\nFix only when it reduces future risk:\n\n- confusing naming\n- dead code\n- duplicated logic\n- unclear responsibility boundaries\n- weak structure\n- inconsistent patterns\n\nNaming and dead code are not security issues by default. They become valid findings only when they obscure ownership, validation, state transitions, error behavior, or other important logic.\n\n## Issue Ledger\n\nTrack every real issue:\n\n```\nID:\nSeverity:\nCategory:\nAffected area:\nRoot cause:\nFailure\u002Fexploit scenario:\nFix:\nTests:\nVerification:\nPattern search:\nStatus:\n```\n\nDo not fix random things without knowing why they matter.\n\n## Repair Loop\n\nRepeat this loop until the stop conditions are met.\n\n### Pass 1: Map\n\n- classify the system\n- identify assets\n- identify trust boundaries\n- identify verification commands\n- run baseline checks\n\n### Pass 2: Audit Highest-Risk Flows\n\nPick the top 3 highest-risk flows based on the decision tree.\n\nExamples:\n\n- login\u002Fsession flow\n- user-owned resource CRUD flow\n- file upload\u002Fdownload flow\n- URL import flow\n- webhook processing flow\n- background job retry flow\n- payment\u002Fbilling flow\n- admin action flow\n\nFor each flow, inspect:\n\n- who can call it\n- what input it accepts\n- what resource it touches\n- how ownership is verified\n- what happens on failure\n- what gets logged\n- what tests exist\n\n### Pass 3: Fix\n\nFor each issue:\n\n1. write down the root cause\n2. design the smallest clean fix\n3. implement the fix\n4. add or update regression tests\n5. run narrow verification\n6. run broader verification\n\nA fix without verification is not complete.\n\n### Pass 4: Pattern Search\n\nAfter every fix, search for the same bug family.\n\nExamples:\n\n- one missing ownership check means inspect all handlers with resource IDs\n- one unsafe query means inspect all queries for that resource\n- one missing request limit means inspect all request parsing\n- one unsafe redirect means inspect all redirects\n- one bad cache key means inspect related cache keys\n- one non-idempotent job means inspect all retryable jobs\n- one path traversal risk means inspect all file operations\n\nBugs travel in families. Kill the family.\n\n### Pass 5: Re-Audit Touched Areas\n\nAfter fixing, re-read the changed code and ask:\n\n- did this introduce a new edge case?\n- did this weaken behavior?\n- did this create inconsistent patterns?\n- is the fix understandable?\n- is the security boundary explicit?\n- would a future maintainer accidentally undo this?\n\nThen run verification again.\n\n## Valid Fix Standard\n\nA valid fix must:\n\n- address the root cause\n- preserve intended behavior\n- improve or preserve security\n- be narrow but not fragile\n- be readable\n- include regression coverage where practical\n- be verified\n- make the same bug harder to reintroduce\n\nInvalid fixes include:\n\n- broad catch-all error handling\n- hidden fallback behavior\n- fake success responses\n- special-casing one test\n- disabling failing checks\n- weakening validation\n- moving the bug somewhere else\n- adding comments instead of enforcement\n\n## Testing Requirements\n\nFor every fixed bug, add or update tests unless genuinely impractical.\n\nPrefer behavior tests over implementation-detail tests.\n\nUse the project's native tools.\n\nTest intent:\n\n- auth bug means missing\u002Fexpired\u002Finvalid credentials test\n- authorization bug means cross-user\u002Fcross-tenant access test\n- validation bug means malformed\u002Fboundary input test\n- data bug means persistence\u002Fintegration test\n- retry\u002Fjob bug means duplicate execution test\n- frontend state bug means stale state\u002Fcache\u002Frollback test\n- file bug means path\u002Ftype\u002Fsize\u002Faccess test\n- SSRF bug means private IP\u002Fredirect\u002Fprotocol test\n\nIf a test cannot be added, document why and give a manual verification step.\n\n## Stop Conditions\n\nStop only when all are true:\n\n- critical issues are fixed or explicitly blocked\n- high issues are fixed or explicitly blocked\n- known correctness bugs are fixed or explicitly blocked\n- relevant verification passes, or remaining failures are documented as pre-existing\n- touched areas were re-audited\n- repeated bug patterns were searched\n- remaining risks are documented\n\nDo not stop because the first bug is fixed.\n\n## Blocker Rules\n\nIf blocked, report:\n\n- what was attempted\n- what failed\n- why it blocks progress\n- what evidence is missing\n- safest next action\n\nDo not guess.\nDo not fake verification.\nDo not pretend incomplete work is complete.\n\n## Final Report\n\n### Summary\n\n- issues found\n- issues fixed\n- issues verified\n- issues deferred\n- remaining risk level\n\n### Fixed Issues\n\nFor each issue:\n\n- ID\n- severity\n- category\n- root cause\n- fix\n- tests added\u002Fupdated\n- verification commands\n- similar patterns checked\n\n### Files Changed\n\nFor each changed file\u002Fmodule:\n\n- what changed\n- why it changed\n\n### Verification\n\nList commands run and results.\n\n### Remaining Risks\n\nList anything unresolved, blocked, uncertain, or out of scope.\n\nDo not say \"secure.\"\nSay exactly what was checked and what passed.\n",{"name":5,"author":9,"license":15,"version":24,"metadata":25,"platforms":39,"description":7},"1.0.0",{"hermes":26},{"tags":27,"related_skills":34},[28,29,30,31,32,33],"security","audit","code-quality","review","repair","static-analysis",[35,36,37,38],"codebase-audit","systematic-debugging","requesting-code-review","github-code-review",[40,41,42],"linux","macos","windows","main","bf609d39ca1cf5a6b9a482634fde3d638442659f","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills","https:\u002F\u002Fgithub.com\u002Fekasc","ekasc.dev","beep boop","2026-08-29 16:34:56",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add ekasc\u002Fskills --skill code-security-quality-audit",{"tool":56,"command":57},"bunx","bunx skills add ekasc\u002Fskills --skill code-security-quality-audit",{"tool":59,"command":60},"pnpm","pnpm dlx skills add ekasc\u002Fskills --skill code-security-quality-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fcode-security-quality-audit\u002FSKILL.md",true,[],[65,72,79,86,95,102],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M72G5T5SATXXEQ3J7MWQKKRC","vercel-react-native-skills","React Native and Expo best practices for performant mobile apps — FlashList\u002FFlatList virtualization, native modules, Reanimated animations, image handling, Hermes. Use when building or optimizing a React Native \u002F Expo app. For web React\u002FNext use `vercel-react-best-practices`; for animation library choice use `framer-motion-animator` or `gsap-performance`.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fvercel-react-native-skills\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M72G5NSRW9M33TBTZXVKVQ4R","vercel-react-best-practices","React and Next.js performance patterns from Vercel Engineering — server components, data fetching, bundle optimization, streaming, caching, image optimization. Use when writing, reviewing, or refactoring web React\u002FNext.js code for performance. For runtime profiling use `web-perf`; for code-level UI slowness fixes use `optimize`; for React Native use `vercel-react-native-skills`.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M72G05D2VPFJ10M9GQPTF3EA","macos-design-guidelines","Apple Human Interface Guidelines for Mac. Use when building macOS apps with SwiftUI or AppKit, implementing menu bars, toolbars, window management, or keyboard shortcuts. Triggers on tasks involving Mac UI, desktop apps, or Mac Catalyst.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fmacos-design-guidelines\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":90,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M72FZ9J1SKS7TTJ9R06P99M4","hatch-pet","Create, repair, validate, preview, and package Codex-compatible animated pets and pet spritesheets from character art, screenshots, generated images, or visual references. Use when a user wants to hatch a Codex pet, create a custom animated pet, or build a built-in pet asset with an 8x9 atlas, transparent unused cells, row-by-row animation prompts, QA contact sheets, preview videos, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fhatch-pet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fhatch-pet\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M72FZ1VV66WJYWW1DVA614EV","gsap-performance","Optimize GSAP animations for 60fps — transforms over layout properties, will-change, batching, render scheduling, scroll-trigger perf. Use ONLY when the project uses GSAP and the user reports jank or wants smoother animation performance. For other libraries use `framer-motion-animator`; for motion design principles (when\u002Fwhy to animate) use `animate`; for animation best-practice rules use `emilkowal-animations`.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fgsap-performance\u002FSKILL.md",[],[],{"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":19},"01M72FYV883H58GZ0WHT3V21D7","golang-pro","Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration, CLI tools, benchmarks, or table-driven testing.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fgolang-pro\u002FSKILL.md",[],[]]