fanpage-article-writer

Original🇨🇳 Chinese
Translated
1 scriptsChecked / no sensitive code detected

Automated writing workflow for fan page articles. Supports data research, article drafting, viral headline generation, layout optimization, and AI image generation. Use this skill when users mention writing fan page posts, FB posts, social media articles, viral articles, or content creation.

1installs
Added on

NPX Install

npx skill4agent add bingo-taiwan/claude-code-skills fanpage-article-writer

SKILL.md Content (Chinese)

View Translation Comparison →

Fan Page Article Writing Workflow

6 Steps to Create High-Quality Fan Page Articles: Data Research → Article Drafting → Headline Generation → Layout Optimization → Image Generation → Citation of References

Important Guidelines (Must Read)

Terminology规范: Use Traditional Chinese (Taiwan)

Prohibit using Mainland China terms; must use Taiwan terms:
❌ Mainland China Terms✅ Taiwan Terms
Silicon (Si)
视频Video
软件Software
硬件Hardware
信息Information
网络Network
数据Data
优化Optimization
激活Activate
默认Default
交互Interaction
链接Link
博客Blog
用户User
人工智能Artificial Intelligence

Step 1: Data Research

Use the WebSearch tool to search for topic-related data:
Search Requirements:
1. Parallel search across multiple sources (official documents, X/Twitter, Reddit, technical forums)
2. Prioritize obtaining the latest data (current month/quarter)
3. Can initiate multiple parallel Tasks to accelerate search
4. Conduct in-depth summarization of search results

Special Field Search Guidelines

