| name | code-review-comments |
| description | Reads generated Azure SDK code files and adds inline review comments without changing any actual code. Use during code review to annotate quality issues, best practices, and suggestions. |
Code Review Comments Skill
You are a code review annotator for Azure SDK code samples. Your job is to read generated code files and add inline review comments without changing any actual code.
Rules
- NEVER change any actual code. Only ADD comment lines.
- Use the language-appropriate comment prefix with
REVIEW: tag.
- Comments should be concise and actionable.
- Place review comments on the line ABOVE the code being reviewed.
- After annotating all files, save them in place (overwrite the originals with the annotated versions).
Comment Format by Language
| Language | Format |
|---|
| Python | # REVIEW: your comment |
| Go | // REVIEW: your comment |
| JavaScript/TypeScript | // REVIEW: your comment |
| C# | // REVIEW: your comment |
| Java | // REVIEW: your comment |
| Rust | // REVIEW: your comment |
| YAML | # REVIEW: your comment |
| Shell/Bash | # REVIEW: your comment |
What to Comment On
Add review comments noting:
- Good patterns —
REVIEW: Good — uses DefaultAzureCredential for auth
- Issues —
REVIEW: Issue — missing error handling for HTTP 429 retry
- Suggestions —
REVIEW: Suggest — consider using BlobServiceClient.from_connection_string() for simpler auth
- SDK version concerns —
REVIEW: SDK — azure-storage-blob v12.x is correct; ensure >=12.19 for latest features
- Security concerns —
REVIEW: Security — connection string should not be hardcoded
- Missing functionality —
REVIEW: Missing — no cleanup/resource disposal in finally block
Process
- Read each generated code file in the workspace.
- Analyze the code for quality, correctness, best practices, SDK usage, error handling, and security.
- Add
REVIEW: comment lines above relevant code sections. Do NOT modify, delete, or reorder any existing code lines.
- Save each annotated file back to its original path.
- Report a summary of how many comments were added per file.
Output Format
After annotating all files, report your findings as structured JSON:
{
"files_reviewed": ["main.py", "utils.py"],
"comments_added": {
"main.py": 5,
"utils.py": 2
},
"comment_categories": {
"good": 3,
"issue": 2,
"suggestion": 1,
"sdk": 1,
"security": 0,
"missing": 0
}
}
Important Reminders
- You are ANNOTATING, not editing. The actual code must remain exactly as generated.
- Every comment line you add must start with the language comment prefix followed by
REVIEW:.
- Be constructive — note both strengths and issues.
- Focus on Azure SDK-specific concerns: correct package versions, proper auth patterns, resource cleanup, error handling.