SkillsGrove
SkillsGrove/생산성/zinan92/daily-newsletter/daily-newsletter

daily-newsletter

설치

$npx skills add https://github.com/zinan92/daily-newsletter --skill daily-newsletter
$git clone --depth 1 https://github.com/zinan92/daily-newsletter.git /tmp/daily-newsletter && mkdir -p ~/.claude/skills && cp -r /tmp/daily-newsletter/. ~/.claude/skills/daily-newsletter
이 Agent Skill을 설치해 주세요: https://github.com/zinan92/daily-newsletter/tree/1bd47ac40aad02dcdef92d1e60f43dcfbf38e6b3/ — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITOperate, verify, or improve a local-first Daily Inbox pipeline that turns source feeds, X, media, manual links, and saved items into Chinese Markdown/HTML/PNG artifacts plus Feishu delivery receipts. Use when a user asks to run, debug, review, package, or extend the daily-newsletter / Daily Inbox workflow.
아래 SKILL.md는 zinan92/daily-newsletter(커밋 1bd47ac)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 zinan92. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Daily Newsletter

Daily Newsletter is a local-first Daily Inbox operating pipeline. It fetches source material, normalizes it to one-item Markdown, lets AI perform event understanding/merge/selection/writing, finalizes Markdown/HTML/PNG artifacts, records source health, and optionally sends the complete digest to Feishu.

When To Use

Use this skill when the user asks to:

  • run or verify the daily AI newsletter pipeline;
  • debug missing, late, or degraded source items;
  • inspect Feishu delivery or local sent artifacts;
  • change reader-facing Daily Inbox output;
  • review pipeline health, workflow graph, task graph, or regression invariants;
  • package this repository as a public agent skill.

Do not use this skill for unrelated newsletter copywriting, generic RSS advice, or live content scraping outside this repository.

Inputs

  • Repo root: the daily-newsletter checkout.
  • Source registry: $PARKIO_HOME/_source management/sources.md.
  • Runtime data: $PARKIO_HOME/_inbox/{raw,unprocessed,processed}.
  • Sent artifacts: $PARKIO_HOME/001_daily newsletter/ai/.
  • Secrets: env vars or $PARKIO_HOME/_secrets/*.
  • Optional auth/runtime tools: X auth env, YouTube cookies, Douyin cookies (downloader vendored in vendor/), Chrome, MLX Whisper. Self-hosting: .env.example → .env, python3 doctor.py, ./run-daily.sh. WeWe RSS is retired and is not a production dependency.

Default $PARKIO_HOME is ~/park-io.

Workflow

  1. Read README.md, AGENTS.md, and GOTCHAS.md before changing behavior.
  2. Check git state and preserve uncommitted user changes.
  3. For read-only diagnosis, start with generated artifacts and logs before rerunning production commands.
  4. For public verification, run:
python3 -m pytest -q
python3 scripts/task_graph_validate.py
python3 scripts/workflow_graph_validate.py
python3 scripts/workflow_graph_dry_run.py
python3 scripts/n8n_import_diff.py
  1. For a manual production run, use the staged path:
./fetch-all.sh
python3 stages/to_md/run.py
BATCH=$(python3 stages/coarse_filter/run.py | tail -1)
PARKIO_BATCH_ID=$BATCH python3 build-digest.py
PARKIO_BATCH_ID=$BATCH python3 stages/archive/run.py
PARKIO_BATCH_ID=$BATCH python3 finalize-local.py
python3 build-product-radar.py --date "$(date +%F)"
python3 build-daily-bundle.py --date "$(date +%F)"
python3 reader_quality.py --date "$(date +%F)"
python3 send-feishu-digest.py --date "$(date +%F)"
  1. After any reader-facing or routing change, rerun tests and at least the workflow graph validator.

Outputs

  • processed/<YY-MM-DD>/run-report.json
  • processed/receipts/feishu/*.json
  • sent/YY-MM-DD.{md,html,png}
  • sent/deep-YY-MM-DD.{md,html,png} when deep candidates exist
  • sent/product-radar-YY-MM-DD.{md,html,png}
  • sent/daily-YY-MM-DD.{md,html,png}
  • status.html and source-health JSON for operator visibility

Safety

  • Never print or commit API keys, cookies, Feishu webhook secrets, Telegram tokens, or X auth values.
  • Do not send Feishu or Telegram messages unless the user explicitly asks for delivery or the current task is a delivery verification.
  • Do not hide source failures as "no updates"; use channel-health.py, run-report.json, and status artifacts.
  • Do not create fake successful newsletters when AI JSON or final Markdown structure fails.
  • Do not move content judgment from AI prompts into deterministic script thresholds, except for coarse garbage filtering.
  • Do not rewrite HTML or PNG separately from Markdown; Markdown is the single reader-facing source.

Regression Invariants

GOTCHAS.md is the source of truth. The most important invariants are:

  • AI owns merge, score, classification, selection, and final writing.
  • Structural AI output failures stop the run and write error artifacts.
  • Deep reads must be traceable subsets of the brief universe.
  • Product Radar is a separate product lane and is linked by the daily umbrella.
  • Source Health stays in status/run-report/alerts, not inside the consumer digest body.
라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 zinan92

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.