Skip to content

Add MLAI Championships coworking leaderboard#163

Open
ceejaymoss wants to merge 1 commit into
MLAI-AUS-Inc:mainfrom
ceejaymoss:codex-coworking-user-ranking
Open

Add MLAI Championships coworking leaderboard#163
ceejaymoss wants to merge 1 commit into
MLAI-AUS-Inc:mainfrom
ceejaymoss:codex-coworking-user-ranking

Conversation

@ceejaymoss

Copy link
Copy Markdown
Contributor

Summary

  • New public coworking_leaderboard Roo intent — triggered by phrases like "MLAI championships", "leaderboard", "who came in the most this week" — that ranks members by coworking bookings over a window (default last 7 days) and renders a celebratory Slack message with medals 🥇🥈🥉 and <@user> mentions.
  • Backend client (get_coworking_report) extended with include_users=True kwarg; if mlai-backend doesn't (yet) ship a users array, Roo degrades to a friendly empty-state rather than crashing.
  • Public by design — no points-admin gate. Yana's ask in the committee thread was a community shout-out, not an admin report.

Context

Yana asked in Slack whether Roo could "extract specific users from the data… 'MLAI championships - who's come in the most in the last week / month'… and just highlight the community". This implements the Roo-side intent + formatter; the backend change to populate per-user data is tracked separately (see README admin setup section).

What's in the PR

  • roo/clients/mlai_backend.pyinclude_users kwarg on get_coworking_report
  • roo/skills/executor.py — intent routing, handler, helpers (_is_coworking_leaderboard_request, _parse_leaderboard_limit, _coworking_leaderboard_label, _format_coworking_leaderboard)
  • roo/agent.py + skills/mlai_points/SKILL.md — fast-path trigger phrases
  • New roo/tests/test_coworking_leaderboard.py (14 tests) + extensions to test_mlai_backend_client.py and test_agent_routing.py — 67 tests passing
  • README.md — admin setup section documenting the manual Slack-channel + mlai-backend endpoint steps that have to happen outside this repo

Test plan

  • Backend owner adds ?include_users=true support to /api/v1/points/coworking/report/
  • Slack admin creates #mlai-championships and invites Roo
  • In #mlai-championships, run @Roo MLAI championships this week and confirm the medals/mentions/footer render correctly
  • Try @Roo top 10 members last month — confirm range parsing + limit override
  • With backend users missing, confirm empty-state copy renders instead of an error

🤖 Generated with Claude Code

Adds a public coworking_leaderboard intent that ranks members by booking
count over a window (default last 7 days) and renders a celebratory
Slack message with medals and mentions. Triggered by phrases like
"MLAI championships", "leaderboard", "who came in the most this week".
Backend support requires include_users=true on the coworking report
endpoint; missing/empty users degrade to a friendly empty-state.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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