Logo Speq Code Review

Speq Code Review

Tổ chức
exasol-labs
speq-code-review

Code review tag taxonomy and findings format for the code-reviewer agent during /speq-implement. Not for general code review.

Tổng quan

Nhà phát hànhexasol-labs
Kho mãspeq-skill
Tên kỹ năngspeq-code-review
Sao
54
Bản fork
6
Tệp đi kèm
1
Giấy phépMIT
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 dùng hướng dẫn viết bằng Markdown thay vì 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 exasol-labs công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Speq Code Review 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 của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/exasol-labs/speq-skill/tree/main/.claude/skills/speq-code-review
  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/exasol-labs/speq-skill.git /tmp/speq-skill
mkdir -p .claude/skills
cp -r /tmp/speq-skill/.claude/skills/speq-code-review .claude/skills/speq-code-review
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 Speq Code Review 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ự nạp Speq Code Review 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 bạn có thể dùng Speq Code Review với cả những mô hình khác ngoài mô hình ban đầu. 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 khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổ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.

Code Review Taxonomy

Analyze each changed file for the categories below.

1. Guardrail Violations

Per /speq-code-guardrails:

  • [TOO_MANY_ARGUMENTS]: more than 3 arguments
  • [SIDE_EFFECT]: function has a side effect its name and contract do not announce (a query that mutates, a command that touches unrelated state)
  • [BOOLEAN_FLAG_PARAMETER]: boolean flag parameter
  • [MAGIC_NUMBER]: magic number without a named constant (standing in for a failure, it is [SENTINEL_ERROR_VALUE], not this tag)
  • [MISSING_DOC_COMMENT]: missing doc comment on a public interface
  • [INLINE_COMMENT]: inline comment present (TODOs and other work-tracking comments are [WORK_TRACKING_COMMENT], not this tag)
  • [SELECTOR_ARGUMENT]: an argument (of any type, not just boolean) that picks which branch a function takes
  • [OUTPUT_PARAMETER]: a value returned via a mutated argument instead of the return value
  • [MIXED_ABSTRACTION_LEVEL]: a function mixes high-level orchestration with low-level detail
  • [COMMAND_QUERY_MIX]: a single call both mutates something and hands back an answer
  • [VAGUE_NAME]: a name that states no responsibility (Manager, Processor, Handler, Data, Info, Util)
  • [IMPLEMENTATION_IN_NAME]: a name that bakes in a transport, vendor, or format instead of the abstraction

2. Dead Code

  • [UNUSED_FUNCTION]: unused function or method
  • [UNREACHABLE_CODE]: unreachable code path
  • [UNUSED_IMPORT]: import not used
  • [UNUSED_VARIABLE]: variable assigned but never read

3. Test Quality

  • [OBSOLETE_TEST]: tests removed functionality
  • [DUPLICATE_TEST]: duplicate test coverage
  • [ASSERTION_FREE_TEST]: test always passes, no assertions
  • [VAGUE_TEST_NAME]: test name does not state the condition and expected behavior
  • [NONDETERMINISTIC_TEST]: test depends on real clock, network, filesystem, or unseeded randomness
  • [IMPLEMENTATION_COUPLED_TEST]: test asserts internal state instead of observable behavior
  • [UNTESTED_ERROR_PATH]: a failure path with no test
  • [MISSING_BOUNDARY_TEST]: no test for empty, single, maximum, off-by-one, or transition input
  • [SKIPPED_TEST]: test is skipped or ignored rather than fixed or deleted
  • [SUPPRESSED_WARNING]: a lint or compiler warning is silenced instead of resolved

4. Bad Comments

  • [REDUNDANT_COMMENT]: describes "what" not "why"
  • [OUTDATED_COMMENT]: does not match the code
  • [COMMENTED_OUT_CODE]: commented-out code block
  • [WORK_TRACKING_COMMENT]: TODO, FIXME, ticket refs

5. Optimization Opportunities

The Evidence Rule applies here: raise a finding in this category only with a measurement.

  • [PERFORMANCE_ISSUE]: obvious performance issue
  • [UNNECESSARY_ALLOCATION]: unnecessary allocation in a loop
  • [DUPLICATE_OPERATION]: operation that repeats work already done
  • [UNMEASURED_OPTIMIZATION]: a change justified as a performance optimization with no measurement behind it

