RepoRefit
Officialby reporefit
README.md
# RepoRefit
Check AI coding projects on your own machine or CI runner: instruction files and token use, Markdown links,
committed secrets, MCP settings, dependencies, agent rules, duplicated code, import cycles and deploy setup.
The same engine as the free web scanner at https://reporefit.com. Nothing is uploaded and no network request is made.
## Command line (Node 20+, Windows, macOS, Linux)
```sh
npx -y reporefit scan # check the current folder
npm install -g reporefit # or install once (then: reporefit ...)
reporefit scan --tool secrets --fail-on high
reporefit fix > reporefit-fix-plan.md # AI fix plan for Claude Code, Codex and others
reporefit badge # README badge (counts only)
reporefit help
```
Exit codes: 0 ok, 1 findings at or above `--fail-on`, 2 usage or read error, 130 cancelled.
Full guide: https://reporefit.com/en/cli/
## GitHub Action
```yaml
name: RepoRefit
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: reporefit/action@v1
with:
fail-on: high
```
The action only reads files. It never runs the project's scripts, needs no token or secret, and works with
`pull_request` (do not use `pull_request_target` for untrusted forks). Results appear in the job summary and as
file annotations; Markdown and JSON reports and the AI fix plan are written to the runner's temp folder.
Inputs, outputs and examples: https://reporefit.com/en/github-actions/
## MCP server (Claude Code, Cursor, Codex)
```sh
claude mcp add reporefit -- npx -y reporefit mcp
```
Tools: scan, generate_fix_instructions, list_rules, explain_rule. Local, read-only, no network.
Setup for other clients: https://reporefit.com/en/mcp/
## Rules
Every rule ID (for example `SEC-001`) is explained at https://reporefit.com/en/rules/
RepoRefit 0.4.0 · MIT License · Third-party notices in THIRD_PARTY_NOTICES.md
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues