SkillsGrove
SkillsGrove/Productivité/zinan92/daily-newsletter/daily-newsletter

daily-newsletter

Installation

$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
Installe pour moi cette Agent Skill : https://github.com/zinan92/daily-newsletter/tree/1bd47ac40aad02dcdef92d1e60f43dcfbf38e6b3/ — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · 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.
Le SKILL.md ci-dessous est reproduit depuis zinan92/daily-newsletter (commit 1bd47ac) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2026 zinan92. Licence : LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

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.
Voir le texte intégral de la licence (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.