跳到正文
cccskills
免费在 GitHub 公开

code-reviewer

Code review automation for TypeScript, JavaScript, Python, Go, Swift, and Kotlin. Analyzes PRs for complexity, risk, SOLID violations, and code smells. Use when reviewing PRs, analyzing code quality, or generating review checklists.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(8)

  • SKILL.md6.6 KB
  • references/code_review_checklist.md6.9 KB
  • references/coding_standards.md12.1 KB
  • references/common_antipatterns.md16.1 KB
  • references/tool_reference.md10.9 KB
  • scripts/code_quality_checker.py17.1 KB
  • scripts/pr_analyzer.py14.2 KB
  • scripts/review_report_generator.py17.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Code Reviewer

Automated code review tooling that analyzes pull requests for complexity and risk, scans source for code smells and SOLID violations, and consolidates findings into structured review reports with a verdict, score, and prioritized action items. Supports TypeScript, JavaScript, Python, Go, Swift, and Kotlin.

Core Capabilities

  • PR risk analysis — scan git diffs for hardcoded secrets, SQL injection, debug statements, lint bypasses, any types, and TODO/FIXME, with a 1-10 complexity score.
  • Code quality checking — detect long functions, large files, god classes, deep nesting, too many params, high cyclomatic complexity, missing error handling, unused imports, and magic numbers against fixed thresholds.
  • SOLID & antipattern detection — flag structural, logic, security, performance, testing, and async antipatterns with fixes.
  • Review reports — merge PR and quality findings into a verdict (approve / request changes / block), 0-100 score, and ranked action items in text, markdown, or JSON.
  • Review order prioritization — sort files so security-sensitive code is inspected first.
  • Commit hygiene — validate conventional-commit format across a branch.

When to Use

  • Reviewing a PR and needing fast pre-screening before manual logic review.
  • Analyzing code quality or auditing a codebase for smells and SOLID violations.
  • Generating a structured review report or review checklist.
  • Gating merges in CI/CD on a quality score or review verdict.

Clarify First

Before producing the review, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • What to review — the git diff/branch (base and head) or a source directory (sets --base/--head or the path the analyzers scan)
  • Language — TypeScript, JavaScript, Python, Go, Swift, or Kotlin (selects the rules code_quality_checker.py applies via --language)
  • Output & gate — report format (text/markdown/JSON) and any pass/fail score threshold (sets the artifact format and CI verdict)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Tools

ToolPurposeCommand
pr_analyzer.pyAssess PR complexity and risk from a git diffpython scripts/pr_analyzer.py . --base main --head feature-branch --json
code_quality_checker.pyDetect code smells and SOLID violations in sourcepython scripts/code_quality_checker.py ./src --language typescript --json
review_report_generator.pyCombine PR + quality findings into a review reportpython scripts/review_report_generator.py . --format markdown --output review.md

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/tool_reference.md — full per-tool usage, detection lists, threshold/verdict tables, all CLI flags, JSON output samples, supported-language extensions, troubleshooting table, and success criteria. Read when running, configuring, or debugging the scripts.
  • references/code_review_checklist.md — systematic checklists for pre-review, correctness, security, performance, maintainability, testing, and language-specific checks. Read when performing a manual review pass.
  • references/coding_standards.md — language-specific standards for TypeScript, JavaScript, Python, Go, Swift, and Kotlin (types, null safety, async, error handling, class design). Read when judging style and idiom compliance.
  • references/common_antipatterns.md — antipattern catalog (structural, logic, security, performance, testing, async) with examples, detection cues, and fixes. Read when explaining or fixing a flagged smell.

Scope & Limitations

Covers:

  • Static pattern-based risk detection in git diffs (secrets, SQL injection, debug statements, lint bypasses)
  • Structural code quality analysis: function length, class size, cyclomatic complexity, parameter count, SOLID violations
  • PR metadata assessment: file categorization by risk priority, commit message validation, complexity scoring
  • Consolidated review reports with verdicts, scores, and prioritized action items across text, markdown, and JSON formats

Does NOT cover:

  • Runtime or dynamic analysis -- use senior-qa for test execution and qa-browser-automation for end-to-end testing
  • Security vulnerability scanning (CVE databases, dependency audits) -- use senior-security or senior-secops for SAST/DAST and supply chain analysis
  • Performance profiling or benchmarking -- use senior-backend or senior-fullstack for performance optimization workflows
  • Architecture-level review (system design, service boundaries, API contract validation) -- use senior-architect for architectural decision records and design review

Integration Points

SkillIntegrationData Flow
senior-securityFeed PR Analyzer critical findings into security review workflows for deeper SAST/DAST analysispr_analyzer.py --json output risks.critical[] → security assessment input
senior-qaGate test execution on review report verdict; block test suites when verdict is blockreview_report_generator.py --json output summary.verdict → QA pipeline gate
senior-architectEscalate high-complexity PRs (score 7+) to architecture reviewpr_analyzer.py output summary.complexity_score → architecture review trigger
senior-fullstackCombine code quality scores with fullstack quality analyzer for end-to-end project healthcode_quality_checker.py --json output → merged with code_quality_analyzer.py metrics
tdd-guideCross-reference review findings with test coverage; flag untested code paths flagged by quality checkerQuality checker smells[] by file → TDD coverage gap analysis
senior-devopsIntegrate review reports into CI/CD pipelines as automated quality gatesreview_report_generator.py --json output summary.score → pipeline pass/fail threshold

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

This skill should be used when the user asks to "check accessibility", "audit WCAG compliance", "scan HTML for a11y issues", "check color contrast", or "find accessibility violations in web pages".

中文简介正在准备中。当前显示原文说明。

borghei/Claude-Skills9512026年10月7日 更新

Design and analyze A/B tests: sample size, test duration, and statistical significance for conversion experiments. Use when setting up an A/B test, calculating sample size, designing an experiment, or analyzing results.

中文简介正在准备中。当前显示原文说明。

borghei/Claude-Skills9512026年10月7日 更新

Design and run statistically rigorous A/B tests and experiments. Use when planning experiments, calculating sample sizes, designing test variants, selecting metrics, analyzing results, or when someone says "let's test that."

中文简介正在准备中。当前显示原文说明。

borghei/Claude-Skills9512026年10月7日 更新

Sales execution across pipeline, discovery, demos, negotiation, and closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

中文简介正在准备中。当前显示原文说明。

borghei/Claude-Skills9512026年10月7日 更新

Design ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.

中文简介正在准备中。当前显示原文说明。

borghei/Claude-Skills9512026年10月7日 更新

aeo

免费

Answer Engine Optimization (AEO): optimize content to be cited by LLMs (ChatGPT, Claude, Perplexity, Gemini) in their answers. Use when designing content for LLM citation, auditing citability, or structuring Q&A schema.

中文简介正在准备中。当前显示原文说明。

borghei/Claude-Skills9512026年10月7日 更新

查看 borghei 的全部技能

报告此技能的问题