Skip to content
Back to skills

Blog Publishing

ASecurity

Handles the end-to-end workflow for publishing blog posts on THE LOST+UNFOUNDS. Use this when creating new posts or updating existing ones via SQL scripts.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
testingsqlapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill blog-publishing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Blog Publishing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Blog Publishing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-blog-publishing/badge)](https://www.skillsdirectory.com/skills/david-li0406-blog-publishing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: blog-publishing
description: Handles the end-to-end workflow for publishing blog posts on THE LOST+UNFOUNDS. Use this when creating new posts or updating existing ones via SQL scripts.
---

# Blog Publishing & Styling Skill

This skill ensures that every blog post is published correctly and adheres to the strict "Noir" aesthetic and styling rules.

## Part 1: The 6-Step Publishing Workflow

1. **Create SQL File**: Create `sql/create-blog-post-[slug].sql` and `public/sql/create-blog-post-[slug].sql`.
    - **Pattern**: Must use `DECLARE existing_post_id UUID;` and a check-and-insert/update block.
    - **Critical**: Never use `ON CONFLICT (slug)`.
2. **Update SQL.tsx**: Add fetch code and register in the `allScripts` array in `src/pages/SQL.tsx`.
3. **Update API Endpoint**: Add the new SQL file path to `SQL_FILES` in `api/sql/latest.ts`.
4. **Commit Changes**: Stage and commit with a descriptive message.
5. **Merge to Production**: Checkout `main`, pull, merge the branch, and push.
6. **Verify Deployment**:
    - URL: `https://www.thelostandunfounds.com/sql/create-blog-post-[slug].sql`
    - Page: `https://www.thelostandunfounds.com/sql`

## Part 2: Content Styling & Formatting

### 1. Text Alignment (Critical)
- **NEVER** use `text-center` or `text-justify` for body content.
- **ALWAYS** use `text-left`. Applies to paragraphs, analysis components, and headers.

### 2. Book Title Formatting
- **Bolding**: All book titles must be **bold**.
- **Case Preservation**: Titles must preserve the author's original case.
- **Linking**: Max 2 links per book. Linked titles must be **underlined**.

### 3. Disclosure & Special Characters
- **Disclosure**: Author names must be **UPPERCASE BOLD**. Disclosure text can be justified.
- **Remove "⸻"**: Do not use the long dash character. Use proper paragraph spacing.

## SQL Template Pattern
```sql
DO $$
DECLARE
    existing_post_id UUID;
BEGIN
    SELECT id INTO existing_post_id FROM blog_posts WHERE slug = '[slug]' LIMIT 1;
    IF existing_post_id IS NOT NULL THEN
        UPDATE blog_posts SET ... WHERE id = existing_post_id;
    ELSE
        INSERT INTO blog_posts (...) VALUES (...);
    END IF;
END $$;
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…