newsletter
Skill2 starsChanged 5 months agoMITView on GitHub
Fetch Gmail messages by label via gmail_fetch_newsletter.py, classify by topic (AI/BigTech/Startup/Tools/Other), extract key links and insights, and return structured data ready for T7 report generation. Used by /newsletter command. Triggers when: /newsletter command is invoked, user asks to curate newsletters from Gmail, user wants to generate a newsletter intelligence digest.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- jaxiah/jskillstheir own version, first seen Sep 18, 2026
- calven-ai/marketing-as-codetheir own version, first seen Sep 16, 2026
- guiloureiromkt/ultra-skillstheir own version, first seen Sep 16, 2026
- AlemTuzlak/skillstheir own version, first seen Aug 3, 2026
- Anglesite/anglesite-skillstheir own version, first seen Jul 25, 2026
- sanky369/vibe-building-skillstheir own version, first seen Jul 2, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- OpenClaudia/openclaudia-skills★ 706same name
- getnao/sylph★ 209same name
- AlemTuzlak/skills★ 42same name
- sanky369/vibe-building-skills★ 30same name
- coopersimson96/ai-content-system★ 17same name
- calven-ai/marketing-as-code★ 8same name
- Anglesite/anglesite-skills★ 4same name
- LukeJMadden/Veltrix-skills★ 1same name
- xinran-dwi/skills★ 1same name
- guiloureiromkt/ultra-skills★ 0same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
If the user passes a label name (not an ID starting with Label_), resolve it:
- Distinctive: line 39
If no match, abort with a message listing available user labels.
- Very specific: line 41
If the argument already looks like a label ID (Label_\d+ or Label_[a-f0-9]+), use it directly.
- Distinctive: line 56
If empty array → report "No messages found for this label in the specified time range." and stop.
- Very specific: line 90
Create gantt task: Task_Name : milestone, YYYY-MM-DD, 0d
- Distinctive: line 117
Never just copy the snippet verbatim — synthesize
- Very specific: line 140
Read $_TPL/T7-newsletter-curation.md and replace all [[PLACEHOLDER]] values with computed data from Steps 4–8.
- Very specific: line 157
If a section has 0 items: > No relevant content in this period.
- Distinctive: line 163
Use meaningful labels for link text, not raw URLs
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Newsletter Curation Skill
Fetches and curates Gmail newsletter content by label using the gws CLI Python script,
classifies messages by topic, and produces structured data for the /newsletter command
to generate a premium intelligence digest report.
Prerequisites
gwsCLI authenticated (gws auth login)uvavailable in PATHgmail_fetch_newsletter.pyscript available via plugin-cache path resolution
Procedure
Step 1 — Resolve Script Path
_S=$(find "$HOME/.claude/plugins/cache" -name "gmail_fetch_newsletter.py" -path "*/claude-skills/*" 2>/dev/null | sort -rV | head -1)
[ -z "$_S" ] && _S="scripts/gmail_fetch_newsletter.py"Step 2 — Resolve Label
If the user passes a label name (not an ID starting with Label_), resolve it:
uv run python "$_S" --label-id dummy --list-labels 2>/dev/null \
| jq '[.[] | select(.type=="user") | {id, name}]'Match the user-supplied string against name (case-insensitive, partial match OK).
If no match, abort with a message listing available user labels.
If the argument already looks like a label ID (Label_\d+ or Label_[a-f0-9]+),
use it directly.
Step 3 — Fetch Messages
uv run python "$_S" \
--label-id "$LABEL_ID" \
--days "$DAYS" \
--max-results 40 \
2>/dev/nullOutput: JSON array of {id, from, subject, date, snippet, body_text, links}.
If empty array → report "No messages found for this label in the specified time range." and stop.
Step 4 — Classify Messages by Topic
For each message, analyze from + subject + snippet + body_text and assign one of:
| Category | Key Signals |
| AI & Engineering | LLM, GPT, Claude, Gemini, Copilot, AI, ML, model, coding, developer, deep learning, RAG, agent, vibe coding, ChatGPT, Anthropic, OpenAI, inference, reasoning |
| Big Tech & Investment | Google, Apple, Microsoft, Meta, Amazon, NVIDIA, big tech, stock price, investment, M&A, market cap, earnings, funding, valuation |
| Startup & Product | startup, launch, funding, Series A/B/C, ProductHunt, new service, beta, Kickstarter |
| Tools & Infrastructure | Railway, Docker, K8s, AWS, GCP, Azure, Slack, GitHub, DevOps, infrastructure, CI/CD, SDK |
| Other | everything else |
Each message gets exactly one category (best match wins; AI > BigTech > Startup > Tools > Other).
Step 5 — Extract Keywords for Word Cloud
From all subject + snippet text, extract:
- Top 20 significant nouns/terms (exclude stopwords: the, a, an, is, in, of, to, for, and, or, with, your, our, this, that)
- Group by category
- Output as nested list for Mermaid mindmap
Format for mindmap:
AI_KEYWORD_1
AI_KEYWORD_2(8 spaces + term, under the parent category branch)
Step 6 — Build Gantt Milestones
For messages with specific event dates (e.g., "May 27", deadline mentions):
- Extract the date
- Create gantt task:
Task_Name : milestone, YYYY-MM-DD, 0d - Group under appropriate category section
For non-event messages, use dateOnly as a 1-day task span.
Step 7 — Format Each Item for T7 Template
For each classified message, produce a markdown block:
### N.M [Subject — cleaned up, no emoji spam]
**Source** · [Sender Name] · [Date dd MMM YYYY]
[2~3 sentence analytical summary — synthesize body_text + snippet.
Focus on what this means for the reader, not just what it says.
Use analyst voice: "what this signals is", "the key takeaway is", "from an engineer's perspective"...]
**Why it matters**: [1 sentence takeaway in bold]
**Links**:
- [Link 1 Label](URL)
- [Link 2 Label](URL) ← include only meaningful links (2~3 max per item)
---Quality rules:
- Never just copy the snippet verbatim — synthesize
- For AI items: connect to practical developer use
- For BigTech: connect to market/investment implications
- For Startups: note the "so what" for engineers or investors
- Skip links that look like tracking pixels or unsubscribe URLs
Step 8 — Compute Aggregates
TOTAL_MESSAGES: total count- Category counts: AI_COUNT, BIGTECH_COUNT, STARTUP_COUNT, TOOLS_COUNT, OTHER_COUNT
TOP_SENDERS: top 3 sender domains (e.g., "Railway, Substack, IITP")WEEK_LABEL: e.g., "Week of May 19"START_DATE,END_DATE: actual date range of fetched messagesKEY_INSIGHT_1~3: one-sentence summary of the most important finding per top category
Step 9 — Load T7 Template
Resolve template path:
_TPL=$(find "$HOME/.claude/plugins/cache" -path "*/claude-skills/*/templates/research" -type d 2>/dev/null | sort -rV | head -1)
[ -z "$_TPL" ] && _TPL="templates/research"Read $_TPL/T7-newsletter-curation.md and replace all [[PLACEHOLDER]] values
with computed data from Steps 4–8.
Output the filled report string to the /newsletter command for file saving.
Section Placement Priority
- 🤖 AI & Engineering — highest priority for AI-focused engineers. Each item includes "engineer's perspective" insight.
- 📈 Big Tech & Investment — big tech strategic shifts and market-moving events. Add investor-angle commentary.
- 🚀 Startup & Product — notable new products and funding. Add "why you should try this" one-liner.
- 🔧 Tools & Infrastructure — dev tools and infra updates.
- 📋 Other
Empty Section Handling
If a section has 0 items: > No relevant content in this period. — one line only.
Link Filtering Rules
- Exclude tracking/unsubscribe URLs (track., pixel., unsubscribe, etc.)
- Max 3 links per item
- Use meaningful labels for link text, not raw URLs
Mermaid Guidelines
English labels only in diagrams — no non-ASCII characters in node labels. For the mindmap, use short English/abbreviated terms only.
Example mindmap leaf expansion:
🤖 AI & Dev
LLM
Claude
Vibe-Coding
n8nFor the gantt, use dateFormat YYYY-MM-DD and axisFormat %m/%d.
For pie chart, use integer values only.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

