Logo vun Gen Message

Gen Message

Communautéit
octo-patch
gen-message

Generate concise message digest with image for sharing on messaging platforms (WeChat, Telegram, Slack, etc.)

Iwwersiicht

Editeurocto-patch
RepositoryMorningAI
Skill-Nummgen-message
Stären
32
Forks
3
Matgeliwwert Fichieren
1
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum octo-patch op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Gen Message an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/octo-patch/MorningAI/tree/main/skills/gen-message
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/octo-patch/MorningAI.git /tmp/MorningAI
mkdir -p .claude/skills
cp -r /tmp/MorningAI/skills/gen-message .claude/skills/gen-message
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Gen Message an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Gen Message automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Gen Message net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Objective

Transform the daily AI news report data into a concise, copy-paste-friendly message digest optimized for sharing on messaging platforms. Produces two output files:

  1. Text digest (message_{DATE}.md) — bold titles, one-line summaries, source links
  2. Digest image (message_{DATE}.png) — 9:16 portrait infographic with compact card layout

The message digest shares the same data pipeline as the full report — all items go through the standard collect → score → deduplicate → cross-source link → verification pipeline. The only difference is the final output format: the full report produces a detailed multi-section Markdown document, while the message digest condenses the same verified data into a compact, share-friendly format.

Factual integrity applies to all items: Every item in the digest — regardless of score — must have a traceable, authoritative source (source_url). Items with score 7+ additionally require cross-source verification (verified == true, 2+ independent sources). Never include an item whose factual claims cannot be linked to a concrete primary source.


Output Specs

Text File: message_{DATE}.md

PropertyValue
FormatMarkdown (renders as plain text in most messaging apps)
EncodingUTF-8
SectionsHeader → Items (with source links) → Footer

Image File: message_{DATE}.png

PropertyValue
FormatPNG
Aspect Ratio9:16 portrait (optimized for mobile chat)
LayoutSingle-column vertical card stack
ContentSame items as text digest, compact visual format

Configuration

VariableTypeDefaultDescription
MESSAGE_ENABLEDboolfalseMaster switch for message digest generation
MESSAGE_MIN_SCOREfloat5Minimum importance score to include an item
MESSAGE_MAX_ITEMSint10Maximum number of items in the digest
MESSAGE_LANGstring(from --lang)Language override for the digest
MESSAGE_IMAGE_STYLEstring(from IMAGE_STYLE)Visual style override for the digest image
MESSAGE_LINKSstringinlineLink placement: inline (after each item) or bottom (reference list at end)
MESSAGE_CATEGORY_BALANCEbooltrueDistribute slots across content types to prevent single-type domination

