[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ED48A03F4NRH5X9ZBVR2ZF":3,"skill-same:01M7ED48A03F4NRH5X9ZBVR2ZF":49},{"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":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7ED48A03F4NRH5X9ZBVR2ZF","code-reviewer",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fcode-reviewer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# code-reviewer\n\n# Code Reviewer\n\nAutomated code review tools for analyzing pull requests, detecting code quality issues, and generating review reports.\n\n---\n\n## How This Skill Is Organized\n\n```\ncode-reviewer\u002F\n  SKILL.md                        ← you are here (tools + dispatch table)\n  rules\u002F\n    universal.md                  ← security, async, resources, exceptions, performance — all languages\n  languages\u002F\n    python.md                     ← Python-specific rules + idioms\n    typescript.md                 ← TypeScript \u002F JavaScript-specific rules + idioms\n    go.md                         ← Go-specific rules + idioms\n    swift.md                      ← Swift-specific rules + idioms\n    kotlin.md                     ← Kotlin-specific rules + idioms\n    csharp.md                     ← C# \u002F .NET-specific rules + idioms\n    java.md                       ← Java-specific rules + idioms\n    c.md                          ← C -specific rules + idioms\n    cpp.md                        ← C++ -specific rules + idioms\n    rust.md                       ← Rust -specific rules + idioms\n    ruby.md                       ← Ruby -specific rules + idioms\n    php.md                        ← PHP-specific rules + idioms\n    dart.md                       ← Dart \u002F Flutter-specific rules + idioms\n```\n\n### Loading order for every review\n\n1. This file (`SKILL.md`) — tools and thresholds\n2. `rules\u002Funiversal.md` — always, for every language\n3. The matching `languages\u002F*.md` — one file based on the extension table below\n\nThat is always exactly **2 additional files**, regardless of scope.\n\n| Extension(s) | Load |\n|---|---|\n| `.py` | `languages\u002Fpython.md` |\n| `.ts`, `.tsx`, `.js`, `.jsx`, `.mjs` | `languages\u002Ftypescript.md` |\n| `.go` | `languages\u002Fgo.md` |\n| `.swift` | `languages\u002Fswift.md` |\n| `.kt`, `.kts` | `languages\u002Fkotlin.md` |\n| `.cs`, `.csx`, `.razor`, `.cshtml` | `languages\u002Fcsharp.md` |\n| `.java` | `languages\u002Fjava.md` |\n| `.c`, `.h` | `languages\u002Fc.md` |\n| `.cpp`, `.cc`, `.cxx`, `.hpp`, `.hh`, `.hxx` | `languages\u002Fcpp.md` |\n| `.rs` | `languages\u002Frust.md` |\n| `.rb`, `.rake`, `.gemspec`, `.ru` | `languages\u002Fruby.md` |\n| `.php`, `.phtml` | `languages\u002Fphp.md` |\n| `.dart` | `languages\u002Fdart.md` |\n\n---\n\n## Tools\n\n### PR Analyzer\n\nAnalyzes git diff between branches to assess review complexity and identify risks.\n\n```bash\n# Analyze current branch against main\npython scripts\u002Fpr_analyzer.py \u002Fpath\u002Fto\u002Frepo\n\n# Compare specific branches\npython scripts\u002Fpr_analyzer.py . --base main --head feature-branch\n\n# JSON output for integration\npython scripts\u002Fpr_analyzer.py \u002Fpath\u002Fto\u002Frepo --json\n```\n\n**What it detects (universal — see also language file for language-specific signals):**\n- Hardcoded secrets (passwords, API keys, tokens, connection strings)\n- SQL \u002F query injection patterns\n- Debug statements left in production code\n- Lint \u002F analyzer suppression annotations\n- TODO\u002FFIXME comments\n\n**Language-specific detections** are defined in each `languages\u002F*.md` file.\n\n**Output includes:**\n- Complexity score (1-10)\n- Risk categorization (critical, high, medium, low)\n- File prioritization for review order\n- Commit message validation\n\n---\n\n### Code Quality Checker\n\nAnalyzes source code for structural issues, code smells, and SOLID violations.\n\n```bash\n# Analyze a directory\npython scripts\u002Fcode_quality_checker.py \u002Fpath\u002Fto\u002Fcode\n\n# Analyze specific language\n# Valid values: python, typescript, javascript, go, swift, kotlin, csharp, java, c, cpp, rust, ruby, php, dart\npython scripts\u002Fcode_quality_checker.py . --language java\n\n# JSON output\npython scripts\u002Fcode_quality_checker.py \u002Fpath\u002Fto\u002Fcode --json\n```\n\n**Universal thresholds:**\n\n| Issue | Threshold |\n|-------|-----------|\n| Long function | >50 lines |\n| Large file | >500 lines |\n| God class | >20 methods |\n| Too many params | >5 |\n| Deep nesting | >4 levels |\n| High complexity | >10 branches |\n\nLanguage-specific checks are defined in each `languages\u002F*.md` file.\n\n---\n\n### Review Report Generator\n\nCombines PR analysis and code quality findings into structured review reports.\n\n```bash\n# Generate report for current repo\npython scripts\u002Freview_report_generator.py \u002Fpath\u002Fto\u002Frepo\n\n# Markdown output\npython scripts\u002Freview_report_generator.py . --format markdown --output review.md\n\n# Use pre-computed analyses\npython scripts\u002Freview_report_generator.py . \\\n  --pr-analysis pr_results.json \\\n  --quality-analysis quality_results.json\n```\n\n**Verdicts:**\n\n| Score | Verdict |\n|-------|---------|\n| 90+ with no high issues | Approve |\n| 75+ with ≤2 high issues | Approve with suggestions |\n| 50-74 | Request changes |\n| \u003C50 or critical issues | Block |\n\n---\n\n## Adding a New Language\n\n**Reviewer guidance (required):**\n\n1. Create `languages\u002F\u003Cname>.md` using any existing language file as a template — it must have sections: PR Analyzer Signals, Code Quality Checks, Security, Async, Resource Management, Exception Handling, Performance, Idioms.\n2. Add the extension row to the dispatch table above.\n\nThat is all the agent-driven review needs.\n\n**Deterministic analyzer support (optional, recommended):** the bundled scripts\nonly flag a language they explicitly know. To make `code_quality_checker.py`\nscore the new language:\n\n3. Add the extensions to `LANGUAGE_EXTENSIONS` in `scripts\u002Fcode_quality_checker.py` (this also adds the `--language` choice).\n4. Add `function` \u002F `class` \u002F `method` regex entries for the language in the same file; otherwise it falls back to the Python patterns.\n5. Optionally add a `check_\u003Cname>_specific_smells(...)` detector (see the C#, Java, and C ones) and call it from `analyze_file`.\n6. Add `assets\u002Fsample_\u003Cname>_smells.\u003Cext>` + `_clean` fixtures and commit the expected `--json` output under `expected_outputs\u002F` as a regression guard.\n\n---\n\n## Regression Fixtures\n\nLabelled fixtures live in `assets\u002F` with their committed `--json` output in\n`expected_outputs\u002F` (C#, Java, and C). Drift from the committed JSON signals a\nbehaviour change in the analyzer:\n\n```bash\npython scripts\u002Fcode_quality_checker.py assets\u002Fsample_java_smells.java --json \\\n  | diff - expected_outputs\u002Fsample_java_smells_quality.json\n```\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fproductivity\u002Fcode-reviewer","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill code-reviewer",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill code-reviewer",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill code-reviewer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fcode-reviewer\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",584,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fcode-reviewer\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"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":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"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":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"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":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"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":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"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":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"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":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]