Logo Code Quality Reviewer

Code Quality Reviewer

Tổ chức
hackmamba-io
code-quality-reviewer

Review code samples in technical articles, tutorials, and documentation for quality, correctness, runnability, security hygiene, and code-prose consistency. Use this skill when a technical writer, developer, or editor wants to evaluate whether the code in their content is production-appropriate, teachable, and accurate. Trigger on phrases like "review the code in my article," "is this code correct," "check my code samples," "is this code production-ready," "will this code work for readers," "review my tutorial code," "check my snippets," or any request to evaluate code quality in a content context. Also trigger when someone pastes an article or tutorial and asks for a general review, since code quality is a distinct diagnostic that prose-level feedback often misses entirely.

Tổng quan

Nhà phát hànhhackmamba-io
Kho mãcreator-skills
Tên kỹ năngcode-quality-reviewer
Sao
30
Bản fork
3
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được hackmamba-io công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Code Quality Reviewer trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/hackmamba-io/creator-skills/tree/main/skills/technical/code-quality-reviewer
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hackmamba-io/creator-skills.git /tmp/creator-skills
mkdir -p .claude/skills
cp -r /tmp/creator-skills/skills/technical/code-quality-reviewer .claude/skills/code-quality-reviewer
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Code Quality Reviewer trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Code Quality Reviewer ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Code Quality Reviewer không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Before you start: verify this skill is fully installed

This skill depends on its reference file references/code-rules.md. More than half of the skill lives in that file, and the skill cannot produce a correct result without it.

Before doing anything else, attempt to read references/code-rules.md. If you cannot read it, STOP. Do not attempt the task from memory or from general knowledge. Tell the user exactly this:

This skill is not fully installed. Its reference file could not be read, so I can only produce a degraded result that would look normal but be missing most of the skill. Please reinstall the skill. In Claude Code or another agent, run npx skills add hackmamba-io/creator-skills --skill code-quality-reviewer -g. In the Claude app, go to Settings > Capabilities > Skills, delete this skill, and upload it again as a zip that contains both SKILL.md and the references/ folder. Then run this skill again.

Only proceed past this point once the reference file has loaded successfully.


Code Quality Reviewer

A skill for evaluating code samples in technical content. Covers universal quality rules across all languages and specific conventions for Python, JavaScript and TypeScript, Bash, SQL, YAML and Dockerfiles, and Go. Reviews both the code itself and the prose that surrounds it, with heavier weight on the code.


When to activate this skill

Use this skill when someone:

  • Submits an article, tutorial, or guide with code samples and asks for a review
  • Asks whether their code is correct, complete, or appropriate for a technical audience
  • Wants to know if their code snippets will work when readers copy and run them
  • Asks for feedback on code in a documentation or content context specifically
  • Submits code samples that appear AI-generated or adapted from personal projects and wants them validated for a public audience
  • Asks whether their code follows language conventions or best practices
  • Wants a readiness verdict on their content before publication

When NOT to activate this skill

Do not use this skill when someone:

  • Wants help debugging code in their own project with no documentation context
  • Asks for a code review in a pure engineering context with no mention of content, articles, tutorials, or documentation
  • Only has prose in their draft with no code blocks
  • Asks for style or grammar feedback on prose only
  • Wants architecture advice on a system they are building, not writing about

What this skill does

Writers who code and developers who write share a common blind spot: code that works on their machine, in their environment, with their dependencies, often fails when a reader tries to run it cold. AI-generated code compounds this because it is frequently plausible-looking, syntactically correct, and subtly wrong in ways that are hard to spot without running it.

This skill reviews code samples the way a senior engineer with a documentation background would: checking not just whether the code is correct, but whether it is complete enough for a reader to succeed with it, honest about its limitations, and consistent with what the surrounding prose claims it does.

The output flags issues inline with explanations and rewrites, then delivers a final readiness verdict the writer can act on before publication.


Language coverage

Tier 1 (full review, universal plus language-specific conventions): Python, JavaScript, TypeScript, Bash, SQL, YAML, Dockerfiles, Go

Tier 2 (universal rules only): All other languages. The universal rules in Section 1 of the reference apply regardless of language. Flag what can be assessed without language-specific knowledge and note that the review covers universal standards only.


