Skip to content

feat: surface badge-adoption tag for repos embedding their AFC badge#8

Merged
hsnice16 merged 2 commits into
mainfrom
feat/badge-adoption-tag
Jun 1, 2026
Merged

feat: surface badge-adoption tag for repos embedding their AFC badge#8
hsnice16 merged 2 commits into
mainfrom
feat/badge-adoption-tag

Conversation

@hsnice16

@hsnice16 hsnice16 commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Detect when a repo embeds its own Agent Friendly Code badge in the README (/api/badge/<slug>) and show a "Badge" tag on the leaderboard and the repo detail page. Dashboard-only social-proof metadata — not a scored signal, and never vendored to the sibling scorers.

  • lib/badge-adoption.ts: host-agnostic detectBadgeEmbed over README candidates
  • lib/db.ts: badge_embedded column + in-place migration for pre-existing DBs
  • scripts/score.ts: detect on every score; seed flows through score
  • components/BadgeAdoptedTag.tsx + RepoHero/leaderboard render the tag
  • tests/badge-adoption.test.ts: 6 cases (match, host-agnostic, wrong-slug, …)
  • scripts/seed-list.ts: ~30 new curated seed repos
  • re-seeded data/rank.db

Detect when a repo embeds its own Agent Friendly Code badge in the README
(`/api/badge/<slug>`) and show a "Badge" tag on the leaderboard and the repo
detail page. Dashboard-only social-proof metadata — not a scored signal, and
never vendored to the sibling scorers.

- lib/badge-adoption.ts: host-agnostic detectBadgeEmbed over README candidates
- lib/db.ts: badge_embedded column + in-place migration for pre-existing DBs
- scripts/score.ts: detect on every score; seed flows through score
- components/BadgeAdoptedTag.tsx + RepoHero/leaderboard render the tag
- tests/badge-adoption.test.ts: 6 cases (match, host-agnostic, wrong-slug, …)
- scripts/seed-list.ts: ~30 new curated seed repos
- re-seeded data/rank.db

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-friendly-code Ready Ready Preview, Comment Jun 1, 2026 5:50am

@hsnice16 hsnice16 merged commit 25cdb31 into main Jun 1, 2026
3 of 4 checks passed
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Agent Friendly Code — score diff

Overall: 90.7 → 90.7 (±0.0)

Per model

Model Base Head Δ
Claude Code 95.3 95.3 ±0.0
Cursor 85.5 85.5 ±0.0
Devin 94.8 94.8 ±0.0
GPT-5 Codex 96.3 96.3 ±0.0
Gemini CLI 85.5 85.5 ±0.0
Aider 86.5 86.5 ±0.0
OpenHands 85.4 85.4 ±0.0
Pi 96.6 96.6 ±0.0

No signals changed between base and head.


Posted by agent-friendly-action.

@hsnice16 hsnice16 deleted the feat/badge-adoption-tag branch June 1, 2026 05:50
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