Skip to content

Submission CLI

Overview

A command-line pipeline for submitting fiction to literary magazines. Point it at a manuscript file and a target publication, and it handles the rest: parsing the text from .txt, .rtf, or .docx, formatting to Shunn standard, generating a tailored cover letter through the Anthropic API, and tracking the submission in a local queue.

Born from the tedium of formatting the same story differently for every magazine. The cover letter generator uses Claude to draft something appropriate to the publication — not a generic template, but a letter that references the author's bio and the magazine's editorial sensibility.

How it works

  • Manuscript parsing: Extracts text, title, and word count from .txt, .rtf, and .docx files via Mammoth
  • Shunn formatting: Generates a properly formatted PDF with contact block, headers, word count, and standard manuscript typography
  • Cover letters: Claude drafts a publication-specific letter from your author profile and the manuscript metadata
  • Queue management: Tracks submissions by status — draft, sent, accepted, rejected — with scan and list commands
  • Author config: Interactive setup stores your legal name, pen name, address, and bio for reuse across submissions

Stack

TypeScript · Anthropic SDK · PDFKit · Mammoth · Node.js

View on GitHub →

← All projects