---
target: "xr"
lane: cli
tier: registry
scorecard_url: "https://anc.dev/score/xr"
markdown_url: "https://anc.dev/score/xr/md"
json_url: "https://anc.dev/score/xr/json"
negotiate: "Accept: text/markdown or Accept: application/json on https://anc.dev/score/xr serve the twin and the JSON"
---

# xr

Fast, ergonomic CLI for the X (Twitter) API

**Score:** 96% pass rate
**Principles:** 6/8 met

## Embed the badge

This score (96%) clears the [badge floor](https://anc.dev/badge) (70%). Copy this into your README:

```markdown
[![agent-native](https://anc.dev/badge/xr.svg)](https://anc.dev/score/xr)
```

| Status | Audit | Principle | Evidence |
|--------|-------|-----------|----------|
| PASS | Help flag produces useful output | [P3](https://anc.dev/p3) |  |
| PASS | Version flag works (`--version` plus short alias) | [P3](https://anc.dev/p3) |  |
| PASS | Version flag works (`--version` plus short alias) | [P3](https://anc.dev/p3) |  |
| WARN | Structured output support | [P2](https://anc.dev/p2) | --output/--format flag detected but could not validate JSON via safe probes (--help/--version override output flags in most CLIs) |
| PASS | Rejects invalid arguments | [P4](https://anc.dev/p4) |  |
| PASS | Quiet mode available | [P7](https://anc.dev/p7) |  |
| PASS | Handles SIGPIPE gracefully | [P6](https://anc.dev/p6) |  |
| PASS | Non-interactive by default | [P1](https://anc.dev/p1) |  |
| SKIP | Non-interactive gate flag advertised in --help | [P1](https://anc.dev/p1) | target satisfies P1 via alternative gate (help-on-bare or stdin-primary) |
| PASS | Flags advertise env-var bindings in --help | [P1](https://anc.dev/p1) |  |
| PASS | Pager-using CLI ships --no-pager escape hatch | [P6](https://anc.dev/p6) |  |
| PASS | Respects NO_COLOR | [P6](https://anc.dev/p6) |  |
| PASS | Secret-bearing flags expose stdin or *-file companion | [P1](https://anc.dev/p1) |  |
| PASS | Structured-output CLI exposes its schema at runtime | [P2](https://anc.dev/p2) |  |
| PASS | --json / --jsonl short aliases for --output | [P2](https://anc.dev/p2) |  |
| WARN | Subcommand verbs follow community-standard names | [P6](https://anc.dev/p6) | 16/41 subcommand(s) follow standard verb names. Non-standard: post, quote, read, whoami, user, timeline, mentions, like, unlike, repost, unrepost, unbookmark, bookmarks, likes, following, followers, muted, blocked, usage, dm, dms, broadcasts, media, examples, validate. MAY-tier — community-standard verbs (get/list/create/update/delete) help agents predict subcommand behavior across CLIs. |
| PASS | Skill bundle has install path (`tool skill install [<host>]`) | [P8](https://anc.dev/p8) |  |
| PASS | `skill install --all` for multi-runtime install | [P8](https://anc.dev/p8) |  |
| PASS | `skill update` / `skill upgrade` for bundle refresh | [P8](https://anc.dev/p8) |  |
| PASS | `--raw` flag for pipe-safe unformatted output | [P2](https://anc.dev/p2) |  |
| PASS | `--output` advertises additional formats beyond text/json | [P2](https://anc.dev/p2) |  |
| PASS | `examples` subcommand or `--examples` flag for curated usage patterns | [P3](https://anc.dev/p3) |  |
| PASS | `--color` flag for explicit color control | [P6](https://anc.dev/p6) |  |
| PASS | `--verbose` flag for diagnostic escalation | [P7](https://anc.dev/p7) |  |
| PASS | `--limit` / `--max-results` flag for list operations | [P7](https://anc.dev/p7) |  |
| PASS | Cursor-based pagination flags for list traversal | [P7](https://anc.dev/p7) |  |
| PASS | `--help` advertises default values for flags | [P1](https://anc.dev/p1) |  |
| PASS | Rich-TUI affordance for TTY contexts | [P1](https://anc.dev/p1) |  |
| PASS | Short `-h` summary differs from `--help` long form | [P3](https://anc.dev/p3) |  |
| PASS | Input-accepting commands read from stdin when no file is given | [P6](https://anc.dev/p6) |  |
| WARN | Subcommand naming follows a consistent verb/noun convention | [P6](https://anc.dev/p6) | subcommand naming is inconsistent: 2 non-verb subcommand(s) (auth, media) mix verb and non-verb children at the second level, so an agent cannot predict where the action lives. SHOULD-tier: pick a consistent shape (all verb-first, all noun-verb hierarchy, or any combination where each non-verb group's children are uniformly verbs). The verb list is a heuristic; inspect `--help` to confirm. |
| PASS | `--timeout` flag for long-running operations | [P7](https://anc.dev/p7) |  |
| PASS | Bad invocation exits with structured usage-error code (2) | [P2](https://anc.dev/p2) |  |
| PASS | Error messages include a hint or remediation phrase | [P4](https://anc.dev/p4) |  |
| PASS | Errors emit JSON envelope with discriminant + type id + message roles under `--output json` | [P2](https://anc.dev/p2) |  |
| PASS | `--output json` produces JSON-formatted errors | [P4](https://anc.dev/p4) |  |
| SKIP | JSON success and error envelopes share their non-payload key set | [P2](https://anc.dev/p2) | success-mode probe (`--help --output json`) produced no parseable JSON; cannot compare envelope shapes. |
| PASS | Each subcommand's `--help` ships at least one invocation example | [P3](https://anc.dev/p3) |  |
| PASS | Help text pairs human and `--output json` example invocations | [P3](https://anc.dev/p3) |  |
| PASS | Command-list entries name the command without repeating the binary name | [P3](https://anc.dev/p3) |  |
| PASS | Operations are subcommands, not verb-shaped flags | [P6](https://anc.dev/p6) |  |
| PASS | Destructive subcommands require `--force` or `--yes` | [P5](https://anc.dev/p5) |  |
| PASS | Read and write surfaces are both visible in subcommand list | [P5](https://anc.dev/p5) |  |
| PASS | Help text advertises TTY-aware verbosity behavior | [P7](https://anc.dev/p7) |  |

**Repo:** [brettdavies/xurl-rs](https://github.com/brettdavies/xurl-rs)
**Language:** Rust
**Version scored:** 4.2.1
**Audit date:** 2026-10-05 18:44:48 UTC
**Duration:** 527ms
**Platform:** `linux/x86_64`
**Mode:** command
**Anc build:** 0.6.0
**Install:** `brew install brettdavies/tap/xurl-rs`

## Reproduce locally

```bash
anc audit --command xr --output json
```
