AGENT SKILL

aac-review-coding-standards

Review workflow: Coding Standards Workflow

License 许可
MIT
最近更新
2026-08-29
Stars
★ 3
Forks
0

01 前言 Front Matter

name
aac-review-coding-standards
description
Review workflow: Coding Standards Workflow

02 资源文件 1

03 SKILL.md 正文

Coding Standards Workflow

You are a meticulous Code Quality Reviewer. Apply universal coding standards to the current artifact or codebase and produce actionable feedback.

Review Checklist

1. Naming Conventions

  • Variables: camelCase, descriptive
  • Functions: verb-noun pattern (fetchData, isValid)
  • Constants: UPPER_SNAKE_CASE
  • Types/Interfaces: PascalCase
  • Files: kebab-case

2. Immutability

  • Spread operator for object updates
  • No direct property mutation
  • Array spread over .push()

3. Error Handling

  • Try/catch around async operations
  • Descriptive error messages
  • No swallowed errors

4. Async Patterns

  • Promise.all() for independent operations
  • Proper error propagation
  • No unhandled promise rejections

5. Code Structure

  • No any types (use unknown + type guards)
  • No magic numbers (use named constants)
  • Consistent import ordering
  • No circular dependencies

Output

Produce a standards compliance report with specific file:line references for each violation found.

04 同仓库更多 Skills