@opendirectory.dev/skills 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/claude-md-generator/.env.example +7 -0
- package/.claude/skills/claude-md-generator/README.md +78 -0
- package/.claude/skills/claude-md-generator/SKILL.md +248 -0
- package/.claude/skills/claude-md-generator/evals/evals.json +35 -0
- package/.claude/skills/claude-md-generator/references/section-guide.md +175 -0
- package/dist/e2e.test.d.ts +1 -0
- package/dist/e2e.test.js +62 -0
- package/dist/fs-adapters.d.ts +4 -0
- package/dist/fs-adapters.js +101 -0
- package/dist/fs-adapters.test.d.ts +1 -0
- package/dist/fs-adapters.test.js +108 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +211 -0
- package/dist/transformers.d.ts +6 -0
- package/dist/transformers.js +2 -0
- package/package.json +25 -0
- package/registry.json +226 -0
- package/skills/blog-cover-image-cli/.github/workflows/publish.yml +19 -0
- package/skills/blog-cover-image-cli/LICENSE +15 -0
- package/skills/blog-cover-image-cli/README.md +126 -0
- package/skills/blog-cover-image-cli/SKILL.md +7 -0
- package/skills/blog-cover-image-cli/agent-skill/blog-cover-generator/README.md +30 -0
- package/skills/blog-cover-image-cli/agent-skill/blog-cover-generator/SKILL.md +72 -0
- package/skills/blog-cover-image-cli/bin/cli.js +226 -0
- package/skills/blog-cover-image-cli/examples/100x_UX_Research_AI_Agent.png +0 -0
- package/skills/blog-cover-image-cli/examples/Firecrawl-supabase-bolt.png +0 -0
- package/skills/blog-cover-image-cli/examples/Git-City_Case_study_Cover_Image.jpg +0 -0
- package/skills/blog-cover-image-cli/examples/THE DISTRIBUTION LAYER (2).png +0 -0
- package/skills/blog-cover-image-cli/examples/canva-perplexity-duolingo-cover-image.png +0 -0
- package/skills/blog-cover-image-cli/examples/gamma-mistral-veed.png +0 -0
- package/skills/blog-cover-image-cli/examples/server-survival-case-study-cover-image(1).png +0 -0
- package/skills/blog-cover-image-cli/examples/viral-meme-automation.png +0 -0
- package/skills/blog-cover-image-cli/index.js +2 -0
- package/skills/blog-cover-image-cli/package-lock.json +2238 -0
- package/skills/blog-cover-image-cli/package.json +37 -0
- package/skills/blog-cover-image-cli/src/geminiGenerator.js +126 -0
- package/skills/blog-cover-image-cli/src/imageValidator.js +54 -0
- package/skills/blog-cover-image-cli/src/logoFetcher.js +86 -0
- package/skills/claude-md-generator/.env.example +7 -0
- package/skills/claude-md-generator/README.md +78 -0
- package/skills/claude-md-generator/SKILL.md +254 -0
- package/skills/claude-md-generator/evals/evals.json +35 -0
- package/skills/claude-md-generator/references/section-guide.md +175 -0
- package/skills/cook-the-blog/README.md +86 -0
- package/skills/cook-the-blog/SKILL.md +130 -0
- package/skills/dependency-update-bot/.env.example +13 -0
- package/skills/dependency-update-bot/README.md +101 -0
- package/skills/dependency-update-bot/SKILL.md +376 -0
- package/skills/dependency-update-bot/evals/evals.json +45 -0
- package/skills/dependency-update-bot/references/changelog-patterns.md +201 -0
- package/skills/docs-from-code/.env.example +13 -0
- package/skills/docs-from-code/README.md +97 -0
- package/skills/docs-from-code/SKILL.md +160 -0
- package/skills/docs-from-code/evals/evals.json +29 -0
- package/skills/docs-from-code/references/extraction-guide.md +174 -0
- package/skills/docs-from-code/references/output-template.md +135 -0
- package/skills/docs-from-code/scripts/extract_py.py +238 -0
- package/skills/docs-from-code/scripts/extract_ts.ts +284 -0
- package/skills/docs-from-code/scripts/package.json +18 -0
- package/skills/explain-this-pr/README.md +74 -0
- package/skills/explain-this-pr/SKILL.md +130 -0
- package/skills/explain-this-pr/evals/evals.json +35 -0
- package/skills/google-trends-api-skills/README.md +78 -0
- package/skills/google-trends-api-skills/SKILL.md +7 -0
- package/skills/google-trends-api-skills/google-trends-api/SKILL.md +163 -0
- package/skills/google-trends-api-skills/google-trends-api/references/api-responses.md +188 -0
- package/skills/google-trends-api-skills/google-trends-api/scripts/discover_keywords.py +344 -0
- package/skills/google-trends-api-skills/seo-keyword-research/SKILL.md +205 -0
- package/skills/google-trends-api-skills/seo-keyword-research/references/keyword-placement-guide.md +89 -0
- package/skills/google-trends-api-skills/seo-keyword-research/references/tech-blog-examples.md +207 -0
- package/skills/google-trends-api-skills/seo-keyword-research/scripts/blog_seo_research.py +373 -0
- package/skills/hackernews-intel/.env.example +33 -0
- package/skills/hackernews-intel/README.md +161 -0
- package/skills/hackernews-intel/SKILL.md +156 -0
- package/skills/hackernews-intel/evals/evals.json +35 -0
- package/skills/hackernews-intel/package.json +15 -0
- package/skills/hackernews-intel/scripts/monitor-hn.js +258 -0
- package/skills/kill-the-standup/.env.example +22 -0
- package/skills/kill-the-standup/README.md +84 -0
- package/skills/kill-the-standup/SKILL.md +169 -0
- package/skills/kill-the-standup/evals/evals.json +35 -0
- package/skills/kill-the-standup/references/standup-format.md +102 -0
- package/skills/linkedin-post-generator/.env.example +14 -0
- package/skills/linkedin-post-generator/README.md +107 -0
- package/skills/linkedin-post-generator/SKILL.md +228 -0
- package/skills/linkedin-post-generator/evals/evals.json +35 -0
- package/skills/linkedin-post-generator/references/linkedin-format.md +216 -0
- package/skills/linkedin-post-generator/references/output-template.md +154 -0
- package/skills/llms-txt-generator/.env.example +18 -0
- package/skills/llms-txt-generator/README.md +142 -0
- package/skills/llms-txt-generator/SKILL.md +176 -0
- package/skills/llms-txt-generator/evals/evals.json +35 -0
- package/skills/llms-txt-generator/references/llms-txt-spec.md +88 -0
- package/skills/llms-txt-generator/references/output-template.md +76 -0
- package/skills/llms-txt-generator/test-output/genzcareer.in/llms.txt +31 -0
- package/skills/luma-attendees-scraper/README.md +170 -0
- package/skills/luma-attendees-scraper/SKILL.md +7 -0
- package/skills/luma-attendees-scraper/luma_attendees_export.js +223 -0
- package/skills/meeting-brief-generator/.env.example +21 -0
- package/skills/meeting-brief-generator/README.md +90 -0
- package/skills/meeting-brief-generator/SKILL.md +275 -0
- package/skills/meeting-brief-generator/evals/evals.json +35 -0
- package/skills/meeting-brief-generator/references/brief-format.md +114 -0
- package/skills/meeting-brief-generator/references/output-template.md +150 -0
- package/skills/meta-ads-skill/README.md +100 -0
- package/skills/meta-ads-skill/SKILL.md +7 -0
- package/skills/meta-ads-skill/meta-ads-skill/SKILL.md +41 -0
- package/skills/meta-ads-skill/meta-ads-skill/references/report_templates.md +47 -0
- package/skills/meta-ads-skill/meta-ads-skill/references/workflows.md +51 -0
- package/skills/meta-ads-skill/meta-ads-skill/scripts/auth_check.py +22 -0
- package/skills/meta-ads-skill/meta-ads-skill/scripts/formatters.py +46 -0
- package/skills/newsletter-digest/.env.example +20 -0
- package/skills/newsletter-digest/README.md +147 -0
- package/skills/newsletter-digest/SKILL.md +221 -0
- package/skills/newsletter-digest/evals/evals.json +35 -0
- package/skills/newsletter-digest/feeds.json +7 -0
- package/skills/newsletter-digest/package.json +15 -0
- package/skills/newsletter-digest/references/digest-format.md +123 -0
- package/skills/newsletter-digest/references/output-template.md +136 -0
- package/skills/newsletter-digest/scripts/fetch-feeds.js +141 -0
- package/skills/newsletter-digest/scripts/ghost-publish.js +147 -0
- package/skills/noise2blog/.env.example +16 -0
- package/skills/noise2blog/README.md +107 -0
- package/skills/noise2blog/SKILL.md +229 -0
- package/skills/noise2blog/evals/evals.json +35 -0
- package/skills/noise2blog/references/blog-format.md +188 -0
- package/skills/noise2blog/references/output-template.md +184 -0
- package/skills/outreach-sequence-builder/.env.example +12 -0
- package/skills/outreach-sequence-builder/README.md +108 -0
- package/skills/outreach-sequence-builder/SKILL.md +248 -0
- package/skills/outreach-sequence-builder/evals/evals.json +36 -0
- package/skills/outreach-sequence-builder/references/output-template.md +171 -0
- package/skills/outreach-sequence-builder/references/sequence-format.md +167 -0
- package/skills/outreach-sequence-builder/references/signal-playbook.md +117 -0
- package/skills/position-me/README.md +71 -0
- package/skills/position-me/SKILL.md +7 -0
- package/skills/position-me/position-me/SKILL.md +50 -0
- package/skills/position-me/position-me/references/EVALUATION_SOP.md +40 -0
- package/skills/position-me/position-me/references/REPORT_TEMPLATE.md +58 -0
- package/skills/position-me/position-me/scripts/extract_links.py +49 -0
- package/skills/pr-description-writer/README.md +81 -0
- package/skills/pr-description-writer/SKILL.md +141 -0
- package/skills/pr-description-writer/evals/evals.json +35 -0
- package/skills/pr-description-writer/references/pr-format-guide.md +145 -0
- package/skills/producthunt-launch-kit/.env.example +7 -0
- package/skills/producthunt-launch-kit/README.md +95 -0
- package/skills/producthunt-launch-kit/SKILL.md +380 -0
- package/skills/producthunt-launch-kit/evals/evals.json +35 -0
- package/skills/producthunt-launch-kit/references/copy-rules.md +124 -0
- package/skills/reddit-icp-monitor/.env.example +16 -0
- package/skills/reddit-icp-monitor/README.md +117 -0
- package/skills/reddit-icp-monitor/SKILL.md +271 -0
- package/skills/reddit-icp-monitor/evals/evals.json +40 -0
- package/skills/reddit-icp-monitor/references/icp-format.md +131 -0
- package/skills/reddit-icp-monitor/references/reply-rules.md +110 -0
- package/skills/reddit-post-engine/.env.example +13 -0
- package/skills/reddit-post-engine/README.md +103 -0
- package/skills/reddit-post-engine/SKILL.md +303 -0
- package/skills/reddit-post-engine/evals/evals.json +35 -0
- package/skills/reddit-post-engine/references/subreddit-playbook.md +156 -0
- package/skills/schema-markup-generator/.env.example +19 -0
- package/skills/schema-markup-generator/README.md +114 -0
- package/skills/schema-markup-generator/SKILL.md +192 -0
- package/skills/schema-markup-generator/evals/evals.json +35 -0
- package/skills/schema-markup-generator/references/json-ld-spec.md +263 -0
- package/skills/schema-markup-generator/references/output-template.md +556 -0
- package/skills/show-hn-writer/.env.example +14 -0
- package/skills/show-hn-writer/README.md +88 -0
- package/skills/show-hn-writer/SKILL.md +303 -0
- package/skills/show-hn-writer/evals/evals.json +35 -0
- package/skills/show-hn-writer/references/hn-rules.md +74 -0
- package/skills/show-hn-writer/references/title-formulas.md +93 -0
- package/skills/stargazer/README.md +79 -0
- package/skills/stargazer/SKILL.md +7 -0
- package/skills/stargazer/stargazer-skill/SKILL.md +58 -0
- package/skills/stargazer/stargazer-skill/assets/.env.example +18 -0
- package/skills/stargazer/stargazer-skill/scripts/convert_to_csv.py +63 -0
- package/skills/stargazer/stargazer-skill/scripts/count_emails.py +52 -0
- package/skills/stargazer/stargazer-skill/scripts/stargazer_deep_extractor.py +450 -0
- package/skills/tweet-thread-from-blog/.env.example +14 -0
- package/skills/tweet-thread-from-blog/README.md +109 -0
- package/skills/tweet-thread-from-blog/SKILL.md +177 -0
- package/skills/tweet-thread-from-blog/evals/evals.json +35 -0
- package/skills/tweet-thread-from-blog/references/output-template.md +193 -0
- package/skills/tweet-thread-from-blog/references/thread-format.md +107 -0
- package/skills/twitter-GTM-find-skill/README.md +43 -0
- package/skills/twitter-GTM-find-skill/SKILL.md +7 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/SKILL.md +37 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/references/icp-checklist.md +35 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/scripts/package.json +23 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/scripts/run_pipeline.sh +8 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/scripts/src/debug.ts +23 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/scripts/src/extractor.ts +79 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/scripts/src/icp-filter.ts +87 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/scripts/src/index.ts +94 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/scripts/src/scraper.ts +41 -0
- package/skills/twitter-GTM-find-skill/twitter-GTM-find/scripts/tsconfig.json +13 -0
- package/skills/yc-intent-radar-skill/README.md +39 -0
- package/skills/yc-intent-radar-skill/SKILL.md +7 -0
- package/skills/yc-intent-radar-skill/yc-jobs-scraper/SKILL.md +59 -0
- package/skills/yc-intent-radar-skill/yc-jobs-scraper/scripts/auth.js +29 -0
- package/skills/yc-intent-radar-skill/yc-jobs-scraper/scripts/db.js +62 -0
- package/skills/yc-intent-radar-skill/yc-jobs-scraper/scripts/export_radar_candidates.js +40 -0
- package/skills/yc-intent-radar-skill/yc-jobs-scraper/scripts/package-lock.json +1525 -0
- package/skills/yc-intent-radar-skill/yc-jobs-scraper/scripts/package.json +12 -0
- package/skills/yc-intent-radar-skill/yc-jobs-scraper/scripts/scraper.js +217 -0
- package/src/e2e.test.ts +35 -0
- package/src/fs-adapters.test.ts +91 -0
- package/src/fs-adapters.ts +65 -0
- package/src/index.ts +182 -0
- package/src/transformers.ts +6 -0
- package/tsconfig.json +8 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: meta-ads-expert
|
|
3
|
+
description: Use when interacting with the Meta Ads MCP server to manage accounts, campaigns, ads, insights, and targeting, or to troubleshoot OAuth token authentication. Act as an Expert Media Buyer.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Meta Ads Expert Skill
|
|
7
|
+
|
|
8
|
+
**Persona:** You are an Expert Media Buyer. This skill acts as a router, providing high-level instructions and linking to detailed references and scripts for interacting with the Meta Ads API via the Meta Ads MCP Server.
|
|
9
|
+
|
|
10
|
+
## Authentication & Setup
|
|
11
|
+
|
|
12
|
+
The Meta Ads MCP Server uses OAuth with a local SQLite database to manage authentication tokens securely.
|
|
13
|
+
|
|
14
|
+
### Auth Workflow
|
|
15
|
+
If any Meta Ads MCP tool returns an authentication error (e.g., missing token, expired token):
|
|
16
|
+
1. **Run Auth Check**: Use the auth helper script `scripts/auth_check.py` to diagnose issues.
|
|
17
|
+
2. **Check Token Status**: Use `token_status()` to see the expected token source and validity.
|
|
18
|
+
3. **Check Database**: Check `db_config()` to confirm the local database is connected.
|
|
19
|
+
4. **Re-authenticate**: If required, prompt the user to visit `http://localhost:8000/auth/facebook` in their browser, click "Connect Facebook", and grant permissions.
|
|
20
|
+
|
|
21
|
+
## Orchestration Workflows
|
|
22
|
+
|
|
23
|
+
For complex orchestrations and step-by-step guides on analyzing performance or exploring structures, see [references/workflows.md](references/workflows.md).
|
|
24
|
+
|
|
25
|
+
For reporting standards and output templates, see [references/report_templates.md](references/report_templates.md).
|
|
26
|
+
|
|
27
|
+
## Strict Guardrails
|
|
28
|
+
|
|
29
|
+
### Date Ranges & Pagination
|
|
30
|
+
|
|
31
|
+
To prevent context window overflow and API rate limits, **ALWAYS** apply strict date ranges and limits:
|
|
32
|
+
- **Pagination Limits**: When listing items (e.g., `get_campaigns()`, `get_adsets()`, `get_ads()`), cap the limit parameter to `limit=10` initially. Only expand if explicitly required.
|
|
33
|
+
- **Date Ranges**: For `get_insights` and `analyze_campaigns`, ALWAYS default to `time_range="last_7d"`. Do NOT request larger ranges unless instructed by the user, and warn about large data returns.
|
|
34
|
+
|
|
35
|
+
## Safety Guardrails (State-Changing Actions)
|
|
36
|
+
|
|
37
|
+
You MUST require explicit user confirmation before executing any state-changing tools (e.g., `create_campaign`, `update_campaign`, `clear_database`, `reset_database`).
|
|
38
|
+
|
|
39
|
+
1. Present the exact parameters to the user.
|
|
40
|
+
2. Ask for explicit approval.
|
|
41
|
+
3. Only proceed if approved.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Meta Ads Report Templates
|
|
2
|
+
|
|
3
|
+
Use these markdown templates when generating reports and summaries for users.
|
|
4
|
+
|
|
5
|
+
## 1. Executive Summary Template
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
# Meta Ads Performance Analysis: [Timeframe]
|
|
9
|
+
|
|
10
|
+
## Executive Summary
|
|
11
|
+
[2-3 sentences summarizing the overall performance. E.g., "Account performance remained stable this week with a 5% increase in ROAS, primarily driven by the new Retargeting campaign. However, top-of-funnel CPA has started to rise."]
|
|
12
|
+
|
|
13
|
+
## Key Metrics
|
|
14
|
+
- **Spend:** $[Amount] ([+/-]% vs previous period)
|
|
15
|
+
- **Revenue/Conversions:** [Amount] ([+/-]% vs previous period)
|
|
16
|
+
- **CPA:** $[Amount] ([+/-]% vs previous period)
|
|
17
|
+
- **ROAS:** [Amount]x ([+/-]% vs previous period)
|
|
18
|
+
|
|
19
|
+
## Key Findings
|
|
20
|
+
- **Highlight 1:** [E.g., Campaign X is driving 60% of total conversions at a very efficient CPA.]
|
|
21
|
+
- **Highlight 2:** [E.g., Ad fatigue is visible in Ad Set Y; frequency has exceeded 4.0 and CTR has dropped by 20%.]
|
|
22
|
+
- **Highlight 3:** [E.g., The weekend flash sale was highly successful, accounting for a temporary spike in ROAS.]
|
|
23
|
+
|
|
24
|
+
## Recommendations
|
|
25
|
+
1. **[Actionable Item 1]:** [E.g., Pause underperforming ads in Ad Set Y and introduce 3 new creative variations.]
|
|
26
|
+
2. **[Actionable Item 2]:** [E.g., Scale budget on Campaign X by 20% over the next 3 days.]
|
|
27
|
+
3. **[Actionable Item 3]:** [E.g., Launch a new test targeting Lookalike 1% of recent purchasers.]
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## 2. CPA Spike Investigation Report
|
|
31
|
+
|
|
32
|
+
```markdown
|
|
33
|
+
# CPA Spike Investigation: [Campaign/Account Name]
|
|
34
|
+
|
|
35
|
+
## The Issue
|
|
36
|
+
[Briefly state the problem. E.g., "CPA increased from $20 to $35 starting on [Date]."]
|
|
37
|
+
|
|
38
|
+
## Root Cause Analysis
|
|
39
|
+
- **Campaign Level:** [Identify which campaign(s) caused the spike.]
|
|
40
|
+
- **Ad Set Level:** [Identify specific ad sets. Did a lookalike audience degrade? Did a specific placement get expensive?]
|
|
41
|
+
- **Ad Level:** [Identify ad fatigue, drop in CTR, increase in CPM, or decrease in conversion rate.]
|
|
42
|
+
|
|
43
|
+
## Action Plan
|
|
44
|
+
- [Immediate Action 1]
|
|
45
|
+
- [Immediate Action 2]
|
|
46
|
+
- [Monitoring Plan]
|
|
47
|
+
```
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Meta Ads Workflows
|
|
2
|
+
|
|
3
|
+
This document outlines complex orchestrations and workflows for common Meta Ads tasks.
|
|
4
|
+
|
|
5
|
+
## 1. CPA Spike Troubleshooting
|
|
6
|
+
|
|
7
|
+
When a client or user asks to investigate a spike in Cost Per Action (CPA), follow this systematic approach:
|
|
8
|
+
|
|
9
|
+
1. **Account Level Overview**
|
|
10
|
+
- **Tool:** `get_ad_accounts` (if account ID not provided)
|
|
11
|
+
- **Tool:** `get_insights` (Level: account)
|
|
12
|
+
- **Action:** Look at overall account performance over the last 7, 14, and 30 days to identify when the spike started.
|
|
13
|
+
|
|
14
|
+
2. **Campaign Breakdown**
|
|
15
|
+
- **Tool:** `get_campaigns`
|
|
16
|
+
- **Tool:** `get_insights` (Level: campaign)
|
|
17
|
+
- **Action:** Identify which specific campaigns are driving the CPA increase. Compare spend and CPA across active campaigns.
|
|
18
|
+
|
|
19
|
+
3. **Ad Set Deep Dive**
|
|
20
|
+
- **Tool:** `get_adsets`
|
|
21
|
+
- **Tool:** `get_insights` (Level: adset)
|
|
22
|
+
- **Action:** For the offending campaigns, break down by Ad Set to see if specific audiences or placements are underperforming.
|
|
23
|
+
|
|
24
|
+
4. **Ad & Creative Analysis**
|
|
25
|
+
- **Tool:** `get_ads`
|
|
26
|
+
- **Tool:** `get_insights` (Level: ad)
|
|
27
|
+
- **Action:** Check if specific ads are experiencing ad fatigue (high frequency, dropping CTR) or if recent changes disrupted the learning phase.
|
|
28
|
+
|
|
29
|
+
5. **Advanced Insights (Optional)**
|
|
30
|
+
- **Tool:** `analyze_campaigns`
|
|
31
|
+
- **Action:** Run automated analysis on the specific campaigns to generate actionable recommendations.
|
|
32
|
+
|
|
33
|
+
6. **Synthesis and Reporting**
|
|
34
|
+
- Use the `CPA Spike Investigation Report` template (found in `report_templates.md`) to structure the findings and recommendations.
|
|
35
|
+
|
|
36
|
+
## 2. New Audience Discovery
|
|
37
|
+
|
|
38
|
+
When a user wants to find new audiences or test new targeting:
|
|
39
|
+
|
|
40
|
+
1. **Review Current Top Performers**
|
|
41
|
+
- **Tool:** `get_insights` (Level: adset)
|
|
42
|
+
- **Action:** Identify the ad sets currently delivering the best ROAS/CPA.
|
|
43
|
+
|
|
44
|
+
2. **Generate Audience Ideas**
|
|
45
|
+
- **Action:** Based on the product and past top performers, generate Lookalike (LAL) audience suggestions or new interest-based targeting.
|
|
46
|
+
|
|
47
|
+
3. **Structure the Test**
|
|
48
|
+
- Recommend a campaign structure for testing (e.g., A/B testing with Campaign Budget Optimization (CBO) or Ad Set Budget Optimization (ABO)).
|
|
49
|
+
|
|
50
|
+
4. **Monitoring**
|
|
51
|
+
- Provide the exact metrics to watch (e.g., CTR, CPC, early conversions) over the next 3-7 days.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
def check_auth_status():
|
|
2
|
+
print("Checking Meta Ads API authentication token...")
|
|
3
|
+
token_valid = False
|
|
4
|
+
|
|
5
|
+
if not token_valid:
|
|
6
|
+
print("Error: No valid access token found.")
|
|
7
|
+
print("Please authenticate to continue.")
|
|
8
|
+
print("Action Plan:")
|
|
9
|
+
print(
|
|
10
|
+
"1. Ensure the local OAuth web server is running: python src/auth/run_web_server.py"
|
|
11
|
+
)
|
|
12
|
+
print("2. Visit http://localhost:8000/auth/facebook in your web browser")
|
|
13
|
+
print("3. Grant the requested permissions")
|
|
14
|
+
print("4. Return here once authentication is complete")
|
|
15
|
+
return False
|
|
16
|
+
else:
|
|
17
|
+
print("Authentication successful! Token is valid.")
|
|
18
|
+
return True
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
if __name__ == "__main__":
|
|
22
|
+
check_auth_status()
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
def format_campaigns(data):
|
|
2
|
+
if not data:
|
|
3
|
+
return "No campaigns found."
|
|
4
|
+
|
|
5
|
+
lines = []
|
|
6
|
+
lines.append("| ID | Name | Status | Objective |")
|
|
7
|
+
lines.append("|---|---|---|---|")
|
|
8
|
+
|
|
9
|
+
for item in data:
|
|
10
|
+
lines.append(
|
|
11
|
+
f"| {item.get('id', 'N/A')} | {item.get('name', 'N/A')} | {item.get('status', 'N/A')} | {item.get('objective', 'N/A')} |"
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
return "\n".join(lines)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def format_adsets(data):
|
|
18
|
+
if not data:
|
|
19
|
+
return "No ad sets found."
|
|
20
|
+
|
|
21
|
+
lines = []
|
|
22
|
+
lines.append("| ID | Name | Status | Campaign ID | Daily Budget |")
|
|
23
|
+
lines.append("|---|---|---|---|---|")
|
|
24
|
+
|
|
25
|
+
for item in data:
|
|
26
|
+
lines.append(
|
|
27
|
+
f"| {item.get('id', 'N/A')} | {item.get('name', 'N/A')} | {item.get('status', 'N/A')} | {item.get('campaign_id', 'N/A')} | {item.get('daily_budget', 'N/A')} |"
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
return "\n".join(lines)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def format_insights(data):
|
|
34
|
+
if not data:
|
|
35
|
+
return "No insights found."
|
|
36
|
+
|
|
37
|
+
lines = []
|
|
38
|
+
lines.append("| Campaign ID | Campaign Name | Spend | Impressions | Clicks |")
|
|
39
|
+
lines.append("|---|---|---|---|---|")
|
|
40
|
+
|
|
41
|
+
for item in data:
|
|
42
|
+
lines.append(
|
|
43
|
+
f"| {item.get('campaign_id', 'N/A')} | {item.get('campaign_name', 'N/A')} | {item.get('spend', 'N/A')} | {item.get('impressions', 'N/A')} | {item.get('clicks', 'N/A')} |"
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
return "\n".join(lines)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# newsletter-digest -- Environment Variables
|
|
2
|
+
# ==========================================
|
|
3
|
+
|
|
4
|
+
# Required: Gemini API key for synthesizing the digest
|
|
5
|
+
# Get it at: https://ai.google.dev
|
|
6
|
+
GEMINI_API_KEY=your_gemini_api_key_here
|
|
7
|
+
|
|
8
|
+
# Optional: Ghost CMS publishing
|
|
9
|
+
# Required only if you want to auto-publish digests to Ghost
|
|
10
|
+
#
|
|
11
|
+
# GHOST_URL: Your Ghost instance URL (no trailing slash)
|
|
12
|
+
GHOST_URL=https://your-ghost-site.com
|
|
13
|
+
#
|
|
14
|
+
# GHOST_ADMIN_KEY: Admin API key in the format "key_id:secret"
|
|
15
|
+
# Get it from: Ghost Admin > Settings > Integrations > Add custom integration
|
|
16
|
+
GHOST_ADMIN_KEY=your_key_id:your_key_secret
|
|
17
|
+
#
|
|
18
|
+
# GHOST_PUBLISH_STATUS: "draft" saves the post for review; "published" makes it live immediately
|
|
19
|
+
# Default: draft (recommended — review before publishing)
|
|
20
|
+
GHOST_PUBLISH_STATUS=draft
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# newsletter-digest
|
|
2
|
+
|
|
3
|
+
<img width="1280" height="640" alt="newsletter-digest" src="https://github.com/user-attachments/assets/cb2879ae-eb5c-4727-a1a2-47b4462a699b" />
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
Aggregate RSS feeds, synthesize the week's top stories with Gemini, and publish a newsletter digest to Ghost CMS. Supports three digest formats and outputs HTML, Markdown, and plain text for any platform.
|
|
7
|
+
|
|
8
|
+
## What It Does
|
|
9
|
+
|
|
10
|
+
- Reads your RSS/Atom feed list from `feeds.json`
|
|
11
|
+
- Fetches all articles published in the last 7 days (configurable)
|
|
12
|
+
- Deduplicates across feeds and sorts by date
|
|
13
|
+
- Uses Gemini to synthesize a digest in your chosen format
|
|
14
|
+
- Publishes to Ghost as a draft or live post
|
|
15
|
+
- Outputs formatted Markdown for Substack, Notion, or any other platform
|
|
16
|
+
|
|
17
|
+
## Digest Formats
|
|
18
|
+
|
|
19
|
+
| Format | Use When | Target Length |
|
|
20
|
+
|--------|----------|---------------|
|
|
21
|
+
| Weekly Roundup | General digest covering top stories across all feeds | 350-500 words |
|
|
22
|
+
| Topic Deep Dive | Focused issue on a single topic (AI, security, etc.) | 450-650 words |
|
|
23
|
+
| Curated Picks | 5 selected articles with editorial context | 250-350 words |
|
|
24
|
+
|
|
25
|
+
## Requirements
|
|
26
|
+
|
|
27
|
+
| Requirement | Purpose | Where to Get It |
|
|
28
|
+
|------------|---------|-----------------|
|
|
29
|
+
| GEMINI_API_KEY | Digest synthesis | https://ai.google.dev |
|
|
30
|
+
| GHOST_URL + GHOST_ADMIN_KEY | Ghost publishing (optional) | Ghost Admin, Settings, Integrations |
|
|
31
|
+
| Node.js 20+ | Running scripts | https://nodejs.org |
|
|
32
|
+
|
|
33
|
+
Tavily is not required. The skill uses article excerpts from RSS feeds directly.
|
|
34
|
+
|
|
35
|
+
## Setup
|
|
36
|
+
|
|
37
|
+
### 1. Install dependencies
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
cd /path/to/newsletter-digest
|
|
41
|
+
npm install
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 2. Configure environment variables
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
cp .env.example .env
|
|
48
|
+
# Edit .env with your keys
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 3. Configure your feeds
|
|
52
|
+
|
|
53
|
+
Edit `feeds.json` with the RSS feeds you want to monitor:
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
[
|
|
57
|
+
{ "url": "https://hnrss.org/frontpage", "name": "Hacker News" },
|
|
58
|
+
{ "url": "https://feeds.feedburner.com/TheHackersNews", "name": "The Hacker News" },
|
|
59
|
+
{ "url": "https://changelog.com/feed", "name": "Changelog" }
|
|
60
|
+
]
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
The file ships with 5 example feeds. Replace them with your own.
|
|
64
|
+
|
|
65
|
+
### 4. Set up Ghost publishing (optional)
|
|
66
|
+
|
|
67
|
+
1. Go to Ghost Admin, Settings, Integrations
|
|
68
|
+
2. Click "Add custom integration"
|
|
69
|
+
3. Name it "newsletter-digest"
|
|
70
|
+
4. Copy the Admin API Key (format: `key_id:secret`)
|
|
71
|
+
5. Set `GHOST_ADMIN_KEY=key_id:secret` in `.env`
|
|
72
|
+
6. Set `GHOST_URL=https://your-ghost-site.com` in `.env`
|
|
73
|
+
|
|
74
|
+
## How to Use
|
|
75
|
+
|
|
76
|
+
Generate a weekly digest:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
"Generate a weekly digest from my RSS feeds"
|
|
80
|
+
"Create this week's newsletter"
|
|
81
|
+
"Summarize my feeds from the last 7 days"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Choose a specific format:
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
"Create a topic deep dive about AI agents from this week's news"
|
|
88
|
+
"Generate a curated picks digest for this week"
|
|
89
|
+
"Write a weekly roundup newsletter"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Extend the date window:
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
"Generate a digest from the last 14 days"
|
|
96
|
+
"Not many articles this week, extend the window to 2 weeks"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Publish to Ghost:
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
"Generate this week's digest and publish it to Ghost as a draft"
|
|
103
|
+
"Create the newsletter and publish it to Ghost"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Output for Substack:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
"Generate a newsletter digest for Substack"
|
|
110
|
+
"Create the digest and give me the Markdown version"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Output
|
|
114
|
+
|
|
115
|
+
| Output | Description |
|
|
116
|
+
|--------|-------------|
|
|
117
|
+
| HTML | Ready to paste into any CMS |
|
|
118
|
+
| Markdown | For Substack, Notion, Hashnode |
|
|
119
|
+
| Plain text | For email clients |
|
|
120
|
+
| Ghost draft | Published automatically if configured |
|
|
121
|
+
|
|
122
|
+
## Substack Note
|
|
123
|
+
|
|
124
|
+
Substack has no public API. The skill outputs a Markdown version of the digest for you to paste directly into the Substack editor.
|
|
125
|
+
|
|
126
|
+
## Project Structure
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
newsletter-digest/
|
|
130
|
+
├── SKILL.md
|
|
131
|
+
├── README.md
|
|
132
|
+
├── .env.example
|
|
133
|
+
├── package.json
|
|
134
|
+
├── feeds.json (your RSS feed list, edit this)
|
|
135
|
+
├── evals/
|
|
136
|
+
│ └── evals.json
|
|
137
|
+
├── references/
|
|
138
|
+
│ ├── digest-format.md (format rules, length targets, attribution)
|
|
139
|
+
│ └── output-template.md (HTML templates for all 3 formats)
|
|
140
|
+
└── scripts/
|
|
141
|
+
├── fetch-feeds.js (RSS fetching, dedup, date filtering)
|
|
142
|
+
└── ghost-publish.js (Ghost Admin API posting)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## License
|
|
146
|
+
|
|
147
|
+
MIT
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: newsletter-digest
|
|
3
|
+
description: Aggregates RSS feeds from the past week, synthesizes the top stories using Gemini, and publishes a newsletter digest to Ghost CMS. Optionally outputs formatted Markdown for Substack or any other platform. Use when asked to generate a newsletter, create a weekly digest, summarize RSS feeds, compile top stories for a newsletter, or publish a digest to Ghost. Trigger when a user mentions newsletter digest, weekly roundup, RSS digest, compile top stories, or publish to Ghost.
|
|
4
|
+
compatibility: [claude-code, gemini-cli, github-copilot]
|
|
5
|
+
author: OpenDirectory
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Newsletter Digest
|
|
10
|
+
|
|
11
|
+
Aggregate content from RSS feeds, synthesize the week's top stories with Gemini, and publish a digest to Ghost CMS. Supports weekly digests, topic-focused roundups, and curated picks formats.
|
|
12
|
+
|
|
13
|
+
## Writing Style
|
|
14
|
+
|
|
15
|
+
Apply to all generated digest content:
|
|
16
|
+
|
|
17
|
+
- Active voice only
|
|
18
|
+
- Short sentences, one idea per sentence
|
|
19
|
+
- No em dashes — use a period or comma instead
|
|
20
|
+
- No semicolons
|
|
21
|
+
- No markdown or asterisks in the final newsletter body
|
|
22
|
+
- No hashtags
|
|
23
|
+
|
|
24
|
+
Banned words — do not use any of these in the digest:
|
|
25
|
+
incredible, amazing, leveraging, synergize, game-changing, game changer, delve, harness, unlock, groundbreaking, cutting-edge, remarkable, paradigm, revolutionize, disruptive, transformative, thrilled, excited to share, powerful, innovative, comprehensive, actionable, crucial, vital, pivotal, elucidate, utilize, dive deep, tapestry, illuminate, revolutionize
|
|
26
|
+
|
|
27
|
+
## CRITICAL RULE
|
|
28
|
+
|
|
29
|
+
Every claim, statistic, and summary in the digest must come from the fetched articles. Never fabricate data points, quotes, or facts. If a source article has no meaningful content, skip it.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Step 1: Check Setup
|
|
34
|
+
|
|
35
|
+
**1a. Verify feeds are configured**
|
|
36
|
+
|
|
37
|
+
Check if `feeds.json` exists in the skill directory:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
ls /Users/ksd/Desktop/Varnan_skills/newsletter-digest/feeds.json 2>/dev/null
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
If missing, ask the user: "Which RSS feeds should I monitor? Share a list of URLs and I'll create feeds.json."
|
|
44
|
+
|
|
45
|
+
The format is:
|
|
46
|
+
```json
|
|
47
|
+
[
|
|
48
|
+
{ "url": "https://example.com/feed", "name": "Source Name" },
|
|
49
|
+
{ "url": "https://another.com/rss", "name": "Another Source" }
|
|
50
|
+
]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**1b. Verify required environment variables**
|
|
54
|
+
|
|
55
|
+
Check that these are set:
|
|
56
|
+
- `GEMINI_API_KEY` (required): for synthesis
|
|
57
|
+
- `GHOST_URL` and `GHOST_ADMIN_KEY` (required for Ghost publishing, optional if output-only)
|
|
58
|
+
|
|
59
|
+
If GEMINI_API_KEY is missing, stop and ask the user to set it.
|
|
60
|
+
|
|
61
|
+
GHOST config is optional. If not set, the skill outputs formatted Markdown instead of publishing.
|
|
62
|
+
|
|
63
|
+
**1c. Verify script dependencies**
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
ls /Users/ksd/Desktop/Varnan_skills/newsletter-digest/node_modules 2>/dev/null | head -1
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
If missing:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
cd /Users/ksd/Desktop/Varnan_skills/newsletter-digest && npm install
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Step 2: Fetch and Parse Feeds
|
|
78
|
+
|
|
79
|
+
Run the fetch script:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
node /Users/ksd/Desktop/Varnan_skills/newsletter-digest/scripts/fetch-feeds.js
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The script:
|
|
86
|
+
- Reads `feeds.json` for the list of feeds
|
|
87
|
+
- Fetches each feed using `rss-parser`
|
|
88
|
+
- Filters items published in the last 7 days
|
|
89
|
+
- Deduplicates by URL
|
|
90
|
+
- Sorts by publish date, newest first
|
|
91
|
+
- Saves results to `/tmp/newsletter-digest-articles.json`
|
|
92
|
+
|
|
93
|
+
If the script errors on a specific feed, it logs a warning and continues. One bad feed does not stop the run.
|
|
94
|
+
|
|
95
|
+
After the script completes, verify the output:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
node -e "
|
|
99
|
+
const fs = require('fs');
|
|
100
|
+
const data = JSON.parse(fs.readFileSync('/tmp/newsletter-digest-articles.json', 'utf8'));
|
|
101
|
+
console.log('Total articles:', data.articles.length);
|
|
102
|
+
console.log('From feeds:', data.feedsSummary.map(f => f.name + ': ' + f.count).join(', '));
|
|
103
|
+
console.log('Date range:', data.dateRange.from, 'to', data.dateRange.to);
|
|
104
|
+
"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
If fewer than 3 articles are found, warn the user and ask if they want to extend the date range to 14 days. Pass `--days=14` to the script to widen the window.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Step 3: Read Format Rules
|
|
112
|
+
|
|
113
|
+
Read `references/digest-format.md` in full before generating any content. Internalize:
|
|
114
|
+
- Three digest formats (Weekly Roundup, Topic Deep Dive, Curated Picks) and when to use each
|
|
115
|
+
- Section structure and length requirements per format
|
|
116
|
+
- Attribution rules (every claim links to a source)
|
|
117
|
+
- Tone and voice guidelines
|
|
118
|
+
|
|
119
|
+
Read `references/output-template.md` and select the template matching the requested format.
|
|
120
|
+
|
|
121
|
+
If the user did not specify a format, default to Weekly Roundup.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Step 4: Synthesize with Gemini
|
|
126
|
+
|
|
127
|
+
Read `/tmp/newsletter-digest-articles.json` and build a synthesis prompt.
|
|
128
|
+
|
|
129
|
+
**Prompt structure:**
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
You are a newsletter editor writing a digest of this week's top stories.
|
|
133
|
+
|
|
134
|
+
Sources (use ONLY these — do not invent facts):
|
|
135
|
+
[For each article: Title | Source | Date | Summary]
|
|
136
|
+
|
|
137
|
+
Task:
|
|
138
|
+
Write a [FORMAT] digest following this structure:
|
|
139
|
+
[Paste the selected template from references/output-template.md]
|
|
140
|
+
|
|
141
|
+
Rules:
|
|
142
|
+
- Every claim, statistic, and quote must come from the sources above
|
|
143
|
+
- Write in active voice, short sentences, contractions allowed
|
|
144
|
+
- Do not use: incredible, amazing, leveraging, game-changing, delve, groundbreaking, cutting-edge, revolutionize
|
|
145
|
+
- No em dashes, no semicolons, no hashtags
|
|
146
|
+
- Include [Source: Name](URL) attribution after each major claim
|
|
147
|
+
- Output plain text with HTML heading tags only (no markdown asterisks)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Call Gemini with this prompt. Target model: `gemini-2.0-flash` or the latest available.
|
|
151
|
+
|
|
152
|
+
If the response contains any banned words or invented statistics not present in the source articles, regenerate with a stricter prompt.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Step 5: Self-QA
|
|
157
|
+
|
|
158
|
+
Run every check before presenting. Fix violations first.
|
|
159
|
+
|
|
160
|
+
- [ ] Every claim, statistic, and quote traces to a source article
|
|
161
|
+
- [ ] No banned words in any section
|
|
162
|
+
- [ ] No em dashes in the text
|
|
163
|
+
- [ ] No semicolons in the text
|
|
164
|
+
- [ ] Every section has at least one source attribution with URL
|
|
165
|
+
- [ ] Word count is within the format's target range (see references/digest-format.md)
|
|
166
|
+
- [ ] No section repeated the same story twice
|
|
167
|
+
- [ ] Title is specific (includes the date range or issue number, not just "Weekly Digest")
|
|
168
|
+
- [ ] HTML output is valid (no unclosed tags if Ghost publishing)
|
|
169
|
+
|
|
170
|
+
Fix all violations before presenting to the user.
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Step 6: Format and Preview
|
|
175
|
+
|
|
176
|
+
Present the digest to the user in this order:
|
|
177
|
+
|
|
178
|
+
1. **Title** — Issue date range or topic
|
|
179
|
+
2. **Digest content** — Full formatted text
|
|
180
|
+
3. **Source list** — All articles used, with URLs
|
|
181
|
+
4. **Word count and article count**
|
|
182
|
+
|
|
183
|
+
Ask: "Ready to publish to Ghost as a draft, or would you like to edit first?"
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## Step 7: Publish to Ghost or Output
|
|
188
|
+
|
|
189
|
+
**If GHOST_URL and GHOST_ADMIN_KEY are set and user confirms:**
|
|
190
|
+
|
|
191
|
+
Run the publish script:
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
node /Users/ksd/Desktop/Varnan_skills/newsletter-digest/scripts/ghost-publish.js \
|
|
195
|
+
--title "DIGEST_TITLE" \
|
|
196
|
+
--status "draft"
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
The script reads `/tmp/newsletter-digest-output.json` (written by the agent in Step 6) and posts to Ghost.
|
|
200
|
+
|
|
201
|
+
After posting, the script returns the Ghost admin URL for the draft. Present this to the user: "Draft saved at: [URL]. Review and publish from your Ghost dashboard."
|
|
202
|
+
|
|
203
|
+
If the user wants to publish immediately, pass `--status "published"` to the script.
|
|
204
|
+
|
|
205
|
+
**If Ghost is not configured or user says "output only":**
|
|
206
|
+
|
|
207
|
+
Output the digest in three formats:
|
|
208
|
+
|
|
209
|
+
1. **HTML** — ready to paste into any CMS
|
|
210
|
+
2. **Markdown** — for Substack, Notion, or Hashnode
|
|
211
|
+
3. **Plain text** — for email clients
|
|
212
|
+
|
|
213
|
+
Add: "Substack does not offer a public API. Copy the Markdown version into your Substack editor directly."
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
## Notes on Substack
|
|
218
|
+
|
|
219
|
+
Substack has no public API. Programmatic posting is not possible without reverse-engineering internal endpoints, which violates their terms. The skill outputs a formatted Markdown digest ready to paste into the Substack editor. This is the correct approach.
|
|
220
|
+
|
|
221
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill_name": "newsletter-digest",
|
|
3
|
+
"evals": [
|
|
4
|
+
{
|
|
5
|
+
"id": 1,
|
|
6
|
+
"prompt": "Generate a weekly digest from my RSS feeds",
|
|
7
|
+
"expected_output": "Agent checks feeds.json exists and GEMINI_API_KEY is set. Runs scripts/fetch-feeds.js. Verifies output JSON contains at least 3 articles. Reads references/digest-format.md and references/output-template.md. Calls Gemini with the fetched articles and Weekly Roundup template. Returns a digest with a Top Story section (100-150 words), 3+ Also Worth Reading entries (40-60 words each), Quick Takes bullets, and a closing line. Every claim in the digest has a source attribution with a real URL from the fetched articles. No banned words. No invented statistics. Word count is 350-500 words. Asks user to confirm before publishing to Ghost.",
|
|
8
|
+
"files": []
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": 2,
|
|
12
|
+
"prompt": "Create a topic deep dive newsletter about AI agent frameworks from this week's news",
|
|
13
|
+
"expected_output": "Agent runs fetch-feeds.js. Filters fetched articles to those related to AI agents and frameworks. Reads digest-format.md and selects Topic Deep Dive format. Calls Gemini with filtered articles and Topic Deep Dive template. Returns a digest with 'The Big Picture' section, 3-4 Key Development sections each with a linked article title, a 'What to Watch' bullet list, and a sources list. All claims trace to fetched articles. If fewer than 3 relevant articles are found, agent warns the user and asks if they want to extend the window to 14 days (re-run with --days=14).",
|
|
14
|
+
"files": []
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": 3,
|
|
18
|
+
"prompt": "Generate this week's digest and publish it to Ghost as a draft",
|
|
19
|
+
"expected_output": "Agent checks GHOST_URL and GHOST_ADMIN_KEY are set. Runs fetch-feeds.js. Synthesizes digest. Writes digest HTML and metadata to /tmp/newsletter-digest-output.json. Runs scripts/ghost-publish.js with --title and --status=draft. Script generates Ghost JWT from GHOST_ADMIN_KEY (id:secret format, hex-decoded, HS256, 5-minute expiry). POSTs to /ghost/api/admin/posts/?source=html. Script returns the Ghost admin editor URL. Agent presents the URL to the user: 'Draft saved at [URL]. Review and publish from your Ghost dashboard.'",
|
|
20
|
+
"files": []
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 4,
|
|
24
|
+
"prompt": "Generate a newsletter digest for Substack",
|
|
25
|
+
"expected_output": "Agent generates the digest normally. When presenting output, provides three formats: HTML (for any CMS), Markdown (for Substack), and plain text. Includes a clear note: 'Substack does not offer a public API. Copy the Markdown version into your Substack editor directly.' Does not attempt any Substack API calls. The Markdown version uses ## headings, [text](url) links, and - bullet points.",
|
|
26
|
+
"files": []
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": 5,
|
|
30
|
+
"prompt": "The feeds only returned 2 articles this week — can you extend the window?",
|
|
31
|
+
"expected_output": "Agent re-runs fetch-feeds.js with --days=14 flag. Fetches articles from the last 14 days instead of 7. Reports the new article count. Continues with synthesis using the extended article set. If still fewer than 3 articles after 14 days, agent warns that the feeds may not be updating frequently and asks the user to check that the feed URLs are correct.",
|
|
32
|
+
"files": []
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[
|
|
2
|
+
{ "url": "https://feeds.feedburner.com/TheHackersNews", "name": "The Hacker News" },
|
|
3
|
+
{ "url": "https://hnrss.org/frontpage", "name": "Hacker News Front Page" },
|
|
4
|
+
{ "url": "https://www.infoq.com/feed/", "name": "InfoQ" },
|
|
5
|
+
{ "url": "https://changelog.com/feed", "name": "Changelog" },
|
|
6
|
+
{ "url": "https://css-tricks.com/feed/", "name": "CSS-Tricks" }
|
|
7
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "newsletter-digest",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "RSS aggregation and newsletter digest generation scripts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"fetch": "node scripts/fetch-feeds.js",
|
|
8
|
+
"fetch:extended": "node scripts/fetch-feeds.js --days=14",
|
|
9
|
+
"publish": "node scripts/ghost-publish.js"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"jsonwebtoken": "^9.0.2",
|
|
13
|
+
"rss-parser": "^3.13.0"
|
|
14
|
+
}
|
|
15
|
+
}
|