# Send Astrai Code Review to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "astrai-code-review",
    "name": "Astrai Code Review",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/beee003/astrai-code-review",
    "canonicalUrl": "https://clawhub.ai/beee003/astrai-code-review",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/astrai-code-review",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=astrai-code-review",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "config.example.toml",
      "plugin.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "astrai-code-review",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T23:18:23.408Z",
      "expiresAt": "2026-05-06T23:18:23.408Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=astrai-code-review",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=astrai-code-review",
        "contentDisposition": "attachment; filename=\"astrai-code-review-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "astrai-code-review"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/astrai-code-review"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/astrai-code-review",
    "downloadUrl": "https://openagent3.xyz/downloads/astrai-code-review",
    "agentUrl": "https://openagent3.xyz/skills/astrai-code-review/agent",
    "manifestUrl": "https://openagent3.xyz/skills/astrai-code-review/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/astrai-code-review/agent.md"
  }
}
```
## Documentation

### Astrai Code Review

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.

### What it does

Smart routing for reviews: Astrai analyzes the diff complexity and routes to the optimal model. A gnarly concurrency bug gets Opus. A missing semicolon gets Haiku. You only pay for the intelligence you need.
Structured output: Every review returns typed issues with file, line number, severity (critical/warning/info), message, and a concrete suggestion.
Strictness modes: Standard catches bugs and logic errors. Strict adds style and best-practice checks. Security mode focuses on vulnerabilities, injection, auth, and data exposure.
BYOK (Bring Your Own Keys): Your provider API keys stay with you. Astrai decides which model to use, then calls the provider using YOUR key. You pay providers directly.
Cost tracking: Every review response includes the cost and how much you saved vs always using the most expensive model.
Local-only mode: If you only set ASTRAI_API_KEY without provider keys, Astrai uses its own hosted models. Still routed intelligently, still cheap.

### Setup

Get a free API key at as-trai.com
Set ASTRAI_API_KEY in your environment or skill config
Optionally add provider API keys for BYOK routing (e.g. ANTHROPIC_API_KEY, OPENAI_API_KEY)
Run /review on any diff or PR

### Usage

/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

### Examples

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.

### Environment Variables

VariableRequiredDescriptionDefaultASTRAI_API_KEYYesYour API key from as-trai.com--ANTHROPIC_API_KEYNoAnthropic key for BYOK routing--OPENAI_API_KEYNoOpenAI key for BYOK routing--GOOGLE_API_KEYNoGoogle key for BYOK routing--DEEPSEEK_API_KEYNoDeepSeek key for BYOK routing--MISTRAL_API_KEYNoMistral key for BYOK routing--GROQ_API_KEYNoGroq key for BYOK routing--TOGETHER_API_KEYNoTogether key for BYOK routing--FIREWORKS_API_KEYNoFireworks key for BYOK routing--COHERE_API_KEYNoCohere key for BYOK routing--PERPLEXITY_API_KEYNoPerplexity key for BYOK routing--REVIEW_STRICTNESSNostandard, strict, or securitystandard

### External Endpoints

EndpointPurposeData Senthttps://as-trai.com/v1/chat/completionsCode review inference via intelligent routingDiff content, file context, review instructions

### Security & Privacy

All requests authenticated via API key in the Authorization header
Diffs are sent to the Astrai routing API, which forwards to the selected provider
In BYOK mode, provider keys are sent via encrypted header (X-Astrai-Provider-Keys) and never stored
No diffs, code, or review results are retained by Astrai after the request completes
Source code is fully open: github.com/beee003/astrai-openclaw

### Model Invocation

This skill sends code diffs to the Astrai routing API. The router classifies the review complexity and selects the best model:

High complexity (concurrency, security, architecture): Routes to Claude Opus, GPT-4o, or Gemini Pro
Medium complexity (logic errors, missing edge cases): Routes to Claude Sonnet, GPT-4o-mini, or Gemini Flash
Low complexity (formatting, typos, naming): Routes to Claude Haiku, GPT-4o-mini, or Gemini Flash

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.

### Pricing

Same as Astrai platform pricing:

Free: 1,000 requests/day, smart routing, all strictness modes
Pro ($49/mo): Unlimited requests, priority routing, analytics dashboard
Business ($199/mo): Team dashboards, compliance exports, SLA guarantee
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: beee003
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T23:18:23.408Z
- Expires at: 2026-05-06T23:18:23.408Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/astrai-code-review)
- [Send to Agent page](https://openagent3.xyz/skills/astrai-code-review/agent)
- [JSON manifest](https://openagent3.xyz/skills/astrai-code-review/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/astrai-code-review/agent.md)
- [Download page](https://openagent3.xyz/downloads/astrai-code-review)