/cog-second-brain:blog-publishfrom cog-second-brain
Writes and publishes a static blog post end-to-end: content checklist, ASCII art, agent-readable markdown twin, deploy, and social distribution. Triggered by 'write a blog post' or 'publish this to my blog'.
Ships in cog-second-brain. 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.
None: SKILL.md is the whole skill.
Set these once (in a .env file or as arguments).
| Setting | Meaning | Example |
|---|---|---|
BLOG_DIR | Repo folder of your static blog | ./my-blog/ |
POSTS_DIR | Markdown posts, relative to BLOG_DIR | content/posts/ |
BUILD_CMD | Command that builds the site | python3 build.py |
SITE_DIR | Build output folder | site/ |
BLOG_URL | Public base URL | https://blog.example.com |
POST_PATH | URL pattern for a post | /blog/<slug>/ |
DEPLOY_CMD | Your deploy command | see Deploy |
SOCIAL_HANDLES | Accounts used for distribution | per platform |
The steps below assume a build script that renders POSTS_DIR/<slug>.md into SITE_DIR. Adjust names to your generator (Hugo, Eleventy, Astro, a custom script).
title, subtitle, slug, date, description, tags, author, published. Match existing posts. If the subtitle renders under the H1, keep it to one sentence stating what the post is about./blog/<slug>/).editorial-illustrations skill generates meaning-carrying figures. Keep ASCII for header art (see below).no-ai-slop skill and self-check against its eval. Keep a contrast or colon setup only when it is a real reframe. Preserve your voice and make the smallest effective edit.Document what happened instead of writing a prescriptive summary:
Voice: first person, conversational but technically dense, understated. Short declaratives mixed with longer explanations. Headings are short and descriptive. Length follows the material.
Each post gets an entry in an ASCII-frames table in your build script, keyed by slug: a list of 2 to 5 frames that loop (a cursor typing, a rocket lifting, a gear turning). Pad frames to a common size automatically so they need no hand alignment. Use pure ASCII, no Unicode box drawing.
Render it two ways from the one source:
<pre class="post-ascii" data-frames="..."> element cycles frames with a small inline script (about 420 ms per frame) and shows a static first frame under prefers-reduced-motion.og:image:type to image/gif.A playful frame set beats a corporate one. Never ship the generic fallback; add bespoke frames.
Have the build generate a clean markdown twin at /blog/<slug>/index.md and list every post in /llms.txt. After building, confirm both include the new post:
grep -i "<title fragment>" $SITE_DIR/llms.txt && head -5 "$SITE_DIR/blog/<slug>/index.md"
cd $BLOG_DIR && $BUILD_CMD
Deploy with your own command (DEPLOY_CMD). Examples, pick the one that matches your host:
railway up --detachnetlify deploy --prod --dir=$SITE_DIRvercel deploy --prodwrangler pages deploy $SITE_DIRSITE_DIR or push the source and let CI build.Post-condition: fetch the live page and confirm the new post is there before reporting success:
curl -s $BLOG_URL/blog/<slug>/ | grep '<title>'. Builds can take a few minutes.
Voice follows your publish-social command if you have one. The social-media-kit skill covers asset recipes and upload mechanics, and youtube-video-kit covers video.
Media is mandatory on every platform post. Build the asset kit (teaser video cut, padded-card hero image, terminal GIF) and attach per platform before posting. On X, the thread root gets the strongest asset, and the canonical URL moves to the final reply so the link card still renders.
Durable articles beat feed posts. For substantive posts, publish an article on the platform (X Articles, LinkedIn "Write article") with the full body and the canonical blog link as the source. A short thread or feed post is fine as a pointer to it.
@mention opens an autocomplete that can swallow the submit click (press Escape first), and a link preview card can push the Reply button below the fold (scroll it into view before clicking). Screenshot every step and re-check the profile to confirm the final tweet posted.Include the canonical URL in every platform's content and screenshot each post after submitting to verify it.
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid input, repository: Invalid input: expected string, received object
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
49 skills in this plugin
/auto-researchDeep strategic research engine — decomposes questions into parallel research threads, spawns multiple agents, and synthesizes into actionable strategic analysis/best-of-nSelector stage before a verification gate - generate N candidates in parallel, pick the best with a pivot tournament of pairwise judgements, then gate the winner. For high-variance, non-mutating deliverables only/braindumpQuick capture of raw thoughts with intelligent domain classification and competitive intelligence extraction/closed-loopRun one task through the V-model verification loop: CP-2 plan → CP-3 build → CP-3v component verify → CP-4 integration verify (full lane) → CP-5 acceptance. The worker never grades its own homework; evidence rows trace back to AC-n. Opt-in: invoke with /closed-loop or by asking for the closed loop, proper verification, or an evidence trail. Ordinary work does not run this.
/comprehensive-analysisDeep-dive 7-day analysis across all data sources for weekly reviews, board prep, and strategic planning/content-factoryAutonomous content pipeline - scout announcements in your field, triage by trend momentum and personal angle, produce posts/blogs/videos in your voice with ledger-based dedup, hard volume caps, and screenshot-verified publishingOther plugins' skills for the same job