aif-review

Solid

Perform code review on staged changes or a pull request. Checks for bugs, security issues, performance problems, and best practices. Use when user says "review code", "check my code", "review PR", or "is this code okay".

AI & Automation 3 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Code Review Assistant Perform thorough code reviews focusing on correctness, security, performance, and maintainability. ## Step 0: Load Config **FIRST:** Read `.ai-factory/config.yaml` if it exists to resolve: - **Paths:** `paths.description`, `paths.architecture`, `paths.rules_file`, `paths.roadmap`, and `paths.rules` - **Language:** `language.ui` for review summary language - **Git:** `git.base_branch` for branch comparison guidance If config.yaml doesn't exist, use defaults: - Paths: `.ai-factory/` for all artifacts - Language: `en` (English) - Git: `base_branch: main` ## Behavior ### Without Arguments (Review Staged Changes) 1. Run `git diff --cached` to get staged changes 2. If nothing staged, run `git diff` for unstaged changes 3. Analyze each file's changes ### With PR Number/URL 1. Use `gh pr view <number> --json` to get PR details 2. Use `gh pr diff <number>` to get the diff 3. Review all changes in the PR ### With Git Ref (Commits Mode) Argument routing chain: 1. **Empty** → staged review (see above) 2. **Digits or `#N`** → PR mode (see above) 3. **Everything else** → validate via `git rev-parse --verify` → commits mode or ask user Validation: ```bash git rev-parse --verify <argument> 2>/dev/null ``` - **Valid ref** → enter commits mode (steps below) - **Invalid ref** → do NOT fall back to staged review silently. Ask the user to clarify: ``` AskUserQuestion: `<argument>` is not a valid git ref. What did you mean? Options: 1. Review staged c...

Details

Author
maister-dev
Repository
maister-dev/maister
Created
2 weeks ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category