An open API service indexing awesome lists of open source software.

https://github.com/aolingge/agentignore-check

Check whether a repo has an .agentignore-style file to keep AI agents away from secrets and noisy files.
https://github.com/aolingge/agentignore-check

agentignore ai-agent cli developer-tools privacy secret-scanning

Last synced: 2 months ago
JSON representation

Check whether a repo has an .agentignore-style file to keep AI agents away from secrets and noisy files.

Awesome Lists containing this project

README

          


Agentignore Check banner

Agentignore Check

Check whether a repo has an .agentignore-style file to keep AI agents away from secrets and noisy files.

中文 · Quick Start · Checks


Node.js
dependencies
license


Agentignore Check CLI preview

## Why This Exists

AI agent tooling is growing quickly, but many repos still miss tiny checks that can run locally or in CI. This project stays zero-dependency, short-command, and easy to fork.

## Quick Start

```bash
npx github:aolingge/agentignore-check --path .agentignore
```

Generate Markdown:

```bash
npx github:aolingge/agentignore-check --path .agentignore --markdown > report.md
```

Use a score gate:

```bash
npx github:aolingge/agentignore-check --path .agentignore --min-score 80
```

## Checks

| Check | What it looks for |
| --- | --- |
| env | Ignores env and secret files. |
| logs | Ignores logs. |
| build | Ignores generated dependencies and builds. |
| private | Ignores private data. |

## Output

```text
Agentignore Check score: 100/100
PASS example-check Useful signal found
FAIL missing-check Add the missing guidance
```

## Quality Gate

Use this project as a repeatable gate before an AI agent marks work as done:

- [Quality gate guide](docs/quality-gates.md)
- [Copy-ready GitHub Actions example](examples/github-action.yml)

## CI Usage

Use GitHub Actions annotations:

```bash
npx github:aolingge/agentignore-check --path fixtures/good.txt --annotations
```

Generate SARIF:

```bash
npx github:aolingge/agentignore-check --path fixtures/good.txt --sarif > results.sarif
```

See [docs/github-actions.md](docs/github-actions.md).

## Visual Identity

The banner and CLI preview are SVG assets committed in `assets/`, so the README renders cleanly on GitHub and Gitee without external image hosting.

## Mirrors

- GitHub: https://github.com/aolingge/agentignore-check
- Gitee: https://gitee.com/aolingge/agentignore-check

## Contributing

Good first PRs: add checks, add fixtures, improve docs, or add GitHub Actions examples.

## License

MIT