news-engine: Instructions file for Claude Code

CLAUDE.md

news-engine CLAUDE.md is an instructions file for Claude Code from tellmefrankie/news-engine. It costs 3,538 tokens per session, scanned A, original, MIT.

Project instructions for a Node.js and TypeScript news system that collects global AI and technology news, has Claude analyse it, and sends a daily summary to Telegram. It stores articles and analyses in SQLite, a small database stored in a file.

In plain words
What is it for?
Use it when developing the news collectors, AI analysis, Telegram publishing, SQLite storage, or daily scheduler.
Why use it?
It gives the coding agent the project's architecture, tools, data flow, and scheduled processing rules so changes fit the existing system.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is tellmefrankie/news-engine's own configuration. It tells Claude Code how to work on news-engine itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything news-engine configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tellmefrankie/news-engine. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tellmefrankie/news-engine/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/tellmefrankie/news-engine

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for news-engine CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tellmefrankie/news-engine/claude-md/github.svg)](https://agentmods.dev/instructions/tellmefrankie/news-engine/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/tellmefrankie/news-engine/claude-md"><img src="https://agentmods.dev/badge/instructions/tellmefrankie/news-engine/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for news-engine CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tellmefrankie/news-engine/claude-md"><img src="https://agentmods.dev/badge/instructions/tellmefrankie/news-engine/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,538 This file is loaded in full into every session.
When invoked 3,538 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03538 $0.03538
Opus 5 $0.01769 $0.01769
Sonnet 5 $0.00708 $0.00708
Haiku 4.5 $0.00354 $0.00354

Measured 10d ago against content hash 97f253fdd35c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

news-engine CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 374 lines

How it starts

The opening of the file, as written. The whole thing — 374 lines — stays where its author put it; the contents beside it link to each section on GitHub.

News Engine — AI 테크 뉴스 분석 엔진 Claude Code 작업 지침서

프로젝트 개요

글로벌 AI/테크 뉴스를 자동 수집 → Claude API로 분석(요약, 관련 산업, 호재/악재, 영향 크기, 총평) → 텔레그램 채널로 매일 아침 자동 발송하는 파이프라인. 포트폴리오/실사용 겸용. SQLite에 저장하여 나중에 앱 백엔드로 재활용 가능.

기술 스택

  • 런타임: Node.js + TypeScript (strict)
  • 뉴스 수집: rss-parser (해외 RSS), Naver News Search API (한국 뉴스)
  • AI 분석: Anthropic Claude API (@anthropic-ai/sdk)
  • 텔레그램 발송: grammy
  • 데이터베이스: SQLite (better-sqlite3)
  • 스케줄링: node-cron
  • 환경변수: dotenv
  • 빌드: tsx (실행), tsup (빌드)

아키텍처

[뉴스 소스]          [수집기]          [분석기]         [발송기]

RSS Feeds ────→ Collector ────→ Analyzer ────→ Publisher
Naver API ──┘    (수집+중복제거)   (Claude API)    (Telegram)
                      │                │              │
                      └────── SQLite DB ──────────────┘
                              (articles, analyses)

                    [스케줄러]
                    node-cron
                    매일 06:00 KST

데이터 흐름

  1. Collector: RSS + Naver API에서 뉴스 50~100건 수집 → 중복 제거 → DB에 raw articles 저장
  2. Analyzer: Claude API로 중요도 필터링(상위 5건 선정) → 각 뉴스 분석(요약/태그/호악재/영향도/총평) → DB에 분석 결과 저장
  3. Publisher: 분석된 5건을 텔레그램 카드 포맷으로 발송
  4. Scheduler: 매일 아침 6시(KST) 자동 실행 (Collector → Analyzer → Publisher)

뉴스 소스

한국 뉴스

소스 수집 방법 비고
네이버 뉴스 Naver Search API (news) 키워드: "AI", "인공지능", "테크", "IT"
전자신문 IT RSS feed etnews.com
매일경제 RSS feed mk.co.kr IT 섹션

해외 뉴스

소스 수집 방법 RSS URL
TechCrunch RSS https://techcrunch.com/feed/
The Verge RSS https://www.theverge.com/rss/index.xml
Ars Technica RSS https://feeds.arstechnica.com/arstechnica/index
Hacker News API/RSS https://hnrss.org/frontpage

폴더 구조

news-engine/
├── src/
│   ├── index.ts              # 메인 엔트리 (스케줄러 시작)
│   ├── pipeline.ts           # 파이프라인 오케스트레이터 (collect → analyze → publish)
│   ├── collector/
│   │   ├── index.ts          # 수집기 통합 (RSS + Naver 합치기, 중복 제거)
│   │   ├── rss.ts            # RSS 피드 수집 (rss-parser)
│   │   └── naver.ts          # 네이버 뉴스 API 수집
│   ├── analyzer/
│   │   ├── index.ts          # 분석기 메인 (필터링 + 분석)
│   │   ├── filter.ts         # Claude로 중요도 필터링 (50건 → 5건)
│   │   └── analyze.ts        # Claude로 개별 뉴스 상세 분석
│   ├── publisher/
│   │   ├── index.ts          # 발송기 메인
│   │   └── telegram.ts       # 텔레그램 카드 포맷 발송 (grammy)
│   ├── db/
│   │   ├── index.ts          # SQLite 초기화 + 쿼리 함수
│   │   └── schema.ts         # 테이블 스키마 정의
│   ├── config/
│   │   ├── sources.ts        # RSS 소스 목록
│   │   └── prompts.ts        # Claude API 프롬프트 템플릿
│   └── types/
│       └── index.ts          # 공통 타입 정의
├── data/
│   └── news.db               # SQLite 데이터베이스 파일 (gitignore)
├── .env.example              # 환경변수 예시
├── .env                      # 환경변수 (gitignore)
├── .gitignore
├── package.json
├── tsconfig.json
├── CLAUDE.md
└── README.md

Read the full file on GitHub · 374 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 374 lines · 3,538 tokens per session scan A 97f253fdd35c

Subscribe to this mod's changes

news-engine CLAUDE.md is an instructions file published in the GitHub repository tellmefrankie/news-engine (1 stars, last pushed 3mo ago), licensed MIT. It adds 3,538 tokens to every session, about $0.0177 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens