This skill writes newsletter articles for The Hybrid Builder with cross-referenced archive insights, automated references, and publication-ready formatting.
npx playbooks add skill vishalsachdev/claude-skills --skill write-article
Write a newsletter article about our collaboration for https://chatwithgpt.substack.com/s/the-hybrid-builder
Run both of these before writing a word. They are cheap, and skipping them is how you produce a duplicate of something already published.
--search "<working title>", after confirming the cache is fresh. --list prints Last updated; if it is more than a few weeks old, run --full first. A stale cache silently answers "no such article" for everything published since it was built — it does not warn you.ls <repo>/articles/ in the repo the article narrates. The Substack cache only knows what is published. An in-progress draft, a companion piece, or a planned part 2 exists only on disk — and its README.md, if present, is the authority on how the material was already split.If a draft exists, the job is almost never "write it again" — it is to revise that file, or to write the pending companion piece. Confirm which with the user before drafting.
> 2026-08-08: skipping both produced a complete duplicate of a piece published the previous day, merged with its unpublished sequel. The narrated repo's articles/ directory was open in the same session for git-stats collection and was never listed; the cache was four months stale.
Always check the article archive first. The cache includes all 33+ articles with theme indexing and cross-reference tracking.
Note: The cache script requires Homebrew Python (/opt/homebrew/bin/python3) due to SSL certificate issues with the system Python. The shebang is set correctly, but if you call it with python3 explicitly, use /opt/homebrew/bin/python3. If the cache is stale (check Last updated in output), run --full to force refresh.
# Update cache from sitemap (full archive)
python3 ~/.claude/skills/write-article/scripts/update-cache.py
# Get reference suggestions for your topic
python3 ~/.claude/skills/write-article/scripts/update-cache.py --suggest "your topic here"
# List all cached articles
python3 ~/.claude/skills/write-article/scripts/update-cache.py --list
# Browse by theme
python3 ~/.claude/skills/write-article/scripts/update-cache.py --themes
# Find articles related to a specific article
python3 ~/.claude/skills/write-article/scripts/update-cache.py --related "article-slug"
# Search by keyword
python3 ~/.claude/skills/write-article/scripts/update-cache.py --search "compound engineering"
--suggest "topic" to get ranked candidates with phrasing suggestionsThe default writing mode is "draft, then iterate" — assemble a complete article, surface it, the user reviews and you revise. This works for short-to-medium articles where the user's role is editorial.
Switch to co-construction mode when:
Co-construction mechanics:
Counter-indicators — do NOT use co-construction for:
Co-construction is slower (typically 2–4 hours for a 3,000-word piece vs. 30 minutes for a delivered draft) but produces an artifact the user can defend in their own words because they actually built it.
Avoid mechanical patterns. See [references/reference-patterns.md](references/reference-patterns.md) for natural styles.
Quick reference:
| Style | Example |
|-------|---------|
| Callback | "The compound engineering loop kept surfacing..." (no link needed) |
| Context-first | "When I built X, I discovered... [that journey](url) taught me..." |
| Aside | "This approach (which I've been [systematizing](url))..." |
| Thematic echo | Name the concept, link becomes supplementary |
Themes to watch for: compound-engineering, skills, mcp, teaching, ai-collaboration, context-engineering, automation, research, microsim
All named entities in articles must be hyperlinked on first mention. This includes:
| Entity Type | Link To | Example |
|-------------|---------|---------|
| Research papers | DOI, NBER, or arXiv URL | [Brynjolfsson et al.](https://www.nber.org/papers/w31161) |
| Researchers/authors | Personal site or Wikipedia | [Leon Furze](https://leonfurze.com/) |
| Institutions | Official website | [IMSA](https://www.imsa.edu/) |
| Tools/products | Product homepage | [Google AI Studio](https://aistudio.google.com/) |
| Pedagogical frameworks | Wikipedia or canonical source | [Bloom's taxonomy](https://en.wikipedia.org/wiki/Bloom%27s_taxonomy) |
| Shared artifacts | Direct URL (Google Doc, deployed app, etc.) | [Gallery Walk doc](https://docs.google.com/...) |
| Hybrid Builder articles | Substack URL (from cache) | [exploring in my classroom](https://chatwithgpt.substack.com/p/beyond-chatgpt...) |
Link source priority (use the highest available):
| Priority | Source | When to use | Example |
|----------|--------|-------------|---------|
| 1 | DOI / publisher URL | Papers, journal articles | https://doi.org/10.3102/00346543068003249 |
| 2 | Author's own site | Researchers, practitioners, blog posts | https://leonfurze.com/ |
| 3 | Official project/org site | Tools, institutions, frameworks with a canonical home | https://aistudio.google.com/ |
| 4 | Google Scholar profile | Researchers without personal sites | https://scholar.google.com/citations?user=... |
| 5 | Semantic Scholar or SSRN | Papers without DOI | https://www.semanticscholar.org/paper/... |
| 6 | Wikipedia | ONLY for widely-known concepts where no better canonical source exists (e.g., Bloom's taxonomy) | Last resort |
Wikipedia is a last resort, not a default. Before linking to Wikipedia, check: does the author have a personal site? Is there a DOI? Is there a canonical source document? If yes to any, use that instead. For example, link Wiggins' authentic assessment to his published work or authenticeducation.org, not to a Wikipedia summary.
When unsure, use WebSearch to find the canonical URL for a researcher or framework before falling back to Wikipedia.
Other rules:
Constructionism_(learning_theory) not just Constructionism)When the article describes a real run, derive every number from the artifact, not from recall. An article about a build/run/experiment lives or dies on its numbers, and session memory is exactly the wrong source — it rounds, it conflates phases, and it sounds equally confident either way. Pull timings from commit timestamps (git log --pretty=format:'%h|%ad|%s' --date=format:'%Y-%m-%d %H:%M:%S' <base>..HEAD), volumes from --shortstat, and word counts from wc -w on the actual outputs. State the commit range in the article's footer so a reader can re-derive them.
Two corollaries, both learned the hard way (2026-08-05, "Conducting the Conductors"):
[Vishal to confirm], never an estimate. Approval counts, per-agent context consumption, and anything that lived only in a terminal session are gone. A plausible-looking invented number is the one defect a reader can catch and you can't./articles/chat-sessions/ for exported session data if availableaichat search "topic" to find related past sessions if relevant--suggest for intelligent reference recommendationsAfter writing the article and before generating cover images or publishing, verify every link in the markdown file. Links generated from memory or training data are often stale or wrong.
Steps:
.md fileWebFetch with a simple prompt like "Return the page title or confirm this URL loads" — this catches 404s, redirects to error pages, and domain changesdoi.org/...), verify the DOI resolves (DOIs are stable but typos happen)Common failure modes:
substack.com/@handle) — these change if the author renamesIf a link fails, search for the correct URL before asking the user. Fix silently when the correct URL is obvious (e.g., redirect to new domain).
After link verification and before cover images, dispatch an editorial review subagent using the Agent tool (subagent_type: "feature-dev:code-reviewer" or general-purpose). The subagent reviews the .md file and returns findings at three severity levels:
P0 (fix before publishing):
P1 (fix if quick, otherwise flag to user):
--suggest)P2 (note for user, don't block publishing):
Subagent prompt template:
You are an editorial reviewer for a newsletter called The Hybrid Builder. Review this article for publication readiness.
The article is at: {article_path}
Check for:
1. STRUCTURE: Does every section earn its place? Is the narrative arc clear?
2. EVIDENCE: Are claims supported? Are attributions present for ideas from others?
3. TONE: Conversational technical narrative. First-person. Not academic, not clickbait.
4. HOOKS: Does the opening grab? Does the closing land?
5. LINKS: Are all entity links present on first mention? (researchers, tools, frameworks)
6. LENGTH: Is any section >25% of total word count? If so, does it deserve that weight?
7. CROSS-REFS: Could this article reference prior Hybrid Builder articles for continuity?
Return findings as P0/P1/P2 with specific line references and suggested fixes.
After review: Fix all P0s. Fix P1s if straightforward. Show P2s to the user. Regenerate the .html after any fixes.
articles/ subfolder of the repo the article narrates (create if needed) — e.g. a piece about a run in ~/research/orchestration goes in ~/research/orchestration/articles/. This keeps the draft version-controlled alongside the work it describes, and is the convention across ~35 repos. ~/code/articles/ is not a central archive; it is merely the articles/ folder of the ~/code root, and is near-dead.YYYY-MM-DD-descriptive-slugTwo types of cover images, generated differently:
Generate via OpenAI image API (gpt-image-1, size 1536x1024, quality high). Then crop/resize to platform dimensions.
| Platform | Dimensions | Filename |
|----------|------------|----------|
| LinkedIn | 1200×628 | YYYY-MM-DD-linkedin-1200x628.png |
| Twitter | 1200×675 | YYYY-MM-DD-twitter-1200x675.png |
Style: RSA Animate sketch. Prompt guidelines:
Generate 3-4 concept variations with different visual metaphors. Let user pick, then crop to platform sizes.
Generate via Python/PIL — purpose-built for the extreme 1100×220 aspect ratio. Do NOT crop from the sketch image.
| Platform | Dimensions | Filename |
|----------|------------|----------|
| Substack | 1100×220 | YYYY-MM-DD-substack-1100x220.png |
Design system:
/System/Library/Fonts/Georgia.ttf, /System/Library/Fonts/Helvetica.ttcStore all images in articles/cover-explorations/ during generation. Copy final picks to articles/ with standard filenames.
After cover images are generated, ask: "Would you like an RSA Animate-style teaser video for this article?"
If yes, invoke /rsa-animate-video with the article path. That skill handles the full pipeline: storyboarding, frame generation, narration, Remotion composition, and rendering platform variants (16:9 + 1:1).
After writing, ask: "Would you like me to publish this session as a shareable transcript?"
If yes:
First, find the current session file (most recent .jsonl for this project):
# Find the current session file
ls -t ~/.claude/projects/-Users-*-$(basename $(pwd))/*.jsonl 2>/dev/null | head -1
Then export using the json command (works non-interactively, unlike local):
# Use 'json' command with direct file path - works from Claude Code
uvx claude-code-transcripts json <SESSION_FILE.jsonl> --gist 2>&1 | tee /tmp/transcript-output.txt
Add to article:
## Session Transcript
This article was written during a live collaboration session.
[View the full conversation](GIST_URL) to see how we built this together.
After the article is written and reviewed, use the platform-specific publishing skills to automate distribution:
| Skill | Platform | Key Details |
|-------|----------|-------------|
| /publish-to-substack | Substack | ProseMirror editor, execCommand for title, heading merge fix, section dropdown |
| /publish-to-linkedin | LinkedIn | ProseMirror editor, H2→H3 conversion, no X embed auto-render |
| /publish-to-twitter | Twitter/X | DraftJS editor, 100-char title limit, ~1000-word condensed version, companion thread |
All three skills use the same universal paste pattern (ClipboardEvent with text/html) to inject formatted content. Pre-convert all <table> HTML to <ul> before pasting — tables are stripped on every platform.
Typical publishing flow after article is ready:
/publish-to-substack — full article with title, subtitle, and section/publish-to-linkedin — full article (H2 auto-converts to H3, X URLs become <a href> links)/publish-to-twitter — condensed version (~1000 words) + promotional thread--suggest "topic" for the current topicWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.