Nutrition, Exercise Science, Health-related Topics:
  1. Prioritize searching PubMed (https://pubmed.ncbi.nlm.nih.gov/)
    • Add
      site:pubmed.ncbi.nlm.nih.gov
      to search keywords
    • Or directly search
      [Topic] PubMed research study
  2. Prioritize systematic reviews or meta-analyses
  3. Pay attention to the publication year of studies; prioritize citing research from the past 5 years
  4. Record the paper title, authors, journal, year, and PMID

Step 2: Article Drafting

Must first read the user's CLAUDE.md to obtain writing style
Drafting Requirements:
  • 1000-1500 words
  • Story-driven opening with emotional tone (excitement/anxiety/curiosity)
  • Prepare 2-3 alternative headlines
  • Structure: Effect Demonstration → Problem Description → Step-by-Step Tutorial → Elevated Summary
  • Follow the writing style and closing remarks defined in CLAUDE.md
  • Use Traditional Chinese (Taiwan) terminology throughout the article

Guidelines for Labeling Strains in Nutrition/Health Articles

For articles involving microorganisms (probiotics, fermented foods), must clearly distinguish:
LevelDefinitionExample
GenusBroad classificationLactobacillus
SpeciesMid-level classificationLactobacillus plantarum
StrainSpecific strain numberL. plantarum KU200656
Important: For every health claim, immediately attach a research link below the corresponding paragraph
markdown
### ⭐ Lactobacillus plantarum KU200656

| Benefit | Data |
|------|------|
| Gastric acid tolerance | **99.48%** |
| Bile salt tolerance | **102.40%** |

> 📚 **Research Support**: Jang HJ et al. (2021). *Food Sci Biotechnol*, 30(1), 97-106.
> https://pmc.ncbi.nlm.nih.gov/articles/PMC7847474/

Step 3: Generate Viral Headlines

Generate 5 viral headlines with the following characteristics:
  • Clear Pain Points: Directly address readers' pain points ("Still manually...")
  • Numbers for Attraction: Specific numbers are more persuasive ("3 minutes", "5 tips")
  • Result-Oriented: Promise specific benefits ("Efficiency surges 10x")
  • Emotional Trigger: Words like "shocking", "pro tip", "secret"
  • Suspense: Spark curiosity

Step 4: Layout Optimization

Optimization Suggestions:
  1. Paragraph Structure: 3-5 lines per paragraph; important data should be in a separate bolded paragraph
  2. Image Placement: Place an accurate cover image below the headline
  3. Code Blocks: Add white space before and after, enable syntax highlighting
  4. Key Quotes: Place in separate paragraphs to enhance memorability

Step 5: AI Image Generation

Use the Gemini API to generate one accurate high-quality image.

Core Principle: One Accurate Image is Better Than Three Mediocre Ones

Do NOT generate multiple images! Focus on one high-quality image that conveys the core vibe of the article.

Prompt Design: Align with Headline Vibe

Before generating the image, first analyze the emotion and keywords of the headline:
Headline KeywordsVibeCorresponding Prompt Elements
Numbers (10 billion, 3 minutes)Shocking, abundant
extreme close-up
,
macro
Reveal, secretDiscovery, curiosity
dramatic lighting
,
revealing
Super powerful, pro tipStrength, professionalism
powerful
,
professional
Daily foodApproachable, appetizing
mouth-watering
,
warm lighting
Health, wellnessVibrant, natural
vibrant
,
natural
,
fresh
News, current eventsSerious, timely
news photography
,
dramatic

Prompt Formula

[Composition/Perspective] + [Subject Description] + [Details/Texture] + [Lighting/Atmosphere] + [Style] + [Quality]
Example: Kimchi Probiotics Article
Headline: "One Bite of Kimchi = 10 Billion Probiotics!"
Vibe Analysis: "One bite" → macro close-up / "10 billion" → lively, abundant / "Probiotics" → fermented, alive
Prompt:
Extreme close-up of glistening Korean kimchi, vibrant red-orange
fermented napa cabbage with visible tiny bubbles from active
fermentation. Dramatic macro food photography with shallow depth
of field, warm golden backlight creating a magical glow.
Mouth-watering, alive, powerful. Editorial magazine cover quality

API Key Management

The script automatically reads valid API Keys from
api_keys.json
and checks expiration dates.
Currently Configured API Keys:
AccountExpiration DatePlan
bingo@napesone.com2026-02-24Free Trial $300 USD
bingo@mynet.com.tw2026-04-08Free Trial $300 USD
Check API Key Status:
bash
python generate_image.py --status

Use the Script to Generate Images

Script Location:
~/.claude/skills/fanpage-article-writer/scripts/generate_image.py
bash
# Basic Usage (one accurate image)
python generate_image.py "prompt" -o "hero.png" --model imagen --aspect 16:9

Available Models

ModelParameterFeaturesCost
Imagen 4
--model imagen
Photo-realistic quality (Recommended)$0.03/image
Gemini 2.5 Flash
--model gemini
Excellent context understandingFree tier available

Aspect Ratio Options

Aspect RatioUsage
16:9
FB cover, YouTube thumbnail (Recommended)
1:1
Instagram post
9:16
Instagram Stories, Reels

Step 6: Citation of References (Required for Nutrition/Exercise/Health Topics)

In-text Citation Format (Attach immediately below each argument)

markdown
The viable bacteria density in kimchi reaches **10⁹-10¹⁰ CFU/g**.

> 📚 **Research Support**: Park KY et al. (2014). *J Med Food*, 17(1), 6-20.
> https://pubmed.ncbi.nlm.nih.gov/24456350/

End-of-Article Reference Overview

markdown
## Reference Overview

1. Park KY et al. (2014). Health benefits of kimchi. *J Med Food*, 17(1), 6-20. https://pubmed.ncbi.nlm.nih.gov/24456350/

2. Jung JY et al. (2011). Metagenomic analysis of kimchi. *Appl Environ Microbiol*, 77(7), 2264-74. https://pubmed.ncbi.nlm.nih.gov/21317261/

Complete Workflow Example

User Request:
Help me write a fan page article about Korean kimchi probiotics
Execution Workflow:
  1. Search PubMed Data
    • Search for kimchi, probiotics, Lactobacillus
    • Record specific strain names (e.g., KU200656, KFRI342)
  2. Draft Article
    • Genus → Species → Benefits → Research Links
    • Attach PubMed links immediately below each benefit claim
  3. Generate 5 Viral Headlines
  4. Analyze Headline Vibe and Generate One Accurate Image
    bash
    python generate_image.py "Extreme close-up of glistening Korean kimchi..." -o "hero.png" --model imagen --aspect 16:9
  5. Attach Reference Overview at the End of the Article

Troubleshooting

API Quota Exhausted (429 Error)

  • The script will automatically switch to the next valid API Key

Image Generation Failed

  • Use English prompts
  • Avoid requesting real human faces or text

Check API Key Status

bash
cd ~/.claude/skills/fanpage-article-writer/scripts
python generate_image.py --status