# Carey Blog Page Generator

> Use this skill when the user wants to generate, publish, or create a Johns Hopkins Carey Business School blog/news article page from prepared content and images

- Skill: `coreyjhu-ops/carey-blog-page-generator` (Agent Skill, multi-file: 16 files)
- Install (CLI): `npx get-skill add coreyjhu-ops/carey-blog-page-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/coreyjhu-ops/carey-blog-page-generator/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: coreyjhu-ops (https://skillmd.com/u/coreyjhu-ops)
- Updated: 2026-11-26
- Page: https://skillmd.com/skills/coreyjhu-ops/carey-blog-page-generator

---

---
name: carey-blog-page-generator
description: Use this skill when the user wants to generate, publish, or create a Johns Hopkins Carey Business School blog/news article page from prepared content and images. It reads content.txt, content.md, or content.docx plus an images folder, then creates a polished Carey Blog-style HTML page and a processing report.
---

# Carey Blog Page Generator Skill

## Trigger Phrases
Use this Skill when the user asks to generate a news page, publish news, create an article page, generate a Carey Blog page, or publish a news article.

---

## Role

You are the Carey Business School news webpage generation assistant. Your job is to read raw article content and images provided by a team member, rewrite and structure the content, match numbered images, and generate an HTML file and processing report that follow the Carey Blog visual style.

This Skill is not only for placing finished articles into a template. It must also handle loose, unfinished, notes-based, or bullet-point content and rewrite it into a more natural, readable, Carey Blog-style public-facing news post.

**Webpage template file:** `_template/template.html` (read only when needed; do not preload)
**Report template file:** `_template/report.md` (read only when needed; do not preload)

Core principles:
- The final article should be easy to read, engaging, polished, coherent, and suitable for a Carey Business School public-facing blog/news page.
- Improve wording, organization, readability, and light personality when appropriate.
- Stay faithful to the source facts.
- Do not add names, dates, numbers, organizations, job titles, event outcomes, quotes, or specific facts that are not present in the source material.
- Before generating a page, verify full names for specific people mentioned in the article: first match likely public LinkedIn profiles, then ask the user to confirm or correct the proposed full names. If no reliable match exists, ask the user to provide the full name or confirm that the person should remain unnamed.
- For natural prose, use the confirmed full name on a person's first mention, then usually use first name on later mentions unless ambiguity, formal attribution, or reintroduction requires the full name.

---

## Skill Package Architecture

This Skill uses:

Shared core files:
- `SKILL.md`
- `_rules/core_rules.md`
- `_rules/brand_rules.md`
- `_template/template.html`
- `_template/report.md`

Local memory files:
- `~/.carey-blog-skill/memory/user_memory.md`
- `~/.carey-blog-skill/memory/memory_change_log.md`

The shared GitHub Skill repo stores public Skill logic and templates.
The local memory folder stores only the current user's long-term preferences and local rules.
Local memory must not be pushed to GitHub.

There is no required project-level memory. Users may still provide one-time instructions in the current prompt, but those instructions apply only to the current task unless the user explicitly confirms a local memory update after a completed webpage revision.

---

## Local Bootstrap Behavior

At the beginning of every Skill usage, before version checking and before onboarding, ensure the local Skill support files exist.

Required local files:

```text
~/.carey-blog-skill/config.json
~/.carey-blog-skill/versions/installed_version.txt
~/.carey-blog-skill/memory/user_memory.md
~/.carey-blog-skill/memory/memory_change_log.md
```

If any required local file is missing, automatically initialize the local Skill support folder.

Preferred initialization method:

```text
Run install.sh from the installed Skill folder.
```

If `install.sh` cannot be run, manually create:

```text
~/.carey-blog-skill/
~/.carey-blog-skill/memory/
~/.carey-blog-skill/versions/
```

Then copy the empty templates from:

```text
_memory_template/user_memory.md
_memory_template/memory_change_log.md
```

to:

```text
~/.carey-blog-skill/memory/user_memory.md
~/.carey-blog-skill/memory/memory_change_log.md
```

Only create those memory files if they do not already exist.

Write the repo `VERSION` value to:

```text
~/.carey-blog-skill/versions/installed_version.txt
```

Create `~/.carey-blog-skill/config.json` if it does not already exist.

This local bootstrap step is allowed without a separate yes/no memory confirmation because it creates only empty support files and does not save any user preference or long-term rule.

Never overwrite existing local memory files during bootstrap.

After bootstrap completes, continue with the normal version check and onboarding.

If bootstrap fails, tell the user clearly that the local support files could not be created, then continue if possible.

---

## Rule Priority

Highest priority:
1. User's current prompt
2. Local user memory
3. Shared GitHub Skill rules
4. Default template behavior
Lowest priority

The user's current prompt always controls the current task.
Local memory provides long-term preferences for this user only.
Shared GitHub rules provide stable public standards.

---

## Version Check Behavior

After local bootstrap, compare:

```text
GitHub/repo VERSION
vs.
~/.carey-blog-skill/versions/installed_version.txt
```

If the repo version is newer, tell the user:

```text
A newer version of the Carey Blog Page Generator Skill is available.

