Canonical: https://weaveos.com/checks

[Skip to content](https://weaveos.com/checks#checks-content)

# Your team’s standards,on every pull request

Bug reviewers look for defects. Weave Checks runs your team’s Markdown rules against each pull request.

[Set up on GitHub](https://github.com/weave-os/checks#getting-started)[See an example](https://weaveos.com/checks#try-checks)

Pause

## A PR can pass tests and still miss your standards.

Keep your bug reviewer for defects. Use Weave Checks for rules specific to your repo.

Your bug reviewer asks

### “Will this break?”

Logic errors, regressions, and edge cases.

Weave Checks asks

### “Does this follow our standards?”

It flags vague names, dead code, and tests that don’t exercise the code.

Redundant commentsOne-off abstractionsTautological tests

## Comments that repeat the code

Flag comments that restate what the code already says. Comments that explain a decision, a constraint, or something surprising are fine.

1. 1Finding
2. 2Fix pushed
3. 3Resolved

Pause

src/users.ts

! Flagged code

```
1!Flagged: // Get the user's full name2 export function getFullName(user: User) {3   return `${user.first} ${user.last}`;4 }
```

weave-checksFinding

This comment restates the function name. Remove it, or replace it with something the code can't tell the reader.

src/users.ts

− Removed+ Added

```
1−Removed: // Get the user's full name1 export function getFullName(user: User) {2   return `${user.first} ${user.last}`;3 }
```

weave-checksFix pushed

A new commit addresses the comment.

src/users.ts

```
1 export function getFullName(user: User) {2   return `${user.first} ${user.last}`;3 }
```

weave-checksThread resolved

The comment was removed. Resolving this thread.

An illustrated example, not a live review. You push the fix, or your coding agent does.[See a real review](https://github.com/weave-os/checks/pull/1#pullrequestreview-5348408708)

## Each check is a Markdown file.

Frontmatter sets the name and model tier. The rest is plain English describing what to flag. Checks reviews each diff against it and comments on anything that breaks the rule.

CommentsComments that repeat the codeArchitectureAbstractions with one useTestsTests that only check themselves

[Explore the check library](https://github.com/weave-os/checks/tree/main/checks-library)

.weave-checks/documentation-signal.md

```
---
name: Documentation Signal
description: Flags comments that repeat the code
intelligence: low
---

## What to look for
Comments that restate what the next line does.

## What not to flag
- Comments that explain a constraint or workaround
- Comments that explain why a decision was made
- Links to issues or specs
```

Showing the Documentation Signal Markdown example.

## The checks we run on our own code

[All starter checks](https://github.com/weave-os/checks/tree/main/starter-checks)

- [Naming clarityFlags new names like data2 that hide what a value is for.](https://github.com/weave-os/checks/blob/main/starter-checks/naming-clarity.md)
- [Dead code pathsFlags unused parameters, unreachable branches, and features nothing calls yet.](https://github.com/weave-os/checks/blob/main/starter-checks/dead-code-paths.md)
- [Defensive programmingFlags null checks and fallbacks for cases that can’t happen.](https://github.com/weave-os/checks/blob/main/starter-checks/defensive-programming.md)
- [Reinventing the wheelFlags hand-rolled code where a library or platform API already does the job.](https://github.com/weave-os/checks/blob/main/starter-checks/reinventing-the-wheel.md)

## Set it up in three steps.

Checks runs in GitHub Actions and works with Weave Router or any Anthropic-compatible provider.

Run checks locally

$ npx @weave-os/checks run

[Full setup instructions](https://github.com/weave-os/checks#getting-started)

1. 01

   ### Install the GitHub App

   Choose which repositories Checks can review.

   [Install app](https://github.com/apps/weave-checks/installations/new)

2. 02

   ### Add a Router key

   Create a Weave Router key and save it as a repository secret named WEAVE\_ROUTER\_KEY.

   [Create a key](https://router.weaveos.com/build)

3. 03

   ### Add the workflow

   Commit the workflow file. It runs the starter checks by default. Add your own checks as Markdown files in .weave-checks.

   [Get the workflow](https://github.com/weave-os/checks/blob/main/examples/weave-checks.yml)

## Common questions

Is this another AI bug reviewer?

No. Bug reviewers look for defects. Checks flags the standards a teammate would point out in review, like naming, structure, and test quality. Run it alongside your bug reviewer.

Does Checks change my code?

No. It leaves review comments on the pull request. You or your coding agent push the fix, and Checks resolves the thread on its next run.

What does it cost?

Checks is free and open source. You pay for model usage and any GitHub Actions minutes. Your cost depends on your checks, your diffs, and the models you choose.

What access does the GitHub App need?

Checks and Pull requests write access to post reviews, and Contents write to resolve review threads. The agent’s tools are read-only, and it never sees the App token. Each run uses a short-lived token scoped to the repository, which is revoked when the job finishes. Fork pull requests are skipped.

## Start with one check.

Pick the review comment you leave most often and write it down as a check.

[Set up Weave Checks](https://github.com/weave-os/checks#getting-started)[View the source](https://github.com/weave-os/checks)
