Code review

From vspo-lab/vspo-portal · View interactive version

Code review is an AI agent skill from the GitHub repository vspo-lab/vspo-portal. PR/code review based on architecture rules. Detects violations of UseCase implementation rules, Result type, and JSDoc conventions.

How to use this skill

Skill file

Trigger Conditions

Review Checklist

Architecture Violations

  1. Is a UseCase calling another UseCase?
  2. Is a UseCase directly accessing environment variables?
  3. Is a UseCase directly operating PubSub/message queues?
  4. Does the UseCase follow a "top-to-bottom sequential execution" pattern?
  5. Are there multiple conditional branches inside loops?

Code Conventions

  1. Is try-catch being used? (Result type is required)
  2. Are interfaces defined directly? (Zod Schema First is required)
  3. Do public functions in Domain/UseCase have JSDoc (preconditions/postconditions)?
  4. Is idempotency (@idempotent) documented on UseCase functions?

Testing

  1. Do Domain function additions/changes come with tests?

Output Format

Output each finding in the following format:

If the rule source cannot be cited, separate it as an "improvement suggestion" and do not assert it as a violation.

Reference Documents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.