Skip to content

docs: update README to match current behavior - #44

Merged
BraCR10 merged 1 commit into
developmentfrom
docs/update-readme
Jul 31, 2026
Merged

docs: update README to match current behavior#44
BraCR10 merged 1 commit into
developmentfrom
docs/update-readme

Conversation

@BraCR10

@BraCR10 BraCR10 commented Jul 31, 2026

Copy link
Copy Markdown
Member

Summary

The README still described the removed trust-score feature, Rust 1.70+, and a sample
output format that no longer matches the tool. Updates it to reflect the current
5-section report, real installation/usage flags, the configuration file, and links to
the book for the full flags/metrics reference instead of duplicating it.

Test plan

  • Cross-checked flags table against cargo run --release -- --help
  • No code changes

Summary by CodeRabbit

  • Documentation
    • Updated the README to describe multi-metric reputation reports, including development fees, orders, disputes, and instance status.
    • Added documentation for deduplication, time-scoped reports, output formats, saved configuration, command options, and metrics.
    • Updated prerequisites and refreshed contributing, support, licensing, and disclaimer information.
    • Removed outdated trust-score formulas, examples, roadmap content, and anti-scam guidance.

Removes the removed trust-score feature, outdated Rust version, and
stale example output; documents the real report sections, output
formats, and configuration file, and links to the book for the full
flags/metrics reference instead of duplicating it.
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The README now describes mostro-score as a multi-metric reputation-reporting CLI. It documents event processing, report options, configuration, installation requirements, metrics, contributing guidance, and project information.

Changes

Reputation CLI documentation

Layer / File(s) Summary
Metrics and event model
README.md
The README documents contextual reputation metrics, four Nostr event types, node scoping, order-status handling, and latest-state deduplication.
Installation and CLI configuration
README.md
The README updates Rust and relay prerequisites and documents configuration fallback, initialization, output formats, date ranges, views, report sections, and output files.
Project guidance and supporting sections
README.md
The README revises contributing, license, related-projects, support, and disclaimer content. It removes obsolete sections.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Poem

A rabbit reads the metrics with care,
Four event types hop through the air.
Reports bloom in formats bright,
Config rests ready overnight.
“Clear docs!” the bunny cheers,
And nibbles through the obsolete years.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the README updates that align documentation with current behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/update-readme

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@BraCR10
BraCR10 merged commit 1d801f1 into development Jul 31, 2026
3 of 4 checks passed
@BraCR10
BraCR10 deleted the docs/update-readme branch July 31, 2026 05:50

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Line 104: Update the --relays flag description in the README table to use the
hyphenated term “comma-separated” instead of “comma separated.”
- Around line 78-95: Update the “Save preferred defaults” description near the
--init-config example to clarify that only relays are enabled initially, while
pubkey, format, view, color, and sections are commented examples that require
uncommenting and setting before use.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: dae4ccaa-f414-40f3-89b4-120c43f18a28

📥 Commits

Reviewing files that changed from the base of the PR and between 412b4a7 and 9812c53.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md
Comment on lines +78 to +95
`--pubkey` can also come from the `MOSTRO_SCORE_PUBKEY` environment variable or a saved
configuration file.

Connect to specific relays (comma-separated):
### Custom relays

```bash
mostro-score --pubkey <MOSTRO_PUBKEY> --relays wss://relay.mostro.network,wss://relay.damus.io
```

### Command Line Options

```
Options:
-p, --pubkey <PUBKEY> Mostro Pubkey (npub or hex) to analyze [required]
-r, --relays <RELAYS> Relays to connect to (comma separated)
[default: wss://relay.mostro.network]
-h, --help Print help information
-V, --version Print version information
mostro-score --pubkey npub1... --relays wss://relay.mostro.network,wss://relay.damus.io
```

### Example
### Save preferred defaults

```bash
# Using npub format
mostro-score --pubkey npub1abc...xyz

# Using hex format
mostro-score --pubkey a1b2c3d4e5f6...

# With multiple relays
mostro-score -p npub1abc...xyz -r wss://relay.mostro.network,wss://relay.damus.io
mostro-score --init-config
```

## Example Output
Scaffolds a starter `config.toml` (relays active, everything else as commented-out
examples) so `--pubkey`, `--format`, `--view`, `--color`, and `--sections` don't need
repeating on every run.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 5 --glob '!README.md' \
  'MOSTRO_SCORE_PUBKEY|init-config|config\.toml|precedence|priority|sections|color|format|view|relays' .

Repository: MostroP2P/mostro-score

Length of output: 50381


Fix the contradiction in the configuration instructions.

--init-config only enables relays; pubkey, format, view, color, and sections are written as commented examples and are not applied until they are uncommented and set. Update the text so users do not expect active persisted values for those keys without editing the file.

Proposed wording fix
-Scaffolds a starter `config.toml` (relays active, everything else as commented-out
-examples) so `--pubkey`, `--format`, `--view`, `--color`, and `--sections` don't need
-repeating on every run.
+Scaffolds a starter `config.toml` with relays enabled and other settings shown as
+commented examples. Uncomment and set the options you want to persist so you do not
+need to repeat them on every run.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
`--pubkey` can also come from the `MOSTRO_SCORE_PUBKEY` environment variable or a saved
configuration file.
Connect to specific relays (comma-separated):
### Custom relays
```bash
mostro-score --pubkey <MOSTRO_PUBKEY> --relays wss://relay.mostro.network,wss://relay.damus.io
```
### Command Line Options
```
Options:
-p, --pubkey <PUBKEY> Mostro Pubkey (npub or hex) to analyze [required]
-r, --relays <RELAYS> Relays to connect to (comma separated)
[default: wss://relay.mostro.network]
-h, --help Print help information
-V, --version Print version information
mostro-score --pubkey npub1... --relays wss://relay.mostro.network,wss://relay.damus.io
```
### Example
### Save preferred defaults
```bash
# Using npub format
mostro-score --pubkey npub1abc...xyz
# Using hex format
mostro-score --pubkey a1b2c3d4e5f6...
# With multiple relays
mostro-score -p npub1abc...xyz -r wss://relay.mostro.network,wss://relay.damus.io
mostro-score --init-config
```
## Example Output
Scaffolds a starter `config.toml` (relays active, everything else as commented-out
examples) so `--pubkey`, `--format`, `--view`, `--color`, and `--sections` don't need
repeating on every run.
`--pubkey` can also come from the `MOSTRO_SCORE_PUBKEY` environment variable or a saved
configuration file.
### Custom relays
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` around lines 78 - 95, Update the “Save preferred defaults”
description near the --init-config example to clarify that only relays are
enabled initially, while pubkey, format, view, color, and sections are commented
examples that require uncommenting and setting before use.

Comment thread README.md
| Flag | Purpose |
|---|---|
| `-p, --pubkey <PUBKEY>` | Node to analyze (npub or hex) |
| `-r, --relays <RELAYS>` | Relays to query, comma separated |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use “comma-separated” in the flag table.

Change comma separated to comma-separated.

🧰 Tools
🪛 LanguageTool

[grammar] ~104-~104: Use a hyphen to join words.
Context: ...elays | Relays to query, comma separated | |--format <console|plain...

(QB_NEW_EN_HYPHEN)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 104, Update the --relays flag description in the README
table to use the hyphenated term “comma-separated” instead of “comma separated.”

Source: Linters/SAST tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant