AI-powered code review with intelligent model routing — saves 40%+ vs always using the most expensive model
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install astrai-code-review或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install astrai-code-review⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/astrai-code-review/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: astrai-code-review description: AI-powered code review with intelligent model routing — saves 40%+ vs always using the most expensive model version: 1.0.0 homepage: https://github.com/beee003/astrai-openclaw metadata: clawdbot: emoji: "🔍" requires: env: ["ASTRAI_API_KEY"] primaryEnv: "ASTRAI_API_KEY" files: ["plugin.py", "config.example.toml"] tags: [code-review, inference, routing, cost-optimization, pr-review, diff, quality] ---
AI-powered code review with intelligent model routing. Complex logic goes to powerful models. Formatting and style goes to fast, cheap ones. You save 40%+ without sacrificing quality.
ASTRAI_API_KEY without provider keys, Astrai uses its own hosted models. Still routed intelligently, still cheap.ASTRAI_API_KEY in your environment or skill configANTHROPIC_API_KEY, OPENAI_API_KEY)/review on any diff or PR/review Review the current diff (staged changes)
/review --strict Strict mode: bugs + style + best practices
/review --focus security Security-focused review (vulns, injection, auth)
/review --file src/auth.py Review a specific file
Basic review of staged changes:
/review
Returns issues found in the current diff with severity levels and suggestions.
Strict review for a PR:
/review --strict
Catches not just bugs but also style violations, naming issues, and missed best practices.
Security audit:
/review --focus security
Focuses on SQL injection, XSS, auth bypass, hardcoded secrets, insecure deserialization, and other vulnerability classes.
| Variable | Required | Description | Default | |---|---|---|---| | ASTRAI_API_KEY | Yes | Your API key from as-trai.com | -- | | ANTHROPIC_API_KEY | No | Anthropic key for BYOK routing | -- | | OPENAI_API_KEY | No | OpenAI key for BYOK routing | -- | | GOOGLE_API_KEY | No | Google key for BYOK routing | -- | | DEEPSEEK_API_KEY | No | DeepSeek key for BYOK routing | -- | | MISTRAL_API_KEY | No | Mistral key for BYOK routing | -- | | GROQ_API_KEY | No | Groq key for BYOK routing | -- | | TOGETHER_API_KEY | No | Together key for BYOK routing | -- | | FIREWORKS_API_KEY | No | Fireworks key for BYOK routing | -- | | COHERE_API_KEY | No | Cohere key for BYOK routing | -- | | PERPLEXITY_API_KEY | No | Perplexity key for BYOK routing | -- | | REVIEW_STRICTNESS | No | standard, strict, or security | standard |
| Endpoint | Purpose | Data Sent | |---|---|---| | https://as-trai.com/v1/chat/completions | Code review inference via intelligent routing | Diff content, file context, review instructions |
X-Astrai-Provider-Keys) and never storedThis skill sends code diffs to the Astrai routing API. The router classifies the review complexity and selects the best model:
Your prompts are processed by third-party LLM providers according to the routing decision. In BYOK mode, calls are made using your own provider API keys.
Same as Astrai platform pricing:
安装 Astrai Code Review 后,可以对 AI 说这些话来触发它
Help me get started with Astrai Code Review
Explains what Astrai Code Review does, walks through the setup, and runs a quick demo based on your current project
Use Astrai Code Review to aI-powered code review with intelligent model routing — saves 40%+ ...
Invokes Astrai Code Review with the right parameters and returns the result directly in the conversation
What can I do with Astrai Code Review in my developer & devops workflow?
Lists the top use cases for Astrai Code Review, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/astrai-code-review/ 目录(个人级,所有项目可用),或 .claude/skills/astrai-code-review/(项目级)。重启 AI 客户端后,用 /astrai-code-review 主动调用,或让 AI 根据上下文自动发现并使用。
Astrai Code Review 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Astrai Code Review 可免费安装使用。请查阅仓库了解许可证信息。
AI-powered code review with intelligent model routing — saves 40%+ vs always using the most expensive model
Astrai Code Review 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Astrai Code Review
Identifies repetitive steps in your workflow and sets up Astrai Code Review to handle them automatically