prasowka

Wygeneruj dzienny portal newsowy jako jeden plik HTML w Canvas. Używa fetch_news.py + web_fetch + LLM do streszczeń. 18 kategorii, toggle dark/light, responsywny layout.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "prasowka" with this command: npx skills add nerua1/nerua1-prasowka

daily-news-portal

Wygeneruj dzienny portal newsowy jako jeden plik HTML w Canvas.

Parametry

  • OUTPUT: ~/.openclaw/canvas/prasowka-{YYYYMMDD}.html
  • DATA_DIR: ~/.openclaw/workspace/skills/prasowka/data
  • REFS_DIR: ~/.openclaw/workspace/skills/prasowka/references

Kroki wykonawcze

Krok 1: Inicjalizacja

mkdir -p ~/.openclaw/canvas ~/.openclaw/workspace/skills/prasowka/data
DATE=$(date +%Y%m%d)
SEEN_URLS_FILE="$DATA_DIR/seen_urls.json"

Krok 2: Załaduj konfigurację

Przeczytaj $REFS_DIR/topics.md - format:

ai-models: 15
ai-tools: 10
ai-video: 15
...

Krok 3: Dla każdego tematu - fetch news

Uruchom subagenta dla każdego tematu:

# subagent: fetch_topic_news
def fetch_topic_news(topic, limit):
    result = subprocess.run([
        "python3", "scripts/fetch_news.py",
        "--topic", topic,
        "--limit", str(limit)
    ], capture_output=True, text=True)
    
    if result.returncode != 0:
        # fallback do web_search
        return web_search(f"latest {topic} news {limit}")
    
    return json.loads(result.stdout)

Krok 4: Filtruj URLe

def filter_new_urls(articles, seen_urls):
    return [a for a in articles if a['url'] not in seen_urls]

Krok 5: Dla każdego artykułu - pobierz i streść

Uruchom subagenta dla każdego artykułu:

# subagent: summarize_article
def summarize_article(url):
    content = web_fetch(url, extract_text=True)
    
    if not content or len(content) < 100:
        return None
    
    # Wygeneruj własne streszczenie
    summary = llm_summarize(content[:3000])
    return summary

Krok 6: Generuj HTML

Użyj szablonu z toggle dark/light, 18 kategoriami, streszczeniami 2-3 zdania.

Krok 7: Zapisz i zaktualizuj

  • Zapisz HTML do Canvas
  • Zaktualizuj seen_urls.json
  • Wywołaj prasowka-guardian

Obsługa błędów

  • fetch_news.py zawiedzie → web_search
  • Artykuł niedostępny → pomiń
  • Streszczenie puste → użyj pierwszych 3 zdań
  • Nie zatrzymuj się - kontynuuj

Wymagania

  • scripts/fetch_news.py
  • references/topics.md
  • references/format.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Hermes Brand City

提供 Hermès 品牌历史、稀缺性策略、手工艺传承及家族控股等详尽资讯,助力理解其奢侈品行业地位。

Registry SourceRecently Updated
General

Bloomberg Company

Provides detailed insights on Bloomberg L.P., its flagship terminal, subscription model, competitive landscape, and Michael Bloomberg’s business and politica...

Registry SourceRecently Updated
General

Yahoo Mail IMAP Export

Export large Yahoo Mail archives via IMAP using the folder rotation strategy

Registry SourceRecently Updated
General

AANA Email Send Guardrail Skill

Ensures email recipients, content, tone, attachments, claims, and approvals are verified and safe before sending or scheduling messages.

Registry SourceRecently Updated