Skip to content

feat: add code-review skill suite#18

Merged
initializ-mk merged 1 commit intomainfrom
skills/code-review
Mar 3, 2026
Merged

feat: add code-review skill suite#18
initializ-mk merged 1 commit intomainfrom
skills/code-review

Conversation

@initializ-mk
Copy link
Contributor

Summary

  • code-review skill: Script-backed AI code review with code_review_diff and code_review_file tools. Supports GitHub PR URLs and local git diffs, Anthropic/OpenAI LLM routing, large diff detection (returns file list instead of silent truncation), untracked file inclusion, ~ path expansion, org standards via .forge-review/, and pre-flight scope check guidance for the agent.
  • code-review-standards skill: Binary-backed skill for discovering and initializing .forge-review/ configuration. Includes templates for config.yaml, .forge-review-ignore, and language-specific standards (Go, Python, TypeScript, security, testing, general).
  • code-review-github skill: Binary-backed PR workflow orchestration — list PRs, post inline review comments, apply labels, and guarded auto-merge with explicit REVIEW_AUTO_MERGE opt-in.
  • Bug fix: runner.go was not passing OneOf env vars to SkillCommandExecutor, causing skills with one_of requirements (e.g., ANTHROPIC_API_KEY/OPENAI_API_KEY) to silently fail at runtime.

Test plan

  • go build ./... on forge-cli — confirms go:embed captures new skill directories
  • go test ./... on forge-skills — all 8 packages pass, registry test updated for 8 skills
  • Script permissions verified (chmod +x on both .sh files)
  • Security scan — no eval, curl|sh, rm -rf, chmod 777, or hardcoded secrets in scripts
  • Manual dry-run of code-review-diff.sh with local repo (diff acquisition, truncation, API routing)
  • Tested via Slack agent: PR URL review, local diff review, uncommitted changes review

Three new embedded skills for AI-powered code review:

- code-review: Script-backed skill with code_review_diff and code_review_file
  tools. Supports GitHub PR URLs and local git diffs with Anthropic/OpenAI
  routing, large diff handling, untracked file inclusion, and custom
  org standards via .forge-review/ directory.

- code-review-standards: Standards discovery and initialization skill with
  templates for config.yaml, ignore patterns, and language-specific rules
  (Go, Python, TypeScript, security, testing).

- code-review-github: PR workflow orchestration skill for listing PRs,
  posting inline comments, applying labels, and guarded auto-merge.

Also fixes a bug in runner.go where OneOf env vars were not passed through
to the SkillCommandExecutor, causing skills using one_of requirements
(like ANTHROPIC_API_KEY/OPENAI_API_KEY) to fail at runtime.
@initializ-mk initializ-mk merged commit d4f1f69 into main Mar 3, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant