Agent skill

LaTeX Example Content Generator

by huangwb8 in huangwb8/ChineseResearchLaTeX

Fills an existing LaTeX project with sample sections, tables and figure narratives, protecting the template structure and previewing before writing.

MITAuto-check passedDocuments & Office

SKILL.md written in Chinese; this summary is our English description.

Install LaTeX Example Content Generator

skills CLI
$ npx skills add huangwb8/ChineseResearchLaTeX --skill complete-example -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install huangwb8/ChineseResearchLaTeX complete-example --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/huangwb8/ChineseResearchLaTeX.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/complete-example .claude/skills/complete-example && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
complete-example
GitHub stars
2.9k
Used in
1 other repo
Token cost
~744 tokens
SKILL.md length
181 words
Files
21 (incl. scripts, references)
Skills in repo
27
Repo updated
First seen
Licence
MIT

At a glance

Fills an existing LaTeX project with sample sections, tables and figure narratives, protecting the template structure and previewing before writing.

  • Works in 7 steps: 扫描项目中的 figures、code、references 等资源。 → AI 分析章节主题、关键概念、语气和上下文。 → AI 推理资源与章节的相关性,并决定内容类型组合。 → …
  • Filling a LaTeX template with example sections, tables and narrative
  • SKILL.md covers 流程 and 约束
  • Runs Python scripts from its folder

What it does

Written in Chinese, this skill fills an existing LaTeX project with example content: sample chapters, tables and figure narratives for templates such as NSFC proposals, theses and papers. It is explicitly not for writing real research conclusions. The AI handles semantic work, analyzing section topics and matching figures, code and references to them, while scripted code handles scanning, structure protection, format validation and backups.

You provide a project name or path and may set content density (minimal, moderate or comprehensive), output mode (preview, apply or report), target files and a narrative hint. Defaults come from a config.yaml file. Runs write backups, logs, analysis, output and metadata into a hidden run folder in the project, and the project itself is changed only in apply mode.

Guardrails keep the template intact: main.tex and the config files are off limits, hash checks refuse illegal edits, heading levels are restricted per file, and generated text must stay recognizable as example material rather than posing as real data. Template repair and structural refactoring are out of scope.

When your agent uses it

  • Filling a LaTeX template with example sections, tables and narrative
  • Previewing generated sample content before it is written back
  • Giving a thesis or proposal template realistic sample chapters
  • Producing a quality report on generated LaTeX example text

Example prompts

  • “Fill in example content for my NSFC proposal project in preview mode.”
  • “Generate example sections for ./thesis with moderate content density and show me a report before writing anything.”
  • “Apply example content to the paper template, using extraTex files only.”

Requirements

  • A LaTeX project built from the ChineseResearchLaTeX templates
  • Python for the bundled scripts

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 扫描项目中的 figures、code、references 等资源。
  2. AI 分析章节主题、关键概念、语气和上下文。
  3. AI 推理资源与章节的相关性,并决定内容类型组合。
  4. 生成连贯的示例叙述,可参考 narrative_hint。
  5. 用硬编码模板包装成合法 LaTeX。
  6. 自检并优化生成内容。
  7. 执行格式与结构验证,需要时生成质量报告。

What it can do on your machine

Read from SKILL.md and the folder at commit b8b4142. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 16 files in scripts/ (Python, from the files we listed), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

LaTeX Example Content Generator loads about 744 tokens when it runs, and up to ~985 if it reads all its reference files. Until then it costs about 38 tokens; SKILL.md has 181 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~744
With references · SKILL.md plus every file in references/, read only if the agent opens them
~985

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from huangwb8/ChineseResearchLaTeX at commit b8b4142, republished under its MIT licence (© huangwb8). 181 words, ~744 tokens.