Input handling

Writers may provide any of the following. Handle each without asking for more unless there are no code blocks at all.

Full article or tutorial Review all code blocks found in the article. Evaluate both the code itself and how the surrounding prose integrates with it. Apply the code-prose integration rules from Section 8 of the reference.

Code blocks only, no surrounding prose Review the code against universal and language-specific rules. Note in the review that prose integration could not be assessed and offer to review the full article if available.

Single code block Run the full universal and language-specific review on the block. If context is missing (no indication of what the article is about, who it is for, or where this block appears), note the gaps that context would have resolved and assess what can be assessed.

Article with stated audience or publication target Factor the audience into the review. Code for a beginner tutorial needs more explanation, more descriptive naming, and simpler error handling than code in an advanced reference guide. Code for a developer-facing publication should follow production conventions more strictly than code in a conceptual explainer.


How to run the review

Step 1: Read the code rules reference

Before starting, read references/code-rules.md in full. The Common Violations Cheat Sheet in Section 9 is the fastest way to orient before scanning the draft. Do not rely on general knowledge of best practices. Use the reference.

Step 2: Identify all code blocks and their languages

Locate every code block in the submission. Note the language for each. If a block has no language label, that is itself a flag. Infer the language from context and note what you inferred.

Step 3: Run the universal review on every block

For each code block, check against Section 1 of the reference:

  • Completeness: are imports present, are prerequisites stated, is the code scoped appropriately if incomplete?
  • Runnability: is it real code or pseudocode, are placeholders correctly formatted, are dependencies version-pinned where relevant?
  • Error handling: are failure cases handled, especially for network calls, file operations, and authentication?
  • Security hygiene: are credentials hardcoded, is SQL parameterized, are sensitive values handled safely?
  • Naming and clarity: are variable names descriptive, do they match the prose, are magic numbers explained?
  • Comments: do they explain why rather than what, are they consistent with the prose?
  • Formatting: is the language label present, are input and output separated?

Step 4: Run the language-specific review

For Tier 1 languages, apply the relevant section from the reference after the universal review. Language-specific violations are often the most surprising to writers who learned the language informally or rely on AI to generate examples.

For Tier 2 languages, note that the review covers universal standards only and does not assess language idioms.

Step 5: Review code-prose integration

Using Section 8 of the reference, evaluate whether the prose before and after each code block does its job. Specifically:

  • Does the prose before the block explain what the code does, when to use it, and what the reader needs before running it?
  • Does the prose after the block address output, side effects, and next steps?
  • Are all terms and names in the prose consistent with what appears in the code?

Weight this section less heavily than the code review itself. Flag the highest impact integration issues, not every prose-level imperfection.

Step 6: Determine the readiness verdict

After completing all flags, assess the overall readiness of the code for publication using three levels:

Ready with minor fixes The code is fundamentally sound. Issues are cosmetic or low-risk (missing language label, variable naming, minor prose inconsistency). The writer can publish after addressing the flagged items.

Needs revision before publication The code has issues that would cause real problems for readers (missing imports, no error handling on network calls, hardcoded credentials, placeholder format inconsistency). These must be fixed before the article goes live.

Not publication-ready The code has fundamental problems (does not run, teaches insecure patterns without warning, contains incorrect logic, major completeness gaps). Significant revision is required.


Output format

## Code Quality Review

