AgentSkillsCN

conventional-comments

将评审反馈格式化为 Azure DevOps PR 的常规评论。适用于生成 PR 评审结果、规范评审评论格式,或根据严重程度为标签分类时使用。触发条件:常规评论、PR 评论、评审格式、评论格式、标签装饰。

SKILL.md
--- frontmatter
name: conventional-comments
description: "Format review feedback as conventional comments for Azure DevOps PRs. Use when producing PR review output, formatting review comments, or mapping severity to labels. Triggers on: conventional comments, PR comments, review format, comment format, label decoration."

Conventional Comments

Format for structured, actionable PR review comments. Based on conventionalcomments.org.

Format

code
<label> [decorations]: <subject>

[discussion]

Labels

LabelMeaningWhen to Use
praiseHighlights good workPatterns done well, clever solutions, good test coverage
nitpickTrivial preference-based suggestionNaming style, formatting, minor readability — never blocking
suggestionProposes an improvementBetter approach, refactoring opportunity, pattern alignment
issueIdentifies a problem that must be addressedBugs, security flaws, data integrity risks, broken logic
todoSmall necessary changeMissing null check, absent test, required cleanup
questionAsks for clarificationUnclear intent, ambiguous logic, missing context
thoughtShares an idea for considerationAlternative approaches, future considerations — not actionable now
choreMechanical task neededUpdate a config, rename for consistency, remove dead code
noteInformational contextExternal dependency flags, environment requirements, FYI items

Banking Domain Decorations

DecorationMeaning
(security)Security concern — injection, auth, data exposure
(banking)Banking domain concern — idempotency, audit, financial rules
(financial-integrity)Financial calculation or data correctness
(audit)Audit trail or traceability concern
(pii)Personally identifiable information exposure
(performance)Performance concern — LINQ traps, N+1, boxing
(test)Test quality or coverage concern

Severity Mapping

Severity (code-reviewing)LabelDecorationRationale
Criticalissue(blocking)Must fix before merge
Importantsuggestion or todovariestodo for specific fixes; suggestion for approach changes
Suggestionsuggestion or nitpick(non-blocking)nitpick for pure style; suggestion for meaningful improvements
Externalnote(blocking)Requires human verification — always blocking

Security issues are always: issue (blocking, security): <subject>

Anti-Patterns

Don'tDo Instead
Mark style issues as (blocking)Use nitpick (non-blocking) for style
Write a label with no discussionAlways include at least one sentence explaining why
Use issue for suggestionsReserve issue for actual bugs or risks; use suggestion for improvements
Skip praise entirelyInclude at least one praise per review
Omit decoration on issueEvery issue must have (blocking) — if it's not blocking, it's a suggestion
Use todo for large changesUse suggestion for changes requiring design decisions; todo is for small fixes
Combine unrelated concernsOne comment per concern — split multi-issue comments

Output Structure

  1. Summary header — branch, commit count, files changed, build/test status, overall verdict
  2. Per-file sections — group comments by file path, each in a fenced code block
  3. General section — cross-cutting concerns that span multiple files
  4. How to Use — brief instructions for copying comments into Azure DevOps