aloth

Overleaf

开发编程v1.1.0
作者:aloth更新于 2026-05-11overleaf-skill@clawhub_aloth/overleaf-skill
脚本工具#Arxiv#Sync

据 AlphaMoat 统计,截至 2026-09,Overleaf 累计下载 2,322 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 4,225 位,在「开发编程」分类(577 个)中排名第 519 位。

累计安装
145
累计下载
2,322
星标
1
全站排名
#4,225
全站前 84% · 「开发编程」前 90%
平台累计安装累计下载星标评论
ClawHub ↗612,022--
SkillHub ↗1452,3221—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

Overleaf 会话 Cookie 可访问用户项目,应像密码一样保管,避免进入 shell 历史或提交到仓库。同步和推送会更改项目文件;执行前先检查本地差异,能预览时先使用 dry-run,并保留重要文件的可恢复副本。 流程需要 olcli,安装前应审查并固定第三方包版本。

资料发布于 2026-10-29

可以用来做什么

  • 将 Overleaf 项目拉取到本地进行编辑
  • 编译项目并下载 PDF 或其他编译输出
  • 检查本地改动后将其同步或推送回项目

什么时候用

  • 需要通过 CLI 在本地编辑 Overleaf 项目时
  • 已安全配置凭证且不会将会话 Cookie 泄露时
  • 推送前可以审阅改动并保留恢复副本时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

为一个论文项目拟定 Overleaf 本地编辑与同步的安全流程,要求先审阅差异、保护会话 Cookie 并保留恢复副本;不要登录、同步或上传文件。

月度数据趋势

累计下载2,322
1,1301,7702,4102026-03 · 累计下载 1,2182026-05 · 累计下载 1,5462026-06 · 累计下载 1,6772026-07 · 累计下载 1,9022026-08 · 累计下载 2,0312026-09 · 累计下载 2,32226-0326-09
星标1
0112026-03 · 星标 -2026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,322—1
2026-082,031+6.8%1
2026-071,902+13.4%1
2026-061,677+8.5%1
2026-051,546—1
2026-031,218—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.9 KB · ClawHub v1.1.0
---
name: overleaf
description: Sync and manage Overleaf LaTeX projects from the command line. Pull projects locally, push changes back, compile PDFs, and download compile outputs like .bbl files for arXiv submissions. Use when working with LaTeX, Overleaf, academic papers, or arXiv.
license: MIT
metadata:
  author: aloth
  version: "1.1"
  cli: olcli
  install: brew tap aloth/tap && brew install olcli
---
展开全部(共 152 行)

# Overleaf Skill

Manage Overleaf LaTeX projects via the `olcli` CLI.

## Installation

```bash
# Homebrew (recommended)
brew tap aloth/tap && brew install olcli

# npm
npm install -g @aloth/olcli
```

## Authentication

Get your session cookie from Overleaf:

1. Log into [overleaf.com](https://www.overleaf.com)
2. Open DevTools (F12) → Application → Cookies
3. Copy the value of `overleaf_session2`

```bash
olcli auth --cookie "YOUR_SESSION_COOKIE"
```

Verify with:
```bash
olcli whoami
```

Debug authentication issues:
```bash
olcli check
```

Clear stored credentials:
```bash
olcli logout
```

## Common Workflows

### Pull a project to work locally

```bash
olcli pull "My Paper"
cd My_Paper/
```

### Edit and sync changes

```bash
# After editing files locally
olcli push              # Upload changes only
olcli sync              # Bidirectional sync (pull + push)
```

### Compile and download PDF

```bash
olcli pdf                      # Compile and download
olcli pdf -o paper.pdf         # Custom output name
olcli compile                  # Just compile (no download)
```

### Download .bbl for arXiv submission

```bash
olcli output bbl               # Download compiled .bbl
olcli output bbl -o main.bbl   # Custom filename
olcli output --list            # List all available outputs
```

### Upload figures or assets

```bash
olcli upload figure1.png "My Paper"          # Upload to project root
olcli upload diagram.pdf                      # Auto-detect project from .olcli.json
```

### Download specific files

```bash
olcli download main.tex "My Paper"           # Download single file
olcli zip "My Paper"                          # Download entire project as zip
```

## arXiv Submission Workflow

Complete workflow for preparing an arXiv submission:

```bash
# 1. Pull your project
olcli pull "Research Paper"
cd Research_Paper

# 2. Compile to ensure everything builds
olcli compile

# 3. Download the .bbl file (arXiv requires .bbl, not .bib)
olcli output bbl -o main.bbl

# 4. Download any other needed outputs
olcli output aux -o main.aux    # If needed

# 5. Package for submission
zip arxiv.zip *.tex main.bbl figures/*.pdf

# 6. Verify the package compiles locally (optional)
# Then upload arxiv.zip to arxiv.org
```

## Commands Reference

| Command | Description |
|---------|-------------|
| `olcli auth --cookie <value>` | Authenticate with session cookie |
| `olcli whoami` | Check authentication status |
| `olcli logout` | Clear stored credentials |
| `olcli check` | Show config paths and credential sources |
| `olcli list` | List all projects |
| `olcli info [project]` | Show project details |
| `olcli pull [project] [dir]` | Download project files |
| `olcli push [dir]` | Upload local changes |
| `olcli sync [dir]` | Bidirectional sync |
| `olcli upload <file> [project]` | Upload a single file |
| `olcli download <file> [project]` | Download a single file |
| `olcli zip [project]` | Download as zip archive |
| `olcli compile [project]` | Trigger compilation |
| `olcli pdf [project]` | Compile and download PDF |
| `olcli output [type]` | Download compile outputs |

## Tips

- **Auto-detect project**: Run commands from a synced directory (contains `.olcli.json`) to skip the project argument
- **Dry run**: Use `olcli push --dry-run` to preview changes before uploading
- **Force overwrite**: Use `olcli pull --force` to overwrite local changes
- **Project ID**: You can use project ID instead of name (24-char hex from URL)
- **Debug auth**: Run `olcli check` to see where credentials are loaded from

「开发编程」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。