**Article / content:** [Title or description]
**Languages found:** [List all code block languages, e.g., "Python (3 blocks),
Bash (1 block), YAML (1 block)"]
**Prose integration reviewed:** [Yes / Code blocks only]
**Readiness verdict:** [Ready with minor fixes / Needs revision / Not publication-ready]

---

### Summary

[3 to 4 sentences on the overall state of the code. What is the most common
category of issue? Are the problems concentrated in one block or distributed
across the article? Is this AI-generated code that passed a surface check
but has runnability gaps, or is it personal code that works in one environment
but makes too many assumptions? Be specific about the pattern, not just
the presence of issues.]

---

### Flagged Issues

**Issue [N]: [Short label] -- [Block reference, e.g., "Block 2, Python"]**

> [Exact code excerpt showing the problem]

**Category:** [Completeness / Runnability / Error Handling / Security /
Naming / Comments / Formatting / Code-Prose Integration / Language-Specific]
**What is wrong:** [Plain explanation of the problem]
**Reader impact:** [What happens when a reader copies and runs this as-is]
**Suggested fix:**
```[language]
[Corrected version of the flagged code]

Note: [Any additional context the writer needs, e.g., "This is a PEP 8 requirement" or "This is a security concern, not just a style one"]


[Repeat for each issue]


What is working

[2 to 4 specific things the code does well. If the error handling is thorough, say so. If the placeholder format is consistent throughout, say so. If the code-prose integration is clear and the variables match the prose, say so. Do not manufacture praise.]

Before you publish

[A short, prioritized list of the fixes that must happen before this goes live, separate from the nice-to-haves. Frame it as a checklist the writer can action immediately. Maximum 5 items. If the verdict is "Ready with minor fixes," this section can be brief.]


---

## Tone of the review

Code feedback in a content context lands differently than a pull request review.
Writers who are not primarily engineers can be defensive about code feedback
in a way that developers are not. The goal is to help them ship content that
does not fail their readers, not to audit their engineering skills.

- Lead with the reader impact, not the rule. "A reader who runs this will hit
  an authentication error before they see any output" lands better than
  "you violated error handling best practices."
- Be specific. Vague feedback ("this code needs improvement") leaves the writer
  with no path forward.
- Separate must-fix from nice-to-have. Not every violation has the same urgency.
  A writer preparing to publish needs to know which issues will hurt readers and
  which are polish.
- If the code appears to be AI-generated, name it directly and without judgment.
  AI-generated code has a recognizable failure mode: it looks complete, passes
  a surface read, but makes assumptions about the environment that cause readers
  to fail silently. Flag that pattern when you see it.

---

## Edge cases

**All code blocks are intentionally incomplete (e.g., a conceptual article
that uses code to illustrate a point rather than teach a workflow)**
Apply the universal rules but lower the bar for completeness and runnability.
A code block that exists to illustrate a concept does not need to be runnable.
Note this in the review and scope the flags accordingly. Flag any block that
looks like it is meant to be runnable but is not.

**Mixed language articles**
Review each block against the appropriate tier. Note in the summary which
blocks received a full Tier 1 review and which received universal rules only.

**Code that is correct but teaches bad habits**
Flag it. The question for tutorial code is not just "does this work" but
"should a reader learn this pattern." A `SELECT *` query works. It also
teaches a habit that causes real problems in production. That distinction
matters in a content context.

**Security issues in demo code**
Never leave a security issue unflagged just because the article frames it as
a demo. State the issue, explain why it matters, and provide the safer pattern.
If the article is specifically demonstrating a vulnerability (e.g., a security
tutorial showing what not to do), confirm that the article makes that framing
explicit and flag it if it does not.

**AI-generated code**
Do not refuse to review it or treat it differently in principle. Review it
against the same standards. AI-generated code tends to cluster around specific
failure modes: missing error handling, plausible-but-wrong placeholder formats,
version assumptions that are silently stale, and variable names that are generic
rather than domain-appropriate. Look for those patterns specifically and flag
them when present.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Code Quality Reviewer làm được gì?

Review code samples in technical articles, tutorials, and documentation for quality, correctness, runnability, security hygiene, and code-prose consistency. Use this skill when a technical writer, developer, or editor wants to evaluate whether the code in their content is production-appropriate, teachable, and accurate. Trigger on phrases like "review the code in my article," "is this code correct," "check my code samples," "is this code production-ready," "will this code work for readers," "review my tutorial code," "check my snippets," or any request to evaluate code quality in a content...

Vì sao nên dùng Code Quality Reviewer trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Code Quality Reviewer là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Code Quality Reviewer trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/hackmamba-io/creator-skills/tree/main/skills/technical/code-quality-reviewer. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Code Quality Reviewer?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Code Quality Reviewer với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Code Quality Reviewer với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Code Quality Reviewer có miễn phí không?

Kỹ năng này được hackmamba-io phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