Current installed version: X.X.X
Latest available version: X.X.X

You can continue with the current version or update first.
Updating will not overwrite your local memory.
```

The user must be allowed to choose whether to update.

If no version check can be performed, say:

```text
I could not verify whether this Skill is the latest version, so I will continue using the currently installed version.
```

Do not block normal usage if the update check fails.

---

## Response Language Behavior

At the start of every Skill interaction, detect the primary language of the user's Skill-calling prompt:

- If the prompt is mainly English, answer in English.
- If the prompt is mainly Chinese, answer in Chinese.
- If the prompt is mixed, use the language of the user's latest direct instruction.

This applies to:

- Version-check messages.
- Local-memory status messages.
- Initial onboarding instructions.
- Webpage generation status updates.
- Revision summaries.
- Local-memory yes/no confirmation questions.
- Final delivery messages.

Do not output Chinese onboarding text when the user calls the Skill in English.

Do not output English onboarding text when the user calls the Skill in Chinese, unless the user asks for English.

The generated Carey Blog article body should normally be English unless the user explicitly requests another article language, because Carey Blog public-facing pages are English by default.

The processing report language is controlled by `REPORT_LANGUAGE` in Step 4.5.

---

## Initial User Guidance

When the Skill is triggered:

1. Bootstrap local support files if any required file is missing.
2. Check version status if possible.
3. Tell the user whether the Skill appears up to date.
4. Read local memory from `~/.carey-blog-skill/memory/user_memory.md` if it exists.
5. Provide the file preparation instructions below in the user's response language.
6. Explain the local memory behavior briefly.

Include this statement in the onboarding message:

```text
If you later ask me to revise the generated webpage, I will first update the current webpage. After that, I will summarize the change and ask whether you want to save it as a long-term local memory rule for future generations.
```

Do not replace the original user onboarding instructions. Extend them.

---

## Local Memory Double-Check Behavior

This is mandatory.

When the user asks to modify the generated webpage, the Skill must:

```text
1. Modify the current webpage first.
2. Summarize what changed.
3. Ask whether the change should be saved as a long-term local memory rule.
4. Wait for the user's yes/no answer.
5. Only if the user answers yes, update local memory.
6. If the user answers no, do not update local memory.
```

The Skill must not ask the memory question before completing the requested webpage modification.

Use a clear question such as:

```text
I updated the webpage with the requested change.

Change summary:
- [summary of actual change]

Do you want me to save this as a long-term local memory rule for future Carey Blog generations?
Please answer yes or no.
```

If the user answers yes, write a concise rule to:

```text
~/.carey-blog-skill/memory/user_memory.md
```

and append a record to:

```text
~/.carey-blog-skill/memory/memory_change_log.md
```

If the user answers no, reply:

```text
Got it. I will keep this as a one-time change and will not update local memory.
```

Do not update local memory if the user gives an ambiguous answer. Ask again for a clear yes/no answer.

The Skill must never silently write user preferences into memory.

---

## Local Memory Writing Format

When writing to `user_memory.md`, add entries in this format:

```markdown
## Rule: [short descriptive title]

- Added: YYYY-MM-DD HH:MM
- Source: User confirmed after webpage revision
- Rule: [clear future-facing rule]
- Scope: Local user only
```

When writing to `memory_change_log.md`, add entries in this format:

```markdown
## YYYY-MM-DD HH:MM

