Skip to content

feat(cli): add leaderboard subcommand with markdown output#22

Merged
hummbl-dev merged 1 commit into
mainfrom
feat/claude/leaderboard-md
Apr 18, 2026
Merged

feat(cli): add leaderboard subcommand with markdown output#22
hummbl-dev merged 1 commit into
mainfrom
feat/claude/leaderboard-md

Conversation

@hummbl-dev
Copy link
Copy Markdown
Owner

Summary

  • Adds leaderboard subcommand that reads from an existing DB and outputs quality rankings as a formatted markdown table
  • Adds --markdown / --md flag to github-top for inline markdown output after scoring
  • Supports --output flag to write markdown to file, --lang for header label
  • 15 new tests covering markdown formatting, CLI integration, file output, and help

Test plan

  • Markdown output contains expected headers, table markers, and footer
  • Repo links rendered for org/repo slugs, plain text for bare names
  • --output writes to file correctly
  • leaderboard --help shows expected flags
  • Missing DB exits with error
  • --markdown flag registered on github-top
  • Full test suite (238 tests) passes

🤖 Generated with Claude Code

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7ddff08527

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/arbiter/__main__.py
Comment on lines +1042 to +1045
p_leaderboard = subparsers.add_parser("leaderboard",
help="Output quality leaderboard as markdown from an existing DB")
p_leaderboard.add_argument("--lang", default="Python", help="Language label for the header (default: Python)")
p_leaderboard.add_argument("--output", "-o", help="Write markdown to file instead of stdout")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Accept --db on leaderboard parser

The new command is documented as python -m arbiter leaderboard [--db FILE], but leaderboard itself does not register a --db option, so python -m arbiter leaderboard --db /path/to.db exits with unrecognized arguments. Because this subcommand is new, users are likely to pass flags after the subcommand and will hit a hard failure instead of being able to target an existing database.

Useful? React with 👍 / 👎.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hummbl-dev hummbl-dev force-pushed the feat/claude/leaderboard-md branch from 7ddff08 to 4c3fed4 Compare April 18, 2026 12:21
@hummbl-dev hummbl-dev merged commit 8c64925 into main Apr 18, 2026
3 checks passed
@hummbl-dev hummbl-dev deleted the feat/claude/leaderboard-md branch April 18, 2026 12:22
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