Tooluck logoTooluck
SKILL.md

blog-publish

Agent skill fromhuytieu/COG-second-brain

Write and publish a post to your own static blog end to end: content checklist (embedded links, optional TL;DR), per-post ASCII art, an agent-readable markdown twin, deploy, and social distribution. Use when you say "write a blog post", "publish this to my blog", or "push this post to socials".

How to install blog-publish

install blog-publish
# install the COG-second-brain pack with the skills CLI
npx skills add huytieu/COG-second-brain

# or add only this skill to Claude Code: copy the folder

skills/blog-publish/

# into

~/.claude/skills/blog-publish/ (all projects)

.claude/skills/blog-publish/ (one project)

skills/blog-publish/SKILL.md

MITFull file
1# blog-publish: static blog post pipeline
2
3## Configuration
4
5Set these once (`kit.toml`, `.env` or arguments).
6
7| Setting | Meaning | Example |
8|---|---|---|
9| `BLOG_DIR` | Repo folder of your static blog | `./my-blog/` |
10| `POSTS_DIR` | Markdown posts, relative to `BLOG_DIR` | `content/posts/` |
11| `BUILD_CMD` | Command that builds the site | `python3 build.py` |
12| `SITE_DIR` | Build output folder | `site/` |
13| `BLOG_URL` | Public base URL | `https://blog.example.com` |
14| `POST_PATH` | URL pattern for a post | `/blog/<slug>/` |
15| `DEPLOY_CMD` | Your deploy command | see Deploy |
16| `SOCIAL_HANDLES` | Accounts used for distribution | per platform |
17
18The 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).
19
20## Content checklist (every post)
21
221. **Front matter** with `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.
232. **TL;DR is optional.** Narrative, build and essay posts open problem-first with no summary box (see Narrative arc). Reserve a TL;DR for reference-style or scannable how-to posts, and then use a one or two sentence hook plus bullets, never one long paragraph.
24…

Excerpt shown under the repository's MIT license.

More skills in COG-second-brain

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates