Skip to content
cccskills
FreePublished on GitHub

local-preview

ローカルでニュースを生成しブラウザで動作確認する。fetch_news.py実行→http.server起動→index.html/archivesを確認→生成物の差分を戻す。「ローカルで確認」「プレビューして」「動作確認」と言われたら使う。

UI変更時は必須。

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

ローカル動作確認

$ARGUMENTS に --with-ai があればAI要約付きで生成する(LLM_API_KEY が環境に必要。件数は MAX_SUMMARIZE_PER_RUN=3 に絞る)。

手順

  1. 生成
    python3 fetch_news.py                                   # 通常
    MAX_SUMMARIZE_PER_RUN=3 python3 fetch_news.py           # --with-ai(LLM_API_KEY設定済み前提)
    
    標準出力のフィードごとの件数・エラー・AI要約の統計(cached/generated/failed/skipped)を確認する
  2. サーバー起動(バックグラウンド)と疎通確認
    python3 -m http.server 8000
    curl -s -o /dev/null -w "%{http_code}" http://localhost:8000/
    open http://localhost:8000/
    
  3. 確認ポイント
    • index.html: 各フィードのカード、AI要約の展開部(--with-ai時)、フィルタ、ダーク/ライト表示
    • archives/index.html: カレンダー・年月タブ・当日分へのリンク
    • rss.xml / daily_news.md: 文字化け・空セクションが無いか
    • ブラウザのコンソールにJSエラーが無いか
  4. 終了後、生成物の差分を戻す(ソース変更だけを残す)
    git restore daily_news.md index.html rss.xml archives/ assets/partials/
    git status --short
    
    data/summaries.json はキャッシュ更新が乗る。PRに含めるべきか判断できなければ戻す

注意

  • slack_message.json / thumbnail_cache.json はgitignore済みなので放置でよい
  • 外部フィードの取得失敗は環境要因のことが多い。同じフィードが連続で失敗する場合だけ報告する

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

現在のブランチからPull Requestを作成する。生成物の混入チェック、コミット、push、gh pr createまでを実行。「PRを作って」「プルリク出して」と言われたら使う。

The English summary is being prepared. Showing the original description.

unsolublesugar/daily-tech-news4Updated Oct 23, 2026

GitHub Releaseを作成する。前回タグからの変更を集めてリリースノートを書き、タグ作成・push・gh release createを実行。「リリースして」「vX.Y.Zを切って」と言われたら使う。

The English summary is being prepared. Showing the original description.

unsolublesugar/daily-tech-news4Updated Oct 23, 2026

作業開始手順。Issueを作成し、mainを最新化してIssue番号付きブランチを切る。「作業を始めて」「Issueを作ってブランチを切って」「新しいタスクを開始」と言われたら使う。

The English summary is being prepared. Showing the original description.

unsolublesugar/daily-tech-news4Updated Oct 23, 2026

See all skills by unsolublesugar

Report a problem with this skill