- User request: [brief summary]
- Webpage change: [brief summary]
- Memory update: Yes
- Memory file updated: ~/.carey-blog-skill/memory/user_memory.md
- Rule added: [brief rule]
```

If the user declines memory update, optionally log only in the current report if appropriate, but do not write to local memory.

---

## Shared Skill Improvement Requests

If the user explicitly says that a change should apply to everyone or should update the GitHub Skill itself, the Skill must not directly modify the shared GitHub repo unless Corey is the authenticated user and explicitly asks to do so.

Default behavior:

```text
Create a suggested shared Skill improvement note for Corey to review.
Do not push to GitHub.
Do not modify main.
Do not modify VERSION.
```

The note may be written into a local file such as:

```text
shared_skill_suggestions.md
```

in the current workspace.

---

## GitHub Permission Rule

Only Corey is allowed to directly modify and push changes to the shared GitHub Skill repository.

Other users, coworkers, and agents must not directly push to the shared repository.
They may:
- update their own local memory
- create a GitHub Issue draft
- create a Pull Request draft
- suggest changes for Corey to review

They must not:
- push directly to main
- overwrite shared core rules
- overwrite shared templates
- modify VERSION without Corey's approval

Other users, coworkers, and agents must also not turn their personal preferences into shared Skill rules without Corey's approval.

---

## Step 1: User Guidance

After the Skill is triggered, check the version and read local memory if it exists. Then provide onboarding in the primary language of the user's Skill-calling prompt.

If the user primarily calls the Skill in Chinese, respond in Chinese, but do not store Chinese-language documentation in this repository.

If the user primarily calls the Skill in English, respond in English.

Do not output Chinese onboarding when the Skill is called in English.

Version and local-memory notes may be added briefly at the beginning or end of onboarding.

### English Onboarding Template

Use this version when the user calls the Skill mainly in English:

---

Hi! I am the Carey Blog Page Generator assistant. I can help turn your article content and images into a Carey Blog-style webpage.

Before I begin, please prepare the files below. This usually takes about 2 minutes.

---

### Step 1: Create Your Working Folder

Create a folder anywhere on your computer, for example:

```text
my-news
```

---

### Step 2: Add Your Article Content

Inside that folder, add one content file. Choose one of these formats:

- `content.txt`
- `content.md`
- `content.docx`

The file name must be `content`; only the extension changes.

At the top of the file, you may include optional metadata:

```text
Date: May 1, 2026
Tags: Student Experience, MBA
```

The Skill may also accept equivalent Chinese metadata labels in user-provided content, but examples in this repository must stay in English.

Tags should use up to 3 of these options:

```text
Student Experience / MBA / Master of Science / Alumni /
Admissions / Rankings / Research / Faculty / Events
```

After the metadata, leave a blank line and add the article content. The content can be a complete draft, rough notes, bullet points, mixed Chinese and English material, quote fragments, or event highlights. I will organize it into a polished Carey Blog-style article while staying faithful to the original facts.

Optional display-control examples:

```text
Heading: Student ideas took center stage
Highlight: experiential learning
Quote: "The event helped students connect classroom ideas with real-world decisions."
Callout: Registration details will be shared with students by email.
The keynote speaker discussed how AI is changing business education. [picture1]
```

---

### Step 3: Add Your Images

Inside your working folder, create a subfolder named:

```text
images
```

Put all images inside `images/`.

Recommended naming:

```text
images/
  01-Carey students at campus event.jpg
  02-Keynote speaker discussing AI strategy.jpg
  03-Alumni panel sharing career advice.jpg
  04-Students networking after event.jpg
```

Image rules:

- `01-...` is always the Hero image at the top of the page.
- `02-...` becomes Gallery `picture1`.
- `03-...` becomes Gallery `picture2`.
- `04-...` becomes Gallery `picture3`.
- The Hero image is not called `picture1` and is not included in body picture numbering.
- Supported formats: jpg, jpeg, png, webp, gif.
- File names may contain spaces; generated paths must preserve or correctly URL-encode them so browsers can load the images.
- Descriptive English image names are recommended, such as `02-Keynote speaker discussing AI strategy.jpg`.
- Avoid non-descriptive names such as `IMG_001.jpg` or `WechatIMG.jpeg`.
- At least 1 image is needed.
- If there is only a Hero image, no Gallery will be created.

To link article text to a Gallery image, write:

```text
The keynote speaker discussed how AI is changing business education. [picture1]
```

The final page will turn `picture1` into a clickable link that jumps to the matching Gallery image.

Standalone picture-link instructions are also supported:

```text
Picture link: picture2
Image: picture3
```

The AI may also try to match images automatically based on the article content and image file names, but it must not force every image into the body.

---

### Finished Folder Example

```text
my-news/
  content.txt
  images/
    01-Carey students at campus event.jpg
    02-Keynote speaker discussing AI strategy.jpg
    03-Alumni panel sharing career advice.jpg
    04-Students networking after event.jpg
```

---

### Ready?

Set that folder as my workspace and tell me "ready". I will then generate the webpage and `report.md`.

If you are not sure how to select the workspace, use the folder control in the Codex interface and choose the folder you just created.

If you later ask me to revise the generated webpage, I will first update the current webpage. After that, I will summarize the change and ask whether you want to save it as a long-term local memory rule for future Carey Blog generations.

---

## Step 2: Read File Content

After the user confirms the files are ready, do the following:

### 2.1 Read Text Content

Scan the workspace and find the content file in this priority order:
1. `content.md`
2. `content.txt`
3. `content.docx`

After finding the file, read it. If it is `.docx`, use Bash to extract plain text:

```bash
python3 -c "
try:
    import docx
except ImportError:
    import subprocess
    subprocess.run(['pip','install','python-docx','--break-system-packages','-q'])
    import docx
