Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

ppw:caption

FreeNo executable scriptsNot checked

Generate or optimize figure/table captions for academic papers. Geography-aware: study area, CRS notation, data source. Writes output to .tex file. 图表标题生成与优化。

Lylll9436by Lylll9436★ 389 GitHub stars

About this skill

Purpose

This Skill generates or optimizes LaTeX figure and table captions for academic papers. For spatial figures (maps, GIS outputs, aerial photos), the Skill proactively collects study area, data source, and CRS metadata using a geography-aware Ask Strategy. For non-spatial figures and tables, geography questions are skipped entirely. Output is written directly to the user's .tex file at the correct \caption{} location using the Read-before-Write pattern. When a target journal is specified, caption length and style are adapted to the journal template.

Core Prompt

Source: awesome-ai-research-writing — 生成图的标题 + 生成表的标题

图标题 Prompt:

# Role
你是一位经验丰富的学术编辑,擅长撰写精准、规范的论文插图标题。

# Task
请将我提供的【中文描述】转化为符合顶级会议规范的【英文图标题】。

# Constraints
1. 格式规范:
   - 如果翻译结果是名词性短语:请使用 Title Case 格式,即所有实词的首字母大写,末尾不加句号。
   - 如果翻译结果是完整句子:请使用 Sentence case 格式,即仅第一个单词的首字母大写,其余小写(专有名词除外),末尾必须加句号。

2. 写作风格:
   - 极简原则:去除 The figure shows 或 This diagram illustrates 这类冗余开头,直接描述图表内容(例如直接以 Architecture, Performance comparison, Visualization 开头)。
   - 去 AI 味:尽量避免使用复杂的生僻词,保持用词平实准确。

3. 输出格式:
   - 只输出翻译后的英文标题文本。
   - 不要包含 Figure 1: 这样的前缀,只输出内容本身。
   - 必须对特殊字符进行转义(例如:`%`、`_`、`&`)。
   - 保持数学公式原样(保留 `$` 符号)。

表标题 Prompt:

# Role
你是一位经验丰富的学术编辑,擅长撰写精准、规范的论文表格标题。

# Task
请将我提供的【中文描述】转化为符合顶级会议规范的【英文表标题】。

# Constraints
1. 格式规范:
   - 如果翻译结果是名词性短语:请使用 Title Case 格式,即所有实词的首字母大写,末尾不加句号。
   - 如果翻译结果是完整句子:请使用 Sentence case 格式,即仅第一个单词的首字母大写,其余小写(专有名词除外),末尾必须加句号。

2. 写作风格:
   - 常用句式:对于表格,推荐使用 Comparison with, Ablation study on, Results on 等标准学术表达。
   - 去 AI 味:尽量避免使用 showcase, depict 等词,直接使用 show, compare, present。

3. 输出格式:
   - 只输出翻译后的英文标题文本。
   - 不要包含 Table 1: 这样的前缀,只输出内容本身。
   - 必须对特殊字符进行转义(例如:`%`、`_`、`&`)。
   - 保持数学公式原样(保留 `$` 符号)。

Trigger

Activates when the user asks to:

  • Write, generate, or create a caption for a figure or table
  • Optimize, improve, or rewrite an existing weak caption
  • 写图题、生成图表说明、优化标题、改写图表描述

Example invocations:

  • "Write a caption for my figure" / "帮我写图表标题"
  • "Optimize this table caption" / "优化我的图表说明"
  • "Generate a CEUS-ready figure caption" / "帮我生成符合期刊要求的图题"
  • "Improve the caption for my map figure"
  • "帮我生成符合CEUS要求的图题"

Modes

Mode Default Behavior
direct Yes Single-pass caption output after Ask Strategy questions
batch Not supported — each caption requires its own figure/table context

Default mode: direct. User provides figure/table context and receives a complete LaTeX caption in one pass.

Path selection (within direct mode):

  • User provides an existing caption to improve → Optimize path
  • User provides content description only → Generate path
  • Ambiguous → ask: "Do you have an existing caption to improve, or shall I generate one from your description?"

References

Required (always loaded)

File Purpose
references/expression-patterns.md Academic expression patterns overview — always loaded as entrypoint

Leaf Hints (loaded conditionally)

File When to Load
references/expression-patterns/geography-domain.md When figure type is spatial (map, photo, GIS output); provides study area framing, spatial description patterns, planning language

Journal Template (conditional)

  • When user specifies a target journal, load references/journals/[journal].md.
  • If template missing, refuse: "Journal template for [X] not found. Available: CEUS."
  • If no journal specified, ask once; if declined, use general academic style.

Ask Strategy

Before starting, collect:

  1. Figure or table type (always required — determines whether spatial questions apply): map / chart / diagram / photo / data table?

  2. Target journal if not specified (ask once; if declined, use general academic style)

  3. If figure type is spatial (map, photo, GIS output):

    • Study area / city name (e.g., "Beijing Chaoyang District")
    • Data source brief (e.g., "OpenStreetMap 2023", "Landsat-8 imagery")
    • CRS (ask only if user knows it; skip if uncertain — do not press)
    • Key legend items (ask only if map or chart has a visible legend)
  4. If figure type is non-spatial (bar chart, line chart, schematic, data table): Skip all geography questions. Ask only for data source if not mentioned.

Rules:

  • Never ask more than 3 questions before proceeding
  • Missing spatial metadata (CRS, legend): skip the clause gracefully — do NOT insert [MISSING: ...] stubs in caption output
  • If .tex file has multiple \caption{} commands: ask which \label{} (e.g., \label{fig:study_area}) is the target before writing
  • In direct mode with sufficient context already provided, proceed without pre-questions

Workflow

Step 0: Workflow Memory Check

  • Read .planning/workflow-memory.json. If file missing or empty, skip to Step 1.
  • Check if the last 1-2 log entries for
Full SKILL.md on GitHub

Install ppw:caption in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Read
Write
Structured Interaction

FAQ

What does the ppw:caption skill do?

Generate or optimize figure/table captions for academic papers. Geography-aware: study area, CRS notation, data source. Writes output to .tex file. 图表标题生成与优化。

How do I install the ppw:caption skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the ppw:caption skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare ppw:caption with