Agent skill

Leetcuda Tex To Readthedocs

by xlite-dev in xlite-dev/LeetCUDA

LeetCUDA 书稿 LaTeX 到 Read the Docs 站点的转换管线维护 skill(站点目录 LeetCUDA/docs/readthedocs/)。当任务涉及:改完书稿后让站点同步、改转换器 convert/、本地构建与预览 build.sh、内容核对 convert.verify、浏览器验收…

GPL-3.0Auto-check passedDocuments & Office

Install Leetcuda Tex To Readthedocs

skills CLI
$ npx skills add xlite-dev/LeetCUDA --skill leetcuda-tex-to-readthedocs -a claude-code

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

GitHub CLI
$ gh skill install xlite-dev/LeetCUDA leetcuda-tex-to-readthedocs --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/xlite-dev/LeetCUDA.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/readthedocs/skills/leetcuda-tex-to-readthedocs .claude/skills/leetcuda-tex-to-readthedocs && 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
leetcuda-tex-to-readthedocs
GitHub stars
12k
Token cost
~902 tokens
SKILL.md length
183 words
Files
7 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
GPL-3.0

At a glance

LeetCUDA 书稿 LaTeX 到 Read the Docs 站点的转换管线维护 skill(站点目录 LeetCUDA/docs/readthedocs/)。当任务涉及:改完书稿后让站点同步、改转换器 convert/、本地构建与预览 build.sh、内容核对 convert.verify、浏览器验收…

  • Works in 3 steps: conda activate cdit ——… → 站点根 =… → 先按「改动落点表」定位落点,再按需查 references/;不要凭直觉改转换器。
  • Tasks that involve LaTeX
  • SKILL.md covers 开始前, 改动落点表, 本地构建与预览 and 验收:三层,缺一层就会漏, plus 1 more section
  • Calls python, conda and pip

What it does