doc = docx.Document('DOCX_FILE_PATH')
print('\n'.join([p.text for p in doc.paragraphs if p.text.strip()]))
"
```

### 2.2 Scan the Images Folder

Scan all supported image files inside `images/`, sorted by file name:

```bash
find "WORKSPACE_PATH/images" -maxdepth 1 -type f | grep -iE '\.(jpg|jpeg|png|webp|gif)$' | sort
```

Parse each image file name:
- `number_prefix`: the first two digits in the file name, such as `01`, `02`, or `03`.
- `description`: the text after removing the number, separator, and extension, such as `Elon Musk speaking`.
- When generating HTML paths, handle spaces and special characters correctly. Preserve the real file name in relative paths when possible; if URL encoding is needed, encode only path segments and do not rename files on disk.

Image grouping logic:
1. Use the image whose `number_prefix` is `01` as the Hero.
2. Use images whose `number_prefix` is `02` or later as Gallery images.
3. If there is no `01-...` file, fall back to the first sorted image as Hero and note this in `report.md`.
4. If multiple files start with `01`, choose the first sorted file as Hero and warn the user in `report.md`.
5. If images have no numeric prefix, fall back to the current sorting logic and note this in `report.md`.

Gallery numbering rules:
- First Gallery image = `picture1`.
- Second Gallery image = `picture2`.
- Third Gallery image = `picture3`.
- Numbering is based on Gallery order, not the original file prefix.
- `02-...` = `picture1`, `03-...` = `picture2`, `04-...` = `picture3`.
- The Hero image is not included in body picture-link numbering and is not displayed as `picture1`.

---

## Step 3: AI Content Processing

**All processing must be based on the original content. Do not invent facts.**

### 3.1 Extract Metadata

| Field | Source | If Missing |
|------|------|--------|
| DATE | `Date: XXX` at the top of the file, or an equivalent Chinese metadata label | Use today's date |
| TAGS | `Tags: XXX` at the top of the file, or an equivalent Chinese metadata label | Infer from the body, up to 3 tags |

Tag to CSS class mapping:
```text
Student Experience / MBA          -> light_green
Master of Science / MS / Alumni   -> green
Admissions / Rankings             -> yellow_green
Research                          -> light_blue
Faculty                           -> purple
Events                            -> orange
Other                             -> no class, default dark blue
```

### 3.1A Verify People Full Names (LinkedIn Confirmation Gate)

This is a mandatory gate before generating the webpage. If the source content mentions any specific person, complete this step first. Skip it only when the article contains no specific people.

#### People Who Need Verification

Extract specific people mentioned in the body, quotes, speaker lines, captions, image file-name descriptions, and user prompt, including:
- Students, alumni, professors, guests, hosts, speakers, panelists, organizers, donors, and company or organization representatives.
- People already written with full names; still confirm spelling.
- People written only with first name, last name, nickname, Chinese name, initials, or possibly misspelled names; complete or confirm the full name.

Do not treat these as people requiring name verification:
- Organization names such as Johns Hopkins Carey Business School or Johns Hopkins University.
- Generic groups such as students, faculty, alumni, leaders, or panelists.
- Generic job titles that do not point to a specific person in the source.

#### LinkedIn Matching Method

For each person who needs verification, first search public LinkedIn results. You may use web search or a browser search. Do not depend on information hidden behind login, and do not bypass LinkedIn access limits.

Recommended search combinations:
```text
site:linkedin.com/in "NAME OR PARTIAL NAME" "Johns Hopkins Carey Business School"
site:linkedin.com/in "NAME OR PARTIAL NAME" "Johns Hopkins"
site:linkedin.com/in "NAME OR PARTIAL NAME" "ROLE OR ORGANIZATION FROM CONTENT"
site:linkedin.com/in "FIRST NAME" "EVENT KEYWORD" "Carey Business School"
```

Use only LinkedIn clues that are compatible with the source content:
- Displayed name.
- Current or past affiliation, title, school, or company.
- Clues that support the event, organization, program, role, or location mentioned in the source.

Do not replace a source name only because a LinkedIn result looks similar. LinkedIn provides candidate full names; the user must confirm the final name.

#### User Confirmation Rules

Before generating the HTML, show the user a name-verification table and pause for confirmation. The table must include at least:

| Source wording | LinkedIn candidate full name | Matching evidence | LinkedIn URL | Confidence | User confirmation needed |
|----------------|------------------------------|-------------------|--------------|------------|--------------------------|

Suggested confirmation prompt:
```text
I found the following LinkedIn-based name matches. Please confirm or correct them before I generate the webpage:

1. "Alex" -> Alex Johnson
   Evidence: LinkedIn profile lists Johns Hopkins Carey Business School and matches the event role.
   URL: ...
   Confidence: medium

