feat(recipes): curate category overrides (misc 28→6)#56
Merged
Conversation
`_categorize` infers a taxonomy bucket from a recipe's text, but the heuristic mislabels some tools or leaves them in `misc`: a linter that says "many languages" lands in `languages`, a DigitalOcean CLI that mentions "Kubernetes clusters" lands in `kubernetes`, calculators fall through to `misc`. Author explicit `category:` for 38 such recipes (36 via a single reviewable `_CATEGORY_OVERRIDES` block in recipe_data.py, + uv/tokei hand-written). The stored value wins over inference. Misc drops 28 -> 6, and the remaining 6 are genuinely bucket-less (calculators eva/fend/kalker, fastfetch, vdirsyncer, verilator). Generator gains: - `render()` emits `category:`/`tags:` when a row authors them (rows without still render byte-identically — untouched files stay untouched). - `--rewrite` re-renders TOOLS rows and overwrites only files that drifted, the safe way to backfill a new field; default still never clobbers existing files. +2 tests lock every curated recipe's category AND assert it's authored (not coincidentally inferred). Full suite 3530 passed; all 514 recipes lint-valid; ruff clean; regeneration idempotent. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #55.
_categorizeinfers a category from a recipe's text, but the heuristic mislabels some tools or leaves them inmisc:languageskubernetesmiscWhat
category:for 38 recipes (36 via one reviewable_CATEGORY_OVERRIDESblock inrecipe_data.py;uv/tokeiare hand-written, curated in their YAML). Stored value wins over inference.miscdrops 28 → 6 — the remaining 6 are genuinely bucket-less (calculatorseva/fend/kalker,fastfetch,vdirsyncer,verilator).colima→containers,doctl→cloud,semgrep/checkov/subfinder→security,pipx/uv/virtualenv/hatch→packaging, linters (cppcheck/pylint/hlint/…)→text.Generator
render()now emitscategory:/tags:when a row authors them — rows without still render byte-identically, so untouched files stay untouched.--rewritemode re-renders TOOLS rows and overwrites only files that drifted (the safe backfill path); default still never clobbers existing files. Regeneration is idempotent.Quality
🤖 Generated with Claude Code