6. YAGNI / Over-Engineering

  • [STANDARD_LIBRARY_DUPLICATE]: logic that reimplements something the language's standard library already provides
  • [SHRINKABLE]: same logic expressible in meaningfully fewer lines
  • [DEAD_FLEXIBILITY]: a feature flag, extension point, or parameter that is never varied
  • [UNNEEDED_DEPENDENCY]: a dependency added for something the standard library or an already-installed dependency already covers
  • [SPECULATIVE_ABSTRACTION]: an interface, generic type, or configuration value with exactly one implementation or caller, and not a seam over I/O, nondeterminism, or a third party

7. Error Handling

  • [SENTINEL_ERROR_VALUE]: a magic value or in-band signal stands in for an error instead of the language's own error mechanism
  • [CONTEXTLESS_ERROR]: an error that does not state what was attempted, the input that failed, or the constraint violated
  • [SWALLOWED_ERROR]: an error is discarded instead of handled or propagated
  • [BROAD_CATCH]: a catch broader than the specific error it handles
  • [LEAKED_PROVIDER_ERROR]: a third-party error type crosses a module boundary unwrapped
  • [ERROR_AS_CONTROL_FLOW]: an error mechanism used for expected, non-exceptional flow

8. Design Depth

  • [SHALLOW_MODULE]: learning the interface takes almost as much effort as the implementation behind it would, or classitis (many small modules named for a role, not a responsibility
  • [INFORMATION_COUPLING]: a single design choice (a format, a protocol, an execution-order split) shows up in more than one module and would need editing in both if it changed
  • [TACTICAL_SHORTCUT]: a shortcut taken with no follow-up to invest in the design
  • [MISSING_DESIGN_INTENT]: a public/interface comment states purpose but not the design intent or rationale a non-obvious abstraction needs
  • [BOUNDARY_VIOLATION]: business logic names a delivery mechanism, storage engine, or framework directly
  • [IO_IN_BUSINESS_LOGIC]: I/O performed directly inside business logic instead of through an injected abstraction
  • [AMBIENT_STATE_READ]: environment or global state read in place instead of injected
  • [LEAKED_BOUNDARY_TYPE]: a framework, storage, or third-party type crosses a module boundary
  • [DEPENDENCY_CYCLE]: a cycle in the module dependency graph
  • [SELF_CONSTRUCTED_DEPENDENCY]: a module constructs its own concrete dependency instead of receiving it
  • [PROVIDER_SHAPED_ABSTRACTION]: an abstraction shaped around a provider's API instead of the consumer's own vocabulary
  • [FEATURE_ENVY]: a function reaches into another module's data more than its own

Output Format

Write the findings document to specs/_plans/<plan-name>/review-findings.md per references/review-findings-template.md. Then return exactly one line and nothing else:

CODE REVIEW: <n> findings — standard: <n>, expert: <n> — specs/_plans/<plan-name>/review-findings.md

Routing

You partition the findings. The orchestrator never sees them individually. Place each finding under ## Standard fixes or ## Expert fixes in the findings document. The partition decides which single agent applies the whole fix pass: any Expert finding routes both sections to implementer-expert-agent. With no Expert finding, implementer-agent applies ## Standard fixes.

Every tag across all categories is eligible for either section. Route a finding to ## Expert fixes when its fix has cross-file, concurrency, or subtle-correctness implications: removing a dependency or abstraction with several call sites, correcting a dependency-direction or boundary violation, or any change whose failure mode is a passing test over wrong behavior. Everything else goes to ## Standard fixes. You hold the context for this call. Decide it here, do not defer it.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

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

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

Code review tag taxonomy and findings format for the code-reviewer agent during /speq-implement. Not for general code review.

Vì sao nên dùng Speq Code Review 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. Speq Code Review 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 Speq Code Review trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/exasol-labs/speq-skill/tree/main/.claude/skills/speq-code-review. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng 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 Speq Code Review?

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.

Có thể dùng Speq Code Review 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 Speq Code Review 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 Speq Code Review có miễn phí không?

Có. Kỹ năng này được exasol-labs phát hành trên GitHub theo giấy phép MIT. 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 các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công 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à những tiêu chí mà kết quả cần đáp ứng. 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 👇