clap-rs/clap

GitHub
https://github.com/clap-rs/clap

A full featured, fast Command Line Argument Parser for Rust

  • argument-parser
  • argument-parsing
  • command-line
  • command-line-parser
  • parsed-arguments
  • positional-arguments
  • rust
  • subcommands
Stars:
16.8k
Language:
Rust
Default branch:
main
Last scored:
Overall

At a glance

Rank
#232 of 401
#33 of 45 Rust repos
Checks passed
7 of 17
Full list below
Best set up for
Claude Code
Score 70.1
Needs most work for
Cursor
Biggest fix: Cursor rules (.cursor/rules) (+11.5 pts)

What it has

What it's missing

What to fix first

Pick an AI agent

Showing fixes for Claude Code

  1. 1
    AGENTS.md / CLAUDE.md
    Add an AGENTS.md covering project goals, layout, setup commands, and conventions. Aim for 800+ chars of real guidance (not boilerplate).
    +13.2 pts
  2. 2
    Linter / formatter config
    Configure a linter/formatter (ESLint+Prettier, Biome, Ruff, rustfmt+clippy, golangci-lint) and commit the config.
    +7.9 pts
  3. 3
    License file
    Add a LICENSE (or COPYING) file — MIT, Apache-2.0, BSD, GPL, etc. — at the repo root.
    +3.9 pts

Score for each AI agent

Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →

Claude Code
#228 of 401
70.1
  • ✗AGENTS.md / CLAUDE.md
  • ✓Test suite
  • ~Reproducible dev env
Devin
#194 of 401
70.0
  • ~Reproducible dev env
  • ✓Dependency manifest
  • ✓Test suite
Codex
#237 of 401
68.2
  • ✗AGENTS.md / CLAUDE.md
  • ✓README
  • ✓Test suite
OpenHands
#187 of 401
66.6
  • ✓CI configuration
  • ✓Dependency manifest
  • ~Reproducible dev env
Kimi Code CLI
#248 of 401
65.5
  • ✗AGENTS.md / CLAUDE.md
  • ✓Test suite
  • ✓Dependency manifest
Pi
#253 of 401
64.3
  • ✗AGENTS.md / CLAUDE.md
  • ✓Test suite
  • ✗Linter / formatter config
Gemini CLI
#219 of 401
62.9
  • ✗GEMINI.md
  • ✓README
  • ✓Test suite
Aider
#241 of 401
61.5
  • ✗.aider.conf.yml
  • ✗Linter / formatter config
  • ✓Test suite
Cursor
#255 of 401
59.4
  • ✗Cursor rules (.cursor/rules)
  • ✓README
  • ✓Type configuration

Does clap-rs/clap have agent instructions?

An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.

AGENTS.md / CLAUDE.md
None at the root (no AGENTS.md, CLAUDE.md, AGENT.md, .claude/CLAUDE.md or .claude/AGENTS.md)
Agent-specific files
None: no GEMINI.md, .cursor/rules, .openhands/setup.sh, .aider.conf.yml or .agents/skills
Repos that have one
24 of 45 Rust repos · 221 of 401 repos on the leaderboard · See examples →
Get a starter AGENTS.md

From the files the checks found. Fill in the commands, then commit it at the root.

# AGENTS.md

Guidance for AI coding agents working in clap-rs/clap. A full featured, fast Command Line Argument Parser for Rust. Written mainly in Rust.

## Where things are

- Dependencies are declared in `Cargo.toml`.
- Tests live in `tests`.
- CI is defined in `.github/workflows`; read it for the exact install, lint and test steps.
- Commit hooks are set up in `.pre-commit-config.yaml`; don't skip them.
- Common tasks are targets in `Makefile`.
- Follow the conventions in `CONTRIBUTING.md`.

## Commands

<!-- Fill in the exact commands CI runs. -->
- Install: TODO
- Test: TODO
- Lint: TODO

All 17 checks · 7 passed

No .agents/skills/<name>/SKILL.md
No agent instructions file found
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
CI configuration· 100% pass
8 GitHub Actions workflows
CONTRIBUTING guide· 100% pass
Guide present
No .cursor/rules/*.mdc or .cursorrules
Manifest present
Has Makefile
GEMINI.md· 0% pass
No GEMINI.md at repo root
License file· 0% pass
No LICENSE/COPYING file
No linter/formatter config found
No .openhands/setup.sh
Hook framework configured
README· 100% pass
README detailed (1,818 characters)
Manageable size· 80% pass
615 files
Test suite· 100% pass
Found /tests
Type configuration· 100% pass
Typed language (Rust)

How clap-rs/clap compares

vs leaderboard average
1.4 pts below
Average 66.8
vs Rust average
5.2 pts below
Average 70.6
Stars among Rust repos
#36 of 45

Missing here, and how many repos have it

  • License file · passed by 92% of leaderboard repos, 60% of Rust repos
  • Linter / formatter config · passed by 65% of leaderboard repos, 80% of Rust repos
  • Skills (.agents/skills) · passed by 17% of leaderboard repos, 20% of Rust repos

Passes checks most repos miss

  • Pre-commit / git hooks · only 29% of repos pass it

One fix for the most agents: Linter / formatter config would raise the score for all 9 agents, by up to 14.1 points.

Similar repos

Same language and host as this repo, closest in overall score.

All Rust repos →

Same topics, any language

Repos tagged with the same GitHub topics, most shared first.

Add a badge to your README

Paste this at the top of the README. It shows the score, and links back to this page.

Agent friendly score for github/clap-rs/clap
[![Agent Friendly](https://agentfriendlycode.com/api/badge/github/clap-rs/clap.svg)](https://agentfriendlycode.com/repo/github/clap-rs/clap)

Check the score on every pull request

A GitHub Action posts one comment per pull request with how the score changed and why.