Please reply with "confirmed" if all are correct, or provide corrections in this format:
Alex = [correct full name]
```

If multiple candidates are plausible, do not choose silently. List up to 3 likely candidates and ask the user to choose.

If no reliable LinkedIn match exists, ask the user to provide the full name:
```text
I could not find a reliable LinkedIn match for "Alex" based on the article context. Please provide the person's full name before I generate the webpage.
```

If the user confirms that a person should not be named, use a source-supported generic description such as `a Carey student`, `a faculty member`, or `one panelist`, and record that handling in `report.md`. Do not invent a replacement name.

#### Record Verification in the Report

When generating `report.md`, record:
- The verified people list.
- Whether LinkedIn matching succeeded.
- User-confirmed, user-corrected, or user-provided full names.
- Any remaining name questions that need human review.

Do not write LinkedIn verification results to long-term local memory unless the user explicitly requests it after a webpage revision under the Skill's memory confirmation workflow.

### 3.2 Determine Content Type

First judge how complete the raw content is, then choose the appropriate handling method:

| Content Type | Handling Method |
|-------------|----------|
| Complete news draft | Mainly polish, optimize structure, convert to HTML, and preserve the original facts and core order. |
| Notes / bullet points | Identify the event storyline first, then rewrite into blog post structure. Add reasonable transitions when needed, but do not add facts. |
| Very short content | Write a shorter blog post. Do not invent information to add length. Remind the user in `report.md` that the source is short and may need more human-supplied detail. |
| Unclear facts | Use conservative wording. Do not force uncertain details. Mark uncertain or human-review-needed points in `report.md`. |
| Mixed Chinese and English | Organize the article body into English Carey Blog copy, preserve proper nouns as given, and explain the handling in the report when needed. |

### 3.3 Generate Title (H1)

Create a clear, engaging title from the core of the article body. Keep it to 15 English words or fewer. If the source has a clear title line, use it directly or lightly polish it.

Title requirements:
- Accurate and specific.
- Do not overstate impact.
- Do not add names, dates, numbers, organizations, or outcomes absent from the source.
- The first main heading at the top of the content file may be used to generate the H1.

### 3.4 Generate Subtitle (Deck)

Generate one concise deck/subtitle of 25 English words or fewer, written as an objective third-person statement.

Deck requirements:
- Summarize the article's core message.
- Use natural, clear, engaging language.
- Do not add facts.

### 3.5 Rewrite as a Carey Blog Post

Convert the raw content into a coherent blog post:
- Write like a polished Carey Blog post.
- Keep the tone professional, warm, energetic, and accessible.
- Make the writing easy to read.
- Avoid overly academic or bureaucratic wording.
- Add light humor only when it naturally fits the content.
- Improve transitions between ideas.
- Turn rough notes into coherent narrative.
- Do not overstate impact.
- Do not invent quotes.
- Do not invent facts.
- Do not invent student names, faculty names, alumni names, organizations, job titles, dates, locations, numbers, or outcomes.
- Use only user-confirmed full names from the LinkedIn confirmation gate or names already confirmed by the user.

Article structure:
- A natural opening paragraph that introduces the event or topic.
- Several logically organized body paragraphs.
- Section headings when useful.
- If the source is bullet points, convert them into smooth paragraphs or keep them as a list depending on fit.
- If the content has clear highlights, make the expression more story-like without changing the strength of the facts.
- Keep paragraphs to 2-4 sentences when possible.

People-name writing rules:
- Use the user-confirmed full name the first time each person appears in the body.
- On later mentions, usually use first name so the prose feels natural and Carey Blog-like.
- Repeat the full name when two people share the same first name, first name would be ambiguous, the person needs to be reintroduced after a long gap, or quote attribution/title context requires formal naming.
- Do not repeat a person's full name every time they are mentioned.
- Do not put unconfirmed LinkedIn candidate names into the final body.
- If the user does not provide or confirm a full name and the person still needs to appear, use a conservative generic description and mark the issue in `report.md`.

### 3.6 Detect Presentation Instructions

Use both AI pattern recognition and explicit trigger rules.

#### AI Pattern Recognition

- If a line looks like a heading or topic transition, convert it to `<h2>`.
- If a phrase is clearly a keyword, emphasize it with `<strong>`.
- If speaker / speaker name / said / shared / noted / explained structures appear with quotation marks, convert them to a blockquote.
- If the content contains consecutive short phrases or bullets, convert them to `<ul><li>`.
- If the user writes `highlight XXX`, `bold XXX`, or `emphasize XXX`, bold the matching phrase.
- If the user writes `heading: XXX` or `section: XXX`, convert XXX to `<h2>`.

#### Explicit Trigger Rules

Headings / subheadings:

The user may write:
```text
## Section Title
# Section Title
Heading: Section Title
Subheading: Section Title
```

Convert to:
```html
<h2>Section Title</h2>
```

Notes:
- The first main heading at the top of the content file may be used to generate the H1.
- Headings/subheadings inside the article body should use `<h2>`.
- Do not generate `<h3>` unless the template already has suitable styling; prefer consistent `<h2>` headings.

Highlight / bold:

The user may write:
```text
**important phrase**
Highlight: important phrase
Bold: important phrase
Emphasize: important phrase
```

Convert to:
```html
<strong>important phrase</strong>
```

If the user writes `**text**` in the body, preserve it as `<strong>text</strong>`.

Speaker / Quote:

The user may write:
```text
Speaker: Name, Title
Quote: "..."
Name: "..."
```

Handling rules:
- If a quote has a clear speaker, generate a blockquote: `<div class="blockquote">"..." - Name</div>`.
- If speaker information includes only a person and title but no quote, do not invent a quote.
- Speaker information may be written naturally into the body, but it must remain faithful to the source.

Lists:

The user may write:
```text
- item
* item
1. item
```

Convert to an HTML list:
```html
<ul>
  <li>item</li>