Leetcuda Tex To Readthedocs is an agent skill from xlite-dev/LeetCUDA. LeetCUDA 书稿 LaTeX 到 Read the Docs 站点的转换管线维护 skill(站点目录 LeetCUDA/docs/readthedocs/)。当任务涉及:改完书稿后让站点同步、改转换器 convert/、本地构建与预览 build.sh、内容核对 convert.verify、浏览器验收 tools.visualcheck、版式与模板(templates、static/custom.css)、中英切换与英文图集(translate.js、i18n/figures-en.json、buildcoveren)、「下载 PDF」按钮、RTD 构建失败排查、.readthedocs.yaml 或 requirements.txt 时,使用本 skill。给出改动落点、命令、三层验收与已证伪路线。

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/acceptance.md`, `references/english.md` and `references/layout-frontend.md`).

It sits in Documents & Office, covering LaTeX, Internationalization and GPU and accelerator computing. It works with CUDA, LaTeX and C++. The repository describes itself as: An Open-source book with Modern CUDA learning Notes for Beginners - BF16/FP8/FP4, HGEMM, CuTe, Flash-Attention, etc. The licence is GPL-3.0.

When your agent uses it

  • Tasks that involve LaTeX
  • Tasks that involve Internationalization
  • Tasks that involve GPU and accelerator computing

Example prompts

  • “/leetcuda-tex-to-readthedocs”

Requirements

  • Python 3

Workflow steps

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

  1. conda activate cdit —— 站点构建统一用这个环境(Sphinx 7.4.7 + myst-parser 4.0.0 + sphinx-rtd-theme 3.0.2,版本见 requirements.txt)。
  2. 站点根 = /workspace/dev/vipshop/LeetCUDA/docs/readthedocs/,下文命令都在该目录下执行。
  3. 先按「改动落点表」定位落点,再按需查 references/;不要凭直觉改转换器。

What it can do on your machine

Read from SKILL.md and the folder at commit 5dfacc8. 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

    Shell commands in SKILL.md call:

    • python
    • conda
    • pip

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

  • Network

    Links to these hosts (documentation or services it may open):

    • leetcuda.readthedocs.io

    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

Leetcuda Tex To Readthedocs loads about 902 tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 98 tokens; SKILL.md has 183 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from xlite-dev/LeetCUDA at commit 5dfacc8, republished under its GPL-3.0 licence (© xlite-dev). 183 words, ~902 tokens.

Download SKILL.mdSave it as .claude/skills/leetcuda-tex-to-readthedocs/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
leetcuda-tex-to-readthedocs
description
LeetCUDA 书稿 LaTeX 到 Read the Docs 站点的转换管线维护 skill(站点目录 LeetCUDA/docs/readthedocs/)。当任务涉及:改完书稿后让站点同步、改转换器 convert/、本地构建与预览 build.sh、内容核对 convert.verify、浏览器验收 tools.visual_check、版式与模板(_templates、_static/custom.css)、中英切换与英文图集(translate.js、i18n/figures-en.json、build_cover_en)、「下载 PDF」按钮、RTD 构建失败排查、.readthedocs.yaml 或 requirements.txt 时,使用本 skill。给出改动落点、命令、三层验收与已证伪路线。
user-invocable
true
argument-hint
说明要改什么(书稿内容 / 转换器 / 版式 / 中英切换 / 封面 / 核对项),或直接给出报错的核对项名称与日志。

LeetCUDA 书稿 → Read the Docs 站点

把 kernels/interview/book/ 下的书稿 tex 逐章转换成网页:公式走 MathJax 实时渲染,TikZ 图编译成 SVG,代码清单按 linerange 从冻结源码抽出来贴进页面。站点 https://leetcuda.readthedocs.io。

原书 tex、源码、图片一律不改:转换只读原文件,产物只写进 docs/readthedocs/build/(已 gitignore)。

开始前

  1. conda activate cdit —— 站点构建统一用这个环境(Sphinx 7.4.7 + myst-parser 4.0.0 + sphinx-rtd-theme 3.0.2,版本见 requirements.txt)。
  2. 站点根 = /workspace/dev/vipshop/LeetCUDA/docs/readthedocs/,下文命令都在该目录下执行。
  3. 先按「改动落点表」定位落点,再按需查 references/;不要凭直觉改转换器。

改动落点表

改了什么要做的事细节
中文正文 / 公式 / 表格 / 数学宏push 即可:构建期从 tex 现转,中英文自动同步—
TikZ 图内中文文字、新增含中文的图先补词典再 push,否则 RTD 的 post_build「英文图集完整」必红references/english.md
封面文案重编译入库的 figures/misc/cover.pdf 并 commit;英文封面另跑 tools.build_cover_en 并 commit 产物references/english.md
转换器 convert/*.py改完必须跑全量 ./build.sh(含 23 项核对)+ 浏览器验收references/pipeline.md、references/acceptance.md
版式 / 模板 / CSS / JS先 touch build/src/index.md 再 ./build.sh,否则静态文件不重拷、预览还是旧样式references/layout-frontend.md
「下载 PDF」按钮(落位/样式)或其链接按钮默认在「下一页」右边(顶部 + 页脚两行);链接只改仓库根 README.md 的 [leetcuda-pdf] 一行,站点与核对都跟着变references/layout-frontend.md
RTD 构建失败先看 pre_build(apt 包 / pandoc 版本),再看 post_build 打印的核对项references/sync-and-deploy.md
核对项本身新增/调整 convert/verify.py 的 check_*,接入 verify() 与 main()references/acceptance.md

本地构建与预览

bash
conda activate cdit
cd /workspace/dev/vipshop/LeetCUDA/docs/readthedocs
pip install -r requirements.txt          # 首次或依赖变更后
./build.sh                               # 转换 → sphinx-build → 内容核对
python -m http.server -d build/html 8000 # 本机浏览器看 build/html/index.html

TikZ 全量编译约 3–5 分钟,调试时务必缩短:

bash
./build.sh --skip-tikz                          # 复用已有 SVG,只重跑文本转换 + 构建 + 核对
python -m convert --only ch00-profiling,ch16-fa2-splitq-mma   # 只转几章
python -m convert --jobs 8                      # TikZ 并行度
python -m convert --force-tikz                  # 忽略缓存重编全部 TikZ
python -m convert --skip-tikz --no-assemble     # 只跑 tex→md

远程 SSH 开发要在 VS Code 里看效果,必须做端口转发(内置浏览器在你本机渲染),见 references/acceptance.md。

验收:三层,缺一层就会漏

  1. 文件级:python -m convert.verify --src build/src --html build/html(23 项,build.sh 已含)。
  2. 浏览器级:python -m tools.visual_check --html build/html --out build/shots/chapters —— MathJax 报错、可见字面残迹、控制台报错、404 资源、整页截图。
  3. 版式几何(已并进 visual_check):图片/表格是否居中、有没有元素(过宽公式、宽表)撑出正文栏。

两条铁律:任一项不过就修 tex/转换器,不许绕过核对;0 警告 ≠ 页面正确,总数阈值会掩盖单点丢失(表格 126→125 时「≥90%」照样通过,改成逐章比对立刻暴露)。

参考文件

  • references/pipeline.md — 转换管线全貌(编排、章号/表格、TikZ→SVG、数学宏)、命令速查、目录结构、增量构建与 gitignore 陷阱。
  • references/layout-frontend.md — 三栏版式与居中、模板覆盖规则(page.html / layout.html / 两个整文件副本各管什么)、图片/表格/过宽公式、「下载 PDF」按钮的落位与兜底、中英切换按钮的落位。
  • references/english.md — Google 翻译切换机制与判定阈值、英文图集(词典/掩码/校验/换图)、英文封面离线生成。
  • references/acceptance.md — 三层验收细节、23 项核对清单、visual_check 参数、本地与远程(VS Code 端口转发)预览。
  • references/pitfalls.md — 已证伪路线与踩坑(TikZ、公式、正文结构),附页面上可见的症状。
  • references/sync-and-deploy.md — 内容更新与自动同步对照表、改稿检查清单、RTD 建站步骤、已知边界。

© xlite-dev, GPL-3.0. 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 6 other files (references) in docs/readthedocs/skills/leetcuda-tex-to-readthedocs of xlite-dev/LeetCUDA.

  • SKILL.md
  • references/acceptance.md
  • references/english.md
  • references/layout-frontend.md
  • references/pipeline.md
  • references/pitfalls.md
  • references/sync-and-deploy.md

Open the folder on GitHubat commit 5dfacc8

Compare with similar skills

Leetcuda Tex To Readthedocs 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.

Leetcuda Tex To Readthedocs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Leetcuda Tex To Readthedocs this skillxlite-dev/LeetCUDA12k—~902Automated safety check: PassGPL-3.0
Cuda Cpp Kernelvipshop/cache-dit1.3k—~2.3kAutomated safety check: PassApache-2.0
GPU OptimizationspiriMirror/libuipc336—~3.6kAutomated safety check: PassApache-2.0
Add Jit Kernelguqiong96/Lsglang1441 repos~10kAutomated safety check: PassApache-2.0
At Dispatch V2intel/torch-xpu-ops1153 repos~2.2kAutomated safety check: PassApache-2.0
Add Jit Kernelsgl-project/sglang37k—~13kAutomated safety check: PassApache-2.0

Similar skills

  • Cuda Cpp Kernel

    vipshop/cache-dit

    A skill your agent uses when writing, debugging, porting, reviewing, or optimizing CUDA C++ or PTX kernels; investigating CUDA Runtime or Driver API behavior; profiling kernels with Nsight Systems…

    1.3k GitHub stars~2.3k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • GPU Optimization

    spiriMirror/libuipc

    GPU optimization workflow using uipc.profile, uipc.profile.nsight, and Nsight Compute CLI.

    336 GitHub stars~3.6k tokensUpdated 8 days ago
    AI & LLM EngineeringAuto-check passed
  • Add Jit Kernel

    guqiong96/Lsglang

    Step-by-step tutorial for adding a new lightweight JIT CUDA kernel to sglang's jitkernel module

    144 GitHub starsUsed in 1 repo~10k tokens
    AI & LLM EngineeringAuto-check passed
  • At Dispatch V2

    intel/torch-xpu-ops

    Official

    Convert PyTorch ATDISPATCH macros to ATDISPATCHV2 format in ATen C++ code.

    115 GitHub starsUsed in 3 repos~2.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Add Jit Kernel

    sgl-project/sglang

    Step-by-step tutorial for adding a new lightweight JIT CUDA kernel to sglang.kernels JIT infrastructure and public operator groups

    37k GitHub stars~13k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Cuda

    mohitmishra786/low-level-dev-skills

    CUDA C/C++ skill for NVIDIA GPU kernel programming. An agent skill from mohitmishra786/low-level-dev-skills.

    252 GitHub stars~1.9k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed

More from xlite-dev/LeetCUDA

  • Leetcuda Cpp Kernel

    xlite-dev/LeetCUDA

    LeetCUDA 中文技术书(584 页,XeLaTeX 源)按需查阅 skill——写、优化、调试或 review CUDA C++/PTX kernel 时的权威参考路由层。当任务涉及:GPU 架构/Roofline/ occupancy、向量化与 coalescing、warp/block reduce、softmax(online/LSE merge)、…

    12k GitHub stars~3.5k tokensUpdated today
    Auto-check passed
  • Write Leetcuda Book

    xlite-dev/LeetCUDA

    把 LeetCUDA kernels/interview 教学源码(base/sgemv/sgemm/hgemm/flashattn/ffpaattn/fp8gemm.cuh/fp4gemm.cuh)+ ffpa-attn CuTe sm120 源码(csrc/cuffpa/cute fp8/fp4,commit 861d75e)写成中文 CUDA 技术书(6 Part 38 章 + CuTe…

    12k GitHub stars~2.1k tokensUpdated today
    Auto-check passed

Works with

Questions about Leetcuda Tex To Readthedocs

What does Leetcuda Tex To Readthedocs do?

LeetCUDA 书稿 LaTeX 到 Read the Docs 站点的转换管线维护 skill(站点目录 LeetCUDA/docs/readthedocs/)。当任务涉及:改完书稿后让站点同步、改转换器 convert/、本地构建与预览 build.sh、内容核对 convert.verify、浏览器验收…. Leetcuda Tex To Readthedocs is an agent skill from xlite-dev/LeetCUDA.

When should I use Leetcuda Tex To Readthedocs?

Leetcuda Tex To Readthedocs fits situations like: tasks that involve LaTeX; tasks that involve Internationalization; tasks that involve GPU and accelerator computing.

How do I install Leetcuda Tex To Readthedocs in Claude Code?

Run `npx skills add xlite-dev/LeetCUDA --skill leetcuda-tex-to-readthedocs -a claude-code`. Or copy the skill folder (docs/readthedocs/skills/leetcuda-tex-to-readthedocs in xlite-dev/LeetCUDA) into .claude/skills/leetcuda-tex-to-readthedocs in your project. Claude Code loads it when a task matches its description.

How do I install Leetcuda Tex To Readthedocs in Codex?

Run `npx skills add xlite-dev/LeetCUDA --skill leetcuda-tex-to-readthedocs -a codex`. Or copy the skill folder (docs/readthedocs/skills/leetcuda-tex-to-readthedocs in xlite-dev/LeetCUDA) into .agents/skills/leetcuda-tex-to-readthedocs in your project. Codex loads it when a task matches its description.

Can I use Leetcuda Tex To Readthedocs 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 xlite-dev/LeetCUDA --skill leetcuda-tex-to-readthedocs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/leetcuda-tex-to-readthedocs, .gemini/skills/leetcuda-tex-to-readthedocs, .github/skills/leetcuda-tex-to-readthedocs and .opencode/skills/leetcuda-tex-to-readthedocs in your project.

What does Leetcuda Tex To Readthedocs need to run?

Going by SKILL.md and its folder, Leetcuda Tex To Readthedocs needs the command-line tools its instructions call (python, conda and pip). Our summary lists: Python 3.

Does Leetcuda Tex To Readthedocs access the network?

SKILL.md names 1 domain. As links in the text: leetcuda.readthedocs.io. This is read from the text; nothing was executed.

Is Leetcuda Tex To Readthedocs 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. Review the folder before installing.

What licence does Leetcuda Tex To Readthedocs use?

Leetcuda Tex To Readthedocs is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Leetcuda Tex To Readthedocs use?

About 902 tokens (SKILL.md is roughly 3.6k 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 12k tokens, read only when the agent opens those files.

What are the alternatives to Leetcuda Tex To Readthedocs?

Skills that share tags, products or a category with Leetcuda Tex To Readthedocs: Cuda Cpp Kernel (vipshop/cache-dit, 1.3k stars), GPU Optimization (spiriMirror/libuipc, 336 stars), Add Jit Kernel (guqiong96/Lsglang, 144 stars) and At Dispatch V2 (intel/torch-xpu-ops, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Leetcuda Tex To Readthedocs?

xlite-dev (a GitHub organization) maintains it in xlite-dev/LeetCUDA, which has 12,056 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 10, 2026.

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