{{ message }}
Tags: hsnice16/agent-friendly-code
Tags
release: 0.6.0 — auto-refresh (scheduled rescoring) (#7) * feat: 0.6.0 task 01 — scheduled rescoring Adds a 6-hourly GitHub Actions cron that re-runs `bun run seed` and commits the refreshed `data/rank.db` to `main`. Surfaces the overall-score delta from the previous rescore on the repo detail page. Downscoped from the original webhook + queue design — see tasks/0.6.0/01-scheduled-rescoring.md for the rationale. Pieces: - .github/workflows/scheduled-rescore.yml — cron + concurrency group + sqlite3-snapshot diff so unchanged-score runs skip the commit (last_scored_at churn would otherwise force a binary diff). - lib/db.ts — new `previous_overall_score REAL` column; the UPSERT captures the row's pre-update overall_score on every rescore. - lib/types/db.ts — extracted shared row-shape types out of lib/db.ts (RepoRow, LeaderboardRow, …). Consumers now import from @/lib/types/db. - components/RepoHero.tsx — inline `+N.N pts` / `-N.N pts` next to "Last scored" in text-ok / text-bad; aria-label carries the previous absolute score for screen readers. - scripts/seed-list.ts — 16 new seed repos across JS/TS, Python, Rust, Go, Java, Ruby, and .NET so the cron has more material. - data/rank.db — re-seeded against the new schema. SEO + polish bundled in: - app/layout.tsx — googleBot robots directives (max-image-preview=large, max-snippet=-1, max-video-preview=-1) and OG image dimensions corrected to the actual file size (2312×924). - components/Panel.tsx — PanelHeading rendered as h2 (was h3) so every page has a clean h1 → h2 heading hierarchy. - app/sitemap.ts — privacy / terms now use a fixed LEGAL_LAST_UPDATED date instead of `now`, so legal pages don't churn lastmod on every deploy. Docs sync: - AGENTS.md, README.md, CONTRIBUTING.md, methodology FAQ, roadmap entry, tasks/0.5.0/02, tasks/1.0.0/01-02, and the SessionStart hook updated to reference the scheduled-rescore cron instead of the deferred webhook design. APP_VERSION stays at 0.5.0 — 0.6.0 still has task 02 (alternatives v2 embeddings) outstanding, so no changelog bucket yet. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: cut 0.6.0 — auto-refresh - Bump APP_VERSION / package.json to 0.6.0 and add the 0.6.0 changelog entry (scheduled rescoring + repo-page score delta + 16 new seeds). - Remove 0.6.0 from lib/roadmap.ts (released) and mark 0.6.0/02 (alternatives-v2 embeddings) deferred to backlog with the rationale and lighter-weight options. - Sync AGENTS.md status block, .claude/settings.json SessionStart banner, tasks/0.6.0/README.md, and the stale 0.3.0 references that pointed at the deferred v2 upgrade. - Add a dedicated home-route opengraph-image.tsx (1200x630) and add a `deferred` status to tasks/README.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: consolidate OG/twitter metadata defaults + auto-wire twitter cards Extract OG_DEFAULTS and TWITTER_DEFAULTS in lib/version.ts and spread them into every page's metadata — Next.js shallow-merges these objects, so defaults must be re-spread on every page. Drop the inline /demo/light.png override from the root layout in favour of the auto-wired app/opengraph-image.tsx, and add matching twitter-image.tsx re-exports at app/ and app/repo/[id]/ so the Twitter card uses the same generated image. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
feat: version 0.5.0 (#5) * feat: 0.5.0 task 02 - GitHub Action for score * feat: 0.5.0 task 03 - agent skill Ship the portable agent skill that scores the user's current repo locally and recommends a model class. Self-contained: vendored scorer, no service dependency, works offline — same property as task 02's PR-diff Action. - Sibling repo `agent-friendly-skill` (v0.1.1, floats `v0`) ships SKILL.md + ncc-bundled dist/index.js. Vendored into this repo via `npx skills add hsnice16/agent-friendly-skill#v0`; skills-lock.json pins ref + content hash so the bundle is reproducible. - New /skill SEO landing page: install command, score → model mapping, optional SessionStart hook snippets for Claude Code + Codex, FAQ, and JSON-LD (BreadcrumbList + SoftwareApplication + FAQPage). - README "Public API" section documents /api/score for external integrators (siblings vendor the scorer; they don't call this at runtime). - AGENTS.md "Sibling repos" mirror discipline now covers both action and skill; SIBLING_VERSION in lib/version.ts is the single-source pin that drives ACTION_USES, SKILL_INSTALL_CMD, and the #v0 ref in skills-lock.json. - Layout footer reorganised into Primary + Tools columns; nav surfaces /action and /skill; sitemap and /llms.txt include /skill. - Panel + CopySnippet gain a tone vocabulary (warn / info / tip) so the install card, hook snippets, and per-page CTAs share styling. - Bundled along: gitignore-aware size signal (uses ignore@7.0.5), tests for both .gitignore patterns and the baseline ignore set. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * feat: version 0.5.0 Release prep: bump version (lib/version.ts, package.json, README badge), add changelog entry summarising the score-diff GitHub Action and the portable agent skill, mark tasks/0.5.0 done and drop the descoped history-aware-signals task, prune 0.5.0 from the live roadmap. Also lands SEO breadcrumbs on About/Changelog/Methodology/Packages/Roadmap via a shared BreadcrumbJsonLd component, extends sitemap with package routes, surfaces top scored packages per registry in /llms.txt, and refreshes the SessionStart hook + cross-repo mirroring note on the feature-request template. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