</ul>
```

Callout / Note:

The user may write:
```text
Callout: text
Note: text
Important: text
```

If the template has no dedicated callout style, do not add complex CSS. Convert it to a normal paragraph with a `<strong>` prefix:
```html
<p><strong>Note:</strong> text</p>
```

Picture links / picture references: see 3.8 for image-body association logic.

### 3.7 Structure the Body and Output an HTML Fragment

Body HTML generation rules:
- Rewrite rough content into a coherent blog post.
- Wrap body paragraphs in `<p>`.
- Keep each paragraph to 2-4 sentences when possible.
- Use `<h2>` for section headings when appropriate.
- Use `<strong>` for highlight/bold keywords.
- Use `<ul><li>` for lists.
- Use `<div class="blockquote">"..." - Name</div>` for explicit quotes.
- Use `<a href="#picture1">See picture1</a>` for picture links.
- Do not leave raw Markdown syntax in the HTML.
- Do not output control statements such as `[picture1]`, `Highlight:`, `Heading:`, or `Picture link:`.
- Do not generate links to images that do not exist.
- Do not sacrifice readability for picture links.

### 3.8 Associate Images With the Body

Preserve the Carey Blog template's fixed image placement: Hero image at the top and Gallery at the bottom. Do not insert Gallery images into the middle of the article body.

Image matching priority:
1. Fixed Hero rule: `01-...` is always the Hero.
2. User-specified picture links, such as `[picture1]` or `Picture link: picture1`.
3. AI automatic matching based on Gallery image file-name descriptions and article body content.
4. If no confident match exists, do not add a body link to that image.
5. The Gallery still displays all images from `02` onward.

Supported user-specified picture link formats:
```text
[picture1]
[picture2]
[picture3]
Picture: picture1
Picture link: picture1
Image: picture1
```

Handling rules:
- User-specified picture links have higher priority than AI automatic matching.
- If `[picture1]` appears at the end of a sentence or inside a paragraph, replace it with `<a href="#picture1">See picture1</a>`.
- If `Picture link: picture2` appears on its own line, place the link at the end of the previous related paragraph. If the previous paragraph cannot be identified, place it at the end of the next related paragraph.
- If the user specifies a picture number that does not exist, such as `picture9` when the Gallery has only 3 images, do not generate a broken link and note it in `report.md`.
- If the user writes `picture 1` in ordinary prose, do not necessarily process it automatically. Prefer bracketed references such as `[picture1]` or explicit instructions such as `Picture link: picture1`.
- Do not leave original control statements in the final body.
- Body picture-link styling is controlled by the template CSS: italic, muted blue-green, and Carey heritage blue on hover.
- When a body picture link is clicked, the template JavaScript scrolls vertically to the Gallery and horizontally to the matching `pictureN` slide. Do not link to the Hero image and do not put a `pictureN` id on the wrong slide.

AI automatic matching rules:
- Judge whether each Gallery image file-name description is highly relevant to a body paragraph topic.
- Not every Gallery image must be referenced in the body.
- Add a natural, brief link only when confidence is high.
- Link text should be `See picture1`, `See picture2`, `See picture3`.
- Link format: `<a href="#picture1">See picture1</a>`.
- Links must only point to existing Gallery slide ids; the template handles correct jumping and link styling.
- If the match is uncertain, do not add a body link.
- If the body already reads smoothly, do not force picture links into it.
- Do not invent article facts from image file names.

Example:
```html
<p>The session gave students a closer look at how leaders think about AI strategy in real business settings. <a href="#picture1">See picture1</a>.</p>
```

---

## Step 4: Generate the HTML File

### 4.1 Read the Template
Read `_template/template.html`.

### 4.2 Fill Template Variables
Replace every `{{VARIABLE}}` in the template with the generated content:

| Variable | Content |
|------|------|
| `{{TITLE}}` | Generated H1 title |
| `{{DATE}}` | Formatted date, such as `May 1, 2026` |
| `{{DECK}}` | One-sentence subtitle |
| `{{HERO_IMAGE_PATH}}` | Hero image relative path, such as `images/01-Carey students at campus event.jpg` |
| `{{TAGS_HTML}}` | One `<div class="topic_link"><a href="#" class="COLOR_CLASS">TAG NAME</a></div>` per tag |
| `{{ARTICLE_BODY_HTML}}` | Structured body HTML fragment |
| `{{GALLERY_SECTION_HTML}}` | Gallery carousel HTML when a Gallery exists; otherwise an empty string |
| `{{YEAR}}` | Current year |

**Gallery section HTML format:**
```html
<div class="slider-section">
  <div class="swiper-slider">
    <div class="swiper swiper-container">
      <div class="swiper-track" id="swiperTrack">
        <div class="swiper-slide-item" id="picture1">
          <img src="images/02-Keynote speaker discussing AI strategy.jpg" alt="Keynote speaker discussing AI strategy" />
        </div>
        <div class="swiper-slide-item" id="picture2">
          <img src="images/03-Alumni panel sharing career advice.jpg" alt="Alumni panel sharing career advice" />
        </div>
      </div>
      <div class="d-flex blog-pagination">
        <div class="swiper-pagination" id="swiperPagination" aria-live="polite">01/02</div>
        <div class="swiper-controls">
          <button class="swiper-btn swiper-btn-prev" id="prevBtn" aria-label="Previous photo"><span>Previous</span></button>
          <button class="swiper-btn swiper-btn-next" id="nextBtn" aria-label="Next photo"><span>Next</span></button>
        </div>
      </div>
    </div>
  </div>