Content Selection Rules

  1. Read data: Load data_{DATE}.json from the working directory (this data has already been scored, deduplicated, and cross-source verified by the collection pipeline)
  2. Filter by score: Only items with importance >= MESSAGE_MIN_SCORE
  3. Verify & ensure source link: Every item included in the digest MUST have a valid source_url. This is a hard requirement — no item may appear in the digest without an accompanying source link.
    • If an item has a source_url in the data → use it directly
    • If an item has no source_url but has verify_sources or cross_refs → use the best available URL from those fields
    • If an item has no URL at all → search for an authoritative source URL (official blog, GitHub repo, announcement post, HuggingFace page) before including it. Construct the URL from known patterns when possible (e.g., https://huggingface.co/{model_id} for HF models, https://github.com/{owner}/{repo} for GitHub projects)
    • If no credible URL can be found after the above steps → drop the item entirely — do NOT include it without a link
    • For items with score 7+, additionally confirm verified == true (2+ independent sources)
    • Zero-link items are a critical formatting error — every item in the final output must end with a source link line
  4. Balance by category (when MESSAGE_CATEGORY_BALANCE is true, default): a. Group qualifying items by content_type b. Apply per-type slot caps: product max 4, model max 3, benchmark max 2, financing max 2 c. From each type, select the highest-scoring items up to the type's cap d. If a type has fewer qualifying items than its cap, its unused slots become available as overflow e. Fill remaining slots (up to MESSAGE_MAX_ITEMS total) with the next highest-scoring items from any type, regardless of whether that type has already hit its cap f. If MESSAGE_CATEGORY_BALANCE is false, skip this step and use pure top-N by score
  5. Sort: Final selected items by importance score descending (highest first)
  6. Limit: Ensure total does not exceed MESSAGE_MAX_ITEMS
  7. Translate: If data language differs from MESSAGE_LANG, translate summaries. Entity names (proper nouns) stay unchanged.

Text Generation Rules

Language-Specific Headers

LanguageHeader TextItem Count Format
zhMorningAI {DATE}共 {N} 条重要更新
enMorningAI {DATE}{N} notable updates today
jaMorningAI {DATE}本日の注目 {N} 件

Emoji Markers by Score

Score RangeEmojiMeaning
9-10🔥Major / breakthrough
7-8⭐Important
5-6🔷Notable

Item Format

Each item follows this structure:

{emoji} **{Entity} {Event description}**
{One to two sentence summary: what it IS/DOES + why it matters.}
🔗 {source_url}

Rules:

  • Title is bold, includes entity name + concise event description
  • Summary is 1-2 sentences max — must answer TWO questions:
    1. What is it / what does it do? — the core capability, function, or purpose (e.g., "Code generation model specialized for multi-file edits", "Open-source text-to-video model supporting 10-second 1080p clips")
    2. Why is it interesting / what's notable? — the differentiator, breakthrough, or key advancement (e.g., "first open-weight model to beat GPT-4o on SWE-bench", "runs locally on consumer GPUs with 8GB VRAM")
  • Prioritize technical substance over popularity metrics: benchmark scores, parameter counts, context window, architecture innovations, licensing, pricing, speed improvements
  • Do NOT lead with vanity metrics like download counts, likes, stars, or follower counts — these say nothing about what the thing does. Only mention them if the surge itself IS the news (e.g., "hit 100K stars in 48 hours")
  • No score numbers displayed — the emoji conveys importance level
  • Each item MUST end with a 🔗 {source_url} line — this is non-negotiable. An item without a source link is a formatting error. If the data lacks a source_url, construct one from known URL patterns (HuggingFace model page, GitHub repo, official blog) or search for an authoritative link. If no URL can be found, drop the item rather than publishing it without a link.
  • Items separated by a blank line

Special Formatting

For GitHub Trending items or items with notable engagement metrics:

🔥 **GitHub Trending: {repo-name}**
{What it does + why it's trending.} ⭐ {star_count}(+{delta})
🔗 {source_url}

Note: even for trending items, lead with what the project does, then append the star count as supporting context — not the other way around.

Link Placement

MESSAGE_LINKS=inline (default):

Each item ends with a source link line:

🔥 **Anthropic Releases Claude 4.5 Sonnet**
New mid-tier model with +18% SWE-Bench, 200K context, 40% faster output.
🔗 https://anthropic.com/news/claude-4-5-sonnet

MESSAGE_LINKS=bottom (alternative — groups links at the end):

Links grouped as a numbered reference list at the bottom, items do NOT include inline links:

---
[1] {Entity Event} - {URL}
[2] {Entity Event} - {URL}

Footer

---
Powered by MorningAI | Full report: report_{DATE}.md

Image Generation

When to Generate

Generate message_{DATE}.png only if image generation is available (i.e., IMAGE_GEN_PROVIDER is configured and not none). If unavailable, skip image generation and produce text only.

Image Specifications

PropertyValue
Aspect Ratio9:16 portrait
LayoutSingle-column vertical card stack
CardsOne card per item, compact format
Card ContentEmoji marker + bold title + one-line summary
StyleFrom MESSAGE_IMAGE_STYLE or IMAGE_STYLE config

Image Prompt Template

9:16 portrait infographic, {HEADER_TEXT} {YYYY-MM-DD}, ALL text content in {LANG}.
Purpose: Compact message digest for mobile sharing on messaging apps.

Total news items: {N}

News cards (display EXACTLY {N} cards, compact vertical layout):

Card 1: {emoji} {Entity name} {Event description}
- {One-line summary with key metrics}

Card 2: {emoji} {Entity name} {Event description}
- {One-line summary with key metrics}

(... list all {N} items ...)

CRITICAL RULES:
- ALL text on this image MUST be in {LANG}
- Entity names are proper nouns (OpenAI, DeepSeek, Cursor) — keep as-is, do NOT translate
- Each card has: emoji marker + bold title + one-line summary (NOT multi-line bullets)
- Use 🔥 for top items, ⭐ for important items, 🔷 for regular items
- Compact single-column vertical stack — one card below another
- Title font: 18pt bold, summary font: 13pt regular
- Cards separated by thin divider or subtle spacing (12px)
- Card width fills 90% of image width
- Do NOT display score numbers, badges, or importance markers
- Do NOT invent items not listed
- Maximize content area — minimize decorative elements
- Header: "{HEADER_TEXT} {YYYY-MM-DD}" at top
- Footer: small gray text "Powered by MorningAI" at bottom
- Optimized for screenshot sharing in messaging apps

{STYLE_BLOCK}

Message digest layout adaptation:
- Single-column vertical stack (NOT grid layout)
- Each card: title line + summary line only (compact, no multi-line bullets)
- Tight vertical spacing between cards
- Clean, uncluttered, high information density
- Mobile-optimized: large enough text to read on phone screens

Variable substitution:

  • {HEADER_TEXT}: See Language-Specific Headers table above
  • {LANG}: "Chinese" for zh, "English" for en, "Japanese" for ja
  • {STYLE_BLOCK}: Injected from existing style presets (see skills/gen-infographic/scripts/styles.py)

Image Generation Method

Use the same methods as Step 4 (gen-infographic):

Option A — Native tool (if supported): Generate using built-in image generation capability with the prompt above.

Option B — Python script:

bash
cd {SKILL_DIR} && python3 skills/gen-infographic/scripts/gen_infographic.py --prompt "{prompt}" -o {CWD}/message_{YYYY-MM-DD}.png

Workflow Summary

  1. Check MESSAGE_ENABLED=true — skip if not enabled
  2. Read data_{DATE}.json from the working directory
  3. Read this specification and the digest template (templates/digest.md)
  4. Select items: filter by score >= MESSAGE_MIN_SCORE, apply category balance (if enabled), sort desc, limit to MESSAGE_MAX_ITEMS
  5. Generate text digest → write to {CWD}/message_{DATE}.md
  6. If image generation available → build prompt from template, generate → {CWD}/message_{DATE}.png

Example Output

MorningAI 2026-04-14

8 notable updates today

🔥 **Anthropic Releases Claude 4.5 Sonnet**
New mid-tier model with +18% SWE-Bench, 200K context, 40% faster output. Available via API and claude.ai.
🔗 https://x.com/AnthropicAI/status/example

⭐ **Google Gemini 2.5 Flash Enters Public Preview**
Flash-tier model with native multimodal reasoning, 1M context. Free tier on AI Studio.
🔗 https://x.com/GoogleDeepMind/status/example

⭐ **Cursor Background Agents Now Generally Available**
Autonomous background agents for multi-file refactoring, test generation, and PR creation. Max 10 concurrent on Pro.
🔗 https://cursor.com/changelog/background-agents-ga

⭐ **DeepSeek Open-Sources V3-0407 Model**
Updated V3 with 671B MoE architecture, MIT license. Weights available on HuggingFace.
🔗 https://github.com/deepseek-ai/DeepSeek-V3

⭐ **OpenAI Open-Sources Codex CLI**
Terminal-based coding agent with suggest, auto-edit, and full-auto modes. MIT license.
🔗 https://github.com/openai/codex

⭐ **LMSYS Chatbot Arena April Rankings Update**
Claude 4.5 Sonnet enters #2 overall (ELO 1287). Gemini 2.5 Pro holds #1 in coding.
🔗 https://lmarena.ai

⭐ **GitHub Copilot Coding Agent Public Preview**
Autonomous agent handles issues and creates PRs in secure cloud sandbox. Free for Pro+ and Enterprise.
🔗 https://github.blog/changelog/copilot-coding-agent

⭐ **Windsurf Raises $200M Series C at $3B Valuation**
Largest round in AI coding tools space. Plans to hire 200 engineers and expand enterprise features.
🔗 https://techcrunch.com/2026/04/07/windsurf-raises-200m

---
Powered by MorningAI | Full report: report_2026-04-14.md

Notes

  • The text digest reads from data_{DATE}.json directly — it does NOT depend on the report being generated first
  • All summaries must be condensed to 1-2 sentences — prioritize explaining what the thing IS and why it matters, not popularity metrics (downloads, likes, stars)
  • Entity names are always preserved as proper nouns regardless of language setting
  • The image is optional — if no image generation provider is configured, only the text file is produced
  • When MESSAGE_LINKS=bottom, the reference numbers are implicit (ordered by item appearance) — do NOT add [1] markers in the item body, and do NOT include 🔗 lines after each item

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Gen Message?

Generate concise message digest with image for sharing on messaging platforms (WeChat, Telegram, Slack, etc.)

Firwat Gen Message op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Gen Message besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Gen Message an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/octo-patch/MorningAI/tree/main/skills/gen-message an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Gen Message benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Gen Message benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Gen Message domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Gen Message gratis?

De Skill gëtt vum octo-patch op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