80-line Python script uses Claude to auto-generate internal link suggestions, cuts linking time from 2 hours to 8 minutes

A Reddit user on r/ClaudeAI shared a practical 80-line Python script that automates internal link suggestions for articles. The author was manually reading through old posts, copy-pasting anchors — a process taking about 2 hours per piece. After getting fed up, they spent an afternoon writing a script that feeds Claude an article draft plus a sitemap dump, and the model returns a list of relevant internal link targets with suggested anchor text.
The core workflow is simple: the script takes the current article draft and a sitemap (likely a list of site URLs and titles), sends both to Claude via API, and asks for link suggestions. The author notes that the anchor text Claude generates is often better than what they wrote manually — catching semantic relationships they'd miss when in 'just get this done' mode.
Key details from the post:
- Script is not a SaaS or product — just a local utility (~80 lines of Python).
- Reduces linking time from 2 hours to 8 minutes per article (93% reduction).
- The author offers to share the core prompt logic on request.
- Claude's anchor text picks up semantic relationships that manual linking misses.
This script targets content creators, SEO-focused writers, or anyone managing a site with many articles where internal linking is manual and time-consuming. It's a lightweight automation using Claude's understanding of content relationships.
📖 Read the full source: r/ClaudeAI
👀 See Also

Agent frameworks waste 350,000+ tokens per session resending static files
A benchmark on a local Qwen 3.5 122B setup revealed agent frameworks waste over 350,000 tokens per session by resending static files. A compile-time approach reduced query context from 1,373 tokens to 73, achieving a 95% reduction.

Ktx: An Executable Context Layer to Fix Data Agent Accuracy
Ktx is an open-source executable context layer that makes agents reliable on your data stack by combining Markdown wiki ingestion with YAML semantic definitions.

Persistent Indexes Over Extraction: Architecture for a YouTube MCP Server
A developer shares architecture notes for building a YouTube MCP server that uses persistent local indexes instead of the common extract-and-forget pattern. Key decisions include a three-tier fallback system, SQLite + sqlite-vec for vector storage, embedding provider abstraction, and a separate visual search index.

Career-Ops Fork Adds LinkedIn Job Discovery Using Apify
A developer forked the career-ops Claude Code system and added LinkedIn job discovery using Apify, addressing the main limitation of the original project which only scanned pre-configured company career pages.