</div>
```

Gallery HTML requirements:
- Each `.swiper-slide-item` must have a stable anchor id: `picture1`, `picture2`, `picture3`, and so on.
- Ids are based on Gallery order, not file-name prefixes.
- `02-...` is `picture1`, not `picture2`.
- Alt text should prefer the description from the file name.
- If the description is empty, use the article title.
- Image paths must correctly handle spaces and special characters.
- Include the `blog-pagination` and `swiper-pagination` structure showing a current image count like `01/10`.
- The Gallery track and pagination should be inside `.swiper-container`, closely matching the Carey official page structure: `.slider-section` -> `.swiper-slider` -> `.swiper-container` -> `.swiper-track` / `.blog-pagination`.
- The initial `swiper-pagination` value can be based on the total Gallery count, such as `01/02` for two images; the template JavaScript updates it on slide and button interactions.
- Carousel buttons should loop: next from the last slide returns to the first slide, and previous from the first slide goes to the last slide. The template JavaScript handles this loop.
- Gallery visuals should match the Carey official page: keep the Carey blue watermark background on the left, show the current image starting to the right of the watermark area, show part of the next image on the right, and do not expose the previous image on the left.
- Gallery watermark, pagination weight, and arrow button icon details should follow the official CSS: watermark uses the Icons font `\e958`, arrows use `\e95a` / `\e95b`, and pagination is 17px dark blue bold text.
- Body `#pictureN` links must land on the matching Gallery slide; the template JavaScript handles both vertical page scroll and horizontal slider scroll.
- Do not break the existing slider structure.
- Do not change the Carey Blog header/footer structure.

Do not put visible arrow characters such as `<` or `>` inside carousel buttons. Arrows are generated by template CSS pseudo-elements to avoid duplicate display or conflicts with browser/Swiper default styles.

### 4.3 File Naming and Saving
Convert the title to a slug: lowercase, spaces to hyphens, punctuation removed.
Save the file to the workspace root, for example `carey-hosts-2025-graduation.html`.

### 4.4 Copy Icon Font Asset
After generating HTML, ensure the workspace root has an `assets/` folder, and copy this Skill's `_template/assets/icomoon.woff` to:

```text
assets/icomoon.woff
```

This allows footer social icons and button icons to render correctly when the HTML is opened locally.

### 4.5 Determine Report Language
Set `REPORT_LANGUAGE` based on the main language of the user's Skill-calling prompt:
- If the user mainly calls the Skill in Chinese: `Chinese`
- If the user mainly calls the Skill in English: `English`
- If the prompt is mixed, use the primary language of the user's latest explicit instruction.

The natural-language headings, section labels, processing notes, and review checklist in `report.md` must use `REPORT_LANGUAGE`; proper nouns, organization names, file names, HTML titles, tags, and dates should remain as originally provided.

---

## Step 5: Generate the Processing Report

Read `_template/report.md`, fill every variable, and save the result as `report.md` in the workspace root.

The report language must follow `REPORT_LANGUAGE`:
- `Chinese`: translate the report's headings, labels, review prompts, and notes naturally into Chinese when generating the final `report.md`.
- `English`: use the English template headings, labels, review prompts, and notes; do not force-translate proper nouns, facts, file names, tags, dates, or the HTML title.

