agentleFS
ZfinixZfinix/aster/skills/aster-review-ci/SKILL.md

aster-review-ci

Skill107 starsChanged 4 months agoApache-2.0View on GitHub

Run aster code reviews non-interactively in CI, GitHub Actions, or from another agent. Covers `aster review --pr`, `--json`, `--stream`, `--comment`, diff-from-stdin, token handling, and filtering findings. Use when wiring aster into a pipeline, posting PR comments, or parsing review output programmatically.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use --json in CI and pipe it to aster fix or your own tooling.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Aster review in CI and automation

aster review reads a diff, hypothesizes defects, verifies them against the indexed repo, and reports findings. Everything is flag-driven; nothing requires a terminal.

Picking the diff

aster review                          # current branch vs its base
aster review --range main..HEAD       # explicit git range
aster review --diff changes.patch     # a saved diff file
git diff main... | aster review --diff -   # diff from stdin
aster review --pr 123                 # fetch a GitHub PR's diff

--pr needs a token: --token, else GITHUB_TOKEN, else the one stored by aster login. The repo defaults to the origin remote; override with --repo owner/repo.

Machine-readable output

aster review --json                   # findings as one JSON array
aster review --stream                 # NDJSON progress events, one per line

Use --json in CI and pipe it to aster fix or your own tooling. --stream is for editors and UIs that want live progress. --tui is the interactive browser; never use it headless.

Posting to the PR

aster review --pr 123 --comment       # post findings as inline PR comments

--comment implies --pr. Run it only when you intend to publish; the plain run is read-only.

Scoping and thresholds

aster review -i "src/**/*.rs" -x "**/generated/**" --min-confidence 0.7
  • -i/--include overrides include from aster.yaml; -x/--exclude adds to it. Both repeatable.
  • --min-confidence <0.0-1.0> drops weak findings; falls back to aster.yaml.
  • --no-index skips the symbol index for speed, at the cost of weaker verification. Prefer keeping the index in CI.
  • --repo-root <DIR> points evidence retrieval at a checkout other than the cwd.

Minimal GitHub Actions shape

- run: aster review --pr ${{ github.event.pull_request.number }} --comment --json > findings.json
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    ASTER_API_KEY: ${{ secrets.ASTER_API_KEY }}

The API key comes from ASTER_API_KEY (never from aster.yaml). An aster.yaml committed to the repo supplies models, analyzers, and filters; aster init -y writes a default one.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.