main (scripts/generate_newsletter.py)

agentic-awesome-skills · skills/linkedin-content-generator/scripts/generate_newsletter.py · python · MIT
email

Generates a LinkedIn newsletter prompt based on topic, niche, and length.

# Source: https://github.com/sickn33/agentic-awesome-skills | License: MIT | Copyright 2026 Antigravity User
# Provided via justclaw.it.com; keep this notice with the code.
"""
generate_newsletter.py — LinkedIn Newsletter Prompt Builder

Usage:
  python generate_newsletter.py --topic "<topic>" --niche "<niche>" [--title "<title>"] [--length <length>]

Length: short (~700w) | medium (~1200w) | long (~2000w)
"""

import argparse
import sys
import os

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, SCRIPT_DIR)
from utils import get_base_prompt_context

LENGTH_GUIDE = {
    "short":  "~600-800 words. Quick, punchy, skimmable. 2-3 sections max.",
    "medium": "~1000-1400 words. Balanced depth and readability. 3-4 sections.",
    "long":   "~1800-2500 words. Deep dive

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key