fix(ordering): move HN after YouTube in stats, sort priority, and SKILL.md

HN was appearing before YouTube in the stats block, sort tiebreaker,
and source status. Now consistently: Reddit > X > YouTube > HN > Web.
Also restored emoji + box-drawing chars in test skill SKILL.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Van Horn
2026-02-24 19:41:14 -08:00
parent 38a7ea253e
commit 7a9f447231
6 changed files with 109 additions and 23 deletions
+3 -3
View File
@@ -412,14 +412,14 @@ def sort_items(items: List[Union[schema.RedditItem, schema.XItem, schema.WebSear
date = item.date or "0000-00-00"
date_key = -int(date.replace("-", ""))
# Tertiary: source priority (Reddit > X > HN > YouTube > WebSearch)
# Tertiary: source priority (Reddit > X > YouTube > HN > WebSearch)
if isinstance(item, schema.RedditItem):
source_priority = 0
elif isinstance(item, schema.XItem):
source_priority = 1
elif isinstance(item, schema.HackerNewsItem):
source_priority = 2
elif isinstance(item, schema.YouTubeItem):
source_priority = 2
elif isinstance(item, schema.HackerNewsItem):
source_priority = 3
else: # WebSearchItem
source_priority = 4