- 24 Jul, 2026 1 commit
-
-
谢宇轩 authored
Root cause: harvest.js fetched content but wrote NO files — it dumped a giant manifest (with full body) to stdout and left all document I/O to the agent. This caused silent save failures (agent hand-wrote fragile Node scripts) and token waste (full body in context → 13 python re-parses). Architecture change — scripts do all deterministic I/O, full body never enters the agent context: Archive: harvest.js <src> <n> → writes 原文.md + registry + index (sentinel placeholder for 中文标题) + compact manifest (bodyPreview only) agent writes .summaries.json (中文标题 + 四段摘要 + 分类) finalize.js <dayDir> → writes 摘要.md, patches sentinels, updates registry/index, cleans up Preview: harvest.js <src> <n> --preview [--full] → read-only, no writes Changes: - harvest.js: wire up generateOriginalDoc/updateIndex/appendRegistry (were defined but never called); compact manifest (no full body); sentinel placeholder links; --preview/--full read-only mode; real asset count (was "articles with images"); empty-alt guard (no bare **); manifest merge across runs (fixes dangling-sentinel data loss); --help; module exports for finalize.js - finalize.js (new): consumes .manifest.json + .summaries.json, writes summary docs, patches sentinel links, updates registry/index, cleans up temp files; missing summary → warn + skip (non-fatal); --help - fetcher-direct.js: author extraction via JSON-LD → <meta name=author> → rel=author (was matching arbitrary JSON-LD names → empty authors); body noise filter (share buttons, boilerplate); image tracking-pixel + duplicate filtering - fetcher-browser.js: CDP port 9223 → 9222 (match docs/chromium launch) - SKILL.md: 3-step archive workflow, --preview flow, First-Run Setup onboarding, guardrails, .summaries.json contract, sentinel docs - README.md: architecture diagram, division of labor, task flows, limits
-
- 23 Jul, 2026 3 commits
-
-
谢宇轩 authored
-
xieyichu authored
Discord publishing (per-article threads, weekly summary threads, discordChannelId field, weeklyThreads config) has been removed from the skill. This functionality will be handled by separate skills that depend on the Agent's message tooling. Changes: - Delete scripts/save-weekly-thread.js - harvest.js: remove isoWeekKey/weekDateRange helpers, Discord manifest fields (discordChannelId, weekKey, weekRange, weeklyThreadId), and publishing comment block - source-manage.js: remove CHANNEL column from list, discordChannelId from add/edit/usage - config-template.json: remove weeklyThreads and discordChannelId fields - source-management.md: remove Discord fields and Weekly Thread section - SKILL.md: remove Publishing to Discord section, Workflow step 7, discordThreadId from registry format, Discord from description/intro - README.md: remove all Discord references from capability table, architecture diagram, prerequisites, and limitations - .gitignore: add .zcode/ workspace dir
-
xieyichu authored
A Claude Code skill for harvesting news articles from configured sources, archiving to Obsidian vault with Chinese summaries, and publishing to Discord. - SKILL.md: skill definition and workflow documentation - scripts/: harvest.js, source-manage.js, fetcher-direct.js, fetcher-browser.js, save-weekly-thread.js - references/: config template (sanitized) and source management guide - README.md: installation, usage, and agent self-configuration guide - .gitignore: excludes config.json, data/, node_modules/ (machine-specific runtime files)
-