Download SKILL.mdSave it as .claude/skills/complete-example/SKILL.md (or your agent's skills folder). This skill also uses 20 other files; get the full folder from GitHub.
name
complete-example
description
当用户明确要求"填充示例内容""生成示例""补充 LaTeX 示例"时使用。AI 增强版 LaTeX 示例智能生成器,实现 AI 与硬编码的有机融合:AI 做"语义理解"(分析章节主题、推理资源相关性、生成连贯叙述),硬编码做"结构保护"(格式验证、哈希校验、访问控制)。
metadata.author
Bensz Conan

complete-example Skill

  • 用于给现有 LaTeX 项目补“示例内容”,不是写真实科研结论。
  • AI 负责语义理解、资源关联和叙事生成;硬编码负责文件扫描、结构保护、格式验证和备份。
  • 重点是“生成得像一个完整示例”,同时不破坏模板骨架和系统文件。
输入

必需:

  • project:项目名称或路径。

常用可选参数:

  • content_density:minimal / moderate / comprehensive
  • output_mode:preview / apply / report
  • target_files:默认自动检测 extraTex/*.tex
  • narrative_hint:指导示例叙事方向,但仍属于“示例场景”

默认值与细节统一读取 config.yaml。

适用与不适用
  • 适用:需要为 NSFC / thesis / paper 等项目补示例章节、示例表格、示例图文叙事。
  • 不适用:真实科研写作、模板修复、结构性重构、修改系统配置文件。

流程

输入

按用户请求和配置文件提供必要输入;缺失信息应明确列出并停止依赖该输入的步骤。

执行步骤
  • 当用户环境中出现因本 skill 设计缺陷导致的 bug 时,优先使用 bensz-collect-bugs 按规范记录到 ~/.bensz-skills/bugs/,严禁直接修改用户本地 Claude Code / Codex 中已安装的 skill 源码。
  • 若 AI 仍可通过 workaround 继续完成用户任务,应先记录 bug,再继续完成当前任务。
  • 当用户明确要求“report bensz skills bugs”等公开上报动作时,调用本地 gh 与 bensz-collect-bugs,仅上传新增 bug 到 huangwb8/bensz-bugs;不要 pull / clone 整个 bug 仓库。
  1. 扫描项目中的 figures、code、references 等资源。
  2. AI 分析章节主题、关键概念、语气和上下文。
  3. AI 推理资源与章节的相关性,并决定内容类型组合。
  4. 生成连贯的示例叙述,可参考 narrative_hint。
  5. 用硬编码模板包装成合法 LaTeX。
  6. 自检并优化生成内容。
  7. 执行格式与结构验证,需要时生成质量报告。
  • AI:语义分析、资源选择、文本生成、自我优化。
  • 硬编码:文件扫描、Top-K 选择、LaTeX 包装、格式保护、备份、日志、结构校验。

重点关注 config.yaml 中的:

  • parameters.*
  • run_management.*
  • scan.*
  • generation.*
  • generation.section_hierarchy.*
  • generation.templates.*
输出
  • 所有运行产物写入 {project_path}/.complete_example/<run_id>/
  • 典型结构:
    • backups/
    • logs/
    • analysis/
    • output/
    • metadata.json
  • output_mode=apply 时才写回项目;其它模式只给预览或报告。
输出管理

本 Skill 的新任务中间文件统一写入 ./.bensz-api/task-{yyyymmdd-hhmm}-{简短描述}/{skill名}/input|output|log/。同一任务复用一个任务根目录;多 Skill 协作才创建 shared/。正式交付物不写入该目录,历史隐藏目录只允许显式兼容读取、迁移或清理。

校验

完成后执行 Skill 已有的静态检查、脚本验证或人工复核,并记录通过标准。

失败与恢复

保留错误证据和已完成产物;仅在输入、环境或外部依赖恢复后从最近的失败步骤重试。

约束

  • 禁止修改系统文件:main.tex、extraTex/@config.tex、@config.tex
  • 黑名单文件要做访问控制与哈希校验;若检测到非法修改尝试,必须拒绝。
  • main.tex 只允许 \section / \subsection;输入类 extraTex/*.tex 只允许 \subsubsection / \subsubsubsection
  • 生成内容必须保持“示例”属性,不伪装成真实实验或真实数据来源。
公共硬约束
  • 任务需要落盘时,使用唯一的 ./.bensz-api/task-{yyyymmdd-hhmm}-{简短描述}/ 根目录;共享材料放入 shared/,Skill 专属材料放入该 Skill 的 input/、output/、log/。
  • 正式交付物、源代码和正式计划按项目约定保存,不写入任务工作区;未经授权不覆盖、删除、迁移或远程写入。
  • 项目维护变更检查 BAC 可用性并记录需求、AI 产出、工具结果、文件改动和验证摘要;BAC 只做过程审计,不替代署名、责任或合规判断。
  • 不记录 API Key、访问令牌、密码、Cookie、环境/凭据文件、私有 Prompt、身份信息、本地用户名、主机名或不必要的大体积原始数据。
  • 文件路径必须规范化并限制在授权项目范围内;外部 URL、子进程和网络访问遵循最小权限,防止路径遍历、SSRF 和命令注入。
  • Skill 版本唯一记录在自身 config.yaml:skill_info.version;公开 API、协议、目录或配置变更同步文档与 CHANGELOG.md。
  • 仅将 Skill 或 Bensz 基础设施本身的设计缺陷交给 bensz-collect-bugs;先脱敏写入 ~/.bensz-skills/bugs/,当前任务不中断,只有用户明确要求才公开上报,禁止直接修改用户已安装的 Skill 源码。
<!-- End of canonical common constraints. -->
Skill 专属约束

不得超出本 Skill description 和上方流程所声明的范围;不将未验证的信息伪装成确定结论。

© huangwb8, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 20 other files (scripts, references) in skills/complete-example of huangwb8/ChineseResearchLaTeX.

  • SKILL.md
  • config.yaml
  • references/README.md
  • scripts/__init__.py
  • scripts/advanced_usage.py
  • scripts/ai_content_generator.py
  • scripts/basic_usage.py
  • scripts/bibtex_parser.py
  • scripts/file_utils.py
  • scripts/format_guard.py
  • scripts/formula_generator.py
  • scripts/latex_parser.py
  • scripts/llm_client.py
  • scripts/placeholder_parser.py
  • scripts/resource_allocator.py
  • scripts/resource_scanner.py
  • scripts/security_manager.py
  • scripts/semantic_analyzer.py
  • scripts/skill_controller.py
  • … and 2 more

Open the folder on GitHubat commit b8b4142

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in huangwb8/ChineseResearchLaTeX, which our catalogue first saw on October 7, 2026.

Compare with similar skills

LaTeX Example Content Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

LaTeX Example Content Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
LaTeX Example Content Generator this skillhuangwb8/ChineseResearchLaTeX2.9k1 repos~744Automated safety check: PassMIT
Research Writingalfonso0512/research-writing-skill4861 repos~818Automated safety check: PassMIT
Paper WritingMLNLP-World/Paper-Writing-Tips4.7k—~630Automated safety check: PassNone
PaperjurySpark-To-Paper-Skills/paperjury1.2k—~5.3kAutomated safety check: PassMIT
Venue TemplatesK-Dense-AI/claude-scientific-writer2.4k2 repos~2.9kAutomated safety check: PassMIT
LaTeX Research PostersK-Dense-AI/claude-scientific-writer2.4k13 repos~4.1kAutomated safety check: NotesMIT

Similar skills

  • Research Writing

    alfonso0512/research-writing-skill

    科研论文写作助手,提供 30 个 Prompt 模板覆盖论文写作全流程. An agent skill from alfonso0512/research-writing-skill.

    486 GitHub starsUsed in 1 repo~818 tokens
    Documents & OfficeAuto-check passed
  • Paper Writing

    MLNLP-World/Paper-Writing-Tips

    学术论文写作检查与优化助手。基于 MLNLP-World 社区整理的论文写作技巧,帮助检查和优化学术论文。Use when: (1) 检查论文 LaTeX 格式和排版, (2) 优化公式符号使用, (3) 改进图表设计, (4) 润色英文学术表达, (5) 检查参考文献格式, (6) 投稿前终稿检查, (7) 用户询问论文写作技巧或规范。

    4.7k GitHub stars~630 tokensUpdated 11 days ago
    Documents & OfficeAuto-check passed
  • Paperjury

    Spark-To-Paper-Skills/paperjury

    Three modes for CS-conference papers (CVPR/ICCV/ECCV vision, ACL/EMNLP/NAACL NLP, ICLR/NeurIPS/ICML/AAAI ML).

    1.2k GitHub stars~5.3k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Venue Templates

    K-Dense-AI/claude-scientific-writer

    Prepare journal manuscripts, conference papers, research posters, and grant documents using venue-specific formatting guidance and bundled LaTeX scaffolds.

    2.4k GitHub starsUsed in 2 repos~2.9k tokens
    Documents & OfficeAuto-check passed
  • LaTeX Research Posters

    K-Dense-AI/claude-scientific-writer

    Builds conference-size scientific posters in LaTeX with beamerposter, tikzposter or baposter, including figure preparation, compilation and print preflight checks.

    2.4k GitHub starsUsed in 13 repos~4.1k tokens
    Documents & OfficeAuto-check: notes
  • Paper Review

    eunomia-bpf/ActPlane

    Review and fix academic writing in a LaTeX paper section. An agent skill from eunomia-bpf/ActPlane.

    104 GitHub stars~3.8k tokensUpdated today
    Documents & OfficeAuto-check passed

More from huangwb8/ChineseResearchLaTeX

All 27 skills in this repo
  • NSFC Grant Rationale Writer

    huangwb8/ChineseResearchLaTeX

    Writes, restructures, reviews and polishes the rationale section of NSFC research grant applications in LaTeX, with backups and a diff before every write.

    2.9k GitHub stars~945 tokensUpdated 3 days ago
    Auto-check passed
  • Journal Selector for Manuscripts

    huangwb8/ChineseResearchLaTeX

    Recommends journals for a manuscript by filtering a bundled impact-factor catalog, verifying scope and quality online, and writing a ranked Markdown report.

    2.9k GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed
  • NSFC Abstract Writer

    huangwb8/ChineseResearchLaTeX

    Writes Chinese and English abstracts for NSFC grant applications, with a recommended title and five alternatives, within set character limits.

    2.9k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed
  • NSFC Budget Justification Writer

    huangwb8/ChineseResearchLaTeX

    Writes a submission-ready NSFC budget justification as a LaTeX project and renders budget.pdf from your grant proposal text and supporting materials.

    2.9k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • NSFC Application Code Recommender

    huangwb8/ChineseResearchLaTeX

    Recommends five pairs of NSFC application codes, primary and secondary, from a grant proposal's text and writes the reasons to a Markdown report.

    2.9k GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • NSFC Proposal Length Aligner

    huangwb8/ChineseResearchLaTeX

    Checks a Chinese NSFC grant proposal against section length budgets, reports where it runs short or long, and guides meaning-preserving expansion or trimming.

    2.9k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed

Works with

Questions about LaTeX Example Content Generator

What does LaTeX Example Content Generator do?

Fills an existing LaTeX project with sample sections, tables and figure narratives, protecting the template structure and previewing before writing. Written in Chinese, this skill fills an existing LaTeX project with example content: sample chapters, tables and figure narratives for templates such as NSFC proposals, theses and papers. It is explicitly not for writing real research conclusions.

When should I use LaTeX Example Content Generator?

LaTeX Example Content Generator fits situations like: filling a LaTeX template with example sections, tables and narrative; previewing generated sample content before it is written back; giving a thesis or proposal template realistic sample chapters; producing a quality report on generated LaTeX example text.

How do I install LaTeX Example Content Generator in Claude Code?

Run `npx skills add huangwb8/ChineseResearchLaTeX --skill complete-example -a claude-code`. Or copy the skill folder (skills/complete-example in huangwb8/ChineseResearchLaTeX) into .claude/skills/complete-example in your project. Claude Code loads it when a task matches its description.

How do I install LaTeX Example Content Generator in Codex?

Run `npx skills add huangwb8/ChineseResearchLaTeX --skill complete-example -a codex`. Or copy the skill folder (skills/complete-example in huangwb8/ChineseResearchLaTeX) into .agents/skills/complete-example in your project. Codex loads it when a task matches its description.

Can I use LaTeX Example Content Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add huangwb8/ChineseResearchLaTeX --skill complete-example -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/complete-example, .gemini/skills/complete-example, .github/skills/complete-example and .opencode/skills/complete-example in your project.

What does LaTeX Example Content Generator need to run?

Going by SKILL.md and its folder, LaTeX Example Content Generator needs Python for the scripts in its folder. Our summary lists: A LaTeX project built from the ChineseResearchLaTeX templates; Python for the bundled scripts.

Does LaTeX Example Content Generator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is LaTeX Example Content Generator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does LaTeX Example Content Generator use?

LaTeX Example Content Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does LaTeX Example Content Generator use?

About 744 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 241 tokens, read only when the agent opens those files.

What are the alternatives to LaTeX Example Content Generator?

Skills that share tags, products or a category with LaTeX Example Content Generator: Research Writing (alfonso0512/research-writing-skill, 486 stars), Paper Writing (MLNLP-World/Paper-Writing-Tips, 4.7k stars), Paperjury (Spark-To-Paper-Skills/paperjury, 1.2k stars) and Venue Templates (K-Dense-AI/claude-scientific-writer, 2.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains LaTeX Example Content Generator?

huangwb8 (a GitHub user) maintains it in huangwb8/ChineseResearchLaTeX, which has 2,865 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on October 4, 2026.

Source: huangwb8/ChineseResearchLaTeX on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.