/john-skills:medium-to-substackfrom john-skills
Downloads a user's own Medium post (text plus images) and reformats it into an HTML page with a Copy body button for pasting into Substack, plus a Markdown backup and image files.
Ships in john-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turns one of the user's own Medium posts into:
post-for-substack.html: a page to open in Chrome. It shows the Substack title and subtitle, and has a Copy body button that copies the formatted body (headings, bold and italic text, links, lists, code, images, captions) for pasting into the Substack editor.post.md: a plain Markdown backup that points to local images. It isn't for pasting, because Substack doesn't convert pasted Markdown.images/01.jpeg, 02.png, and so on: every image in the order it appears, for manual upload if Substack doesn't import one.Only use this skill on posts the user wrote. If you don't know the user's Medium name or handle, ask for it, unless the post URL is under their own @handle and they've said it's theirs. After extracting, compare the returned author with that name. If the post is by anyone else, stop and tell the user that this skill only cross-posts their own work. Don't build output for another writer's post.
Pick an output folder. Use <cwd>/substack/ unless the user names another location. If that folder already has files in it, use substack-<post-slug>/ instead of overwriting them.
Open the post in Chrome. Medium returns a Cloudflare 403 to curl, and posts that aren't in the user's RSS feed (https://medium.com/feed/@<handle>) can't be fetched that way either, so go straight to the browser. Load the claude-in-chrome tools in one ToolSearch call: tabs_context_mcp, navigate, javascript_tool, tabs_close_mcp. Then navigate a new tab to the post URL. Drop tracking params such as ?sharedUserId= from the URL.
Extract the post. Read scripts/extract.js and run its contents with javascript_tool in that tab. The script saves ~/Downloads/medium-<postid>.json and returns {file, author, title, blocks, images}.
author now.javascript_tool. The tool's output filter blocks it, because it contains URLs with query strings. That's why the script saves a file instead.blocks is very small, the page may be behind a paywall or still loading. Wait a moment and run the script again.Build the output. Run:
python3 -I <skill-dir>/scripts/build.py ~/Downloads/medium-<postid>.json <outdir>
The script:
It prints {title, subtitle, images, outdir}.
Proofread. Read post.md, then list for the user anything that needs a look:
medium.com/u/... profile mentions, which mean less on SubstackDon't change the wording on your own. List the issues and fix them only after the user agrees. Apply each fix to both post-for-substack.html and post.md.
Open and hand off. Open the page with open -a "Google Chrome" <outdir>/post-for-substack.html, close the Medium tab, and tell the user:
images/.post.md is only a backup and isn't meant for pasting~/Downloads/medium-<postid>.jsonmiro.medium.com in the HTML so the paste brings them along. The local copies are the fallback.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jbdamask/john-claude-skills --plugin john-skills32 skills in this plugin
/architecture-decision-recordsWrite and maintain Architecture Decision Records (ADRs) that capture the context and rationale behind significant technical decisions. Use when documenting an architectural or technology choice, recording a design trade-off, superseding a past decision, or setting up an ADR process. Also use proactively to offer an ADR when a significant decision is made during a coding session (database, framework, auth scheme, API style, integration pattern). Triggers on "write an ADR", "document this decision", "record this architecture choice", "add a decision record", "supersede ADR"./aws-learningsProactively catch common AWS infrastructure mistakes before they happen. Use when creating or modifying AWS components — CloudFormation, CDK, Lambda, API Gateway, IAM, S3, CloudFront, EC2, EventBridge, SQS, Secrets Manager, or SSM — to find and apply hard-won deployment lessons and avoid known pitfalls. Read-only: fetches lessons, does not add them./aws-learnings-addContribute a new lesson to the AWS Learnings library (the llms.txt-format library at github.com/jbdamask/aws-learnings-library). Use this whenever you've just debugged, fixed, or discovered a non-obvious AWS gotcha — CloudFormation, CDK, Lambda, API Gateway, IAM, S3, CloudFront, EC2, EventBridge, SQS, Secrets Manager, SSM — and want to capture it for next time. Triggers on phrases like 'add an AWS learning', 'save this AWS lesson', 'capture this gotcha', 'add this to the learnings library', or after solving a tricky AWS deployment problem worth remembering. This skill WRITES files (a new lesson file + an updated index) and prepares a pull request; it is the write companion to the read-only 'aws-learnings' skill./aws-quick-endpointCreate a token-secured REST API endpoint backed by AWS Lambda and DynamoDB with full CRUD and paginated list support. Deploys via CloudFormation. Use when user wants to quickly spin up an API endpoint, create a simple REST API on AWS, build a quick data store with an API, set up a Lambda+DynamoDB endpoint, or needs a fast way to log and retrieve structured data. Triggers on "create an endpoint", "quick API", "Lambda endpoint", "DynamoDB API", "CRUD endpoint", "log data to AWS"./build-my-voiceAnalyzes samples of the user's writing and creates or updates a structured `voice-profile.yaml` describing their writing voice as weighted, evidence-backed features, then asks the author a short round of questions to confirm the inferences the samples cannot settle on their own. Use when the user wants to capture, build, learn, profile, or update their writing voice or style from writing samples — "build my voice profile", "analyze my writing style", "learn how I write", "create a voice profile from these posts", "update my voice profile with this new sample". This skill only ANALYZES writing and produces the profile; it never drafts new content in the user's voice — use the my-voice skill for that./bullshit-testsAudit a codebase's test suite for tests that pass for no good reason — no assertions, tautologies, assertions on mocks only, swallowed exceptions, unawaited async assertions, permanently skipped tests, and other patterns that stay green no matter how broken the code is. Produces a red/yellow/green report. Use when the user says "bullshit tests", "find fake tests", "audit my test suite", "which tests are useless", "are these tests actually testing anything", "check test quality", "find tests that always pass", or asks whether green CI means anything.Other plugins' skills for the same job