Goose-skills newsletter-monitor
install
source · Clone the upstream repo
git clone https://github.com/gooseworks-ai/goose-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/gooseworks-ai/goose-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/composites/newsletter-monitor" ~/.claude/skills/gooseworks-ai-goose-skills-newsletter-monitor && rm -rf "$T"
manifest:
skills/composites/newsletter-monitor/SKILL.mdsource content
Newsletter Monitor
Scan an AgentMail inbox for newsletter signals using configurable keyword campaigns. Designed for monitoring accounting industry newsletters for buying signals like acquisitions, Sage Intacct migrations, staffing challenges, and technology adoption.
Quick Start
# Set your API key export AGENTMAIL_API_KEY="your_key_here" # Scan inbox with all campaigns (summary view) python3 skills/newsletter-monitor/scripts/scan_newsletters.py --output summary # Scan specific campaign, last 7 days python3 skills/newsletter-monitor/scripts/scan_newsletters.py --campaign acquisitions --days 7 --output summary # JSON output for downstream processing python3 skills/newsletter-monitor/scripts/scan_newsletters.py --output json --limit 50
Dependencies
pip3 install agentmail python-dotenv
Configuration
Keyword campaigns are defined in
config/campaigns.json. Each campaign has a description and a list of keywords for case-insensitive substring matching.
Built-in campaigns:
- acquisitions - CPA firm M&A activity
- sage_intacct - Sage Intacct migration and implementation signals
- staffing - Accounting talent and staffing challenges
- technology - Accounting technology adoption
CLI Options
| Flag | Description | Default |
|---|---|---|
| Run only a specific campaign | All campaigns |
| Only scan emails from last N days | No limit |
| Custom keywords (overrides campaigns) | Use campaigns.json |
| Output format | |
| Override inbox address | env or |
| Max messages to fetch | |
Output
JSON mode (default)
Returns an array of matched messages with:
,message_id
,from
,subjectdate
- which campaigns triggeredmatched_campaigns
- specific keywords foundmatched_keywords
- 200-char window around each matchcontext_snippets
- capitalized multi-word phrases near matchescompanies_mentioned
Summary mode
Human-readable report showing matched emails grouped by campaign with snippets and detected companies.
Downstream Skills
When newsletter signals are found, chain to:
- company-contact-finder - look up contacts at mentioned companies
- accounting-news-monitor - combine with direct news monitoring for fuller signal coverage