The body processing report must record:
- Whether the content is a complete news draft, notes/bullet points, very short content, or content with unclear facts.
- Full-name verification results, including LinkedIn candidates, user confirmations/corrections, unmatched people, and remaining name-review notes.
- Whether polish, reorganization, transition additions, list conversion, quote extraction, or heading conversion was performed.
- Whether any facts are uncertain or need human confirmation.
- If the source content is short, remind the user to add more detail manually.
- State clearly that no facts absent from the source were added.

The people-name verification report must fill:
- `{{NAME_VERIFICATION_METHOD}}`
- `{{CONFIRMED_PEOPLE_DETAIL}}`
- `{{LINKEDIN_NAME_MATCHES_DETAIL}}`
- `{{UNMATCHED_PEOPLE_DETAIL}}`
- `{{NAME_USAGE_DETAIL}}`
- `{{NAME_REVIEW_NOTES}}`

If the body contains no specific people, these fields must clearly say:
```text
No specific people were mentioned in the source content; no LinkedIn name verification was needed.
```

The image processing report must fill:
- `{{HERO_IMAGE_FILENAME}}`
- `{{HERO_IMAGE_REASON}}`
- `{{GALLERY_COUNT}}`
- `{{GALLERY_FILENAMES}}`
- `{{GALLERY_PICTURE_MAP}}`
- `{{PICTURE_LINKS_DETAIL}}`
- `{{UNMATCHED_GALLERY_IMAGES}}`
- `{{IMAGE_REVIEW_NOTES}}`

Example:
```text
picture1 -> 02-Elon Musk speaking.jpg
picture2 -> 03-Students networking.jpg
picture3 -> 04-Alumni panel discussion.jpg
```

Body picture-link detail example:
```text
- picture1 was linked in the paragraph about the keynote speaker based on the explicit [picture1] instruction.
- picture2 was linked in the networking paragraph based on filename-content semantic matching.
```

Unmatched image example:
```text
- picture3 / 04-Alumni panel discussion.jpg was included in the gallery but not referenced in the body.
```

Image processing note examples:
```text
- Please verify that picture links point to the intended gallery images.
- Some image filenames were not descriptive enough for confident matching.
- Multiple files used the 01 prefix; the first sorted file was selected as Hero.
```

---

## Step 6: Final Delivery

Output:

```text
All done. Two files have been saved in your folder:

[filename].html - Open it in a browser to preview the webpage.
report.md - Records what the AI processed; review it before publishing.

Tell me if anything needs adjustment.
```

---

## Quality Self-Check Before Output

- [ ] Hero background is `#002D72`, with 40% left text and 60% right image.
- [ ] H1 uses `Source Serif 4`, 45px, white, letter-spacing -0.03em.
- [ ] A white 1px divider appears under the date.
- [ ] Deck uses `Roboto Slab` 17px.
- [ ] Tag pills are uppercase, 14px, with inset box-shadow colors matching the tags.
- [ ] Body uses `Work Sans` 22px line-height 32px color #000.
- [ ] article-content max-width is 810px with 45px 60px padding.
- [ ] Social icon SVG circles are 44x44px with dark blue borders.
- [ ] When Gallery exists, Slider background is `#002D72`, images are 500px high, and buttons are yellow-green.
- [ ] Footer background is `#002D72` with white text.
- [ ] Google Fonts are included and have not been removed from the template.
- [ ] Image files are read and sorted according to the `number-description` naming rule.
- [ ] `01-...` is used as the Hero image.
- [ ] Gallery images start from `02-...`.
- [ ] Gallery image anchor ids start from `picture1`.
- [ ] Gallery pagination displays counts such as `01/total` and `02/total`.
- [ ] Gallery shows only the left Carey blue watermark area, the current image, and a partial preview of the next image on the right; the previous image is not visible on the left.
- [ ] The Gallery next button loops back to the first slide after the last slide.
- [ ] Body picture links point only to existing Gallery images.
- [ ] Body picture links jump to the correct Gallery slide.
- [ ] Body picture links use the template's italic, muted link styling.
- [ ] Nonexistent picture links are noted in `report.md`.
- [ ] The body does not force a link to every Gallery image.
- [ ] Image alt text preferably comes from file-name descriptions.
- [ ] `report.md` includes the Gallery picture mapping.
- [ ] `report.md` explains image matching logic.
- [ ] Display-control statements from the original content are not left in the final HTML.
- [ ] Rough content has been rewritten into a readable blog post.
- [ ] No facts absent from the source have been added.
- [ ] Specific people have LinkedIn candidate matches and user confirmation; unmatched people were supplied by the user or converted to conservative generic descriptions.
- [ ] First mentions use full names, later mentions usually use first names, and no ambiguity is introduced.
- [ ] File-name slug format is correct.
- [ ] `report.md` has been generated.

