CO

complete-example

Generates LaTeX narrative descriptions using AI context and validates structural formatting.

Install

mkdir -p .claude/skills/complete-example && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/7879" && unzip -o skill.zip -d .claude/skills/complete-example && rm skill.zip

Installs to .claude/skills/complete-example

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

当用户明确要求"填充示例内容""生成示例""补充 LaTeX 示例"时使用。AI 增强版 LaTeX 示例智能生成器,实现 AI 与硬编码的有机融合:AI 做"语义理解"(分析章节主题、推理资源相关性、生成连贯叙述),硬编码做"结构保护"(格式验证、哈希校验、访问控制)。
136 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Analyze LaTeX project chapters and themes
  • Generate narrative descriptions for LaTeX content
  • Validate LaTeX file structure and formatting
  • Perform hash-based access control on system files
  • Create project backups before modification

How it works

The skill uses AI to analyze project context and generate narrative text, while hard-coded logic handles file scanning, template wrapping, and structural validation.

Inputs & outputs

You give it
Project path and narrative hints
You get back
LaTeX example content in .complete_example directory

When to use complete-example

  • Generate academic LaTeX snippets
  • Fill LaTeX templates with semantic content
  • Validate complex LaTeX documents

About this skill

complete-example Skill

BenszAPI 任务工作区

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

与 bensz-collect-bugs 的协作约定

  • 当用户环境中出现因本 skill 设计缺陷导致的 bug 时,优先使用 bensz-collect-bugs 按规范记录到 ~/.bensz-skills/bugs/,严禁直接修改用户本地 Claude Code / Codex 中已安装的 skill 源码。
  • 若 AI 仍可通过 workaround 继续完成用户任务,应先记录 bug,再继续完成当前任务。
  • 当用户明确要求“report bensz skills bugs”等公开上报动作时,调用本地 ghbensz-collect-bugs,仅上传新增 bug 到 huangwb8/bensz-bugs;不要 pull / clone 整个 bug 仓库。

定位

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

输入

必需:

  • project:项目名称或路径。

常用可选参数:

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

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

输出

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

硬规则

  • 禁止修改系统文件:main.texextraTex/@config.tex@config.tex
  • 黑名单文件要做访问控制与哈希校验;若检测到非法修改尝试,必须拒绝。
  • main.tex 只允许 \section / \subsection;输入类 extraTex/*.tex 只允许 \subsubsection / \subsubsubsection
  • 生成内容必须保持“示例”属性,不伪装成真实实验或真实数据来源。

工作流

  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.*

适用与不适用

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

When not to use it

  • Performing real scientific research writing
  • Executing structural refactoring of projects
  • Modifying system configuration files

Limitations

  • Cannot modify system files like main.tex or @config.tex
  • Restricted to generating example content rather than real research data

How it compares

Unlike manual editing, this skill automates the integration of semantic content while enforcing strict structural integrity and file protection rules.

Compared to similar skills

complete-example side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
complete-example (this skill)126dReviewIntermediate
ml-paper-writing486moReviewAdvanced
docs-review107moNo flagsBeginner
claude-md-improver216moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

ml-paper-writing

davila7

Write publication-ready ML/AI papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation verification workflows.

4897

docs-review

metabase

Review documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation markdown files.

1085

claude-md-improver

anthropics

Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization".

2167

write-docs

tldraw

Writing SDK documentation for tldraw. Use when creating new documentation articles, updating existing docs, or when documentation writing guidance is needed. Applies to docs in apps/docs/content/.

665

update-docs

vercel

This skill should be used when the user asks to "update documentation for my changes", "check docs for this PR", "what docs need updating", "sync docs with code", "scaffold docs for this feature", "document this feature", "review docs completeness", "add docs for this change", "what documentation is affected", "docs impact", or mentions "docs/", "docs/01-app", "docs/02-pages", "MDX", "documentation update", "API reference", ".mdx files". Provides guided workflow for updating Next.js documentation based on code changes.

2543

wiki-architect

microsoft

Analyzes code repositories and generates hierarchical documentation structures with onboarding guides. Use when the user wants to create a wiki, generate documentation, map a codebase structure, or understand a project's architecture at a high level.

1144

Search skills

Search the agent skills registry